/* Page « Applications mobiles » : la cabane perchée. Repose sur site-panorama.css (barre du haut, polices, couleurs). */
html { scrollbar-gutter: stable; }
.page-cabane { background: #10160d; }
.sequence-cabane { position: relative; height: 1200vh; } /* FIN + 1 écrans */
.sequence-cabane .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #10160d;
}
/* les plans fixes (images nettes) et les films : plein écran, recadrés comme une photo de couverture */
.plan, .film, .film canvas, .film img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan, .film canvas, .film img { object-fit: cover; }
.plan { z-index: 1; }
.plan-balcon { visibility: hidden; }
.stage.au-balcon .plan-balcon { visibility: visible; }
.plan-interieur, .plan-tels, .plan-vigie, .plan-dos, .plan-lunette, .plan-lune, .plan-terre { visibility: hidden; }
.stage.dans-cabane .plan-interieur, .stage.devant-tels .plan-tels, .stage.en-haut .plan-vigie, .stage.vu-dos .plan-dos, .stage.vu-lunette .plan-lunette, .stage.vu-lune .plan-lune, .stage.vu-terre .plan-terre { visibility: visible; }
.stage.espace { background: #000; }
/* la lunette : le rond glisse à droite à l'arrêt (voir caler et jouerVigie) */
.film-oeil, .plan-lunette, .film-alunir { translate: calc(var(--decale, 0) * var(--lun-d, 0px)) 0; box-shadow: calc(-1 * var(--lun-d, 0px) - 2px) 0 0 #000; } /* l'ombre portée noire bouche la bande découverte à gauche */
.film { z-index: 1; visibility: hidden; pointer-events: none; }
.film.actif.pret { visibility: visible; }
.film img { opacity: 0; }
/* l'écorce qui file pendant la montée. De haut en bas : l'écorce du balcon ; la même, retournée, dont le bas se fond dans
   l'écorce du pied de l'arbre ; celle du pied, retournée (raccord en miroir) ; celle du pied, entière (tuile de départ). */
.ecorce {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: max(100%, calc(var(--sh, 100vh) * 16 / 9));
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
.ecorce.actif { visibility: visible; }
.ecorce img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ecorce img + img { margin-top: -1px; }
.ecorce .ecorce-miroir { transform: scaleY(-1); }
.ecorce .ecorce-fondu { position: relative; z-index: 1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 46%); mask-image: linear-gradient(180deg, transparent, #000 46%); }
.ecorce .ecorce-dessous { margin-top: -24%; }
/* --- les textes --- */
.texte {
  position: absolute;
  z-index: 3;
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 0s linear 320ms;
}
.stage.arret-sol .texte-sol, .stage.arret-balcon .texte-balcon, .stage.arret-interieur .texte-interieur, .stage.arret-tels .texte-tels { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 600ms ease; }
.texte h1, .texte h2 { margin: 0; font-family: Bricolage, DM, sans-serif; font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.texte h1 em, .texte h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: var(--copper-clair); }
.texte p { margin: 0; }
.sur { display: flex; align-items: center; gap: 14px; font: 600 clamp(12px, 0.9vw, 15px)/1 DM, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-clair); }
.sur::before { content: ""; width: clamp(34px, 3.6vw, 60px); height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms ease; }
.stage.arret-sol .texte-sol .sur::before, .stage.arret-balcon .texte-balcon .sur::before, .stage.arret-interieur .texte-interieur .sur::before, .stage.arret-tels .texte-tels .sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
/* les mots des titres montent de derrière leur ligne */
.mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.08em 0.06em 0.16em; margin: -0.08em -0.06em -0.16em; }
.mot > span { display: inline-block; transform: translateY(115%) rotate(5deg); transform-origin: 0 100%; transition: transform 260ms ease; }
.stage.arret-sol .texte-sol .mot > span, .stage.arret-balcon .texte-balcon .mot > span, .stage.arret-interieur .texte-interieur .mot > span, .stage.arret-tels .texte-tels .mot > span { transform: none; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms + 160ms); }
/* ce qui se pose après le titre */
.texte .pose, .texte .chapeau, .texte .actions, .texte .reperes, .texte .suite-bloc { opacity: 0; translate: 0 18px; transition: opacity 260ms ease, translate 260ms ease; }
.stage.arret-sol .texte-sol :is(.chapeau, .actions, .reperes), .stage.arret-balcon .texte-balcon .suite-bloc { opacity: 1; translate: 0 0; transition: opacity 800ms ease var(--d, 600ms), translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) var(--d, 600ms); }
.texte .actions { --d: 760ms; }
.texte .reperes { --d: 920ms; }
/* le sol : le titre à gauche, sur le sous-bois sombre ; les repères en bas, sur toute la largeur */
.texte-sol {
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(110px, 16vh, 170px) max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) clamp(22px, 4vh, 44px);
  background: linear-gradient(90deg, rgba(8, 12, 6, 0.72), rgba(8, 12, 6, 0.38) 40%, rgba(8, 12, 6, 0) 62%), linear-gradient(0deg, rgba(8, 12, 6, 0.7), rgba(8, 12, 6, 0) 30%);
}
.texte-sol > :not(.reperes) { max-width: min(54vw, 860px); }
.texte-sol .sur { margin-bottom: clamp(14px, 2.4vh, 24px); }
.texte-sol h1 { font-size: clamp(42px, 5.6vw, 104px); }
.texte-sol .chapeau { max-width: 46ch; margin-top: clamp(16px, 2.6vh, 28px); font-size: clamp(16px, 1.25vw, 22px); line-height: 1.5; color: rgba(247, 241, 227, 0.94); text-shadow: 0 1px 14px rgba(8, 12, 6, 0.8); }
.texte-sol .entete { align-self: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(18px, 3vh, 32px); }
.bouton { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 3px; background: var(--copper); color: #fff; font: 600 clamp(15px, 1.1vw, 18px)/1.1 DM, sans-serif; text-decoration: none; transition: background 200ms ease, scale 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.bouton span, .suite span { display: inline-block; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.bouton:hover { background: #b5683a; scale: 1.03; }
.bouton:hover span { transform: translateX(6px); }
.suite { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(247, 241, 227, 0.5); background: none; color: var(--cream); font: 600 clamp(15px, 1.1vw, 18px)/1.1 DM, sans-serif; cursor: pointer; text-shadow: 0 1px 12px rgba(8, 12, 6, 0.85); transition: border-color 200ms ease; }
.suite span { color: var(--copper-clair); }
.suite:hover { border-color: var(--copper-clair); }
.suite:hover span { transform: translateY(-4px); }
.texte-balcon .suite:hover span { transform: translateX(6px); }
.bouton:focus-visible, .suite:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 5px; }
.reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 54px); margin: 0; padding: clamp(14px, 2.2vh, 22px) 0 0; border-top: 1px solid rgba(247, 241, 227, 0.3); list-style: none; font-size: clamp(13px, 0.98vw, 16px); line-height: 1.4; color: rgba(247, 241, 227, 0.88); }
.reperes b { display: block; margin-bottom: 4px; font: 600 clamp(22px, 2.1vw, 38px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.02em; color: var(--cream); }
/* le balcon : le texte s'étale en bas, sur le plancher (titre à gauche, suite à droite) */
.texte-balcon {
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 96px);
  padding: clamp(90px, 18vh, 190px) max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) clamp(26px, 5vh, 56px);
  background: linear-gradient(0deg, rgba(10, 8, 5, 0.94), rgba(10, 8, 5, 0.72) 50%, rgba(10, 8, 5, 0));
}
.texte-balcon .sur { margin-bottom: clamp(12px, 2vh, 20px); }
.texte-balcon h2 { font-size: clamp(34px, 4.4vw, 80px); }
.suite-bloc { display: grid; gap: clamp(12px, 2vh, 20px); justify-items: start; padding-bottom: 0.3em; }
.suite-bloc p { max-width: 46ch; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.5; color: rgba(247, 241, 227, 0.92); }
/* --- l'intérieur : écrit en clair sur le mur de planches (cadre posé par le script ; --cq = 1 % de la largeur du mur) --- */
.texte-interieur { display: flex; flex-direction: column; justify-content: center; gap: calc(2.2 * var(--cq, 7px)); }
.texte-interieur h2 { font-size: clamp(26px, calc(6.2 * var(--cq, 7px)), 66px); text-shadow: 0 2px 22px rgba(20, 11, 4, 0.6); }
.apports { display: grid; margin: 0; padding: 0; list-style: none; }
.apports li { position: relative; display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: calc(3 * var(--cq, 7px)); align-items: baseline; padding: calc(1.7 * var(--cq, 7px)) 0; opacity: 0; translate: 0 14px; transition: opacity 240ms ease, translate 240ms ease; }
.apports li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(247, 241, 227, 0.4); transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms ease; }
.stage.arret-interieur .apports li { opacity: 1; translate: 0 0; transition: opacity 700ms ease calc(520ms + var(--n, 0) * 110ms), translate 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(520ms + var(--n, 0) * 110ms); }
.stage.arret-interieur .apports li::before { transform: scaleX(1); transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(420ms + var(--n, 0) * 110ms); }
.apports li:nth-child(2) { --n: 1; } .apports li:nth-child(3) { --n: 2; } .apports li:nth-child(4) { --n: 3; } .apports li:nth-child(5) { --n: 4; }
.apports span { font: 600 clamp(11px, calc(1.75 * var(--cq, 7px)), 15px)/1.2 DM, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-clair); }
.apports h3 { margin: 0 0 4px; font: 600 clamp(16px, calc(2.75 * var(--cq, 7px)), 25px)/1.15 Bricolage, DM, sans-serif; letter-spacing: -0.01em; }
.apports p { font-size: clamp(13px, calc(2.05 * var(--cq, 7px)), 17px); line-height: 1.45; color: rgba(247, 241, 227, 0.86); }
.texte-interieur .suite { align-self: flex-start; opacity: 0; transition: opacity 260ms ease, border-color 200ms ease; }
.stage.arret-interieur .texte-interieur .suite { opacity: 1; transition: opacity 700ms ease 1200ms, border-color 200ms ease; }
.texte-interieur .suite:hover span { transform: translateX(6px); }
/* --- devant l'établi : les écrans allumés dans les trois téléphones, leur légende dessous, le titre à gauche --- */
.texte-tels { inset: 0; background: linear-gradient(90deg, rgba(12, 8, 4, 0.72), rgba(12, 8, 4, 0) 26%, rgba(12, 8, 4, 0) 76%, rgba(12, 8, 4, 0.7)), linear-gradient(0deg, rgba(12, 8, 4, 0.82), rgba(12, 8, 4, 0) 30%); }
.tels-titre { position: absolute; left: max(clamp(24px, 3vw, 54px), (var(--sw, 100vw) - 1680px) / 2); top: 50%; width: min(19vw, 330px); translate: 0 -50%; display: grid; gap: clamp(12px, 2vh, 20px); }
.tels-titre h2 { font-size: clamp(28px, 3vw, 54px); text-shadow: 0 2px 24px rgba(12, 8, 4, 0.7); }
.tel { position: absolute; margin: 0; }
.tel img { position: absolute; left: 2.4%; top: 50%; width: 95.2%; height: auto; aspect-ratio: 390 / 844; translate: 0 -50%; object-fit: cover; object-position: 50% 0; border-radius: 8.5% / 3.9%; /* l'écran garde les proportions de la capture : rien n'est rogné */ opacity: 0; filter: brightness(0.5); transition: opacity 300ms ease, filter 300ms ease; }
.stage.arret-tels .tel img { opacity: 1; filter: none; transition: opacity 900ms ease calc(350ms + var(--n, 0) * 220ms), filter 1300ms ease calc(350ms + var(--n, 0) * 220ms); }
.stage.arret-tels .tel.change img { opacity: 0; transition: opacity 240ms ease; }
.tel:nth-of-type(2) { --n: 1; } .tel:nth-of-type(3) { --n: 2; }
.tel figcaption { position: absolute; top: calc(116.5% + 6px); left: -40%; right: -40%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 3px 12px; /* sous le socle en bois : le nom et, s'il y en a un, le lien vers la démo sur la même ligne ; la description dessous */ justify-items: center; text-align: center; opacity: 0; translate: 0 12px; transition: opacity 260ms ease, translate 260ms ease; }
.stage.arret-tels .tel figcaption { opacity: 1; translate: 0 0; transition: opacity 700ms ease calc(700ms + var(--n, 0) * 220ms), translate 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(700ms + var(--n, 0) * 220ms); }
.stage.arret-tels .tel.change figcaption { opacity: 0; transition: opacity 200ms ease; }
.tel figcaption b { font: 600 clamp(17px, 1.45vw, 25px)/1.1 Bricolage, DM, sans-serif; }
.tel figcaption span { order: 3; flex: 0 0 100%; font-size: clamp(12px, 0.92vw, 15px); line-height: 1.32; color: rgba(247, 241, 227, 0.88); text-wrap: balance; }
.tel figcaption a { color: var(--copper-clair); font: 600 clamp(13px, 0.98vw, 16px)/1.2 DM, sans-serif; text-underline-offset: 4px; }
.tels-cote { position: absolute; right: max(clamp(24px, 3vw, 54px), (var(--sw, 100vw) - 1680px) / 2); top: 50%; width: min(17vw, 290px); translate: 0 -50%; display: grid; gap: clamp(12px, 2vh, 20px); justify-items: start; }
.tels-cote p { font-size: clamp(14px, 1.05vw, 18px); line-height: 1.5; color: rgba(247, 241, 227, 0.92); text-shadow: 0 1px 12px rgba(12, 8, 4, 0.8); }
.tels-autres { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(247, 241, 227, 0.5); border-radius: 999px; background: rgba(12, 8, 4, 0.5); color: var(--cream); font: 600 clamp(13px, 0.98vw, 16px)/1.2 DM, sans-serif; text-align: left; cursor: pointer; backdrop-filter: blur(8px); transition: background 200ms ease, border-color 200ms ease, scale 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.tels-autres b { font-weight: 600; }
.tels-autres span { display: inline-block; color: var(--copper-clair); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.tels-autres:hover { background: var(--copper); border-color: var(--copper); scale: 1.04; }
.tels-autres:hover span { color: #fff; transform: translateX(5px); }
.tels-autres:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }
/* --- les cinq écrans du haut : le titre dans le ciel, le détail en colonnes en bas. Un voile de lecture par écran (::before). --- */
.vigie-bloc {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(108px, 15vh, 160px) max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) clamp(22px, 4vh, 44px);
  color: var(--cream);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.vigie-bloc.la { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 500ms ease, visibility 0s; }
.vigie-bloc::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.bloc-jour::before { background: linear-gradient(180deg, rgba(6, 22, 48, 0.5), rgba(6, 22, 48, 0) 34%), linear-gradient(90deg, rgba(6, 22, 48, 0.5), rgba(6, 22, 48, 0) 52%), linear-gradient(0deg, rgba(10, 8, 5, 0.9), rgba(10, 8, 5, 0.66) 24%, rgba(10, 8, 5, 0) 46%); }
.bloc-terre::before { background: linear-gradient(0deg, rgba(3, 3, 5, 0.9), rgba(3, 3, 5, 0.62) 20%, rgba(3, 3, 5, 0) 40%); -webkit-mask-image: linear-gradient(90deg, #000 56%, transparent 70%); mask-image: linear-gradient(90deg, #000 56%, transparent 70%); }
.bloc-lune h2, .bloc-terre h2, .bloc-lunette h2 { text-shadow: none; }
.vigie-bloc h2 { margin: 0; font-family: Bricolage, DM, sans-serif; font-size: clamp(34px, 4.5vw, 84px); font-weight: 600; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 28px rgba(6, 22, 48, 0.45); }
.vigie-bloc h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: #ffd9b0; }
.vigie-bloc p, .vigie-bloc h3 { margin: 0; }
.v-tete { display: grid; gap: clamp(12px, 2vh, 20px); align-content: start; max-width: min(64vw, 1040px); }
.v-tete .sur { color: #fff; }
.vigie-bloc.la .sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
.vigie-bloc.la .mot > span { transform: none; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 80ms + 160ms); }
.v-chapeau { max-width: 52ch; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.5; color: rgba(255, 255, 255, 0.94); text-shadow: 0 1px 16px rgba(6, 22, 48, 0.6); }
.v-tete .actions { margin-top: 4px; }
.lien { color: var(--cream); font: 600 clamp(15px, 1.1vw, 18px)/1.2 DM, sans-serif; text-underline-offset: 5px; text-shadow: 0 1px 12px rgba(6, 22, 48, 0.7); }
.lien:hover { color: #ffd9b0; }
.v-bas { display: grid; gap: clamp(16px, 2.4vw, 44px); margin: 0; padding: 0; list-style: none; }
.v-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.v-quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.v-cinq { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v-bas > li, .v-bas > div { position: relative; padding-top: clamp(12px, 1.8vh, 18px); opacity: 0; translate: 0 16px; transition: opacity 240ms ease, translate 240ms ease; }
.v-bas > li::before, .v-cinq > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(247, 241, 227, 0.45); transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms ease; }
.vigie-bloc.la .v-bas > li, .vigie-bloc.la .v-bas > div { opacity: 1; translate: 0 0; transition: opacity 700ms ease calc(480ms + var(--n, 0) * 90ms), translate 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(480ms + var(--n, 0) * 90ms); }
.vigie-bloc.la .v-bas > li::before, .vigie-bloc.la .v-cinq > div::before { transform: scaleX(1); transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(380ms + var(--n, 0) * 90ms); }
.v-bas > :nth-child(2) { --n: 1; } .v-bas > :nth-child(3) { --n: 2; } .v-bas > :nth-child(4) { --n: 3; } .v-bas > :nth-child(5) { --n: 4; } .v-bas > :nth-child(6) { --n: 5; }
.v-bas li span { display: block; margin-bottom: 6px; font: italic 400 clamp(22px, 2vw, 36px)/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--copper-clair); }
.v-bas h3, .v-cinq dt { margin-bottom: 6px; font: 600 clamp(15px, 1.2vw, 21px)/1.2 Bricolage, DM, sans-serif; letter-spacing: -0.01em; }
.v-bas li p, .v-cinq dd, .v-local p { margin: 0; font-size: clamp(13px, 0.96vw, 16px); line-height: 1.45; color: rgba(247, 241, 227, 0.86); }
.v-trois h3 { font-size: clamp(17px, 1.5vw, 26px); }
.v-trois li p { font-size: clamp(14px, 1.08vw, 18px); }
/* dans la lunette : tout le texte à gauche du rond, sur le noir. Les trois questions en rangs, le numéro à gauche. */
.bloc-lunette { grid-template-rows: auto auto auto; align-content: center; gap: clamp(18px, 3vh, 34px); }
.bloc-lunette > * { max-width: var(--lun-w, 36vw); }
.bloc-lunette h2 { font-size: clamp(32px, 3.9vw, 72px); }
.bloc-lunette .v-trois { grid-template-columns: 1fr; gap: 0; }
.bloc-lunette .v-trois li { display: grid; grid-template-columns: clamp(38px, 3.4vw, 60px) minmax(0, 1fr); column-gap: 8px; padding: clamp(10px, 1.6vh, 16px) 0; }
.bloc-lunette .v-trois li span { grid-row: 1 / 3; margin: 2px 0 0; }
.bloc-lunette .v-trois h3 { margin-bottom: 3px; }
/* sur la lune, les questions : une constellation. Cinq étoiles reliées dans le ciel noir, une question par étoile ;
   l'étoile visée laisse tomber un rayon jusqu'au sol et la réponse s'écrit à son pied, dans la poussière. */
.bloc-lune { display: block; padding-top: clamp(96px, 13vh, 150px); }
.bloc-lune h2 { font-size: clamp(30px, 3.6vw, 68px); }
.bloc-lune .v-tete { gap: clamp(8px, 1.4vh, 16px); }
.faq-traits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.faq-traits polyline { fill: none; stroke: rgba(247, 241, 227, 0.34); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms ease; }
.vigie-bloc.la .faq-traits polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 1900ms cubic-bezier(0.4, 0, 0.2, 1) 350ms; }
.faq-lune { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.faq-lune > div { position: absolute; inset: 0; }
.faq-lune dt { position: absolute; left: var(--x); top: var(--y); margin: 0; opacity: 0; scale: 0.6; transition: opacity 200ms ease, scale 200ms ease; }
.vigie-bloc.la .faq-lune dt { opacity: 1; scale: 1; transition: opacity 500ms ease calc(350ms + var(--n, 0) * 380ms), scale 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(350ms + var(--n, 0) * 380ms); }
/* le bouton : l'étoile (::before) à l'endroit exact du point, le numéro et la question à sa droite */
.faq-lune button { position: absolute; left: 0; top: 0; translate: -22px -50%; display: grid; grid-template-columns: 44px auto; align-items: center; width: max-content; max-width: clamp(170px, 14.5vw, 260px); box-sizing: content-box; padding: 10px 0; border: 0; background: none; color: rgba(247, 241, 227, 0.7); font: 600 clamp(14px, 1.12vw, 20px)/1.2 Bricolage, DM, sans-serif; letter-spacing: -0.01em; text-align: left; cursor: pointer; pointer-events: auto; transition: color 260ms ease; }
.faq-lune button::before { content: ""; justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1), 0 0 16px 4px rgba(255, 244, 220, 0.55); animation: etoile-bat 3.6s ease-in-out calc(var(--n, 0) * -0.9s) infinite alternate; transition: scale 500ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 400ms ease, background 300ms ease; }
@keyframes etoile-bat { from { opacity: 0.7; } to { opacity: 1; } }
.faq-lune button span { display: block; }
.faq-lune button i { display: block; margin-bottom: 2px; font: italic 400 0.9em/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--copper-clair); }
.faq-lune button:hover, .faq-lune .vue button { color: #fff; }
.faq-lune .vue button::before { scale: 1.9; background: #ffe9c4; box-shadow: 0 0 0 4px rgba(255, 220, 160, 0.22), 0 0 26px 9px rgba(255, 214, 150, 0.75); animation: none; }
.faq-lune button:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; border-radius: 6px; }
/* le rayon : de l'étoile jusqu'au sol */
.faq-lune > div::after { content: ""; position: absolute; left: var(--x); top: var(--y); bottom: 27.5%; width: 1px; background: linear-gradient(180deg, rgba(255, 233, 196, 0.95), rgba(255, 233, 196, 0.5) 70%, rgba(255, 233, 196, 0.95)); box-shadow: 0 0 10px 1px rgba(255, 214, 150, 0.45); transform: scaleY(0); transform-origin: 50% 0; transition: transform 200ms ease; }
.vigie-bloc.la .faq-lune .vue::after { transform: scaleY(1); transition: transform 620ms cubic-bezier(0.5, 0, 0.2, 1) 60ms; }
/* la réponse, au pied du rayon : un trait de lumière, puis le texte, sur une ombre douce pour rester lisible sur la poussière */
.faq-lune dd { position: absolute; top: 72.5%; left: clamp(clamp(28px, 5vw, 90px), calc(var(--x) - 2.2em), calc(100% - clamp(28px, 5vw, 90px) - min(29em, 44vw))); width: min(29em, 44vw); margin: 0; padding-top: 0.75em; font: 400 clamp(18px, 1.5vw, 28px)/1.36 "Iowan Old Style", Baskerville, Georgia, serif; color: #fff; text-wrap: pretty; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85); opacity: 0; translate: 0 14px; visibility: hidden; transition: opacity 160ms ease, translate 160ms ease, visibility 0s linear 160ms; }
.faq-lune dd::before { content: ""; position: absolute; z-index: -1; inset: -2.2em -3.4em -2.6em; background: radial-gradient(ellipse closest-side, rgba(3, 3, 5, 0.86), rgba(3, 3, 5, 0.62) 58%, rgba(3, 3, 5, 0)); }
.faq-lune dd::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 233, 196, 0.95), rgba(255, 233, 196, 0.15)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 160ms ease; }
.vigie-bloc.la .faq-lune .vue dd { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition: opacity 520ms ease 520ms, translate 800ms cubic-bezier(0.16, 1, 0.3, 1) 520ms, visibility 0s; }
.vigie-bloc.la .faq-lune .vue dd::after { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 560ms; }
@media (prefers-reduced-motion: reduce) { .faq-lune button::before { animation: none; } }
/* sur la lune, le contact et le pied de page : le contact dans le ciel noir, le pied de page dans la poussière, à gauche de la lanterne */
.bloc-terre .v-tete { max-width: min(58vw, 980px); }
.bloc-terre .v-pied { max-width: min(63%, 1080px); }
.pied-tete { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.pied-tete p { max-width: 54ch; font-size: clamp(13px, 0.96vw, 16px); line-height: 1.45; color: rgba(247, 241, 227, 0.86); }
.v-pied > * { opacity: 1; translate: none; }
/* le pied de page */
.pied-marque img { display: block; height: clamp(34px, 3.2vw, 52px); width: auto; }
.pied-tel { font: 600 clamp(24px, 2.3vw, 40px)/1 Bricolage, DM, sans-serif !important; letter-spacing: -0.02em; text-decoration: none; }
.v-pied { gap: clamp(14px, 2.2vh, 22px); }
.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-meta { 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: 1100px) {
  .v-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-cinq { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bloc-terre .v-pied { max-width: none; }
  .bloc-terre::before { -webkit-mask-image: none; mask-image: none; }
}
/* barre de défilement flottante, par-dessus l'image */
.barre-defil { position: fixed; z-index: 12; top: 6px; right: 0; bottom: 6px; width: 22px; touch-action: none; }
.barre-defil i { position: absolute; top: 0; right: 5px; width: 6px; min-height: 56px; border-radius: 999px; background: rgba(255, 246, 234, 0.26); box-shadow: 0 0 0 1px rgba(20, 12, 6, 0.14); backdrop-filter: blur(6px); transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease; will-change: transform; }
.barre-defil:hover i { width: 10px; background: rgba(255, 246, 234, 0.62); }
.barre-defil.tenue i { width: 10px; background: rgba(255, 246, 234, 0.86); }
@media (hover: none) { .barre-defil { display: none; } }
@media (max-width: 900px) {
  .texte-balcon { grid-template-columns: 1fr; gap: 16px; }
  .reperes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .texte-sol > :not(.reperes) { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mot > span { transform: none; transition: none; }
  .texte .chapeau, .texte .actions, .texte .reperes, .texte .suite-bloc { translate: 0 0; }
  .v-bas > li, .v-bas > div { translate: 0 0; }
}

.tels-cote p .lien { white-space: nowrap; }

/* --- Téléphone (sous 760 px) : pages à arrêts (cabane, marais). Chaque arrêt doit tenir dans un écran de téléphone :
   les titres en haut, les listes longues deviennent une bande qu'on fait glisser du doigt (la carte suivante dépasse à droite). --- */
@media (max-width: 760px) {
  .sequence-cabane .texte-sol h1 { font-size: clamp(32px, 9.4vw, 42px); }
  /* le mur de planches : sur téléphone le texte prend toute la largeur, sous un voile */
  .sequence-cabane .texte-interieur { left: 20px !important; right: 20px; top: 84px !important; bottom: 18px; width: auto !important; min-height: 0 !important; --cq: 3.6px !important; justify-content: flex-start; gap: 10px; }
  .sequence-cabane .texte-interieur::before { content: ""; position: absolute; z-index: -1; inset: -84px -20px -18px; background: rgba(14, 8, 4, 0.66); }
  .sequence-cabane .texte-interieur h2 { font-size: 29px; }
  .sequence-cabane .apports li { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .sequence-cabane .apports span { font-size: 10.5px; }
  .sequence-cabane .apports h3 { margin: 0 0 2px; font-size: 17px; }
  .sequence-cabane .apports p { font-size: 13.5px; line-height: 1.36; }
  /* l'établi : un téléphone à l'écran, le titre au-dessus, le bouton des autres applications tout en bas */
  .sequence-cabane .texte-tels { background: linear-gradient(180deg, rgba(12, 8, 4, 0.82), rgba(12, 8, 4, 0) 26%), linear-gradient(0deg, rgba(12, 8, 4, 0.92), rgba(12, 8, 4, 0) 32%); }
  .sequence-cabane .tels-titre { left: 20px; right: 20px; top: 80px; width: auto; translate: none; gap: 6px; }
  .sequence-cabane .tels-titre h2 { font-size: 28px; }
  .sequence-cabane .tels-cote { left: 20px; right: 20px; top: auto; bottom: 14px; width: auto; translate: none; justify-items: center; }
  .sequence-cabane .tels-cote p { display: none; }
  .sequence-cabane .tels-autres { padding: 9px 16px; font-size: 13px; }
  .sequence-cabane .tel figcaption { left: -55%; right: -55%; }
  .sequence-cabane .tel figcaption b { font-size: 17px; } .sequence-cabane .tel figcaption span { font-size: 12.5px; }
  /* les écrans de la vigie */
  .sequence-cabane .vigie-bloc { padding: 84px 20px 18px; }
  .sequence-cabane .v-tete { max-width: none; gap: 10px; }
  .sequence-cabane .vigie-bloc h2 { font-size: clamp(29px, 8.4vw, 38px); }
  .sequence-cabane .v-chapeau { font-size: 15px; line-height: 1.45; }
  .sequence-cabane :is(.v-six, .v-quatre, .v-cinq, .familles) { display: flex; gap: 14px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .sequence-cabane :is(.v-six, .v-quatre, .v-cinq, .familles)::-webkit-scrollbar { display: none; }
  .sequence-cabane :is(.v-six, .v-quatre, .v-cinq, .familles) > * { flex: 0 0 70%; scroll-snap-align: start; }
  .sequence-cabane :is(.v-six, .v-quatre, .v-cinq) h3 { font-size: 18px; }
  .sequence-cabane :is(.v-six, .v-quatre, .v-cinq) li p { font-size: 14.5px; }
  .sequence-cabane .bloc-lunette::before { background: rgba(4, 7, 14, 0.58); }
  .sequence-cabane .bloc-jour::before { background: linear-gradient(180deg, rgba(6, 22, 48, 0.62), rgba(6, 22, 48, 0) 42%), linear-gradient(0deg, rgba(10, 8, 5, 0.94), rgba(10, 8, 5, 0.74) 26%, rgba(10, 8, 5, 0) 48%); }
}
@media (max-width: 760px) {
  .sequence-cabane .pied-colonnes { grid-template-columns: 0.95fr 1fr 0.95fr 1.12fr; gap: 10px; }
  .sequence-cabane .pied-col a { font-size: 12px; letter-spacing: -0.01em; }
  .sequence-cabane .pied-col h3 { font-size: 9.5px; letter-spacing: 0.1em; }
}

/* la colonne « En Vendée » du pied : les trois piliers, puis les douze villes en ligne compacte */
.pied-villes details { margin-top: 0; border: 0; }
/* la règle générale « summary » (l'accordéon de la FAQ) déborde sur le pied : on la neutralise ici, pour que « Les 12 villes + » se lise comme les autres liens */
.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: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::-webkit-details-marker { display: none; }
.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; }
@media (max-width: 760px) { .sequence-cabane .pied-villes summary { font-size: 12px; letter-spacing: -0.01em; } }
