/* Page « Sites web » : une séquence épinglée. Le large (hero), l'approche du
   voilier, le cockpit, la descente dans la cabine, le bureau. Les photos de
   la séquence se fondent l'une dans l'autre au fil du défilement. */
.page-mer {
  background: #0b4a70;
}
.sequence-mer {
  position: relative;
  height: 2250vh;
}
.sequence-mer .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.mer-photo,
.film img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* Profondeur à la souris : la photo glisse un peu, le texte dans l'autre sens. */
.mer-photo {
  inset: -12px -20px;
  width: calc(100% + 40px);
  height: calc(100% + 24px);
  translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -8px);
}
.film img {
  will-change: opacity;
}
/* Dès que le film est là et que la caméra part, la photo fixe s'efface
   derrière la première image du film (identique). */
.sequence-mer.avec-film .mer-photo {
  opacity: calc(1 - clamp(0, calc(var(--p, 0) * 20), 1));
}
/* Le texte du hero s'efface au premier geste. */
.mer-texte {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  max-width: 620px;
  color: var(--cream);
  translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 6px);
  opacity: calc(1 - clamp(0, calc(var(--p, 0) / 0.12), 1));
  pointer-events: none;
}
.sequence-mer:not(.avec-film) .mer-texte,
.mer-texte:has(+ .indice) {
  pointer-events: none;
}
.stage.entree .mer-texte {
  pointer-events: auto;
}
/* la pénombre du hero, à gauche, s'efface avec le texte */
.stage:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(95deg, rgba(4, 30, 48, 0.62), rgba(4, 30, 48, 0.28) 44%, rgba(4, 30, 48, 0) 64%);
  opacity: calc(1 - clamp(0, calc(var(--p, 0) / 0.12), 1));
  pointer-events: none;
}
.mer-texte h1 {
  margin: 14px 0 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(4, 30, 48, 0.7);
}
.mer-texte h1 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.mer-texte .lead {
  max-width: 44ch;
  margin: 22px 0 28px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 6px rgba(4, 30, 48, 0.9);
}
.mer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.mer-actions .text-link {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(4, 30, 48, 0.9);
}
/* Entrée du texte, ligne par ligne. */
.mer-texte > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage.entree .mer-texte > * {
  opacity: 1;
  transform: none;
}
.stage.entree .mer-texte > :nth-child(2) {
  transition-delay: 0.12s;
}
.stage.entree .mer-texte > :nth-child(3) {
  transition-delay: 0.26s;
}
.stage.entree .mer-texte > :nth-child(4) {
  transition-delay: 0.4s;
}
.sequence-mer .indice {
  opacity: calc(1 - clamp(0, calc(var(--p, 0) * 10), 1));
}
.desktop-nav a[aria-current="page"]:after {
  transform: none;
}

/* ------------------------------------------------------------ Le cockpit */
/* Tout ce qui se pose sur les photos est placé dans LEUR repère (--ix, --iy,
   --iw, --ih : le rectangle affiché par object-fit: cover), pas dans celui de
   l'écran : le recadrage change avec la fenêtre, pas la photo. */
.cockpit,
.bureau {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: #fff;
  pointer-events: none;
}
.cockpit {
  opacity: calc(clamp(0, calc((var(--p, 0) - 0.86) / 0.14), 1) * (1 - clamp(0, calc(var(--r, 0) * 8), 1)));
}
.bureau {
  opacity: clamp(0, calc((var(--r, 0) - 0.86) / 0.14), 1);
}
.cockpit.lisible,
.bureau.lisible {
  pointer-events: auto;
}
.cockpit h2,
.bureau h2 {
  position: absolute;
  top: 12%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(4, 20, 30, 0.8), 0 1px 3px rgba(4, 20, 30, 0.9);
}
.cockpit h2:before,
.bureau h2:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50px -90px -50px -80px;
  background: radial-gradient(100% 85% at 30% 50%, rgba(4, 16, 26, 0.7), rgba(4, 16, 26, 0.32) 55%, rgba(4, 16, 26, 0) 82%);
  filter: blur(8px);
}
.cockpit h2 em,
.bureau h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
/* Ce que vous obtenez : cinq points sur une même ligne de base, posés sur le
   pont de teck, reliés par un cordage. Grands chiffres gravés comme dans la
   caverne de l'accueil : même langage d'un bout à l'autre du site. */
.cockpit:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(6, 18, 28, 0.9), rgba(6, 18, 28, 0.6) 55%, rgba(6, 18, 28, 0));
  pointer-events: none;
}
.points {
  position: absolute;
  top: calc(var(--iy, 0px) + var(--ih, 100vh) * 0.62);
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.05);
  width: calc(var(--iw, 100vw) * 0.9);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 2vw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.points .cordage {
  position: absolute;
  top: calc(var(--iw, 100vw) * 0.055);
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(230, 160, 106, 0), var(--copper-clair) 8%, #ffd9a8 50%, var(--copper-clair) 92%, rgba(230, 160, 106, 0));
  box-shadow: 0 0 12px rgba(255, 214, 152, 0.5);
  transform: scaleX(0);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.cockpit.lisible .cordage {
  transform: none;
}
.points li {
  position: relative;
  padding-top: calc(var(--iw, 100vw) * 0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cockpit.lisible .points li {
  opacity: 1;
  transform: none;
}
.cockpit.lisible .points li:nth-child(3) { transition-delay: 0.15s; }
.cockpit.lisible .points li:nth-child(4) { transition-delay: 0.3s; }
.cockpit.lisible .points li:nth-child(5) { transition-delay: 0.45s; }
.cockpit.lisible .points li:nth-child(6) { transition-delay: 0.6s; }
/* le nœud sur le cordage */
.points li:before {
  content: "";
  position: absolute;
  top: calc(var(--iw, 100vw) * 0.055 - 5px);
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #ffd9a8;
  box-shadow: 0 0 0 4px rgba(255, 214, 152, 0.2), 0 0 14px rgba(255, 214, 152, 0.9);
}
/* le grand chiffre, gravé au-dessus du nœud */
.points span {
  position: absolute;
  top: calc(var(--iw, 100vw) * -0.045);
  left: 50%;
  translate: -50% 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-size: calc(var(--iw, 100vw) * 0.075);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(0deg, rgba(255, 224, 170, 0.95), rgba(255, 214, 152, 0.45) 55%, rgba(255, 214, 152, 0.08));
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(255, 214, 152, 0.35));
}
.points b {
  display: block;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 4px rgba(4, 16, 26, 0.9);
}
.points p {
  max-width: 24ch;
  margin: 8px auto 0;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(4, 16, 26, 0.9);
  text-wrap: balance;
}

/* ------------------------------------------------------------ Le bureau */
/* L'écran du moniteur, dans le repère de la photo. */
.ecran-bureau {
  position: absolute;
  top: calc(var(--iy, 0px) + var(--ih, 100vh) * 0.157);
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.2443);
  width: calc(var(--iw, 100vw) * 0.5245);
  height: calc(var(--ih, 100vh) * 0.489);
  overflow: hidden;
  border-radius: 4px;
  background: #0b0d10;
}
.ecran-bureau img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.ecran-bureau img.vue {
  opacity: 1;
}
/* Sous l'écran, sur le bureau : les onglets, une ligne, le bouton. */
.bureau-fiche {
  position: absolute;
  top: calc(var(--iy, 0px) + var(--ih, 100vh) * 0.7);
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.2443);
  width: calc(var(--iw, 100vw) * 0.5245);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.bureau-fiche:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -60px -36px;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(40, 18, 6, 0.86), rgba(40, 18, 6, 0.55) 60%, rgba(40, 18, 6, 0));
  filter: blur(10px);
}
.bureau-fiche .onglets {
  margin: 0;
  padding: 0;
  border: 0;
  width: auto;
}
.bureau-fiche .onglets button,
.bureau-fiche .onglets button:hover {
  font-size: 15px;
  padding: 9px 18px;
}
.fiches {
  display: grid;
}
.fiches article {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.fiches article.vue {
  opacity: 1;
}
.fiches p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(40, 18, 6, 0.9);
}
@media (max-width: 800px) {
  .mer-photo,
  .film img {
    object-position: 84% 50%;
  }
  .stage:before {
    background: linear-gradient(180deg, rgba(4, 30, 48, 0.66), rgba(4, 30, 48, 0.36) 45%, rgba(4, 30, 48, 0) 66%);
  }
  .mer-texte {
    top: 104px;
    right: 22px;
    left: 22px;
  }
  .mer-texte h1 {
    font-size: 38px;
  }
  .mer-texte .lead {
    font-size: 17px;
  }
  .cockpit h2,
  .bureau h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    font-size: 28px;
  }
  .cockpit:after {
    height: 70%;
  }
  .points {
    top: 200px;
    right: 22px;
    left: 22px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .points .cordage,
  .points li:before {
    display: none;
  }
  .points li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 12px;
    padding: 0;
    text-align: left;
  }
  .points span {
    position: static;
    translate: none;
    grid-row: 1 / 3;
    font-size: 38px;
  }
  .points p {
    margin: 4px 0 0;
    max-width: none;
  }
  .ecran-bureau {
    display: none;
  }
  .bureau-fiche {
    top: 200px;
    right: 22px;
    left: 22px;
    width: auto;
  }
}
/* Les cinq points s'étalent sur la largeur de l'ÉCRAN (le pont est partout
   en bas de la photo), seule leur hauteur suit la photo : rien ne sort du
   cadre quand la fenêtre est étroite. */
@media (min-width: 801px) {
  .points {
    left: 4%;
    width: 92%;
  }
  .points .cordage {
    top: 4vw;
  }
  .points li {
    padding-top: 5.6vw;
  }
  .points li:before {
    top: calc(4vw - 6px);
  }
  .points span {
    top: -3.3vw;
    font-size: 5.4vw;
  }
  .bureau-fiche .onglets {
    grid-area: auto;
    order: -1;
  }
}
/* Le titre du bureau se tient à droite de l'écran, sur les étagères. */
@media (min-width: 801px) {
  .bureau h2 {
    top: 13%;
    left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.79);
    right: max(clamp(16px, 2.5vw, 48px), (100% - 1560px) / 2);
    font-size: clamp(22px, 2vw, 32px);
    text-shadow: 0 2px 24px rgba(40, 18, 6, 0.9), 0 1px 3px rgba(40, 18, 6, 0.9);
  }
  .bureau h2:before {
    inset: -40px -40px -40px -50px;
    background: radial-gradient(100% 90% at 50% 50%, rgba(40, 18, 6, 0.8), rgba(40, 18, 6, 0.4) 55%, rgba(40, 18, 6, 0) 82%);
  }
}
/* L'écran du moniteur, mesuré sur la photo : la capture déborde un peu sur
   le bord noir du moniteur, puis elle est découpée selon le vrai contour de la
   dalle (un léger trapèze, plus large en bas). Aucun bord ne peut se voir. */
@media (min-width: 801px) {
  .ecran-bureau {
    top: calc(var(--iy, 0px) + var(--ih, 100vh) * 0.152);
    left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.238);
    width: calc(var(--iw, 100vw) * 0.537);
    height: calc(var(--ih, 100vh) * 0.498);
    border-radius: 0;
    background: #06080a;
    /* sommets en % de cette boîte : TL, TR, BR, BL */
    /* découpe au bord de la dalle, juste à l'intérieur du cadre noir du
       moniteur, qui reste visible tout autour */
    /* angles arrondis comme ceux de la dalle ; le bord haut descend un peu
       vers la gauche, comme sur la photo */
    clip-path: polygon(2.00% 3.05%, 2.03% 2.61%, 2.12% 2.20%, 2.26% 1.85%, 2.45% 1.58%, 2.67% 1.41%, 2.90% 1.35%, 97.40% 0.95%, 97.63% 1.01%, 97.85% 1.18%, 98.04% 1.45%, 98.18% 1.80%, 98.27% 2.21%, 98.30% 2.65%, 99.30% 97.30%, 99.27% 97.74%, 99.18% 98.15%, 99.04% 98.50%, 98.85% 98.77%, 98.63% 98.94%, 98.40% 99.00%, 1.30% 99.00%, 1.07% 98.94%, 0.85% 98.77%, 0.66% 98.50%, 0.52% 98.15%, 0.43% 97.74%, 0.40% 97.30%);
  }
  .ecran-bureau img {
    object-position: 50% 0;
  }
}
/* Quand la fenêtre est plus large que 16:9 (barres du navigateur), la photo
   déborde en hauteur : on la cale en HAUT plutôt qu'au centre, pour que le
   moniteur du bureau descende sous le menu au lieu de passer dessous. */
@media (min-width: 801px) {
  .mer-photo,
  .film img {
    object-position: 62% 0%;
  }
}

/* --------------------------------------------------- Composez votre site */
/* Sur l'écran du moniteur, le carrousel laisse place au configurateur, dessiné
   dans la DA du site : verre bronze sombre, cuivre, grands chiffres, accent
   serif italique. Un canevas fixe de 1000 × 520 mis à l'échelle de l'écran. */
.configurateur {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #1e1710, #0f0c08 60%, #0a0806);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.bureau.composer .configurateur {
  opacity: 1;
  pointer-events: auto;
}
.bureau.composer .ecran-bureau img {
  opacity: 0;
}
.conf-canevas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 520px;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 22px 40px;
  padding: 36px 44px 30px;
  transform-origin: 0 0;
  color: var(--cream);
  font-family: DM, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
/* une lueur cuivrée au coin, comme le soleil bas sur les plaques du site */
.conf-canevas:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(60% 70% at 100% 0%, rgba(230, 160, 106, 0.22), rgba(230, 160, 106, 0) 70%);
  pointer-events: none;
}
.conf-tete {
  grid-column: 1 / -1;
}
.conf-tete .sur-titre {
  margin: 0 0 8px;
}
.conf-tete h3 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.conf-tete h3 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
/* les deux formules : deux plaques de verre bronze, grands chiffres */
.conf-formules {
  display: grid;
  gap: 12px;
  align-content: start;
}
.conf-formules label {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px 16px 14px 18px;
  border-radius: 3px;
  background: rgba(38, 25, 15, 0.55);
  box-shadow: var(--pose);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}
.conf-formules label:has(:checked) {
  background: rgba(60, 38, 20, 0.85);
  box-shadow: var(--pose), 0 0 0 1px var(--copper-clair) inset;
}
.conf-formules input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.conf-num {
  position: absolute;
  top: -6px;
  right: 12px;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 214, 152, 0.14);
}
.conf-formules b {
  font-family: Bricolage, DM, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.conf-formules small {
  grid-column: 1;
  font-size: 12.5px;
  color: rgba(247, 241, 227, 0.72);
}
.conf-formules em {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-style: normal;
  font-family: Bricolage, DM, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #ffd9a8;
}
.conf-formules em i,
.conf-total b i {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 500;
}
/* les modules : des pastilles, cuivre quand elles sont choisies */
.conf-modules p {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(247, 241, 227, 0.8);
}
.conf-modules p em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  color: #ffd9a8;
}
.conf-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.conf-liste label {
  padding: 8px 14px;
  border: 1px solid rgba(var(--lumiere), 0.22);
  border-radius: 40px;
  background: rgba(26, 17, 10, 0.5);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.conf-liste label:hover {
  background: rgba(26, 17, 10, 0.8);
}
.conf-liste label:has(:checked) {
  border-color: transparent;
  background: linear-gradient(180deg, #b35f34, #96481f);
  color: #fff;
}
.conf-liste input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* le total, sur un fil de cuivre */
.conf-total {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 16px;
}
.conf-fil {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper-clair), #ffd9a8 40%, rgba(255, 217, 168, 0));
  box-shadow: 0 0 10px rgba(255, 214, 152, 0.5);
}
.conf-total b {
  font-family: Bricolage, DM, sans-serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.conf-detail {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc592;
}
.conf-mois {
  margin-left: auto;
  font-size: 14px;
  color: rgba(247, 241, 227, 0.8);
}
.conf-mois strong {
  font-family: Bricolage, DM, sans-serif;
  font-size: 20px;
  color: #fff;
}
.conf-mois em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
}
/* Sous l'écran : la barre change d'état avec l'écran. */
.devis-barre {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  text-align: center;
}
.devis-barre p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(40, 18, 6, 0.9);
}
.bureau.composer .bureau-fiche .onglets,
.bureau.composer .fiches {
  display: none;
}
.bureau.composer .devis-barre {
  display: flex;
}
.bureau.composer h2 {
  opacity: 0;
}
.composer-titre {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: calc(clamp(0, calc((var(--c, 0) - 0.5) / 0.5), 1) * (1 - clamp(0, calc(var(--k, 0) * 8), 1)));
}
.composer-titre h2 {
  position: absolute;
  top: 13%;
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.79);
  right: max(clamp(16px, 2.5vw, 48px), (100% - 1560px) / 2);
  margin: 0;
  color: #fff;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(40, 18, 6, 0.9), 0 1px 3px rgba(40, 18, 6, 0.9);
}
.composer-titre h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}

/* ------------------------------------------------------------ Le carnet */
/* Les quatre étapes s'écrivent sur les pages du carnet ouvert (repère photo).
   Encre sombre sur papier crème : la première scène claire de la page. */
.carnet {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: #22140a;
  opacity: clamp(0, calc((var(--k, 0) - 0.9) / 0.1), 1);
  pointer-events: none;
}
.carnet.lisible {
  pointer-events: auto;
}
.carnet h2 {
  position: absolute;
  top: 12%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  margin: 0;
  color: #fff;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(60, 25, 5, 0.9), 0 1px 3px rgba(60, 25, 5, 0.9);
}
.carnet h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.etapes-carnet {
  position: absolute;
  top: var(--iy, 0px);
  left: var(--ix, 0px);
  width: var(--iw, 100vw);
  height: var(--ih, 100vh);
  margin: 0;
  padding: 0;
  list-style: none;
}
.etapes-carnet li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 26%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.carnet.lisible .etapes-carnet li {
  opacity: 1;
  transform: none;
}
.carnet.lisible .etapes-carnet li:nth-child(2) { transition-delay: 0.5s; }
.carnet.lisible .etapes-carnet li:nth-child(3) { transition-delay: 1s; }
.carnet.lisible .etapes-carnet li:nth-child(4) { transition-delay: 1.5s; }
.etapes-carnet span {
  display: block;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-size: calc(var(--iw, 100vw) * 0.03);
  line-height: 1;
  color: #96481f;
}
.etapes-carnet b {
  display: block;
  margin-top: 0.6vw;
  font-family: Bricolage, DM, sans-serif;
  font-size: calc(var(--iw, 100vw) * 0.017);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.etapes-carnet p {
  margin: 0.6vw 0 0;
  font-size: calc(var(--iw, 100vw) * 0.0115);
  line-height: 1.5;
  color: #3a2a1c;
}
.carnet h2 {
  left: auto;
  right: max(clamp(28px, 4vw, 70px), (100% - 1560px) / 2);
  top: auto;
  bottom: 8%;
  text-align: right;
}
@media (max-width: 800px) {
  .configurateur {
    display: none;
  }
  .composer-titre h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    font-size: 28px;
  }
  .carnet h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    bottom: auto;
    text-align: left;
    font-size: 28px;
  }
  .etapes-carnet {
    top: 200px;
    right: 22px;
    left: 22px;
    width: auto;
    height: auto;
    display: grid;
    gap: 14px;
  }
  .etapes-carnet li {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 12px 14px;
    border-radius: 3px;
    background: rgba(247, 241, 227, 0.94);
  }
  .etapes-carnet span {
    font-size: 24px;
  }
  .etapes-carnet b {
    font-size: 17px;
  }
  .etapes-carnet p {
    font-size: 14px;
  }
}
/* Le bureau s'efface dès que la caméra part vers le carnet. */
.bureau {
  opacity: calc(clamp(0, calc((var(--r, 0) - 0.86) / 0.14), 1) * (1 - clamp(0, calc(var(--k, 0) * 8), 1)));
}
/* Écriture du carnet : à l'échelle des pages. */
.etapes-carnet li {
  width: 23%;
}
.etapes-carnet span {
  font-size: calc(var(--iw, 100vw) * 0.024);
}
.etapes-carnet b {
  font-size: calc(var(--iw, 100vw) * 0.0125);
}
.etapes-carnet p {
  font-size: calc(var(--iw, 100vw) * 0.0088);
}
/* Le canevas respire : tout un peu plus grand pour remplir l'écran. */
.conf-canevas {
  gap: 24px 44px;
  padding: 34px 44px 30px;
}
.conf-tete h3 {
  font-size: 38px;
}
.conf-formules label {
  padding: 18px 18px 18px 20px;
}
.conf-formules b {
  font-size: 21px;
}
.conf-formules em {
  font-size: 34px;
}
.conf-modules p {
  font-size: 15px;
  margin-bottom: 14px;
}
.conf-liste {
  gap: 10px;
}
.conf-liste label {
  padding: 10px 17px;
  font-size: 15px;
}
.conf-total b {
  font-size: 52px;
}
/* Les croquis au stylo sous chaque étape : ils se dessinent une fois la page
   écrite, trait après trait, comme à la main. */
.croquis {
  display: block;
  width: calc(var(--iw, 100vw) * 0.085);
  margin-top: 0.9vw;
  overflow: visible;
}
.croquis path {
  fill: none;
  stroke: #2b1a0e;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* pathLength normalisé par le script : chaque trait a une longueur de 1 */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.88;
  transition: stroke-dashoffset 0.9s ease-in-out;
}
.carnet.lisible .croquis path {
  stroke-dashoffset: 0;
}
/* le stylo trace les traits l'un après l'autre, étape après étape */
.carnet.lisible .etapes-carnet li:nth-child(1) .croquis path { transition-delay: calc(0.9s + var(--t, 0) * 0.45s); }
.carnet.lisible .etapes-carnet li:nth-child(2) .croquis path { transition-delay: calc(1.6s + var(--t, 0) * 0.45s); }
.carnet.lisible .etapes-carnet li:nth-child(3) .croquis path { transition-delay: calc(2.3s + var(--t, 0) * 0.45s); }
.carnet.lisible .etapes-carnet li:nth-child(4) .croquis path { transition-delay: calc(3s + var(--t, 0) * 0.45s); }
@media (prefers-reduced-motion: reduce) {
  .croquis path {
    transition: none;
  }
}
@media (max-width: 800px) {
  .croquis {
    width: 90px;
  }
}

/* -------------------------------------------------------------- Le port */
/* Le carnet s'efface dès que la caméra se relève. */
.carnet {
  opacity: calc(clamp(0, calc((var(--k, 0) - 0.9) / 0.1), 1) * (1 - clamp(0, calc(var(--h, 0) * 8), 1)));
}
/* Deux façons de lancer votre site : deux voiliers entrent dans le port,
   un par chaque bord, et la formule est peinte sur leur voile comme un
   numéro de course. Le détail se lit sous la coque, dans le reflet. Les
   positions sont celles des bateaux dans la photo (repère --ix/--iy). */
.port {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: var(--cream);
  opacity: clamp(0, calc((var(--h, 0) - 0.88) / 0.12), 1);
  pointer-events: none;
}
.port.lisible {
  pointer-events: auto;
}
.port h2 {
  position: absolute;
  top: 12%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  margin: 0;
  color: #fff;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(10, 30, 50, 0.8), 0 1px 3px rgba(10, 30, 50, 0.9);
  transition: opacity 0.6s ease;
}
.port h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
/* le titre se retire quand les voiles portent le message */
.port.voiles-la h2 {
  opacity: 0.001;
}
.voile {
  position: absolute;
  --cx: 0.27; /* centre de la grand-voile (bateau de gauche), en fraction de la photo */
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * var(--cx));
  top: var(--iy, 0px);
  width: 0;
  height: var(--ih, 100vh);
  opacity: 0;
  transition: opacity 0.9s ease 0.1s;
}
.voile-d {
  --cx: 0.735; /* centre du foc (bateau de droite), tourné vers le phare */
  transition-delay: 0.3s;
}
.port.voiles-la .voile {
  opacity: 1;
}
/* peint sur la toile : encre marine, fondue dans les plis de la voile.
   Toute la formule tient sur la voile, comme un numéro de course. */
.sur-voile {
  position: absolute;
  top: calc(var(--ih, 100vh) * 0.5);
  left: 50%;
  width: calc(var(--iw, 100vw) * 0.1);
  translate: -50% 0;
  text-align: center;
  color: #16304d;
  mix-blend-mode: multiply;
  opacity: 0.9;
  transform: translateY(14px);
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.voile-g .sur-voile {
  transform: translateY(14px) rotate(1.5deg);
}
.voile-d .sur-voile {
  transform: translateY(14px) rotate(-1.5deg);
}
.port.voiles-la .sur-voile {
  transform: translateY(0) rotate(0);
}
.port.voiles-la .voile-g .sur-voile {
  transform: translateY(0) rotate(1.5deg);
}
.port.voiles-la .voile-d .sur-voile {
  transform: translateY(0) rotate(-1.5deg);
}
.sur-voile .formule-nom {
  margin: 0;
  font-size: max(13px, calc(var(--iw, 100vw) * 0.0085));
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sur-voile .formule-prix {
  display: block;
  margin: 0.1em 0 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: max(24px, calc(var(--iw, 100vw) * 0.019));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.sur-voile .formule-prix b {
  font-size: inherit;
  font-weight: 700;
  color: inherit;
}
.sur-voile .formule-prix span {
  display: block;
  margin-top: 0.3em;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: max(14px, calc(var(--iw, 100vw) * 0.0105));
  letter-spacing: 0;
}
/* la phrase et la liste ne sont plus sur la voile : elles vivent dans la comparaison (et sur mobile) */
.sur-voile ul,
.sur-voile .formule-phrase {
  display: none;
}
/* le bouton, sous la coque, dans le reflet du bateau */
.sous-coque {
  position: absolute;
  top: calc(var(--ih, 100vh) * 0.895);
  left: calc(var(--iw, 100vw) * -0.045);
  translate: -50% 0;
  transform: translateY(12px);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}
.voile-d .sous-coque {
  left: calc(var(--iw, 100vw) * 0.02);
}
.port.voiles-la .sous-coque {
  transform: none;
}
.sous-coque .button {
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(6, 22, 40, 0.55), var(--pose, 0 0 0 transparent);
}
@media (max-width: 800px) {
  .port h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    font-size: 28px;
  }
  /* sur mobile, un seul voilier est dans le cadre : les deux formules
     se lisent l'une sous l'autre, en clair sur l'eau */
  .voile {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 200px;
    width: auto;
    height: auto;
  }
  .voile-d {
    top: 52%;
  }
  .sur-voile,
  .sous-coque {
    position: static;
    width: auto;
    translate: none;
    transform: none;
    text-align: left;
  }
  .sur-voile {
    color: #fff;
    mix-blend-mode: normal;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(6, 22, 40, 0.9), 0 2px 18px rgba(6, 22, 40, 0.7);
  }
  .sur-voile .formule-nom {
    font-size: 12px;
    color: #ffc592;
  }
  .sur-voile .formule-prix {
    font-size: 40px;
  }
  .sur-voile .formule-prix span {
    display: inline;
    margin-left: 8px;
    font-size: 16px;
  }
  .sous-coque {
    margin-top: 6px;
  }
}

/* --- La comparaison des deux formules (maquette validée le 24 septembre 2026) --- */
.button-gauche:hover span {
  transform: translateX(-4px);
}
.port .comparer {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s, background 0.25s, transform 0.25s;
}
.port.voiles-la .comparer {
  opacity: 1;
}
.comparer { display: none; position: absolute; z-index: 5; left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.5); top: calc(var(--iy, 0px) + var(--ih, 100vh) * 0.64); translate: -50% 0; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  background: rgba(12, 8, 5, 0.66); border: 1px solid rgba(255,197,146,.75); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,224,190,.25) inset, 0 14px 34px rgba(6,22,40,.6); transition: background .25s, transform .25s; }
.comparer i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, #b35f34, #96481f); font-style: normal; font-size: 14px; }
.comparer:hover { background: rgba(12, 8, 5, 0.85); transform: translate(0, -2px); }
.port.voiles-la .comparer { display: inline-flex; }
.brume4 { position: absolute; inset: 0; z-index: 8; background: rgba(6, 22, 40, .58); backdrop-filter: blur(6px) saturate(.9); opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.tableau { position: absolute; z-index: 9; left: 50%; top: 50%; width: min(960px, 92vw); color: var(--cream); opacity: 0; translate: -50% -46%; transition: opacity .6s ease .15s, translate .8s cubic-bezier(.2,.7,.2,1) .15s; pointer-events: none; }
.tableau h2 { margin: 0 0 26px; text-align: center; font-family: Bricolage, DM, sans-serif; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.tableau h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; }
.tableau .fermer { position: absolute; top: -34px; right: 0; color: rgba(247,241,227,.8); font-size: 13px; font-weight: 600; text-decoration: none; }
/* la grille : une colonne d'intitulés, puis deux colonnes de matière différente */
.duel { display: grid; grid-template-columns: 1.1fr 1fr 1fr; column-gap: 14px; align-items: stretch; }
.duel > div { padding: 13px 22px; display: flex; align-items: center; min-height: 26px; font-size: 15px; font-weight: 500; }
.duel .lib { padding-left: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffc592; border-top: 1px solid rgba(255,197,146,.28); }
.duel .lib.vide { border: 0; }
/* la colonne Achat : de la toile à voile, encre marine */
.duel .a { justify-content: center; text-align: center; color: #16304d; background: linear-gradient(90deg, #f6efdf, #ece2cb); border-top: 1px solid rgba(22,48,77,.12); }
/* la colonne Tout inclus : le verre bronze de la caverne, cuivre */
.duel .b { justify-content: center; text-align: center; color: #fff; background: linear-gradient(90deg, rgba(48,30,16,.9), rgba(28,17,9,.92)); border-top: 1px solid rgba(255,197,146,.22); box-shadow: 0 0 0 1px rgba(255,197,146,.28) inset; }
.duel .a.tete, .duel .b.tete { flex-direction: column; gap: 2px; padding: 22px 22px 18px; border-top: 0; border-radius: 6px 6px 0 0; }
.duel .a.tete { box-shadow: 0 -1px 0 #fff inset; }
.duel .b.tete { box-shadow: 0 0 0 1px rgba(255,197,146,.28) inset, 0 -2px 0 #c87747 inset; }
.duel .tete b { font-family: Bricolage, DM, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.duel .a.tete b { color: #6d5537; }
.duel .b.tete b { color: #ffc592; }
.duel .tete strong { font-family: Bricolage, DM, sans-serif; font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.duel .tete em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: 15px; }
.duel .a.pied, .duel .b.pied { padding: 18px 22px 22px; border-radius: 0 0 6px 6px; }
.duel .a .button { background: linear-gradient(180deg, #16304d, #0d1f35); color: #fff; }
.duel .oui::before { content: "✓"; margin-right: 8px; font-weight: 700; color: #c87747; }
.duel .b .oui::before { color: #e6a06a; }
.duel .non { opacity: .55; }
.duel .note { display: block; font-size: 12.5px; opacity: .7; }
.port.compare .brume4 { opacity: 1; pointer-events: auto; }
.port.compare .tableau { opacity: 1; translate: -50% -50%; pointer-events: auto; }
.port.compare .comparer { opacity: 0; }

@media (max-width: 800px) {
  .port .comparer {
    left: 50%;
    top: auto;
    bottom: 26px;
    translate: -50% 0;
  }
  .tableau {
    top: 0;
    bottom: 0;
    translate: -50% 0;
    width: 100vw;
    padding: 70px 16px 30px;
    box-sizing: border-box;
    overflow: auto;
  }
  .port.compare .tableau {
    translate: -50% 0;
  }
  .tableau .fermer {
    top: 20px;
    right: 16px;
  }
  .duel {
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
  }
  .duel .lib {
    grid-column: 1 / -1;
    padding: 12px 0 4px;
    border: 0;
  }
  .duel .lib.vide {
    display: none;
  }
  .duel > div {
    padding: 10px 12px;
    font-size: 14px;
  }
  .duel .tete strong {
    font-size: 30px;
  }
}
/* le titre de la comparaison n'est pas le titre du port */
.port .tableau h2,
.port.voiles-la .tableau h2 {
  position: static;
  opacity: 1;
  margin: 0 0 26px;
  font-size: clamp(26px, 3vw, 40px);
  text-align: center;
}
.port.compare .voiles,
.port.compare .comparer {
  pointer-events: none;
}
/* pendant la comparaison, les voiles écrites et les boutons s'effacent sous la brume */
.port .voiles,
.port .comparer {
  transition: opacity 0.5s ease;
}
.port.compare .voiles {
  opacity: 0;
}

/* --- Le quai : la caméra tourne vers la droite sur le panoramique du soir --- */
.pano-quai {
  position: absolute;
  z-index: -1;
  top: var(--iy, 0px);
  left: var(--ix, 0px);
  height: var(--ih, 100vh);
  width: calc(var(--iw, 100vw) * 3);
  max-width: none;
  object-fit: fill;
  opacity: 0;
  translate: calc(var(--iw, 100vw) * -2 * var(--q, 0)) 0;
}
.sequence-mer.avec-quai .pano-quai {
  opacity: clamp(0, calc(var(--q, 0) * 200), 1);
}
/* le port (voiles, boutons, comparaison) s'efface dès que la caméra tourne */
.port {
  opacity: calc(clamp(0, calc((var(--h, 0) - 0.88) / 0.12), 1) * (1 - clamp(0, calc(var(--q, 0) * 8), 1)));
}
.port.lisible {
  pointer-events: auto;
}

/* --- Les questions, à mi-chemin sur le quai (les lampes au-dessus, l'eau en dessous) --- */
.questions-quai {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: #fff;
  opacity: var(--qm, 0);
  pointer-events: none;
}
.questions-quai.lisible {
  pointer-events: auto;
}
/* le bas de l'écran s'assombrit un peu pour la lecture : la nuit vient de l'eau */
.questions-quai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 22, 40, 0.62), rgba(6, 22, 40, 0.28) 45%, rgba(6, 22, 40, 0) 62%);
  pointer-events: none;
}
.questions-quai h2 {
  position: absolute;
  top: 14%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(6, 22, 40, 0.85), 0 1px 3px rgba(6, 22, 40, 0.9);
}
.questions-quai h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.faq-quai {
  position: absolute;
  top: 50%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  width: min(720px, calc(100% - 56px));
  text-shadow: 0 1px 2px rgba(6, 22, 40, 0.9), 0 2px 14px rgba(6, 22, 40, 0.7);
}
.faq-quai details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--n, 0) * 0.08s);
}
.faq-quai details:nth-child(2) { --n: 1; }
.faq-quai details:nth-child(3) { --n: 2; }
.faq-quai details:nth-child(4) { --n: 3; }
.questions-quai.lisible .faq-quai details {
  opacity: 1;
  transform: none;
}
.faq-quai details:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.faq-quai summary {
  align-items: baseline;
  padding: 16px 4px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.faq-quai summary:hover {
  background: none;
  color: #ffc592;
}
.faq-quai summary span {
  color: #ffc592;
  font-family: DM, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 0.8;
}
.faq-quai details p {
  max-width: 58ch;
  margin: 0;
  padding: 0 4px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.95);
}

/* --- Le bout du quai, la nuit : la Vendée en lumières, puis le contact --- */
.quai-nuit {
  position: absolute;
  z-index: 3;
  inset: 0;
  color: var(--cream);
  opacity: var(--qf, 0);
  pointer-events: none;
}
.quai-nuit.lisible {
  pointer-events: auto;
}
.quai-nuit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 14, 28, 0.7), rgba(4, 14, 28, 0.35) 34%, rgba(4, 14, 28, 0) 52%);
  pointer-events: none;
}
.local-quai {
  position: absolute;
  top: 13%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  max-width: 460px;
  text-shadow: 0 1px 3px rgba(4, 14, 28, 0.9), 0 2px 20px rgba(4, 14, 28, 0.7);
}
.local-quai .sur-titre {
  margin: 0 0 8px;
}
.local-quai h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}
.local-quai h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.local-quai > p:last-child {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
}
/* les villes : des lumières sur la côte d'en face, nommées une à une */
.lumieres {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lumieres li {
  position: absolute;
  left: calc(var(--ix, 0px) + var(--iw, 100vw) * var(--x));
  top: calc(var(--iy, 0px) + var(--ih, 100vh) * var(--y));
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.8s ease calc(0.3s + var(--i) * 0.22s);
}
.quai-nuit.lisible .lumieres li {
  opacity: 1;
}
.lumieres li i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd9a8;
  box-shadow: 0 0 6px 2px rgba(255, 200, 140, 0.9), 0 0 18px 6px rgba(255, 170, 90, 0.45), 0 14px 22px 4px rgba(255, 170, 90, 0.18);
  animation: scintiller 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}
@keyframes scintiller {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.lumieres li span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  padding-bottom: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(4, 14, 28, 0.9), 0 2px 14px rgba(4, 14, 28, 0.7);
}
.lumieres li span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 1px;
  height: 12px;
  background: rgba(255, 217, 168, 0.6);
}
/* une ville sur deux se lit sous la lumière, pour que les noms ne se touchent pas */
.lumieres li:nth-child(even) span {
  bottom: auto;
  top: 16px;
  padding: 6px 0 0;
}
.lumieres li:nth-child(even) span::after {
  bottom: auto;
  top: -10px;
}
/* le contact : sur l'eau calme, en bas de l'écran */
.contact-quai {
  position: absolute;
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  bottom: 26px;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 440px);
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
}
.contact-copy-quai h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(4, 14, 28, 0.8);
}
.contact-copy-quai h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.contact-copy-quai p {
  max-width: 44ch;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.contact-copy-quai .contact-links {
  margin-top: 18px;
  font-size: 15px;
}
.contact-form-quai {
  gap: 10px;
  padding: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.7s ease 0.2s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.quai-nuit.lisible .contact-form-quai {
  opacity: 1;
  transform: none;
}
.contact-form-quai label {
  gap: 5px;
}
.contact-form-quai input,
.contact-form-quai select,
.contact-form-quai textarea {
  padding: 11px 12px;
  background: rgba(4, 14, 28, 0.42);
  border-color: rgba(255, 217, 168, 0.28);
  backdrop-filter: blur(6px);
}
.contact-form-quai button {
  min-height: 46px;
}
.contact-form-quai .form-note {
  display: none;
}
/* le pied de page, après la séquence, dans la nuit */
.footer-quai {
  position: static;
  margin: 0;
  padding: 26px max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  background: #061a2c;
  border-top: 1px solid rgba(255, 217, 168, 0.14);
}
@media (max-width: 800px) {
  .questions-quai h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    font-size: 28px;
  }
  .faq-quai {
    top: 38%;
    left: 22px;
    width: calc(100% - 44px);
  }
  .faq-quai summary {
    padding: 12px 2px;
    font-size: 17px;
  }
  .local-quai {
    top: 90px;
    right: 22px;
    left: 22px;
  }
  .local-quai h2 {
    font-size: 28px;
  }
  .lumieres {
    display: none;
  }
  .contact-quai {
    right: 22px;
    left: 22px;
    bottom: 16px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-copy-quai p,
  .contact-copy-quai .contact-links {
    display: none;
  }
  .contact-copy-quai h2 {
    font-size: 24px;
  }
  .footer-quai {
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    text-align: center;
  }
}
/* les écrans posés dans la scène ne sont pas des chapitres : pas de hauteur minimale */
.port,
.questions-quai,
.quai-nuit {
  min-height: 0;
  height: 100%;
}
/* Les questions à gauche, la réponse à droite dans l'eau, à la hauteur de
   la question ouverte : la ligne du quai sépare les deux. */
.faq-quai {
  width: min(540px, 42%);
}
.faq-quai details {
  position: relative;
}
.faq-quai details p {
  position: absolute;
  top: 14px;
  left: calc(100% + clamp(40px, 6vw, 110px));
  width: min(440px, 36vw);
  max-width: none;
  padding: 14px 0 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  border-top: 1px solid rgba(255, 197, 146, 0.8);
  animation: reponse 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes reponse {
  from { opacity: 0; translate: -12px 0; }
  to { opacity: 1; translate: 0 0; }
}
/* les lumières des villes : sur la ligne de côte, plus petites, plus loin */
.lumieres li i {
  width: 5px;
  height: 5px;
  left: -2.5px;
  top: -2.5px;
}
@media (max-width: 800px) {
  .faq-quai {
    width: calc(100% - 44px);
  }
  .faq-quai details p {
    position: static;
    width: auto;
    padding: 0 4px 16px;
    border: 0;
    font-family: DM, sans-serif;
    font-size: 15px;
    animation: none;
  }
}
/* Les titres des arrêts passent sous le bandeau, quelle que soit la hauteur d'écran. */
.port h2,
.questions-quai h2,
.local-quai {
  top: max(150px, 14%);
}
/* --- La réponse dans l'eau : centrée à droite, mot à mot, avec son reflet --- */
.faq-quai details p {
  display: none; /* sur grand écran, la réponse vit dans l'eau, à droite */
}
.faq-quai summary:focus:not(:focus-visible) {
  outline: none;
}
.reponse-eau {
  position: absolute;
  left: 54%;
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  top: 71%;
  translate: 0 -50%;
  text-align: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.reponse-eau.visible {
  opacity: 1;
}
/* la lueur : une lampe du quai qui se reflète derrière le texte */
.reponse-eau .lueur {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 220%;
  translate: -50% -50%;
  background: radial-gradient(ellipse at center, rgba(255, 190, 120, 0.22), rgba(255, 170, 90, 0.08) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.reponse-eau.visible .lueur {
  opacity: 1;
}
.reponse-eau .numero {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 197, 146, 0.55);
  text-shadow: 0 0 22px rgba(255, 170, 90, 0.35);
}
.reponse-eau .question {
  margin: 8px 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc592;
  text-shadow: 0 1px 3px rgba(6, 22, 40, 0.9);
}
.reponse-eau .question::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin: 14px auto 0;
  background: rgba(255, 197, 146, 0.8);
}
.reponse-eau .texte {
  margin: 0 auto;
  max-width: 40ch;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 2px rgba(6, 22, 40, 0.9), 0 2px 18px rgba(6, 22, 40, 0.7);
}
.reponse-eau .mot {
  display: inline-block;
  opacity: 0;
  translate: 0 10px;
  filter: blur(5px);
  animation: emerger 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(0.15s + var(--w) * 0.035s);
}
@keyframes emerger {
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
/* le reflet du texte sur l'eau, retourné, flou, qui ondule doucement */
.reponse-eau .reflet {
  margin: 4px auto 0;
  max-width: 40ch;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.5;
  color: #fff;
  transform: scaleY(-1);
  opacity: 0;
  filter: blur(1.6px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  transition: opacity 1.4s ease 0.6s;
  animation: onduler 5s ease-in-out infinite;
}
.reponse-eau.visible .reflet {
  opacity: 0.32;
}
@keyframes onduler {
  0%, 100% { transform: scaleY(-1) skewX(0deg); }
  50% { transform: scaleY(-1.04) skewX(1.2deg); }
}
@media (max-width: 800px) {
  .faq-quai details p {
    display: block;
  }
  .reponse-eau {
    display: none;
  }
}
/* pas de reflet retourné sous la réponse : trop étrange dans l'eau */
.reponse-eau .reflet {
  display: none;
}
/* pas de cadre de focus sur les questions : la question ouverte se lit à sa couleur cuivre */
.faq-quai summary:focus,
.faq-quai summary:focus-visible {
  outline: none;
}
.faq-quai details[open] summary {
  color: #ffc592;
}


/* ================================================================== Relecture du 3 octobre 2026
   Onze retouches décidées avec Ludéric après une relecture écran par écran (voir design/lockpit-nature/MER.md). */
@media (min-width: 801px) {
  /* le cockpit : le titre se décolle de la barre du haut, les cinq points s'écrivent plus gros */
  .cockpit h2 { top: max(136px, 16%); }
  .points b { font-size: clamp(18px, 1.55vw, 25px); }
  .points p { max-width: 26ch; font-size: clamp(15px, 1.14vw, 18px); line-height: 1.42; }
  /* le bureau : le titre prend toute la place disponible à droite de l'écran */
  .bureau h2 { left: calc(var(--ix, 0px) + var(--iw, 100vw) * 0.792); right: max(clamp(10px, 1.2vw, 24px), (100% - 1600px) / 2); font-size: clamp(24px, 2.14vw, 36px); line-height: 1.04; }
  .bureau .onglets .onglets-toutes { margin-left: 14px; align-self: center; white-space: nowrap; }
  /* le carnet : les quatre étapes à la taille des pages */
  .etapes-carnet li { width: 27%; }
  .etapes-carnet li:nth-child(n+3) { width: 24.5%; }
  .etapes-carnet li:nth-child(4) { width: 21%; } /* le stylo passe à droite de la quatrième étape */
  .etapes-carnet span { font-size: calc(var(--iw, 100vw) * 0.03); }
  .etapes-carnet b { font-size: calc(var(--iw, 100vw) * 0.0162); }
  .etapes-carnet p { font-size: calc(var(--iw, 100vw) * 0.0116); line-height: 1.45; }
  /* les deux voiliers : le titre reste, au centre, dans le ciel entre les deux voiles */
  .port.voiles-la > h2 { opacity: 1; left: 50%; top: max(120px, 15%); translate: -50% 0; width: max-content; text-align: center; font-size: clamp(30px, 3vw, 48px); }
  .port.compare > h2 { opacity: 0; }
  /* les questions : la liste plus large, la réponse plus près, le titre lisible sur les maisons */
  .questions-quai h2::before { content: ""; position: absolute; z-index: -1; inset: -40px -80px -40px -70px; background: radial-gradient(100% 85% at 30% 50%, rgba(6, 22, 40, 0.72), rgba(6, 22, 40, 0.34) 55%, rgba(6, 22, 40, 0) 82%); filter: blur(8px); }
  .faq-quai { width: min(40vw, 640px); }
  .faq-quai summary { font-size: clamp(19px, 1.65vw, 25px); }
  .reponse-eau { left: 50%; }
  /* la fin : les textes s'étalent en largeur */
  .local-quai { max-width: min(40vw, 620px); }
  .local-quai > p:last-child { max-width: 60ch; font-size: clamp(16px, 1.2vw, 19px); }
  .contact-copy-quai p { max-width: 56ch; font-size: clamp(16px, 1.15vw, 18px); }
  .contact-copy-quai .contact-links { font-size: clamp(16px, 1.15vw, 18px); }
}
/* les douze lumières : chacune mène à la page locale de sa commune ; les noms sur trois hauteurs pour ne pas se toucher */
.lumieres.douze li a { color: inherit; text-decoration: none; }
.lumieres.douze li a::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; }
.lumieres.douze li span { transition: color 0.2s ease; }
.lumieres.douze li a:hover span, .lumieres.douze li a:focus-visible span { color: #ffd9a8; }
.lumieres.douze li a:hover i { box-shadow: 0 0 8px 3px rgba(255, 215, 160, 1), 0 0 26px 10px rgba(255, 170, 90, 0.7); }
.lumieres.douze li.h span { bottom: 14px; top: auto; padding: 0 0 6px; }
.lumieres.douze li.h span::after { bottom: -10px; top: auto; height: 12px; }
.lumieres.douze li.hh span { bottom: 40px; top: auto; padding: 0 0 6px; }
.lumieres.douze li.hh span::after { bottom: -36px; top: auto; height: 38px; }
.lumieres.douze li.b span { bottom: auto; top: 16px; padding: 6px 0 0; }
.lumieres.douze li.b span::after { bottom: auto; top: -10px; height: 12px; }
/* le pied de page en quatre colonnes, comme sur les autres pages, dans la nuit du quai */
.pied-quai { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 5vw, 90px); row-gap: clamp(14px, 2.2vh, 22px); align-items: start; padding: clamp(36px, 6vh, 64px) max(clamp(28px, 5vw, 90px), (100vw - 1560px) / 2) clamp(20px, 3.4vh, 34px); background: #061a2c; border-top: 1px solid rgba(255, 217, 168, 0.14); color: var(--cream); }
.pied-quai h3 { margin: 0; }
.pied-marque img { display: block; height: clamp(34px, 3.2vw, 52px); width: auto; }
.pied-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 54px); }
.pied-col h3 { padding-bottom: 12px; font: 700 clamp(11px, 0.82vw, 13px)/1 DM, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-clair); }
.pied-col ul { display: grid; gap: clamp(6px, 1vh, 10px); margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(247, 241, 227, 0.3); list-style: none; }
.pied-col a { color: var(--cream); font: 500 clamp(14px, 1.05vw, 17px)/1.3 DM, sans-serif; text-decoration: none; }
.pied-col a:hover { color: var(--copper-clair); text-decoration: underline; text-underline-offset: 4px; }
.pied-quai .pied-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin: 0; padding-top: clamp(12px, 1.8vh, 18px); border-top: 1px solid rgba(247, 241, 227, 0.3); font: 600 clamp(12px, 0.88vw, 14px)/1 DM, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 241, 227, 0.8); }
@media (max-width: 960px) { .pied-quai { grid-template-columns: 1fr; } .pied-colonnes { grid-template-columns: 1fr 1fr; } }
/* les grands chiffres du cockpit : pleins du bas jusqu'en haut (ils s'effaçaient vers le haut) */
.points span { background: linear-gradient(0deg, #ffe0aa, #ffd698 60%, rgba(255, 214, 152, 0.86)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 10px rgba(4, 16, 26, 0.55)) drop-shadow(0 0 16px rgba(255, 214, 152, 0.3)); }
/* la fin : le texte « Du littoral au bocage » reste au-dessus des noms des communes (titre sur une ligne, texte large et peu haut) ;
   sur un écran peu haut, où la côte remonte, il s'arrête avant la première lumière */
@media (min-width: 801px) {
  .local-quai { max-width: min(52vw, 820px); }
  .local-quai h2 br { display: none; }
  .local-quai h2 em { margin-left: 0.24em; } /* l'espace que le retour à la ligne ne donne plus */
  .local-quai > p:last-child { max-width: none; margin-top: 10px; }
}
@media (min-width: 801px) and (max-height: 800px) {
  .local-quai { max-width: none; right: calc(100% - (var(--ix, 0px) + var(--iw, 100vw) * 0.27)); }
  .local-quai h2 br { display: inline; }
  .local-quai h2 em { margin-left: 0; }
}

/* --- Téléphone : des règles plus bas dans la feuille (écriture du carnet à l'échelle des pages) écrasaient les réglages petit écran. On les repose ici, en dernier. --- */
@media (max-width: 800px) {
  .carnet h2 { color: #2a2118; text-shadow: none; }
  .carnet h2 em { color: #9a4f22; }
  .etapes-carnet { top: 176px; gap: 10px; }
  .etapes-carnet li, .etapes-carnet li:nth-child(n) { width: auto; }
  .etapes-carnet span { font-size: 24px; }
  .etapes-carnet b { font-size: 17px; }
  .etapes-carnet p { font-size: 14px; line-height: 1.4; }
  .etapes-carnet .croquis { display: none; }
  .points li { align-items: start; }
  .points b { align-self: end; }
  .points p { grid-column: 2; }
}

/* la carte de rendez-vous à la place du formulaire : un appel, puis la maquette */
.contact-rdv, .mc-rdv, .d-rdv { display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: start; align-content: center; }
.rdv-titre { margin: 0; font: 600 clamp(20px, 1.6vw, 26px)/1.2 Bricolage, DM, sans-serif; letter-spacing: -0.02em; }

/* « Les 12 villes + » du pied : la règle générale « summary » (l'accordéon de la FAQ, site-panorama.css) y mettait 30 px de marge, le « + » à l'autre bout et un retour à la ligne. On le remet au rang des autres liens. */
.pied-villes details { margin: 0; border: 0; }
.pied-villes summary { display: inline-flex; align-items: baseline; justify-content: flex-start; gap: 8px; padding: 0; white-space: nowrap; background: none; list-style: none; cursor: pointer; color: var(--cream); font: 500 clamp(14px, 1.05vw, 17px)/1.3 DM, sans-serif; }
.pied-villes summary::-webkit-details-marker { display: none; }
.pied-villes summary:hover { background: none; color: var(--copper-clair); text-decoration: underline; text-underline-offset: 4px; }
.pied-villes summary:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; border-radius: 4px; }
.pied-villes summary span { display: inline-block; font: inherit; line-height: inherit; color: var(--copper-clair); text-decoration: none; transition: rotate 300ms ease; }
.pied-villes details[open] summary span { rotate: 45deg; }
.pied-villes details ul { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; border: 0; }
.pied-villes details a { font-size: 12.5px; opacity: 0.82; }
