/* Maquette panorama — l'interface posée dans le paysage.
   Principe : le décor est une seule photographie verticale continue. Les
   modules ne sont pas des rectangles collés dessus, ce sont des objets posés
   sur le chemin : même lumière (soleil bas, à droite), ombre portée au sol,
   matière chaude prise dans la photo, bords qui se dissolvent. */

@font-face {
  font-family: Bricolage;
  src: url("assets/fonts/bricolage-grotesque.woff2");
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("assets/fonts/dm-sans.woff2");
  font-display: swap;
}

:root {
  --cream: #f7f1e3;
  --ink: #17120b;
  --copper: #c87747;
  --copper-clair: #e6a06a;
  /* Teintes relevées directement sur le panorama : tout le décor est ambré. */
  --ombre: 20, 11, 5;
  --lumiere: 255, 214, 152;
  --plaque-claire: rgba(246, 238, 222, 0.93);
  --plaque-sombre: rgba(26, 17, 10, 0.68);
  --line: rgba(var(--lumiere), 0.22);
  /* Lumière rasante venue du haut à droite : une arête claire en haut,
     une ombre longue vers le bas à gauche. Toutes les plaques la partagent. */
  --pose:
    0 1px 0 rgba(var(--lumiere), 0.3) inset,
    -1px 0 0 rgba(var(--lumiere), 0.16) inset;
  --sol:
    0 2px 6px -2px rgba(var(--ombre), 0.5),
    -18px 34px 50px -26px rgba(var(--ombre), 0.85),
    -46px 80px 120px -60px rgba(var(--ombre), 0.7);
  color-scheme: dark;
  scroll-behavior: smooth;
}
/* La barre de défilement est masquée sur les pages de la refonte : le défilement y est guidé, et la
   barre décalait le cadrage des scènes. On défile toujours à la molette, au pavé, au doigt et au clavier. */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 320px;
  background: #0d0a06;
  color: var(--cream);
  font-family: DM, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
::selection {
  background: var(--copper);
  color: #fff;
}
/* La barre de défilement fait partie de la page : fine et dans la palette,
   plutôt que la barre grise du système sur un décor sombre. */
html {
  scrollbar-color: rgba(230, 160, 106, 0.55) #0d0a06; /* pour les zones qui défilent à l'intérieur de la page */
  scrollbar-width: none; /* la page elle-même n'affiche plus de barre (voir plus haut) */
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0d0a06;
}
::-webkit-scrollbar-thumb {
  background: rgba(230, 160, 106, 0.45);
  border: 3px solid #0d0a06;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 160, 106, 0.8);
}
:focus-visible {
  outline: 2px solid var(--copper-clair);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}

/* ---------------------------------------------------------------- Barre */
/* Une réglette posée dans la scène, pas un bandeau qui coupe la photo. */
.topbar {
  position: fixed;
  z-index: 10;
  top: 20px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1320px, calc(100% - 40px));
  min-height: 64px;
  padding: 9px 9px 9px 22px;
  border-radius: 3px;
  /* Sur le hero la barre n'existe pas : le paysage commence au premier pixel.
     Elle ne prend sa matière qu'une fois le premier écran passé. */
  background: transparent;
  transform: translateX(-50%);
  transition: background 0.45s, box-shadow 0.45s, backdrop-filter 0.45s;
}
.topbar.posee {
  background: linear-gradient(
    180deg,
    rgba(38, 25, 15, 0.62),
    rgba(20, 13, 7, 0.72)
  );
  box-shadow:
    var(--pose),
    0 24px 60px -30px rgba(var(--ombre), 0.9);
  backdrop-filter: blur(16px) saturate(1.15);
}
.topbar .desktop-nav a {
  text-shadow: 0 1px 16px rgba(var(--ombre), 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
/* Le logo : le mot dans son cadre penché, en crème sur fond transparent
   (la version encre existe pour les fonds clairs : lockpit-logo-sombre). */
.brand img {
  width: auto;
  height: 54px;
  filter: drop-shadow(0 1px 12px rgba(var(--ombre), 0.6));
}
.desktop-nav {
  justify-self: center;
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  font-size: 14px;
}
.desktop-nav a {
  position: relative;
  padding-bottom: 3px;
  opacity: 0.82;
  transition: opacity 0.25s;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--copper-clair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.desktop-nav a:hover {
  opacity: 1;
}
.desktop-nav a:hover:after {
  transform: none;
}
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #b35f34, #96481f);
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 224, 190, 0.45) inset,
    0 14px 26px -14px rgba(var(--ombre), 0.9);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.header-cta span,
.button span {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.header-cta:hover,
.button:hover {
  background: linear-gradient(180deg, #c26c3d, #8a4019);
  box-shadow:
    0 1px 0 rgba(255, 224, 190, 0.5) inset,
    0 20px 34px -16px rgba(var(--ombre), 0.95);
  transform: translateY(-2px);
}
.header-cta:hover span,
.button:hover span {
  transform: translateX(4px);
}
.menu-toggle,
.mobile-menu {
  display: none;
}

/* --------------------------------------------------------------- Décor */
/* Le décor occupe toute la largeur de l'écran : aucune colonne centrée, donc
   pas de bandes noires sur les grands moniteurs. Seul le contenu est bridé. */
.world {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* clip et non hidden : hidden ferait de .world un conteneur de défilement
     et l'écran épinglé (position: sticky) ne tiendrait plus. */
  overflow-x: clip;
  background: #171009;
}
/* Le décor est servi en huit tranches successives plutôt qu'en un seul
   fichier de 15 000 px : le navigateur ne sait pas peindre une image aussi
   haute, et chaque chapitre ne charge que sa part du chemin. Chaque tranche
   occupe exactement son chapitre, donc les raccords restent invisibles. */
.world-image {
  display: none;
}
.chapter:before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: var(--tranche) center var(--cadrage, 50%) / cover no-repeat;
}
#accueil {
  /* Le hero garde sa propre photo : le cap, le soleil couchant et
     l'ordinateur posé sur la roche. C'est le sujet, pas un fond. */
  --tranche: url("assets/lockpit-hero-laptop.webp");
  --cadrage: 50%;
}
/* Voile d'ambiance : assombrit juste assez les zones où le texte se pose,
   sans éteindre la photo. */
.world-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(var(--ombre), 0.42),
      rgba(var(--ombre), 0.08) 46%,
      rgba(var(--ombre), 0)
    );
  pointer-events: none;
}
.chapter {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding: clamp(120px, 11vw, 190px) max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
}
@media (min-width: 801px) {
  .chapter {
    /* Un chapitre = un écran, jamais deux : le décor est recadré de quelques
       pour cent en haut et en bas, ce que le terrain absorbe sans montrer de
       raccord, plutôt que d'imposer 1,9 écran de défilement par section. */
    min-height: clamp(720px, 100vh, 1060px);
  }
}

/* ------------------------------------------------------------ Écriture */
h1,
h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}
h1 {
  font-size: clamp(56px, 6.6vw, 104px);
}
h2 {
  font-size: clamp(46px, 5.4vw, 80px);
}
h1 em,
h2 em {
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 600;
  color: var(--copper-clair);
}
.eyebrow span {
  width: 46px;
  height: 1px;
  background: currentColor;
}
.lead {
  max-width: 54ch;
  margin: 30px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.86);
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.text-link {
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 14px rgba(6, 12, 8, 0.85), 0 0 2px rgba(6, 12, 8, 0.6);
  transition: border-color 0.3s, color 0.3s;
}
.text-link:hover {
  border-color: var(--copper-clair);
  color: var(--copper-clair);
}

/* Les titres et les textes ne posent pas de boîte sur la photo : ils
   apportent leur propre brume, un halo sombre dont les bords se dissolvent. */
.section-intro,
.hero-copy,
.contact-copy {
  position: relative;
  color: var(--cream);
}
.section-intro:before,
.hero-copy:before,
.contact-copy:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60px -90px -70px -80px;
  background: radial-gradient(
    100% 85% at 18% 55%,
    rgba(var(--ombre), 0.72),
    rgba(var(--ombre), 0.34) 52%,
    rgba(var(--ombre), 0) 80%
  );
  filter: blur(6px);
  pointer-events: none;
}
.section-intro {
  position: absolute;
  top: 13%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  max-width: 660px;
}
.section-intro p:not(.eyebrow) {
  max-width: 46ch;
  margin: 22px 0 0;
  color: rgba(247, 241, 227, 0.82);
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}
/* Le premier écran ne se cache jamais : il entre de lui-même au chargement,
   sans dépendre d'un observateur de défilement. */
.hero .reveal {
  opacity: 1;
  filter: none;
  transform: none;
  animation: entree 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .hero-note {
  animation-delay: 0.15s;
}
.hero .hero-stats {
  animation-delay: 0.25s;
}
@keyframes entree {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---------------------------------------------------------- Plaques */
/* Deux matières, une seule lumière : le papier clair pour les zones de
   lecture, le bronze sombre pour les zones où la photo doit rester visible. */
.service-list,
.price-card,
.steps li,
.questions,
.local-panel,
.contact-form {
  border: 0;
  border-radius: 3px;
  box-shadow: var(--pose), var(--sol);
}
.service-list,
.price-card {
  background:
    linear-gradient(
      170deg,
      rgba(252, 246, 234, 0.96),
      rgba(238, 227, 208, 0.9)
    );
  color: var(--ink);
  backdrop-filter: blur(3px) saturate(1.1);
}
.steps li,
.questions,
.local-panel,
.contact-form,
.price-card.featured {
  background:
    linear-gradient(
      170deg,
      rgba(38, 25, 15, 0.72),
      rgba(18, 12, 7, 0.78)
    );
  color: var(--cream);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* ----------------------------------------------------------- Chapitre 1 */
.hero {
  align-items: flex-end;
  padding-bottom: clamp(150px, 16vh, 240px);
}
/* Le hero reste lumineux : aucune plaque, aucun voile lourd. Juste l'ombre
   des pins qui occupent déjà la gauche de la photo, et un fond de scène à
   peine assombri pour que le blanc du titre tienne. */
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(var(--ombre), 0.68),
      rgba(var(--ombre), 0.34) 34%,
      rgba(var(--ombre), 0) 62%
    ),
    linear-gradient(
      0deg,
      rgba(var(--ombre), 0.42),
      rgba(var(--ombre), 0) 34%
    ),
    linear-gradient(
      180deg,
      rgba(var(--ombre), 0.4),
      rgba(var(--ombre), 0) 22%
    );
  pointer-events: none;
}
/* Le titre n'a pas besoin de brume : la photo est déjà sombre de ce côté. */
.hero .hero-copy:before {
  content: none;
}
.hero {
  align-items: center;
}
.sur-titre {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 11px;
  font-weight: 500;
  color: rgba(247, 241, 227, 0.92);
}
.sur-titre span {
  width: 54px;
  height: 1px;
  background: rgba(247, 241, 227, 0.7);
}
.hero h1,
.stage h1 {
  font-weight: 700;
  text-shadow: 0 2px 40px rgba(var(--ombre), 0.5);
}
.hero .lead,
.stage .lead {
  margin: 26px 0 34px;
  color: rgba(247, 241, 227, 0.92);
  text-shadow: 0 1px 24px rgba(var(--ombre), 0.6);
}
.hero-copy {
  max-width: 880px;
}
.hero-note {
  position: absolute;
  right: 5%;
  top: 30%;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(247, 241, 227, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 11px;
  line-height: 2;
  color: #fff;
  text-shadow:
    0 1px 3px rgba(var(--ombre), 0.9),
    0 2px 22px rgba(var(--ombre), 0.8);
}

.hero-stats {
  position: absolute;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  bottom: 7%;
  align-items: center;
  display: flex;
  text-shadow: 0 2px 20px rgba(var(--ombre), 0.9);
}
.hero-stats p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 30px;
  border-right: 1px solid rgba(247, 241, 227, 0.28);
}
.hero-devise,
.hero-lieu {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  line-height: 1.9;
  color: rgba(255, 252, 246, 0.88);
}
.hero-lieu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding: 0;
  border: 0;
  text-align: right;
}
.hero-lieu span {
  width: 60px;
  height: 1px;
  background: rgba(247, 241, 227, 0.45);
}
.hero-stats p:first-child {
  padding-left: 0;
}
.hero-stats p:last-child,
.hero-devise {
  border: 0;
}
.hero-stats b {
  font-family: Bricolage, DM, sans-serif;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: rgba(247, 241, 227, 0.72);
}

/* ----------------------------------------------------------- Chapitre 2 */
/* Les écrans sont calés dans la lumière de la scène : même dominante
   chaude, ombre au sol, aucune arête métallique qui sorte du décor. */
.projects {
  align-items: flex-end;
  padding-bottom: clamp(90px, 9vw, 140px);
}
.devices {
  /* Les trois écrans descendent le chemin en escalier : aucun ne recouvre
     le voisin, et le plus éloigné perd en lumière comme le reste du décor. */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 44px);
  width: 100%;
  padding-top: 120px;
}
.device {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
  transform-origin: bottom center;
}
.device:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 6%;
  bottom: -22px;
  left: 6%;
  height: 40px;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(var(--ombre), 0.75),
    rgba(var(--ombre), 0) 70%
  );
  filter: blur(6px);
}
.device:hover {
  z-index: 5;
  transform: translateY(-22px) scale(1.04);
  filter: none;
}
.screen {
  display: block;
  padding: 8px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, #2a2019, #16110c);
  box-shadow:
    0 1px 0 rgba(var(--lumiere), 0.28) inset,
    var(--sol);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  /* Étalonnage : les captures d'écran sont ramenées dans la lumière du soir. */
  filter: saturate(0.88) contrast(1.02) brightness(0.9) sepia(0.12);
  transition: filter 0.5s;
}
.device:hover .screen img {
  filter: none;
}
.device-base {
  display: block;
  width: 110%;
  height: 10px;
  margin-left: -5%;
  border-radius: 1px 1px 10px 10px;
  background: linear-gradient(180deg, #6b5744, #2b2119);
  box-shadow: 0 1px 0 rgba(var(--lumiere), 0.25) inset;
}
.device strong,
.device small {
  display: block;
  margin-top: 12px;
  text-shadow: 0 2px 18px rgba(var(--ombre), 0.95);
}
.device small {
  margin-top: 3px;
  color: rgba(247, 241, 227, 0.78);
}
.device-one {
  transform: translateY(0) rotate(-1.5deg);
}
.device-two {
  transform: translateY(-13%) scale(0.95);
  filter: brightness(0.93) saturate(0.95);
}
.device-three {
  transform: translateY(-26%) scale(0.88) rotate(1.5deg);
  filter: drop-shadow(0 24px 30px rgba(var(--ombre), 0.5)) brightness(0.86)
    saturate(0.88) blur(0.4px);
}

/* ----------------------------------------------------------- Chapitre 3 */
.service-list {
  width: min(700px, 60vw);
  margin-top: auto;
  overflow: hidden;
}
.service-list a {
  display: grid;
  grid-template-columns: 46px 1fr auto 24px;
  gap: 22px;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid rgba(23, 18, 11, 0.14);
  transition: background 0.3s;
}
.service-list a:last-child {
  border-bottom: 0;
}
.service-list i {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-list a:hover {
  background: rgba(255, 255, 255, 0.72);
}
.service-list a:hover i {
  transform: translateX(6px);
}
.service-list span {
  font-family: Bricolage, DM, sans-serif;
  font-size: 15px;
  color: #9a6a45;
}
.service-list h3 {
  margin: 0 0 5px;
  font-family: Bricolage, DM, sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.service-list p {
  margin: 0;
  max-width: 44ch;
  color: #59503f;
  line-height: 1.45;
}
.service-list b {
  font-size: 13px;
  white-space: nowrap;
  color: #7a4520;
}
.service-list i {
  font-style: normal;
  font-size: 20px;
  color: #7a4520;
}

/* ----------------------------------------------------------- Chapitre 4 */
/* Les étapes descendent le long du ruisseau : chaque plaque est décalée,
   comme des pierres de gué. */
.services,
.method,
.pricing,
.faq {
  /* Titre en haut à gauche, module posé dans la moitié basse : le regard
     descend avec le chemin au lieu de buter sur un bloc centré. */
  align-items: stretch;
  justify-content: flex-end;
}
.steps {
  width: min(720px, 62vw);
  margin: auto 0 0 auto;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  margin-top: 16px;
  padding: 26px 30px;
}
.steps li:nth-child(even) {
  margin-left: 14%;
}
.steps li:nth-child(odd) {
  margin-right: 6%;
}
.steps span {
  font-family: Bricolage, DM, sans-serif;
  font-size: 30px;
  color: var(--copper-clair);
  font-variant-numeric: tabular-nums;
}
.steps b {
  font-family: Bricolage, DM, sans-serif;
  font-size: 23px;
  font-weight: 600;
}
.steps p {
  margin: 7px 0 0;
  color: rgba(247, 241, 227, 0.76);
  line-height: 1.5;
}

/* ----------------------------------------------------------- Chapitre 5 */
.price-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(860px, 74vw);
  margin: auto auto 0;
}
.price-card {
  padding: 36px;
}
.price-card.featured {
  margin-top: -44px;
}
.price-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #7a4520;
}
.price-card.featured .price-label {
  color: var(--copper-clair);
}
.price {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 26px 0;
}
.price b {
  font-family: Bricolage, DM, sans-serif;
  font-size: 64px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price span {
  padding-bottom: 10px;
}
.price-card > p:not(.price-label) {
  color: #59503f;
}
.price-card.featured > p:not(.price-label) {
  color: rgba(247, 241, 227, 0.8);
}
.price-card ul {
  min-height: 126px;
  padding-left: 20px;
  line-height: 1.9;
  color: #59503f;
}
.price-card.featured ul {
  color: rgba(247, 241, 227, 0.8);
}
.price-card .button {
  width: 100%;
  margin-top: 20px;
}

/* ----------------------------------------------------------- Chapitre 6 */
.questions {
  width: min(740px, 64vw);
  margin: auto 0 0 auto;
  overflow: hidden;
}
details {
  border-bottom: 1px solid rgba(var(--lumiere), 0.16);
}
details:last-child {
  border-bottom: 0;
}
summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  cursor: pointer;
  font-family: Bricolage, DM, sans-serif;
  font-size: 23px;
  list-style: none;
  transition: background 0.3s;
}
summary:hover {
  background: rgba(var(--lumiere), 0.06);
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  color: var(--copper-clair);
  transition: transform 0.3s;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  margin: 0;
  padding: 0 30px 28px;
  max-width: 60ch;
  color: rgba(247, 241, 227, 0.78);
  line-height: 1.6;
}

/* ----------------------------------------------------------- Chapitre 7 */
.local {
  align-items: center;
}
.local-panel {
  width: min(620px, 58vw);
  padding: 44px;
}
.local-panel h2 {
  font-size: clamp(38px, 4vw, 58px);
}
.local-panel > p {
  max-width: 44ch;
  color: rgba(247, 241, 227, 0.8);
}
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}
.towns span {
  padding: 8px 14px;
  border-radius: 2px;
  background: rgba(var(--lumiere), 0.1);
  box-shadow: 0 1px 0 rgba(var(--lumiere), 0.16) inset;
  font-size: 13px;
}

/* ----------------------------------------------------------- Chapitre 8 */
.contact {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 480px);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.contact-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 30px;
}
.contact-links a {
  border-bottom: 1px solid rgba(var(--lumiere), 0.4);
  transition: border-color 0.3s, color 0.3s;
}
.contact-links a:hover {
  border-color: var(--copper-clair);
  color: var(--copper-clair);
}
.contact-form {
  display: grid;
  gap: 14px;
  padding: 34px;
}
.contact-form label {
  display: grid;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(247, 241, 227, 0.72);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(var(--lumiere), 0.2);
  border-radius: 2px;
  color: #fff;
  background: rgba(var(--lumiere), 0.07);
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.25s, background 0.25s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 241, 227, 0.5);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--copper-clair);
  background: rgba(var(--lumiere), 0.12);
}
.contact-form button {
  min-height: 52px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(180deg, #b35f34, #96481f);
  box-shadow:
    0 1px 0 rgba(255, 224, 190, 0.45) inset,
    0 14px 26px -14px rgba(var(--ombre), 0.9);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.contact-form button:hover {
  background: linear-gradient(180deg, #c26c3d, #8a4019);
  transform: translateY(-2px);
}
.form-note {
  min-height: 1.3em;
  margin: 0;
  font-size: 12px;
  color: var(--copper-clair);
}
.footer {
  position: absolute;
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  bottom: 32px;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(var(--lumiere), 0.16);
  letter-spacing: 0.04em;
  font-size: 11px;
  color: rgba(247, 241, 227, 0.78);
  align-items: center;
}
.footer-logo img {
  display: block;
  width: auto;
  height: 40px;
  filter: drop-shadow(0 1px 12px rgba(var(--ombre), 0.6));
}
.footer nav {
  display: flex;
  gap: 20px;
}

/* ------------------------------------------------------------- Mobile */
@media (max-width: 800px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    grid-template-columns: 1fr auto;
    padding-left: 16px;
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .brand img {
    height: 42px;
  }
  .menu-toggle {
    display: block;
    padding: 10px 14px;
    border: 0;
    border-radius: 2px;
    color: #fff;
    background: rgba(var(--lumiere), 0.12);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
  }
  .mobile-menu {
    position: fixed;
    z-index: 9;
    top: 77px;
    right: 10px;
    left: 10px;
    display: grid;
    padding: 12px;
    border-radius: 3px;
    background: rgba(20, 13, 7, 0.96);
    box-shadow: var(--sol);
    backdrop-filter: blur(14px);
    transform: translateY(-130%);
    opacity: 0;
    transition: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mobile-menu.open {
    transform: none;
    opacity: 1;
  }
  .mobile-menu a {
    padding: 16px;
    border-bottom: 1px solid rgba(var(--lumiere), 0.14);
  }
  .mobile-menu a:last-child {
    border-bottom: 0;
  }
  .chapter {
    min-height: 940px;
    padding: 110px 20px 70px;
  }
  .section-intro {
    top: 96px;
    left: 20px;
    right: 20px;
  }
  .section-intro:before,
  .hero-copy:before,
  .contact-copy:before {
    inset: -40px -30px -50px -30px;
    background: radial-gradient(
      140% 110% at 30% 50%,
      rgba(var(--ombre), 0.88),
      rgba(var(--ombre), 0.55) 50%,
      rgba(var(--ombre), 0) 82%
    );
  }
  .hero-note {
    display: none;
  }
  .hero-stats {
    right: 20px;
    bottom: 42px;
    left: 20px;
    justify-content: space-between;
  }
  .hero-stats p {
    padding: 0 9px;
  }
  .hero-stats b {
    font-size: 20px;
  }
  .hero-stats span {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .devices {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 220px;
  }
  .device-one,
  .device-two,
  .device-three {
    transform: none;
  }
  .service-list,
  .steps,
  .questions,
  .local-panel,
  .price-layout {
    width: 100%;
    margin-top: 230px;
  }
  .service-list a {
    grid-template-columns: 32px 1fr 20px;
    padding: 22px 18px;
  }
  .service-list a b {
    display: none;
  }
  .service-list h3 {
    font-size: 22px;
  }
  .service-list p {
    font-size: 14px;
  }
  .steps li,
  .steps li:nth-child(even),
  .steps li:nth-child(odd) {
    margin-left: 0;
    margin-right: 0;
  }
  .price-layout {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    margin-top: 0;
  }
  .local-panel {
    padding: 28px;
  }
  .contact {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 34px;
    padding-top: 130px;
  }
  .footer {
    position: static;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .footer-logo {
    flex-basis: 100%;
  }
  .footer-logo img {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .reveal,
  .hero .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
  .device,
  .button,
  .header-cta {
    transition: none;
  }
}

/* ------------------------------------------------- Séquence d'ouverture */
/* Le premier écran est épinglé pendant deux hauteurs d'écran de défilement.
   Trois temps, pilotés par --p (0 → 1, posé par le script) :
   1. le texte s'efface ;  2. le capot se replie ;  3. la caméra bascule
   vers le sol et le sous-bois du chapitre suivant monte dans le cadre. */
.sequence {
  --p: 0;
  --t1: clamp(0, calc(var(--p) / 0.1), 1);
  --t2: clamp(0, calc((var(--p) - 0.08) / 0.15), 1);
  /* La descente ne commence qu'une fois le capot tout à fait fermé (t2 = 1
     à p = 0.23) : aucune superposition des deux photos. */
  --t3: clamp(0, calc((var(--p) - 0.25) / 0.55), 1);
  /* Cinquième temps : les trois offres se posent sur les trois ordinateurs,
     et l'écran reste épinglé le temps de les lire. */
  --t5: clamp(0, calc((var(--p) - 0.82) / 0.12), 1);
  position: relative;
  /* 420 (descente) + 300 (panoramique) + 100 (l'écran) */
  height: 1790vh;
}
.stage {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  padding: 0 max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  background: #171009;
}
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene-fermee {
  opacity: clamp(0, calc(var(--t2) * 6), 1);
}
/* L'ombre des pins à gauche, prise sur la photo elle-même. */
.stage:before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--ombre), 0.68), rgba(var(--ombre), 0.34) 34%, rgba(var(--ombre), 0) 62%),
    linear-gradient(0deg, rgba(var(--ombre), 0.42), rgba(var(--ombre), 0) 34%),
    linear-gradient(180deg, rgba(var(--ombre), 0.4), rgba(var(--ombre), 0) 22%);
  opacity: calc(1 - var(--t3));
  pointer-events: none;
}
/* Le capot : la face écran de la photo, découpée, qui pivote sur la charnière.
   Vue de face et de bas comme sur la photo, la fermeture se voit surtout
   comme un écrasement vertical : sans perspective, le bord haut descend
   droit sur la charnière, puis le capot passe de profil et il ne reste
   qu'une tranche sombre, celle de la photo « fermée » dessous. */
.capot {
  position: absolute;
  z-index: 2;
  background: linear-gradient(180deg, #4a4340, #221e1b);
  transform-style: preserve-3d;
  clip-path: polygon(7.95% 11.5%, 98.1% 2.4%, 91.6% 95.5%, 0.7% 97.6%);
  transform-origin: 50% 96%;
  transform: rotateX(calc(var(--t2) * -96deg));
  filter: brightness(calc(1 - var(--t2) * 0.7));
  will-change: transform;
}
.capot img {
  display: block;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
/* Le passage : un travelling vertical continu sur trois plans empilés.
   1. la dernière image de fermeture (l'ordinateur fermé, les buissons en bas),
   2. le feuillage en plein cadre,
   3. la scène des trois ordinateurs (ses branches en haut).
   Pendant t3, la bande glisse vers le haut, comme une caméra qui bascule du
   rocher vers la forêt. Chaque image chevauche la précédente sur la hauteur
   de son fondu (--fa, --fb) : le fondu laisse voir l'image d'avant, jamais
   le fond. Jamais de ciel contre ciel. */
.sequence {
  --fa: 16vh;
  /* Court : le fondu doit tenir dans la cime dense des totems, avant que
     leur ciel n'apparaisse, sinon le feuillage reste en filigrane dessus. */
  --fb: 9vh;
  --course: calc(200vh - var(--fa) - var(--fb));
}
.fermeture {
  transform: translateY(calc(var(--t3) * var(--course) * -1));
  will-change: transform;
}
.feuillage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
  z-index: 3;
  transform: translateY(calc(100vh - var(--fa) - var(--t3) * var(--course)));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--fa));
  mask-image: linear-gradient(180deg, transparent, #000 var(--fa));
}
/* Le panoramique : une seule image trois fois plus large que haute, calée
   sur la hauteur de l'écran. Elle arrive par le bas comme troisième plan du
   travelling (son tiers gauche est le hero 2), puis, pendant --r, elle glisse
   vers la gauche : la caméra tourne la tête vers la droite jusqu'au hero 3.
   Les étiquettes sont posées DANS l'image, en pourcentages, donc elles
   voyagent avec elle sans aucun calcul. */
.sequence {
  --r: 0;
  --panx: 0px;
  --pany: 0px;
  --pans: 1;
  --wa: 0;
  --wb: 0;
  --largeur-pano: max(calc(100vh * 5016 / 941), 100vw);
}
.pano {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: var(--largeur-pano);
  height: 100vh;
  transform-origin: 0 0;
  /* Vertical : la fin du travelling. Horizontal, et réduction sur écran
     étroit : posés par le script, qui interpole entre les repos. */
  transform:
    translate(
      var(--panx),
      calc(200vh - var(--fa) - var(--fb) - var(--t3) * var(--course) + var(--pany))
    )
    scale(var(--pans));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--fb));
  mask-image: linear-gradient(180deg, transparent, #000 var(--fb));
  will-change: transform;
}
.pano > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Le grand ordinateur de droite a un écran noir, presque de face : les
   vraies captures des projets s'y logent, aux mesures de la photo. La dalle
   est vue d'un peu au-dessus (son bord haut est 5,6 % plus étroit que son
   bord bas), donc la capture reçoit la même légère fuite, charnière en bas.
   Elle est ramenée dans la lumière du soir, avec un reflet, pour ne pas
   faire « collée ». Trois captures se relaient par fondu. */
.ecran {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--l);
  height: var(--h);
  overflow: hidden;
  border-radius: 1.2% / 2%;
  background: #0b0a09;
  transform-origin: 50% 100%;
  transform: perspective(114vh) rotateX(8deg);
}
.ecran img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  filter: saturate(0.92) brightness(0.94) sepia(0.06);
  transition: opacity 0.8s ease;
}
.ecran img.vue {
  opacity: 1;
}
.ecran:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 214, 152, 0.16), rgba(255, 214, 152, 0) 38%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 0 24px rgba(0, 0, 0, 0.35) inset;
  pointer-events: none;
}
.stage .hero-copy,
.stage .hero-note,
.stage .hero-stats,
.stage .indice {
  z-index: 4;
  opacity: calc(1 - var(--t1));
  transform: translateY(calc(var(--t1) * -40px));
  pointer-events: none;
}
.stage .hero-copy {
  position: relative;
  max-width: 880px;
  pointer-events: auto;
}
.stage .hero-copy:before {
  content: none;
}
.stage .hero-note {
  position: absolute;
  right: 5%;
  top: 30%;
  margin: 0;
}
.stage .hero-stats {
  position: absolute;
  bottom: 7%;
}
.indice {
  position: absolute;
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  bottom: 7%;
  display: none;
}
/* Le chapitre suivant continue le décor là où la séquence l'a laissé : il
   affiche la suite de la tranche, un écran plus bas, au lieu de la reprendre
   du début. */
#realisations {
  --cadrage: 0%;
}
@media (max-width: 800px) {

  .stage {
    padding: 0 20px;
  }
  .stage .hero-note {
    display: none;
  }
  .stage .hero-stats {
    right: 20px;
    left: 20px;
    bottom: 5%;
    flex-wrap: wrap;
    gap: 12px 0;
  }
  .hero-lieu {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sequence {
    height: auto;
  }
  .stage {
    position: relative;
    min-height: 100vh;
  }
  .scene,
  .capot,
  .feuillage,
  .stage .hero-copy,
  .stage .hero-note,
  .stage .hero-stats {
    transform: none;
    opacity: 1;
  }
  .scene-fermee,
  .capot,
  .feuillage {
    display: none;
  }
}

/* Séquence photo de fermeture (voir design/lockpit-nature/FERMETURE.md).
   Chaque image couvre toute la scène ; une seule est visible à la fois et
   le script choisit laquelle selon la position du défilement. */
.fermeture {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.fermeture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* Quand la séquence existe, le capot découpé et la photo « fermée » se
   retirent : la première image de la séquence est la photo ouverte, la
   dernière la photo fermée. */
.avec-film .capot,
.avec-film .scene-fermee {
  display: none;
}
/* La photo du hero (écran allumé) reste au-dessus et s'efface avec le
   texte : l'écran s'éteint, puis le capot se ferme sur la séquence, dessous. */
.avec-film .scene-ouverte {
  z-index: 3;
  opacity: calc(1 - var(--t1));
}
@media (prefers-reduced-motion: reduce) {
  .fermeture {
    display: none;
  }
}


/* ------------------------------------------------------- Hero 2 et 3 */
/* Le hero 2 (les trois offres) et le hero 3 (les trois réalisations) vivent
   dans le même écran épinglé : leurs titres se relaient pendant que le
   panoramique glisse, et chaque étiquette reste accrochée à sa machine. */
.offres {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: calc(var(--t5) * (1 - clamp(0, calc(var(--r) / 0.12), 1)));
}
/* le bloc des offres couvre tout l'écran : il ne doit pas voler les clics des trois totems posés sur les rochers, dessous */
.projet.lisible,
.offres.lisible .liste-mobile {
  pointer-events: auto;
}
.offres .section-intro {
  top: 16%;
  max-width: 560px;
}
.offres .section-intro h2 {
  font-size: clamp(40px, 4.6vw, 68px);
}
/* Le hero 3 : la fiche du projet affiché se tient à gauche de la machine,
   à mi-hauteur. Les trois fiches occupent la même place et se relaient. */
.projet {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  width: min(25vw, 410px);
  transform: translateY(-50%);
  display: grid;
  opacity: clamp(0, calc((var(--r) - 0.84) / 0.14), 1);
  pointer-events: none;
}
.projet:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -70px -70px -90px;
  background: radial-gradient(100% 90% at 30% 50%, rgba(var(--ombre), 0.8), rgba(var(--ombre), 0.42) 55%, rgba(var(--ombre), 0) 82%);
  filter: blur(6px);
}
.fiche {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.6s;
}
.fiche.vue {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease 0.15s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s, visibility 0s;
}
.onglets {
  grid-area: 2 / 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--lumiere), 0.22);
}
.onglets button {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: rgba(247, 241, 227, 0.62);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.onglets button:hover {
  color: var(--cream);
}
.onglets button[aria-selected="true"] {
  color: var(--cream);
  border-color: var(--copper-clair);
}
.projet-genre {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--copper-clair);
}
.projet h2 {
  font-size: clamp(40px, 4.4vw, 66px);
}
.projet p:not(.projet-genre) {
  margin: 20px 0 28px;
  max-width: 38ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.88);
}
.totem {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 4px;
  padding: 16px 20px 16px 22px;
  transform: translate(-50%, 0);
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(var(--ombre), 0.8), 0 2px 24px rgba(var(--ombre), 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* la zone cliquable posée sur l'ordinateur, au-dessus de l'étiquette : tout le PC mène à la page, pas seulement le titre */
.totem .pc {
  position: absolute;
  left: calc(50% + var(--l));
  top: var(--t);
  width: var(--w);
  height: var(--h);
}
.totem.offre {
  opacity: calc(var(--t5) * (1 - clamp(0, calc((var(--r) - 0.3) / 0.3), 1)));
}
/* Le fil qui relie l'étiquette à sa machine, et le point posé sur le capot. */
.totem:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 46px;
  background: linear-gradient(0deg, rgba(247, 241, 227, 0.8), rgba(247, 241, 227, 0));
}
.totem:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 46px);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--copper-clair);
  box-shadow: 0 0 0 5px rgba(230, 160, 106, 0.28);
}
.totem span {
  font-family: Bricolage, DM, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-clair);
  white-space: nowrap;
}
.totem b {
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.totem small {
  font-size: 13px;
  color: rgba(247, 241, 227, 0.8);
  white-space: nowrap;
}
.totem:hover {
  transform: translate(-50%, -6px);
}
.totem:hover b {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--copper-clair);
}
.liste-mobile {
  display: none;
}
@media (max-width: 800px) {
  .offres .section-intro {
    top: 90px;
  }
  /* Écran étroit : l'ordinateur est au milieu, réduit pour tenir ; le texte
     du projet passe dessous. */
  .projet {
    top: auto;
    right: 20px;
    bottom: 34px;
    left: 20px;
    width: auto;
    transform: none;
  }
  .projet h2 {
    font-size: 34px;
  }
  .projet p:not(.projet-genre) {
    margin: 12px 0 18px;
    font-size: 15px;
  }
  /* Écran vertical : on ne voit qu'une tranche du panoramique, les
     étiquettes accrochées sortiraient du cadre. Elles laissent la place à
     une liste posée en bas de l'écran. */
  .totem {
    display: none;
  }
  .liste-mobile {
    position: absolute;
    right: 20px;
    bottom: 40px;
    left: 20px;
    display: grid;
    gap: 10px;
  }
  .liste-mobile a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 3px;
    background: rgba(20, 11, 5, 0.58);
    backdrop-filter: blur(8px);
  }
  .liste-mobile b {
    font-family: Bricolage, DM, sans-serif;
    font-size: 19px;
  }
  .liste-mobile small {
    font-size: 13px;
    color: rgba(247, 241, 227, 0.78);
  }
}

/* L'invitation à continuer vers la droite : posée au bord droit de l'écran,
   à hauteur de l'ordinateur, dans le prolongement du mouvement de caméra.
   Elle n'existe qu'au hero 3. Pas encore branchée. */
.suite-droite {
  position: absolute;
  z-index: 6;
  top: 47%;
  right: clamp(16px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
  color: var(--cream);
  text-align: right;
  opacity: clamp(0, calc((var(--r) - 0.88) / 0.12), 1);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(var(--ombre), 0.9), 0 2px 22px rgba(var(--ombre), 0.8);
}
.suite-droite.lisible {
  pointer-events: auto;
}
.suite-droite span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  line-height: 1.8;
}
.suite-droite i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 227, 0.55);
  background: rgba(26, 17, 10, 0.45);
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Un léger va-et-vient de la flèche, pour dire « par là » sans insister. */
.suite-droite svg {
  animation: par-la 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes par-la {
  0%, 60%, 100% { transform: none; }
  30% { transform: translateX(5px); }
}
.suite-droite:hover i {
  background: #b35f34;
  border-color: #b35f34;
  transform: translateX(4px);
}
@media (max-width: 800px) {
  .suite-droite {
    top: 96px;
    right: 14px;
    transform: none;
  }
  .suite-droite span {
    display: none;
  }
  .suite-droite i {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .suite-droite svg {
    animation: none;
  }
}

/* ------------------------------------------- Petites écritures sur photo */
/* Les mentions en petites capitales posées directement sur la photo étaient
   trop fines, trop espacées et trop petites pour tenir sur un feuillage
   éclairé. Règle unique pour toutes : 13 px, graisse 600, espacement réduit
   (les lettres se lisent comme des mots, pas comme des points), blanc franc,
   et une ombre serrée + une ombre large qui leur fabriquent leur fond. */
.sur-titre,
.hero-note,
.hero-stats span,
.hero-devise,
.hero-lieu,
.projet-genre,
.suite-droite span,
.totem span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow:
    0 0 2px rgba(var(--ombre), 0.95),
    0 1px 4px rgba(var(--ombre), 0.9),
    0 2px 26px rgba(var(--ombre), 0.85);
}
.projet-genre,
.totem span {
  color: #ffc592;
}
.hero-note,
.hero-devise,
.hero-lieu,
.suite-droite span {
  line-height: 1.7;
}
/* Les sous-lignes en casse normale (prix, liens des onglets, légendes). */
.totem small,
.onglets button,
.footer {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 252, 246, 0.92);
  text-shadow: 0 1px 4px rgba(var(--ombre), 0.9), 0 2px 22px rgba(var(--ombre), 0.8);
}
.onglets button {
  color: rgba(255, 252, 246, 0.72);
}
.onglets button[aria-selected="true"],
.onglets button:hover {
  color: #fff;
}
/* L'invitation de droite est sur la zone la plus claire de l'image : le
   libellé et le bouton partagent une même plaque sombre translucide. */
.suite-droite {
  padding: 8px 8px 8px 20px;
  border-radius: 40px;
  background: rgba(26, 17, 10, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(var(--lumiere), 0.22) inset;
}
.suite-droite i {
  background: rgba(255, 252, 246, 0.1);
  backdrop-filter: none;
}
@media (max-width: 800px) {
  .sur-titre,
  .hero-stats span,
  .hero-devise,
  .projet-genre {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .suite-droite {
    padding: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .suite-droite i {
    background: rgba(26, 17, 10, 0.5);
    backdrop-filter: blur(8px);
  }
}
/* La mention de droite du hero 1 tombe sur le ciel le plus clair : même
   plaque sombre translucide que l'invitation du hero 3. */
.stage .hero-note {
  padding: 12px 18px;
  border-left: 2px solid var(--copper-clair);
  border-radius: 2px;
  background: rgba(26, 17, 10, 0.42);
  backdrop-filter: blur(8px);
}
/* Deuxième passe de lisibilité : menu, onglets des projets, prix des offres.
   Même recette : plus gros, plus gras, blanc franc, et une plaque sombre
   là où le texte tombe sur du feuillage éclairé. */
.desktop-nav {
  font-size: 15px;
}
.desktop-nav a {
  opacity: 1;
  color: #fff;
  font-weight: 600;
}
.topbar .desktop-nav a {
  text-shadow: 0 0 2px rgba(var(--ombre), 0.9), 0 1px 4px rgba(var(--ombre), 0.85), 0 2px 22px rgba(var(--ombre), 0.8);
}
.onglets {
  gap: 8px;
}
.onglets button,
.onglets button:hover {
  padding: 8px 16px;
  border: 1px solid rgba(var(--lumiere), 0.2);
  border-radius: 40px;
  background: rgba(26, 17, 10, 0.55);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: none;
}
.onglets button:hover {
  background: rgba(26, 17, 10, 0.75);
}
.onglets button[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, #b35f34, #96481f);
  color: #fff;
}
.totem small {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 40px;
  background: rgba(26, 17, 10, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: none;
}
.desktop-nav a {
  white-space: nowrap;
}
/* Les quatre onglets tiennent sur une ligne. */
.onglets {
  flex-wrap: nowrap;
  gap: 6px;
  width: max-content;
}
.onglets button,
.onglets button:hover {
  padding: 7px 12px;
  font-size: 14px;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .onglets {
    flex-wrap: wrap;
    width: auto;
  }
}
/* Pendant le panoramique, le fondu du haut du panorama laissait voir le plan
   de feuillage resté immobile derrière lui : les feuilles semblaient
   accrochées au menu. Le fondu se referme dès que la caméra part à droite. */
.pano {
  --haut-pano: clamp(0, calc(var(--r) * 10), 1);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, var(--haut-pano)), #000 var(--fb));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, var(--haut-pano)), #000 var(--fb));
}

/* ------------------------------------------------------------ La caverne */
/* Sous le hero 3, la caméra descend : le rocher de l'ordinateur laisse place
   à la roche (le trajet), puis à la caverne aux quatre vasques. Trois plans
   empilés ; chacun recouvre le précédent par un fondu, toujours dans de la
   roche, jamais dans du ciel. Positions et tailles : posées par le script. */
.roche,
.caverne {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: var(--lw, 100vw);
  height: var(--hp, 43vw);
  visibility: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw));
  mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw));
  will-change: transform;
}
.sequence.sous .roche,
.sequence.sous .caverne {
  visibility: visible;
}
.roche {
  /* Elle recouvre le bas du hero 3 sur la hauteur de son fondu : au repos elle
     est invisible, elle n'apparaît qu'au départ de la descente. */
  transform: translate(var(--rocx, 0px), calc(var(--base, 100vh) - var(--f, 12vw) + var(--gy, 0px)));
  opacity: clamp(0, calc(var(--g) * 12), 1);
}
.caverne {
  transform: translate(var(--cavx, 0px), calc(var(--base, 100vh) + var(--hp, 43vw) - 2 * var(--f, 12vw) + var(--gy, 0px)));
}
.caverne > img {
  display: block;
  width: 100%;
  height: 100%;
}
.projet,
.suite-droite {
  opacity: calc(clamp(0, calc((var(--r) - 0.86) / 0.14), 1) * (1 - clamp(0, calc(var(--g) * 14), 1)));
}
.bassins {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Une vasque : --x l'aplomb de la goutte, --y0 l'arête d'où elle part,
   --y la surface de l'eau, --l la largeur de la vasque (en % de l'image),
   --c l'avancement de sa goutte (0 → 1) donné par le défilement. */
.bassin {
  --forme: clamp(0, calc(var(--c) / 0.18), 1);
  --chute: clamp(0, calc((var(--c) - 0.18) / 0.37), 1);
  --onde: clamp(0, calc((var(--c) - 0.55) / 0.45), 1);
}
/* La goutte gonfle sur l'arête, puis tombe en accélérant (carré du temps). */
.goutte {
  position: absolute;
  top: calc((var(--y0) + var(--chute) * var(--chute) * (var(--y) - var(--y0))) * 1%);
  left: calc(var(--x) * 1%);
  width: 13px;
  height: 19px;
  margin-left: -6.5px;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(var(--lumiere), 0.95) 35%, rgba(255, 170, 90, 0.75) 100%);
  box-shadow: 0 0 16px 3px rgba(var(--lumiere), 0.75), 0 0 3px #fff;
  transform-origin: 50% 0;
  transform: translateY(-100%) scale(var(--forme), calc(var(--forme) * (1 + var(--chute) * 0.5)));
  opacity: calc(1 - clamp(0, calc((var(--c) - 0.53) / 0.03), 1));
}
/* La traînée de lumière derrière la goutte qui tombe. */
.goutte:after {
  content: "";
  position: absolute;
  bottom: 60%;
  left: 50%;
  width: 3px;
  height: calc(var(--chute) * 11vh);
  border-radius: 3px;
  background: linear-gradient(0deg, rgba(var(--lumiere), 0.75), rgba(var(--lumiere), 0));
  transform: translateX(-50%);
}
.onde,
.reflet {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  width: calc(var(--l) * 1%);
  aspect-ratio: 1 / 0.2;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
.onde {
  border: 2px solid rgba(255, 236, 205, 0.95);
  box-shadow: 0 0 14px rgba(var(--lumiere), 0.6), 0 0 10px rgba(var(--lumiere), 0.35) inset;
  transform: scale(calc(0.08 + var(--onde) * 0.8));
  opacity: calc((1 - var(--onde)) * clamp(0, calc(var(--onde) * 40), 1));
}
.onde.deux {
  --retard: clamp(0, calc((var(--onde) - 0.25) / 0.75), 1);
  transform: scale(calc(0.08 + var(--retard) * 0.6));
  opacity: calc((1 - var(--retard)) * clamp(0, calc(var(--retard) * 40), 1) * 0.7);
}
/* Une fois touchée, la vasque garde un éclat : l'étape est acquise. */
.reflet {
  background: radial-gradient(closest-side, rgba(var(--lumiere), 0.42), rgba(var(--lumiere), 0));
  transform: scale(0.7);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.bassin.pleine .reflet {
  opacity: 1;
}
/* ------------------------------------------------ Les quatre étapes */
/* Pas de cartes, pas de boîtes. Chaque étape est un grand chiffre gravé dans
   l'alcôve, derrière la chute : il s'allume par le bas quand la goutte touche
   l'eau, comme éclairé par la vasque. Les textes tiennent sur UNE seule ligne
   de base, au pied des vasques, reliés par un fil de cuivre qui avance de
   vasque en vasque. Tout est accroché à l'image : rien ne peut monter dans
   le titre, quelle que soit la taille de l'écran. */
.caverne {
  -webkit-mask-image: none;
  mask-image: none;
}
.caverne > img {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw));
  mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw));
}
/* Le pied de la caverne s'assombrit pour porter le texte : une pénombre,
   pas un bandeau. */
.bassins:after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(var(--ombre), 0.95), rgba(var(--ombre), 0.8) 46%, rgba(var(--ombre), 0));
  pointer-events: none;
}
.chiffre {
  position: absolute;
  top: calc((var(--y0) + var(--y)) * 0.5% + 1%);
  left: calc(var(--x) * 1%);
  translate: -50% -50%;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: calc(var(--hp, 43vw) * 0.3);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(0deg, rgba(255, 224, 170, 0.95), rgba(var(--lumiere), 0.5) 45%, rgba(var(--lumiere), 0.05) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(var(--lumiere), 0.35));
  opacity: 0;
  /* il se découvre de bas en haut */
  -webkit-mask-image: linear-gradient(0deg, #000 50%, transparent 50%);
  mask-image: linear-gradient(0deg, #000 50%, transparent 50%);
  -webkit-mask-size: 100% 200%;
  mask-size: 100% 200%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  transition: opacity 0.5s ease, mask-position 1.3s cubic-bezier(0.2, 0.7, 0.2, 1), -webkit-mask-position 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
  user-select: none;
}
.bassin.pleine .chiffre {
  opacity: 1;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
}
.goutte,
.onde,
.reflet {
  z-index: 1;
}
/* Le fil : une seule ligne, de la première à la dernière vasque. */
.fil {
  position: absolute;
  z-index: 1;
  top: 78%;
  left: 12.5%;
  width: 74.4%;
  height: 1px;
  background: rgba(var(--lumiere), 0.16);
}
.fil i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--copper-clair), #ffd9a8);
  box-shadow: 0 0 10px rgba(var(--lumiere), 0.6);
  transform-origin: 0 50%;
  transform: scaleX(var(--fil, 0));
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.etape {
  position: absolute;
  z-index: 1;
  top: 78%;
  left: calc(var(--x) * 1%);
  width: min(21%, 270px);
  padding-top: 20px;
  translate: -50% 0;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
/* le nœud de l'étape sur le fil */
.etape:before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #ffd9a8;
  box-shadow: 0 0 0 4px rgba(var(--lumiere), 0.18), 0 0 14px rgba(var(--lumiere), 0.9);
}
.bassin.pleine .etape {
  opacity: 1;
  transform: none;
}
.etape b {
  display: block;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(var(--ombre), 0.9);
}
.etape p {
  margin: 8px 0 0;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 252, 246, 0.92);
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(var(--ombre), 0.9);
}
/* Le titre de la scène, centré en haut, sur la roche sombre du plafond. */
.methode {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: clamp(0, calc((var(--g) - 0.82) / 0.18), 1);
}
.methode .section-intro {
  top: 14%;
  right: 0;
  left: 0;
  max-width: none;
  text-align: center;
}
.methode .section-intro:before {
  inset: -40px 25% -40px 25%;
  background: radial-gradient(closest-side, rgba(var(--ombre), 0.8), rgba(var(--ombre), 0));
}
.methode .section-intro h2 {
  font-size: clamp(32px, 3.4vw, 52px);
}
@media (max-width: 800px) {
  .methode .section-intro {
    top: 96px;
    right: 22px;
    left: 22px;
    text-align: left;
  }
  /* Écran étroit : la caméra cadre une vasque à la fois, son texte dessous. */
  .etape {
    top: 75%;
    width: 300px;
  }
  .fil {
    top: 75%;
  }
  .etape b {
    font-size: 19px;
  }
  .etape p {
    font-size: 14px;
  }
}
/* Les quatre titres tiennent chacun sur une ligne : les quatre textes
   démarrent à la même hauteur et s'équilibrent. */
.etape {
  width: min(23%, 320px);
}
.etape b {
  white-space: nowrap;
}
.etape p {
  max-width: 270px;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 800px) {
  .etape {
    width: 250px;
  }
  /* une seule étape lisible à la fois : celle de la vasque cadrée */
  .bassin.pleine:has(~ .bassin.pleine) .etape {
    opacity: 0;
  }
}
.etape p {
  max-width: 290px;
}
/* Les quatre chiffres sur une même ligne, quelle que soit la hauteur de
   leur vasque. */
.chiffre {
  top: 47.5%;
  font-size: calc(var(--hp, 43vw) * 0.27);
}

/* --------------------------------------------------- Le passage et le lac */
/* La caméra longe la roche vers la gauche : la caverne, le passage où l'eau
   s'écoule, puis la sortie sur le lac. Positions posées par le script. */
.roche.deux {
  /* le plafond continue à gauche : la même roche, glissée sous un fondu */
  transform: translate(calc(var(--rocx, 0px) - var(--lw, 100vw) + var(--o1, 20vw)), calc(var(--base, 100vh) - var(--f, 12vw) + var(--gy, 0px)));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw)), linear-gradient(270deg, transparent, #000 var(--o1, 20vw));
  mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw)), linear-gradient(270deg, transparent, #000 var(--o1, 20vw));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.passage {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: var(--lw, 100vw);
  height: var(--hp, 43vw);
  visibility: hidden;
  transform: translate(var(--pasx, -100vw), calc(var(--base, 100vh) + var(--hp, 43vw) - 2 * var(--f, 12vw) + var(--gy, 0px)));
  /* fondu en haut (vers le plafond) et à droite (vers la caverne) */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw)), linear-gradient(270deg, transparent, #000 var(--o1, 20vw));
  mask-image: linear-gradient(180deg, transparent, #000 var(--f, 12vw)), linear-gradient(270deg, transparent, #000 var(--o1, 20vw));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  will-change: transform;
}
.lac {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: var(--wl, 234vh);
  height: 100vh;
  overflow: hidden;
  visibility: hidden;
  transform: translateX(var(--lacx, -300vw));
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 var(--o2, 22vw));
  mask-image: linear-gradient(270deg, transparent, #000 var(--o2, 22vw));
  will-change: transform;
}
.sequence.au-lac .passage,
.sequence.au-lac .lac {
  visibility: visible;
}
/* L'approche : la caméra avance vers les deux fleurs. */
.lac > img {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 49.7% 66%;
  transform: translateY(calc(var(--zoom, 0) * -24vh)) scale(calc(1 + var(--zoom, 0) * 1.15));
  will-change: transform;
}
/* L'éclat : en sortant de la roche, la lumière du dehors éblouit un instant. */
.eclat {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: radial-gradient(60vw 90vh at var(--eclx, 50%) 55%, rgba(255, 226, 170, 0.95), rgba(255, 205, 140, 0.55) 45%, rgba(255, 200, 130, 0) 80%);
  opacity: var(--eclat, 0);
  pointer-events: none;
}
.methode {
  opacity: calc(clamp(0, calc((var(--g) - 0.82) / 0.18), 1) * (1 - clamp(0, calc(var(--lac, 0) * 10), 1)));
}
/* Les deux formules : une par fleur. Première scène claire du site : le texte
   passe à l'encre sombre, sur l'eau dorée. */
.tarifs-lac {
  --encre: #22130a;
  position: absolute;
  z-index: 5;
  inset: 0;
  color: var(--encre);
  opacity: clamp(0, calc((var(--zoom, 0) - 0.7) / 0.3), 1);
  pointer-events: none;
}
.tarifs-lac.lisible {
  pointer-events: auto;
}
.tarifs-lac h2 {
  position: absolute;
  top: 13%;
  right: 0;
  left: 0;
  margin: 0;
  text-align: center;
  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 0 30px rgba(255, 236, 200, 0.9);
}
.tarifs-lac h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.formules {
  position: absolute;
  top: 54%;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* l'écart entre les deux fleurs, une fois la caméra approchée */
  width: calc(var(--wl, 234vh) * 0.13 * 2.15 * 2);
  translate: -50% 0;
  text-align: center;
}
.formule {
  display: grid;
  justify-items: center;
  padding: 0 12px;
}
.formule-nom {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.formule-prix {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 0;
}
.formule-prix b {
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(48px, 5.2vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.formule-prix span {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px);
}
.formule-phrase {
  max-width: 300px;
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.formule ul {
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}
.formule .button {
  box-shadow: 0 14px 30px -14px rgba(60, 25, 5, 0.7);
}
@media (max-width: 800px) {
  .lac > img {
    transform: translateY(calc(var(--zoom, 0) * -30vh)) scale(calc(1 + var(--zoom, 0) * 0.3));
  }
  .tarifs-lac h2 {
    top: 96px;
    right: 22px;
    left: 22px;
    text-align: left;
  }
  .formules {
    top: 44%;
    width: calc(100% - 20px);
  }
  .formule {
    padding: 0 6px;
  }
  .formule-prix {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .formule-prix b {
    font-size: 44px;
  }
  .formule-phrase {
    font-size: 14px;
  }
  .formule ul {
    font-size: 13px;
    line-height: 1.55;
  }
  .formule .button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
  }
}
/* Une brume claire sous chaque formule : l'encre sombre se lit sur l'eau
   ridée sans poser de boîte. */
.formule {
  position: relative;
}
.formule:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -10px -30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 200, 0.78), rgba(255, 232, 192, 0.5) 60%, rgba(255, 230, 190, 0));
  filter: blur(10px);
}
.formule-prix {
  gap: 14px;
}
.formule-phrase,
.formule ul {
  font-weight: 600;
}
@media (max-width: 800px) {
  /* Écran étroit : l'approche est légère (les deux fleurs doivent rester à
     l'écran) et les formules se lisent au-dessus d'elles, dans la brume. */
  .lac > img {
    transform: translateY(calc(var(--zoom, 0) * -3vh)) scale(calc(1 + var(--zoom, 0) * 0.1));
  }
  .tarifs-lac h2 {
    top: 88px;
    font-size: 30px;
  }
  .formules {
    top: 172px;
  }
  .formule-phrase {
    display: none;
  }
  .formule ul {
    margin: 8px 0 12px;
  }
  .formule .button {
    white-space: nowrap;
    font-size: 12.5px;
  }
  .formule .button span {
    display: none;
  }
}
/* Les deux boutons à la même hauteur, quelle que soit la longueur des listes. */
.formule {
  grid-template-rows: auto auto auto 1fr auto;
}
.formule .button {
  align-self: end;
}
/* L'approche sans flou : la même zone du lac, affinée quatre fois, est posée
   exactement sur l'image large et apparaît pendant que la caméra avance. À
   l'arrivée, l'écran ne montre plus qu'elle. Ses bords sont fondus. */
.lac > img,
.lac-vue {
  display: block;
  width: 100%;
  height: 100%;
}
.lac-vue {
  position: relative;
  transform-origin: 49.7% 66%;
  transform: translateY(calc(var(--zoom, 0) * -24vh)) scale(calc(1 + var(--zoom, 0) * 1.15));
  will-change: transform;
}
.lac-vue > img {
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
}
.lac-vue > .lac-net {
  position: absolute;
  top: 40.44%;
  left: 26.2%;
  width: 46.97%;
  height: 58.47%;
  opacity: clamp(0, calc((var(--zoom, 0) - 0.25) / 0.5), 1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 8%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
@media (max-width: 800px) {
  .lac-vue {
    transform: translateY(calc(var(--zoom, 0) * -3vh)) scale(calc(1 + var(--zoom, 0) * 0.1));
  }
}
/* Le fondu du bord droit du lac laissait voir la roche du passage, restée
   fixe derrière lui pendant l'approche. Il se referme à la fin du
   panoramique : à l'arrivée il ne reste que l'image du lac, qui s'agrandit
   d'un seul bloc. */
.lac {
  --bord-lac: clamp(0, calc((var(--lac, 0) - 0.8) / 0.2), 1);
  -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, var(--bord-lac)), #000 var(--o2, 22vw));
  mask-image: linear-gradient(270deg, rgba(0, 0, 0, var(--bord-lac)), #000 var(--o2, 22vw));
}

/* ------------------------------------------------------------- La brume */
/* Après les tarifs, la caméra recule et relève les yeux : la brume du lac
   monte et porte les questions. Chaque question ouverte en dissipe un quart
   (--clair, 0 → 1) : « tout doit être clair avant de partir ». */
.lac-vue {
  --amp: 1.15;
  --monte: -24vh;
  --leve: 7vh;
  --ze: calc(var(--zoom, 0) * (1 - var(--b, 0)) + 0.2 * var(--b, 0));
  transform: translateY(calc(var(--zoom, 0) * (1 - var(--b, 0)) * var(--monte) + var(--b, 0) * var(--leve))) scale(calc(1 + var(--ze) * var(--amp)));
}
.lac-vue > .lac-net {
  opacity: calc(clamp(0, calc((var(--zoom, 0) - 0.25) / 0.5), 1) * (1 - var(--b, 0)));
}
.tarifs-lac {
  opacity: calc(clamp(0, calc((var(--zoom, 0) - 0.7) / 0.3), 1) * (1 - clamp(0, calc(var(--b, 0) * 5), 1)));
}
.brume {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  opacity: calc(var(--b, 0) * (1 - var(--clair, 0) * 0.68));
  transition: opacity 1.6s ease;
  pointer-events: none;
}
.brume i {
  position: absolute;
  top: -10%;
  left: -50%;
  width: 200%;
  height: 120%;
  filter: blur(30px);
  will-change: transform;
}
.brume i:nth-child(1) {
  background:
    radial-gradient(38% 30% at 30% 48%, rgba(255, 238, 208, 0.95), rgba(255, 238, 208, 0) 70%),
    radial-gradient(42% 34% at 68% 56%, rgba(255, 232, 196, 0.9), rgba(255, 232, 196, 0) 70%);
  animation: derive 46s ease-in-out infinite alternate;
}
.brume i:nth-child(2) {
  background:
    radial-gradient(34% 26% at 46% 36%, rgba(255, 244, 222, 0.85), rgba(255, 244, 222, 0) 70%),
    radial-gradient(40% 30% at 82% 44%, rgba(255, 236, 204, 0.8), rgba(255, 236, 204, 0) 70%),
    radial-gradient(36% 28% at 14% 62%, rgba(255, 236, 204, 0.8), rgba(255, 236, 204, 0) 70%);
  animation: derive 64s ease-in-out infinite alternate-reverse;
}
.brume i:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 238, 210, 0) 12%, rgba(255, 238, 210, 0.72) 38%, rgba(255, 236, 205, 0.78) 66%, rgba(255, 236, 205, 0) 96%);
  filter: none;
}
@keyframes derive {
  from {
    transform: translateX(-9%);
  }
  to {
    transform: translateX(9%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brume i {
    animation: none;
  }
}
.faq-lac {
  --encre: #22130a;
  position: absolute;
  z-index: 5;
  inset: 0;
  color: var(--encre);
  opacity: clamp(0, calc((var(--b, 0) - 0.6) / 0.4), 1);
  pointer-events: none;
}
.faq-lac.lisible {
  pointer-events: auto;
}
.faq-lac h2 {
  position: absolute;
  top: 13%;
  right: 0;
  left: 0;
  margin: 0;
  text-align: center;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.faq-lac h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.faq-liste {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(760px, calc(100% - 44px));
  translate: -50% 0;
}
.faq-liste details {
  border-bottom: 1px solid rgba(34, 19, 10, 0.28);
}
.faq-liste details:first-child {
  border-top: 1px solid rgba(34, 19, 10, 0.28);
}
.faq-liste summary {
  align-items: baseline;
  padding: 22px 4px;
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--encre);
}
.faq-liste summary:hover {
  background: none;
}
.faq-liste summary span {
  color: #96481f;
  font-family: DM, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 0.8;
}
.faq-liste details p {
  max-width: 58ch;
  padding: 0 4px 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--encre);
}
@media (max-width: 800px) {
  .lac-vue {
    --amp: 0.1;
    --monte: -3vh;
    --leve: 0vh;
  }
  .faq-lac h2 {
    top: 88px;
    right: 22px;
    left: 22px;
    font-size: 30px;
    text-align: left;
  }
  .faq-liste {
    top: 180px;
  }
  .faq-liste summary {
    padding: 18px 2px;
    font-size: 19px;
  }
  .faq-liste details p {
    font-size: 15px;
  }
}
.faq-liste details p {
  max-width: none;
  text-wrap: pretty;
}
/* Lisibilité des réponses : les fleurs descendent plus bas pour ne plus passer
   sous la dernière réponse, et la liste garde sa propre nappe de brume, qui
   ne se dissipe pas avec le reste. */
.lac-vue {
  --leve: 15vh;
}
.faq-liste:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px -90px -50px;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(255, 240, 214, 0.88), rgba(255, 238, 208, 0.7) 62%, rgba(255, 236, 205, 0));
  filter: blur(18px);
}
.faq-liste details p {
  font-weight: 600;
}
@media (max-width: 800px) {
  .lac-vue {
    --leve: 0vh;
  }
  .faq-liste:before {
    inset: -30px -30px -40px;
  }
}

/* ------------------------------------------------------------ La plongée */
.lac-vue {
  /* de la vue de la brume au cadrage exact de la première photo de plongée */
  transform:
    translate(calc(var(--pa, 0) * var(--pl-x, 0px)), calc((var(--zoom, 0) * (1 - var(--b, 0)) * var(--monte) + var(--b, 0) * var(--leve)) * (1 - var(--pa, 0)) + var(--pa, 0) * var(--pl-y, 0px)))
    scale(calc((1 + var(--ze) * var(--amp)) * (1 - var(--pa, 0)) + var(--pa, 0) * var(--pl-s, 1.7)));
}
.lac-vue > .lac-net {
  opacity: calc(clamp(0, calc((var(--zoom, 0) - 0.25) / 0.5), 1) * max(1 - var(--b, 0), var(--pa, 0)));
}
.plongee {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}
.plongee img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pl-pos, 50%) 50%;
  opacity: 0;
}
.brume {
  opacity: calc(var(--b, 0) * (1 - var(--clair, 0) * 0.68) * (1 - var(--pa, 0)));
}
.faq-lac {
  opacity: calc(clamp(0, calc((var(--b, 0) - 0.6) / 0.4), 1) * (1 - clamp(0, calc(var(--pa, 0) * 2.5), 1)));
}
/* ------------------------------------------------------------ Sous l'eau */
/* La fin de la page se passe sous la surface, en défilement libre. Pas de
   photo : une colonne d'eau qui s'assombrit, les rayons qui s'éteignent, des
   particules en suspension, et les deux tiges qui descendent. */
.sous-eau:before {
  display: none;
}
#vendee {
  overflow: hidden;
  min-height: 120vh;
  background:
    linear-gradient(180deg, rgba(10, 24, 19, 0) 0, #0a1813 46%),
    linear-gradient(90deg, #1e2714, #142114 50%, #081a12);
}
#contact {
  background: linear-gradient(180deg, #0a1813, #060d0b 60%, #030605);
}
/* les rayons du soleil, de moins en moins présents */
#vendee:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 70%;
  height: 80%;
  background: repeating-linear-gradient(104deg, rgba(255, 214, 140, 0) 0 5%, rgba(255, 214, 140, 0.1) 7%, rgba(255, 214, 140, 0) 10% 16%, rgba(255, 214, 140, 0.06) 19%, rgba(255, 214, 140, 0) 23%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%), linear-gradient(90deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000, transparent 85%), linear-gradient(90deg, #000 30%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: blur(6px);
  animation: rayons 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rayons {
  from {
    opacity: 0.6;
    transform: translateX(-1.5%);
  }
  to {
    opacity: 1;
    transform: translateX(1.5%);
  }
}
.tiges i {
  position: absolute;
  z-index: -1;
  top: 0;
  left: var(--tige-1, 35%);
  width: max(5px, 0.42vw);
  height: 78vh;
  margin-left: calc(max(5px, 0.42vw) / -2);
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #4a3f16, #8a7328 45%, #3a3212);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.tiges i + i {
  left: var(--tige-2, 68%);
}
/* particules en suspension : un semis de points qui dérive lentement */
.particules {
  position: absolute;
  z-index: -1;
  inset: -20% 0 0;
  background-image:
    radial-gradient(rgba(255, 224, 160, 0.55) 1px, transparent 1.6px),
    radial-gradient(rgba(255, 224, 160, 0.35) 1px, transparent 1.4px),
    radial-gradient(rgba(255, 236, 190, 0.5) 1.4px, transparent 2px);
  background-size: 173px 211px, 97px 131px, 263px 307px;
  background-position: 0 0, 40px 70px, 120px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  animation: suspension 60s linear infinite;
  pointer-events: none;
}
@keyframes suspension {
  to {
    background-position: 30px -211px, 10px -61px, 150px -277px;
  }
}
.local-texte {
  position: relative;
  width: min(520px, 46vw);
  color: var(--cream);
}
.local-texte h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
}
.local-texte > p {
  max-width: 42ch;
  margin: 22px 0 26px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 252, 246, 0.9);
}
/* Les six villes : six bulles qui remontent, l'une après l'autre. */
.bulles {
  position: absolute;
  top: 16%;
  right: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  bottom: 12%;
  width: min(430px, 40vw);
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 1;
  transform: none;
}
.bulles li {
  position: absolute;
  top: calc(var(--i) * 15.5%);
  left: var(--gauche, 0%);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(140px);
  transition: opacity 1.2s ease calc(var(--i) * 0.35s), transform 2.2s cubic-bezier(0.15, 0.7, 0.2, 1) calc(var(--i) * 0.35s);
}
.bulles.visible li {
  opacity: 1;
  transform: none;
}
.bulles li i {
  flex: none;
  width: calc(26px + var(--i) * 3px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 200, 0.6);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0 7%, rgba(255, 236, 200, 0.18) 22%, rgba(255, 236, 200, 0.04) 60%, rgba(255, 236, 200, 0.22) 100%);
  box-shadow: 0 0 18px rgba(255, 214, 150, 0.25), inset 0 -3px 8px rgba(255, 214, 150, 0.2);
  animation: flotte calc(5s + var(--i) * 0.7s) ease-in-out calc(var(--i) * -1.3s) infinite alternate;
}
.bulles li span {
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
@keyframes flotte {
  from {
    transform: translate(-3px, 5px);
  }
  to {
    transform: translate(3px, -6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #vendee:after,
  .particules,
  .bulles li i {
    animation: none;
  }
}
@media (max-width: 800px) {
  #vendee {
    display: block;
    min-height: 0;
    padding-top: 90px;
    padding-bottom: 70px;
  }
  .local-texte {
    width: auto;
  }
  .bulles {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 40px;
    display: grid;
    gap: 22px;
  }
  .bulles li {
    position: relative;
    top: auto;
    left: calc(var(--i) * 4%);
  }
  .bulles li span {
    white-space: normal;
  }
}
.bulles li:nth-child(2) { --gauche: 16%; }
.bulles li:nth-child(3) { --gauche: 31%; }
.bulles li:nth-child(4) { --gauche: 5%; }
.bulles li:nth-child(5) { --gauche: 21%; }
.bulles li:nth-child(6) { --gauche: 9%; }
/* Les tiges, les rayons et les particules passent derrière le texte mais
   devant le fond de l'eau : chaque chapitre sous l'eau est son propre plan. */
.sous-eau {
  isolation: isolate;
}
/* Particules : un seul point répété par box-shadow, positions tirées au
   hasard par le script ; l'ensemble remonte très lentement. */
.particules {
  inset: 0;
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
  animation: none;
  overflow: hidden;
}
.particules:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  box-shadow: var(--semis, none);
  animation: remonte 90s linear infinite;
}
@keyframes remonte {
  to {
    transform: translateY(-30vh);
  }
}
/* Tiges : plus sombres, plus épaisses, et qui se perdent dans le fond. */
.tiges i {
  width: max(7px, 0.55vw);
  margin-left: calc(max(7px, 0.55vw) / -2);
  height: 95vh;
  background: linear-gradient(90deg, #2c2a12, #6a5c22 45%, #25230f);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent);
  mask-image: linear-gradient(180deg, #000 10%, transparent);
}
#vendee:after {
  width: 80%;
  height: 90%;
  background: repeating-linear-gradient(104deg, rgba(255, 214, 140, 0) 0 4%, rgba(255, 214, 140, 0.16) 7%, rgba(255, 214, 140, 0) 11% 15%, rgba(255, 214, 140, 0.1) 19%, rgba(255, 214, 140, 0) 24%);
}
@media (prefers-reduced-motion: reduce) {
  .particules:before {
    animation: none;
  }
}
/* Raccord avec la dernière photo de plongée : les rayons naissent en douceur
   au lieu de commencer d'un trait, et les tiges ont l'épaisseur de celles de
   la photo. */
#vendee:after {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 88%), linear-gradient(90deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 88%), linear-gradient(90deg, #000 30%, transparent);
}
.tiges i {
  width: 1.3vw;
  margin-left: -0.65vw;
  border-radius: 0 0 1vw 1vw;
  background: linear-gradient(90deg, #1d1c0c, #5b4c1b 40%, #3a3213 70%, #17160a);
}
.tiges i {
  filter: brightness(0.62);
}
/* Raccord exact entre la dernière photo de plongée et la colonne d'eau : le
   bas de la photo se fond dans la couleur par laquelle la suite commence. */
.plongee:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(10, 24, 19, 0), #0a1813 96%);
  opacity: clamp(0, calc((var(--pl, 0) - 0.8) / 0.2), 1);
}
#vendee {
  background: linear-gradient(180deg, #0a1813, #08140f);
}
#contact {
  background: linear-gradient(180deg, #08140f, #050b09 60%, #030605);
}
.tiges i {
  width: var(--tige-l, 1.3vw);
  margin-left: calc(var(--tige-l, 1.3vw) / -2);
}
.tiges i {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), #000 22%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), #000 22%, transparent);
}

/* ------------------------------------- La Vendée, sur l'écran de la plongée */
/* Le titre et les six villes se posent directement sur la dernière photo
   (les deux feuilles vues d'en dessous), dans sa moitié basse, sombre. Les
   bulles remontent de part et d'autre des tiges dès que la caméra est posée. */
.vendee-eau {
  position: absolute;
  z-index: 5;
  inset: 0;
  color: var(--cream);
  opacity: clamp(0, calc((var(--pl, 0) - 0.86) / 0.14), 1);
  pointer-events: none;
}
.vendee-eau.lisible {
  pointer-events: auto;
}
.vendee-eau .local-texte {
  position: absolute;
  top: 50%;
  left: max(clamp(28px, 5vw, 90px), (100% - 1560px) / 2);
  width: calc(var(--tige-1, 35vw) - max(clamp(28px, 5vw, 90px), (100% - 1560px) / 2) - 4vw);
  max-width: 470px;
}
.vendee-eau .local-texte:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50px -40px -50px -80px;
  background: radial-gradient(closest-side, rgba(6, 16, 12, 0.72), rgba(6, 16, 12, 0));
  filter: blur(10px);
}
.vendee-eau .local-texte h2 {
  font-size: clamp(32px, 3.2vw, 50px);
}
.vendee-eau .local-texte > p {
  margin: 18px 0 22px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(4, 12, 9, 0.9);
}
.vendee-eau .bulles {
  top: 52%;
  right: auto;
  bottom: 6%;
  width: 26vw;
}
.vendee-eau .groupe-a {
  left: calc(var(--tige-1, 35vw) + 3.2vw);
}
.vendee-eau .groupe-b {
  top: 58%;
  left: calc(var(--tige-2, 69vw) + 3.2vw);
}
.vendee-eau .bulles li {
  top: auto;
  left: 0;
  transform: translateY(160px);
}
.vendee-eau .bulles li:nth-child(1) { top: 0; left: 0; }
.vendee-eau .bulles li:nth-child(2) { top: 36%; left: 4.5vw; }
.vendee-eau .bulles li:nth-child(3) { top: 72%; left: 1vw; }
.vendee-eau .groupe-b li:nth-child(2) { left: 3.5vw; }
.vendee-eau .groupe-b li:nth-child(3) { left: 0; }
.vendee-eau.lisible .bulles li {
  opacity: 1;
  transform: none;
}
.vendee-eau .bulles li span {
  text-shadow: 0 1px 4px rgba(4, 12, 9, 0.9), 0 0 18px rgba(4, 12, 9, 0.7);
}
/* La suite (contact) reprend la colonne d'eau là où la photo la laisse. */
#contact {
  overflow: hidden;
  background: linear-gradient(180deg, #0a1813, #07120e 45%, #030605);
}
#contact:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 80%;
  height: 70%;
  background: repeating-linear-gradient(104deg, rgba(255, 214, 140, 0) 0 4%, rgba(255, 214, 140, 0.12) 7%, rgba(255, 214, 140, 0) 11% 15%, rgba(255, 214, 140, 0.08) 19%, rgba(255, 214, 140, 0) 24%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 88%), linear-gradient(90deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 88%), linear-gradient(90deg, #000 30%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: blur(6px);
  pointer-events: none;
}
#contact .tiges i {
  height: 60vh;
}
@media (max-width: 800px) {
  .vendee-eau .local-texte {
    top: 44%;
    right: 22px;
    left: 22px;
    width: auto;
    max-width: none;
  }
  .vendee-eau .local-texte h2 {
    font-size: 30px;
  }
  .vendee-eau .local-texte > p,
  .vendee-eau .local-texte .text-link {
    display: none;
  }
  .vendee-eau .bulles {
    position: absolute;
    display: block;
    width: auto;
    margin: 0;
    right: 22px;
    bottom: auto;
  }
  .vendee-eau .groupe-a {
    top: 57%;
    left: 22px;
  }
  .vendee-eau .groupe-b {
    top: 57%;
    left: 52%;
  }
  .vendee-eau .bulles li,
  .vendee-eau .bulles li:nth-child(n) {
    position: relative;
    top: auto;
    left: 0;
    margin-bottom: 20px;
    gap: 10px;
  }
  .vendee-eau .bulles li i {
    width: 20px;
  }
  .vendee-eau .bulles li span {
    font-size: 16px;
    white-space: normal;
  }
}
/* L'ancien chapitre #vendee avait son propre fond d'eau : ici la photo suffit. */
#vendee.vendee-eau {
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: none;
}
#vendee.vendee-eau:after {
  display: none;
}

/* ---------------------------------------------------------- Le fond du lac */
/* Sous le contact, la photo du fond : sable clair, caustiques, et le pied des
   deux tiges. Elle est calée en largeur sur les tiges du site, ancrée en bas
   du chapitre, et son haut (de l'eau unie) se fond dans la colonne d'eau. */
#contact.sous-eau:before {
  content: "";
  display: block;
  position: absolute;
  z-index: -2;
  top: auto;
  right: auto;
  bottom: 0;
  left: var(--fond-x, 0px);
  width: var(--fond-w, 100vw);
  height: var(--fond-h, 53vw);
  background:
    linear-gradient(0deg, rgba(4, 9, 7, 0.9), rgba(4, 9, 7, 0) 24%),
    var(--photo-fond, none) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%);
  mask-image: linear-gradient(180deg, transparent, #000 26%);
}
/* Les tiges dessinées rejoignent celles de la photo, sans s'éteindre avant. */
#contact .tiges i {
  height: calc(100% - var(--fond-h, 53vw) * 0.82);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), #000 18%, #000 80%, transparent);
}
#contact {
  background: linear-gradient(180deg, #0a1813, #0b1d16 60%, #0a1712);
}
/* Le calque des tiges ne doit pas occuper de case dans la grille du contact. */
.tiges {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
/* La photo du fond peut être un peu plus haute que le chapitre : son fondu
   démarre assez bas pour ne jamais être coupé net en haut du chapitre. */
#contact.sous-eau:before {
  -webkit-mask-image: linear-gradient(180deg, transparent 17%, #000 44%);
  mask-image: linear-gradient(180deg, transparent 17%, #000 44%);
}
/* Contact sur le fond du lac : mêmes règles de lisibilité que le reste. */
#contact .contact-form label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
}
#contact .contact-form {
  background: linear-gradient(170deg, rgba(24, 20, 10, 0.82), rgba(10, 12, 8, 0.88));
}
#contact .contact-copy p {
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(4, 12, 9, 0.9);
}
#contact .contact-links a {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(4, 12, 9, 0.9);
}
#contact .contact-copy:before {
  background: radial-gradient(100% 85% at 30% 50%, rgba(5, 14, 10, 0.78), rgba(5, 14, 10, 0.4) 55%, rgba(5, 14, 10, 0) 82%);
}
#contact .footer {
  color: #fff;
  font-weight: 600;
}
/* La photo du fond n'est demandée qu'à l'approche du contact. */
#contact.proche {
  --photo-fond: url("assets/lockpit-hero-lac-fond.webp?v=2");
}
/* Le capot découpé et la photo « fermée » ne servent que si la séquence
   photo n'a pas pu se charger : sinon ils restent hors de l'affichage (sans
   image, le capot masquerait l'écran allumé du hero pendant le chargement). */
.sequence:not(.sans-film) .capot,
.sequence:not(.sans-film) .scene-fermee {
  display: none;
}

/* Plongée sans à-coup : les photos glissent pendant leur fondu. Quand l'une
   remonte, le bas qu'elle découvre est de l'eau sombre, pas le lac doré. */
.plongee.sous {
  background: linear-gradient(180deg, rgba(10, 24, 19, 0) 55%, #0b1a14 78%);
}
.plongee img {
  will-change: transform, opacity;
}

/* Pied de page : la navigation entière tient sur la ligne, et passe à la ligne s'il le faut. */
.footer nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Sous les onglets des projets de l'accueil : le lien vers la page des réalisations. */
.onglets .onglets-toutes { margin-left: auto; padding: 6px 0; border-bottom: 1px solid var(--copper-clair); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; text-shadow: 0 1px 4px rgba(var(--ombre), 0.9), 0 2px 22px rgba(var(--ombre), 0.8); }
.onglets .onglets-toutes span { display: inline-block; transition: transform 0.3s; }
.onglets .onglets-toutes:hover span { transform: translateX(5px); }

/* les bulles de la Vendée sont des liens vers les pages locales */
.bulles li a { display: flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.bulles li a:hover span { text-decoration: underline; text-underline-offset: 5px; }
/* le pied de page : Lockpit en Vendée (maillage vers les pages locales) */
.footer { flex-wrap: wrap; }
.footer-vendee { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(247, 241, 227, 0.14); font-size: 12.5px; }
.footer-vendee span { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; color: rgba(247, 241, 227, 0.6); margin-right: 6px; }
.footer-vendee a { color: rgba(247, 241, 227, 0.72); text-decoration: none; } .footer-vendee a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* le pied de page a gagné une ligne (Vendée) : on laisse la place sous le formulaire */
@media (min-width: 801px) { #contact.chapter { padding-bottom: clamp(190px, 17vw, 250px); } }

/* la section Vendée : une phrase par famille, les villes en lien (le texte local que la page de production avait) */
.local-familles { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; max-width: 46ch; font-size: 15px; line-height: 1.5; color: rgba(255, 252, 246, 0.86); }
.local-familles a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 236, 200, 0.45); text-underline-offset: 4px; }
.local-familles a:hover { text-decoration-color: var(--copper-clair); color: var(--copper-clair); }
.local-familles li > a:first-child { font-weight: 600; text-decoration: none; }
/* avec les trois phrases, le bloc Vendée part plus haut et reste dans l'écran */
.vendee-eau .local-texte { top: 36%; }
.vendee-eau .local-familles { margin-bottom: 18px; font-size: 14px; gap: 8px; }

/* 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 mots d'un titre sont dans des boîtes qui masquent ce qui dépasse (pour l'arrivée mot par mot) : l'ombre douce du texte y était coupée en
   rectangles visibles sur les photos. L'ombre passe sur le titre entier (filter), elle suit les lettres et n'a plus de bords. */
:is(h1, h2):has(.mot) { text-shadow: none !important; filter: drop-shadow(0 2px 14px rgba(8, 10, 16, 0.55)); }
