/* Couleurs prélevées sur le logo officiel (MARQUE.md) */
:root {
  --bg: #000b2b;          /* bleu nuit profond */
  --bg-2: #061641;        /* bleu nuit, cartes */
  --line: #1a2b5e;
  --text: #fbf3dc;        /* blanc crème */
  --muted: #a7adc6;
  --accent: #fab100;      /* jaune doré */
  --accent-ink: #000e33;
  --wax-safran: #e1ab2f;
  --wax-indigo: #2b2470;
  --wax-rouge: #861221;   /* sang de bœuf */
  --ok: #9be0a8;
  --err: #ffa08f;
  --r: 16px;
  --pad: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
a { color: inherit; }
img { display: block; max-width: 100%; }

main, .top, .foot { max-width: 560px; margin: 0 auto; padding: 0 var(--pad); }

/* Liseré wax : une touche, pas plus */
.wax {
  height: 5px;
  background: repeating-linear-gradient(90deg,
    var(--wax-safran) 0 28px, var(--wax-indigo) 28px 40px,
    var(--wax-rouge) 40px 64px, var(--wax-indigo) 64px 76px);
}

.logo {
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}
.logo.small { font-size: 15px; margin: 0 0 6px; }

.top {
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* ---------- Réseaux ---------- */
.social { display: flex; gap: 6px; }
.social-top a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.social-top a:hover, .social-top a:focus-visible { background: var(--bg-2); color: var(--accent); }
.social-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 28px; }
.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 13.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 900;
}
h1 em { font-style: normal; color: var(--accent); display: block; }
.lead { margin: 0 0 28px; color: #e4dcc8; font-size: 18px; max-width: 30em; }

/* ---------- Boutons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn-wa { background: var(--accent); color: var(--accent-ink); }
.btn-wa svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.btn-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.btn-text small { font-weight: 650; font-size: 13px; opacity: .8; margin-top: 3px; }
.btn-main { background: var(--text); color: var(--accent-ink); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Séries ---------- */
.series { padding: 28px 0 8px; }
h2 { font-size: 20px; letter-spacing: 0.02em; font-weight: 900; margin: 0 0 14px; }
.rail {
  list-style: none;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad) 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  isolation: isolate;
  border: 1px solid rgba(251,243,220,.08);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.poster::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,6,24,.92) 0%, rgba(0,6,24,.15) 55%, rgba(0,0,0,0) 100%);
}
.p1 { background: radial-gradient(120% 80% at 30% 20%, #2a4fa8 0%, #0a1a4a 60%, #020822 100%); }
.p2 { background: radial-gradient(120% 80% at 70% 15%, #b07a12 0%, #3d2a08 60%, #100b02 100%); }
.p3 { background: radial-gradient(120% 80% at 30% 25%, #8a1a2a 0%, #2e0710 60%, #0d0205 100%); }
.p4 { background: radial-gradient(120% 80% at 60% 20%, #3a3290 0%, #151140 60%, #05041a 100%); }
.poster-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,11,43,.78);
  color: var(--text);
  font-size: 12px; font-weight: 800;
  padding: 5px 9px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge-live { background: var(--accent); color: var(--accent-ink); }
.poster-title {
  font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.poster-title small { display: block; font-size: 15px; font-weight: 750; margin-top: 6px; letter-spacing: 0; }
.poster-hook { margin-top: 8px; font-size: 14px; color: #e4dcc8; font-style: italic; line-height: 1.3; }

/* ---------- Formulaire ---------- */
.alerte {
  margin: 28px 0 8px;
  padding: 24px var(--pad);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  scroll-margin-top: 16px;
}
.alerte h2 { margin-bottom: 4px; }
.muted { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
input[type=email] {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 18px;
}
input[type=email]::placeholder { color: #6a7397; }
input[type=email]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(250,177,0,.25); }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 16px 0 18px;
  font-size: 14px; color: #cfd2e0; line-height: 1.45;
  cursor: pointer;
}
.consent input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--text); }
.msg { margin: 14px 0 0; min-height: 1.4em; font-size: 15px; font-weight: 650; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pied de page ---------- */
.foot { padding-top: 36px; padding-bottom: 24px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot .muted { font-size: 13px; margin-bottom: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; }
.foot nav a { color: var(--text); font-size: 15px; padding: 8px 0; text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot .foot-links a { color: var(--muted); }
.foot .copy { margin: 8px 0 0; }

/* ---------- Bouton fixe en bas (téléphone) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(0,11,43,0));
  transform: translateY(110%);
  transition: transform .25s ease;
  z-index: 10;
}
.dock.on { transform: none; }
.dock .btn { max-width: 520px; margin: 0 auto; }

/* ---------- Page texte ---------- */
.page { padding: 32px 0 24px; }
.page h1 { font-size: 40px; }
.page h2 { margin-top: 28px; font-size: 18px; }
.page p, .page li { color: #e4dcc8; }

@media (min-width: 720px) {
  .rail { grid-auto-columns: 40%; }
  .hero { padding-top: 64px; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 18px; }
  main, .top, .foot { max-width: 1180px; padding: 0 40px; }
  .top { padding-top: 24px; }
  .logo { font-size: 20px; }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "hero alerte" "series series";
    column-gap: 72px;
    align-items: center;
  }
  .hero { grid-area: hero; padding: 72px 0 56px; }
  .alerte { grid-area: alerte; margin: 0; padding: 36px; }
  .series { grid-area: series; padding: 40px 0 0; }

  h1 { font-size: clamp(64px, 6vw, 96px); white-space: nowrap; }
  h1 em { white-space: normal; }
  .lead { font-size: 21px; max-width: 26em; }
  .hero .btn-wa { width: auto; display: inline-flex; padding: 14px 28px 14px 22px; }
  .btn:hover { filter: brightness(1.07); }

  .rail {
    margin: 0; padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
  }
  .poster { padding: 20px; transition: transform .2s ease; }
  .poster:hover { transform: translateY(-4px); }
  .poster-title { font-size: 26px; }
  h2 { font-size: 22px; }

  .dock { display: none; }
  .foot {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 1.4fr auto auto;
    align-items: start;
    gap: 16px 48px;
  }
  .foot .copy { grid-column: 1 / -1; }
  main.page { display: block; max-width: 800px; }
  .page h1 { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dock, .poster { transition: none; }
}
