/* =============================== 
   VARIABLES
================================ */
:root {
  --bg-main: #050b18;
  --bg-card: #ad2a09; /* rouge avec transparence */
  --bg-card-soft: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.14);

  --text-main: rgba(255,255,255,0.95);
  --text-muted: rgba(255,255,255,0.70);

  --red-main: #AD2A09;
  --red-dark: #94331C; /* rouge principal */
  
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-soft: 0 10px 25px rgba(0,0,0,0.35);
  --shadow-strong: 0 18px 45px rgba(0,0,0,0.50);

  --max-width: 1100px;
}

/* ===============================
   RESET
================================ */
*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(900px 520px at 90% 20%, rgba(34,197,94,0.12), transparent 60%),
    var(--bg-main);
  min-height: 100vh;
}

/* ===============================
   LAYOUT
================================ */
.container{
  width: min(var(--max-width), 100%);
  margin: auto;
  padding: 28px 18px 40px;
  display: grid;
  gap: 22px;
}

/* ===============================
   HERO
================================ */
.hero{
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.heroTop{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

h1{
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.5px;
}

.tag{
  background: rgba(220,38,38,0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.lead{
  margin: 10px 0 0;
  max-width: 900px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===============================
   GRID
================================ */
.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===============================
   CARD
================================ */
.card{
  background: None
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cardHead{
  padding: 16px 18px;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardHead h2{
  margin: 0;
  font-size: 17px;
}

.badge{
  background: rgba(148, 51, 28, 0.25); /* badge rouge clair */
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ===============================
   CARD BODY
================================ */
.cardBody{
  padding: 18px;
  display: grid;
  gap: 16px;
}

/* ===============================
   INFO CARDS (présentation)
================================ */
.infoGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.infoCard{
  background: linear-gradient(
    135deg,
    rgba(148, 51, 28, 0.1),
    rgba(148, 51, 28, 0.02)
  );
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.infoCard:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.infoCard b{
  font-size: 14px;
}

.infoCard span{
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===============================
   SECTIONS TEXTE
================================ */
.section b{
  font-size: 14px;
}

.section p,
.section ul{
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.section ul{
  padding-left: 18px;
}

/* ===============================
   3D VIEWER
================================ */
.viewerWrap{
  padding: 16px;
  display: grid;
  gap: 10px;
}

model-viewer{
  width: 100%;
  height: 360px;
  background: #020617;
  border-radius: var(--radius-md);
}

.hint{
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===============================
   BUTTONS
================================ */
.actions{
  padding: 16px 18px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary{
  background: linear-gradient(135deg, var(--red-main), var(--red-dark));
  box-shadow: 0 10px 25px rgba(220,38,38,0.45);
}

.btn.secondary{
  background: linear-gradient(135deg, var(--red-main), var(--red-dark));
  border: 1px solid rgba(220,38,38,0.45);
}

.btn:hover{
  transform: translateY(-2px);
}

/* ===============================
   FOOTER
================================ */
.footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: grid;
  gap: 4px;
}


.coords{
  font-family: monospace;
  font-size: 11px;
  opacity: 0.7;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px){
  .grid{
    grid-template-columns: 1fr;
  }

  .infoGrid{
    grid-template-columns: 1fr;
  }

  model-viewer{
    height: 300px;
  }
}

.promo-block {
  background: linear-gradient(135deg, #b22323, #b6492a);
  color: white;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-top: 24px;
}

/* Badge promo animé */
.promo-badge, .promo-block {
  display: inline-block;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1.2rem;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: rotate(-5deg);
  animation: pop 1s ease-in-out infinite alternate;
  cursor: pointer;
}

/* Animation de “pop” */
@keyframes pop {
  0% {
    transform: rotate(-5deg) scale(1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
  100% {
    transform: rotate(-5deg) scale(1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  }
}

/* Petit effet sur le hover */
.promo-badge:hover {
  transform: rotate(0deg) scale(1.15);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.promo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-main {
  font-size: 1.3rem;
  font-weight: 700;
}

.promo-sub {
  font-size: 0.85rem;
  opacity: 0.9;
}

