/* Routage Voile, page de présentation.
   Identité reprise des vidéos : Inter, encre marine, rouge de la route comme seul accent.
   Règle d'Eloi : pas de bande de couleur sur le côté d'un bloc, pas de cartes empilées. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); }

:root {
  --brume: #E8ECEF;      /* fond : le gris bleuté du studio des vidéos */
  --marine: #0A1A24;     /* encre */
  --gris: #4F5F68;       /* texte secondaire */
  --route: #D21F3C;      /* le trait de la route, seul accent */
  --teal: #0E7C86;       /* boutons de l'app */
  --trait: rgba(10, 26, 36, .12);
  --colonne: min(34rem, 42vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--brume); color: var(--marine);
  font: 400 1.125rem/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.saut { position: absolute; left: 1rem; top: -3rem; z-index: 20; background: var(--marine); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.saut:focus { top: 1rem; }

/* ---------- barre ---------- */
.barre {
  position: fixed; inset: 0 0 auto; z-index: 10; height: 3.5rem;
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--brume) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.marque { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -.01em; }
.marque img { width: 32px; height: 32px; border-radius: 8px; }
.barre-cta {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: #fff; background: var(--route);
  padding: .45rem 1rem; border-radius: 999px;
}

/* ---------- récit au défilement ---------- */
.recit { position: relative; display: grid; grid-template-columns: var(--colonne) 1fr; gap: clamp(2rem, 5vw, 6rem); padding: 0 clamp(1rem, 5vw, 5rem); }
.etapes { grid-column: 1; grid-row: 1; }
.scene { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.fenetre {
  position: relative; height: min(88vh, 1100px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: #dfe4e8; box-shadow: 0 0 0 1px var(--trait);
}
.fenetre canvas, .fenetre .affiche { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fenetre canvas { z-index: 1; }

.etape { min-height: 130vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 0; }
.etape-ouverture { min-height: 100vh; justify-content: center; padding-top: 5rem; }
.texte { transition: opacity .2s ease, transform .2s ease; }
.etape.active .texte { transition: opacity .45s ease .2s, transform .45s ease .2s; }   /* l'ancien texte part avant que le nouveau arrive */
.etape:not(.active) .texte { opacity: .18; transform: translateY(10px); }

h1 { font-weight: 800; font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 1.5rem; max-width: 12ch; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 1.1rem; max-width: 14ch; }
.etape p { color: var(--gris); font-size: clamp(1.1rem, 1.35vw, 1.3rem); max-width: 30rem; margin: 0; }
.chapeau { font-size: clamp(1.15rem, 1.5vw, 1.4rem) !important; color: var(--marine) !important; max-width: 28rem; }

.appel { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.badge { display: inline-block; border-radius: 12px; }
.badge img { width: 180px; height: 60px; }
.appel-note { font-size: .95rem !important; color: var(--gris); max-width: 16rem; }
.defiler { margin-top: 3.5rem !important; font-size: .95rem !important; color: var(--gris); display: flex; align-items: center; gap: .6rem; }
.defiler::before { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--route), transparent); }

/* ---------- croisière ---------- */
.croisiere { padding: clamp(5rem, 12vw, 10rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem); max-width: 76rem; margin: 0 auto; }
.croisiere h2 { margin-bottom: 3rem; }
.croisiere dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem clamp(2rem, 5vw, 5rem); }
.croisiere dl > div { padding-top: 1.2rem; border-top: 1px solid var(--trait); }
.croisiere dt { font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.croisiere dd { margin: 0; color: var(--gris); max-width: 32rem; }

/* ---------- questions fréquentes : mêmes filets que la croisière, réponses repliées ---------- */
.questions { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 6vw, 4rem); max-width: 76rem; margin: 0 auto; }
.questions h2 { margin-bottom: 2rem; }
.questions details { border-top: 1px solid var(--trait); max-width: 52rem; }
.questions details:last-of-type { border-bottom: 1px solid var(--trait); }
.questions summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; touch-action: manipulation;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .3rem;
  border-right: 2px solid var(--gris); border-bottom: 2px solid var(--gris);
  transform: translateY(-25%) rotate(45deg); transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1);
}
.questions details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.questions details p { margin: 0 0 1.4rem; color: var(--gris); max-width: 44rem; }
@media (hover: hover) and (pointer: fine) { .questions summary:hover { color: var(--teal); } }

/* ---------- prix ---------- */
.prix { text-align: center; padding: clamp(4rem, 10vw, 8rem) 1.25rem clamp(5rem, 10vw, 8rem); display: flex; flex-direction: column; align-items: center; }
.prix-icone { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 2rem; box-shadow: 0 18px 50px rgba(14, 124, 134, .28); }
.prix h2 { max-width: none; font-size: clamp(2.6rem, 6vw, 5rem); }
.prix p { color: var(--gris); max-width: 34rem; margin: 0 0 2rem; }

/* ---------- pied ---------- */
.pied { border-top: 1px solid var(--trait); padding: 2.2rem clamp(1rem, 5vw, 5rem) 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 3rem; font-size: .92rem; color: var(--gris); }
.mentions { max-width: 40rem; }
.avertissement, .credits { margin: 0; }
.credits { margin-top: .6rem; font-size: .85rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.pied nav a { text-decoration: none; }
.pied nav a:hover { color: var(--marine); text-decoration: underline; }

/* ---------- mobile : l'accroche d'abord, puis la scène au format exact 9:16 sur toute la largeur ;
   le texte de l'étape dans un panneau compact en bas de l'écran (feuille façon iOS), posé sur le bas de la scène ---------- */
@media (max-width: 860px) {
  .recit { display: flex; flex-direction: column; padding: 0; }
  .etapes { display: contents; }                    /* l'accroche passe avant la scène, les étapes après */
  .etape.etape-ouverture { order: -1; min-height: auto; padding: 6rem 1.25rem 2.5rem; }
  .scene { order: 0; position: sticky; top: 3.5rem; height: auto; display: block; padding: 0 .5rem; z-index: 1; }
  .fenetre { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; }
  .etape { order: 1; min-height: 80svh; padding: 0 1.25rem; }
  .texte {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; pointer-events: none;
    padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--brume) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
    border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--trait);
  }
  .etape:not(.active) .texte { opacity: 0; transform: translateY(16px); }
  h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); max-width: 14ch; }
  h2 { font-size: clamp(1.35rem, 5.8vw, 1.75rem); margin-bottom: .35rem; max-width: none; }
  .texte p { font-size: clamp(.95rem, 3.9vw, 1.05rem); line-height: 1.42; }
  .defiler { margin-top: 2.2rem !important; }
  .croisiere dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .texte { transition: none; }
  .questions summary::after { transition: none; }
}
