/* Page « Logiciels métier » : le phare, de haut en bas. Le premier écran est
   le ciel au-dessus de la lanterne ; chaque geste fait descendre le long de
   la tour. Les vues sont posées par le script (translate / scale). */
.page-phare {
  background: #0b3556;
}
.sequence-phare {
  position: relative;
  height: 2600vh;
}
.sequence-phare .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #0b3556;
}
/* la bande : quatre images 16:9 empilées bord à bord, jamais recadrées une
   par une. La bande est aussi large qu'il faut pour couvrir l'écran (largeur
   ou hauteur), centrée, et elle glisse d'un bloc : le raccord entre deux
   images reste continu quel que soit le format de l'écran. */
.bande {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  width: max(100%, calc(100vh * 16 / 9));
  will-change: transform;
}
.vue {
  display: block;
  width: 100%;
  height: auto; /* hauteur réelle de chaque image (les attributs width/height donnent le ratio avant chargement) */
}
/* chaque image recouvre d'un pixel la précédente : aucune jonction ne peut laisser passer le fond */
.bande .vue + .vue { margin-top: -1px; }
/* le mur qui file : la première copie est retournée, pour que la largeur de la
   tour se suive d'une copie à l'autre (bas contre bas, haut contre haut) */
.bande .vue:nth-child(7) {
  transform: scaleY(-1);
}
/* cette tuile retournée est le mur de la pièce : son haut se fond dans la pierre de la tour (large bande, sans ligne) */
.bande .vue.vue-fondu {
  position: relative;
  margin-top: -24%;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 46%);
  mask-image: linear-gradient(0deg, transparent, #000 46%);
}
/* Double haute définition de la pièce, transformé continûment pour le travelling. */
.camera-suite {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}
.camera-suite img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
/* Surface active du moniteur professionnel dans le dernier plan caméra. */
.sequence-phare .ecran {
  position: absolute;
  z-index: 1;
  left: 39.48%;
  top: 17.87%;
  width: 30.31%;
  height: 28.61%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0; /* éteint tant que la pièce n'est pas posée */
  transition: opacity 220ms ease;
  background: #0b0d10;
  border-radius: 0;
  transform: none;
  transform-origin: 50% 50%;
}
.sequence-phare .ecran .appli {
  position: absolute;
  top: -0.25%;
  left: -0.25%;
  width: 100.5%;
  height: 100.5%;
  border: 0;
  background: #f6f1ea;
  transform: none;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}
.sequence-phare .ecran::after {
  content: none;
}
@media (prefers-reduced-motion: reduce) {
  .sequence-phare .piece-texte > * { transition: opacity 160ms linear; transform: none; }
}
/* la pénombre du hero, en haut à gauche sur le ciel : elle s'efface dès qu'on descend */
.stage:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(95deg, rgba(4, 24, 44, 0.55), rgba(4, 24, 44, 0.22) 42%, rgba(4, 24, 44, 0) 62%);
  opacity: calc(1 - clamp(0, calc(var(--d, 0) / 0.06), 1));
  pointer-events: none;
}
.phare-texte {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2);
  max-width: 640px;
  color: var(--cream);
  translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 6px);
  opacity: calc(1 - clamp(0, calc(var(--d, 0) / 0.06), 1));
  pointer-events: none;
}
.stage.entree .phare-texte {
  pointer-events: auto;
}
.phare-texte h1 {
  margin: 14px 0 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(4, 24, 44, 0.7);
}
.phare-texte h1 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
}
.phare-texte .lead {
  max-width: 46ch;
  margin: 22px 0 28px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 6px rgba(4, 24, 44, 0.9);
}
.phare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}
.phare-actions .text-link {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(4, 24, 44, 0.9);
}
/* Dernier plan : le texte est posé sur la pierre, à gauche de l'écran et à sa
   hauteur, comme un cartel à côté d'une œuvre. Pas de boîte : une ombre douce
   sur le mur suffit à la lecture. Sa place se déduit du cadrage final du
   travelling (×1,32, décalage −3 % / −4 %) : bord gauche de la pierre à 17,8 %
   de l'image, écran à 39,48 % / 17,87 %, haut de 28,61 %. */
.sequence-phare .stage {
  --bw: max(var(--sw, 100vw), calc(var(--sh, 100vh) * 16 / 9)); /* --sw, --sh : la scène mesurée par le script, sans la barre de défilement */
  --ph: calc(var(--bw) * 9 / 16);
  --cadre-x: calc((var(--sw, 100vw) - var(--bw)) / 2 - 0.03 * var(--bw));
  --cadre-y: calc((var(--sh, 100vh) - var(--ph)) / 2 - 0.04 * var(--ph));
  --pierre-x: calc(var(--cadre-x) + 1.32 * 0.178 * var(--bw));
  --ecran-x: calc(var(--cadre-x) + 1.32 * 0.3948 * var(--bw));
  --ecran-y: calc(var(--cadre-y) + 1.32 * 0.1787 * var(--ph));
  --ecran-h: calc(1.32 * 0.2861 * var(--ph));
  --ecran-w: calc(1.32 * 0.3031 * var(--bw));
}
.piece-texte {
  --marge-g: clamp(24px, 2.4vw, 48px);
  --marge-d: clamp(36px, 3.4vw, 68px);
  position: absolute;
  z-index: 3;
  left: calc(var(--pierre-x) + var(--marge-g));
  top: var(--ecran-y);
  width: calc(var(--ecran-x) - var(--pierre-x) - var(--marge-g) - var(--marge-d));
  min-height: var(--ecran-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cream);
  pointer-events: none;
}
/* l'ombre sur le mur : large, sans bord, plus dense derrière les lignes */
.piece-texte::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22% -16% -22% -30%;
  background: radial-gradient(closest-side, rgba(15, 9, 5, 0.8), rgba(15, 9, 5, 0.56) 52%, rgba(15, 9, 5, 0) 100%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 700ms ease;
}
.stage.pres .piece-texte {
  pointer-events: auto;
}
.stage.pres .piece-texte::before {
  opacity: 1;
}
/* les lignes montent l'une après l'autre, une fois la caméra posée */
.piece-texte > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stage.pres .piece-texte > * {
  opacity: 1;
  transform: none;
}
.stage.pres .piece-texte > :nth-child(2) { transition-delay: 110ms; }
.stage.pres .piece-texte > :nth-child(3) { transition-delay: 220ms; }
.piece-texte h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(28px, 2.45vw, 50px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 1px 22px rgba(12, 7, 4, 0.75);
}
.piece-texte p {
  max-width: 44ch;
  margin: clamp(14px, 1.2vw, 22px) 0 clamp(18px, 1.6vw, 28px);
  color: rgba(247, 241, 227, 0.92);
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(12, 7, 4, 0.85);
}
/* l'invitation à continuer : pas un bouton d'action, une direction */
.piece-suite {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 241, 227, 0.45);
  background: none;
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(12, 7, 4, 0.85);
  cursor: pointer;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease;
}
.piece-suite:hover { border-color: var(--copper-clair); }
.piece-suite:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 6px; }
.piece-suite span {
  display: inline-block;
  color: var(--copper-clair);
  animation: suite-descend 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes suite-descend {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}
/* la légende sous l'écran : ce qu'on regarde, en deux lignes, sur la pierre */
.piece-legende {
  position: absolute;
  z-index: 3;
  left: var(--ecran-x);
  top: calc(var(--ecran-y) + var(--ecran-h) + clamp(22px, 2vw, 38px));
  width: var(--ecran-w);
  color: var(--cream);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1) 330ms, transform 720ms cubic-bezier(0.16, 1, 0.3, 1) 330ms;
}
.piece-legende::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34% -6% -40% -8%;
  background: radial-gradient(closest-side, rgba(15, 9, 5, 0.74), rgba(15, 9, 5, 0.5) 55%, rgba(15, 9, 5, 0) 100%);
  filter: blur(6px);
}
.stage.pres .piece-legende {
  opacity: 1;
  transform: none;
}
.piece-legende h3 {
  margin: 0 0 8px;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(17px, 1.15vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--copper-clair);
  text-shadow: 0 1px 10px rgba(12, 7, 4, 0.9);
}
.piece-legende p {
  max-width: 68ch;
  margin: 0;
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.94);
  text-shadow: 0 1px 10px rgba(12, 7, 4, 0.9);
}
/* les films de caméra : plein écran, au-dessus de la pièce, sous les textes. Chacun ne se montre que
   lorsque sa première image est prête, sinon ce qu'il y a dessous reste visible. */
.film {
  position: absolute;
  z-index: 1;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.film-avance { z-index: 2; }
.film.actif.pret { visibility: visible; }
.film canvas,
.film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film img { opacity: 0; }
/* --- L'étage des prix --- */
/* la seconde bande : la vue du poste, le mur qui file, la pièce des prix */
.bande-bas {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: max(100%, calc(var(--sh, 100vh) * 16 / 9));
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}
.bande-bas.actif { visibility: visible; }
.bande-bas img { display: block; width: 100%; height: auto; }
.bande-bas img + img { margin-top: -1px; }
.bande-bas .bb-retourne { transform: scaleY(-1); }
.film-prix { z-index: 2; }
/* le titre de la section, dans la vue large : à gauche, sur une pénombre qui vient du bord */
.prix-texte {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(44vw, 720px);
  padding: 90px clamp(40px, 6vw, 110px) 40px max(clamp(28px, 7vw, 110px), (var(--sw, 100vw) - 1560px) / 2);
  color: var(--cream);
  background: linear-gradient(90deg, rgba(38, 22, 10, 0.86), rgba(38, 22, 10, 0.62) 58%, rgba(38, 22, 10, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.stage.prix-large .prix-texte { opacity: 1; pointer-events: auto; }
.prix-texte > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stage.prix-large .prix-texte > * { opacity: 1; transform: none; }
.stage.prix-large .prix-texte > :nth-child(2) { transition-delay: 110ms; }
.stage.prix-large .prix-texte > :nth-child(3) { transition-delay: 220ms; }
.prix-texte h2 {
  margin: 0 0 clamp(14px, 2vh, 24px);
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(32px, 3.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}
.prix-texte h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
  color: var(--copper-clair);
}
.prix-texte p {
  max-width: 36ch;
  margin: 0 0 clamp(12px, 2vh, 22px);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.92);
}
/* les deux formules, peintes sur les panneaux. Une seule grille pour les deux (colonnes posées par le script,
   d'après l'image) : chaque rang est partagé, donc noms, prix et boutons tombent sur la même ligne.
   L'encre est fondue dans la photo (multiply sur le crème, color-dodge sur le cuivre) : elle prend l'ombre
   et le soleil du panneau. .tarifs ne doit donc créer aucun contexte d'empilement (ni z-index, ni opacité). */
.tarifs {
  position: absolute;
  display: grid;
  grid-template-rows: minmax(92px, 1fr) repeat(7, auto) minmax(96px, 1fr); /* barre du haut, sept rangs, note */
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 260ms;
}
.stage.prix-proche .tarifs { visibility: visible; pointer-events: auto; transition: none; }
.tarif {
  position: relative;
  z-index: 3;
  isolation: isolate;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: subgrid;
  box-sizing: border-box;
  padding: 0 clamp(16px, calc(8 * var(--cq, 3.7px)), 42px);
  min-width: 0;
  --retard: 0ms;
}
.tarif-achat { grid-column: 1; color: #3b2a1b; --creux: #fff; --fusion: multiply; }
.tarif-mensuel { grid-column: 3; color: #fff3e2; --creux: #6a3210; --fusion: normal; --retard: 160ms; }
@supports (mix-blend-mode: color-dodge) {
  /* peinture crème éclairée par la photo : cuivre ÷ (1 − encre). Le noir laisse voir le cuivre nu. */
  .tarif-mensuel { color: rgb(116, 188, 236); --creux: #000; --fusion: color-dodge; }
}
.tarif > :not(.tarif-plaque) { mix-blend-mode: var(--fusion); }
/* la plaque : le même morceau de photo que le panneau, recopié dans la page. Invisible au repos (pixel pour pixel
   sur l'image), c'est elle qui permet de décoller le panneau du mur au survol. Géométrie posée par le script. */
.tarif-plaque {
  position: absolute;
  left: 2px;
  right: 2px;
  top: var(--plaque-haut, 0px);
  height: var(--plaque-h, 100%);
  background-repeat: no-repeat;
  box-shadow: 0 0 0 rgba(40, 20, 6, 0);
  transition: box-shadow 600ms ease;
}
.tarif-reflet {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), rgba(255, 255, 255, 0.75), transparent 46%);
  transition: opacity 400ms ease;
}
.tarif-reflet::after { /* un coup de lumière qui balaie le panneau à l'entrée */
  content: "";
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  rotate: 8deg;
}
.tarif-nom {
  grid-row: 2;
  margin: 0;
  padding-bottom: clamp(10px, calc(3.6 * var(--cq, 3.7px)), 16px);
  font: 600 clamp(13px, calc(4.3 * var(--cq, 3.7px)), 18px)/1.3 DM, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tarif-prix {
  grid-row: 3;
  display: flex;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  padding-top: clamp(14px, calc(5 * var(--cq, 3.7px)), 26px);
  white-space: nowrap;
}
.tarif-prix b {
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(40px, calc(21 * var(--cq, 3.7px)), 104px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.tarif-prix span { font-size: clamp(13px, calc(4.6 * var(--cq, 3.7px)), 21px); font-weight: 600; }
.tarif-suite {
  grid-row: 4;
  margin: 0;
  padding: clamp(8px, calc(2.6 * var(--cq, 3.7px)), 14px) 0 clamp(18px, calc(6 * var(--cq, 3.7px)), 30px);
  font-size: clamp(15px, calc(5.4 * var(--cq, 3.7px)), 22px);
  font-weight: 500;
  line-height: 1.4;
}
.tarif ul {
  grid-row: 5 / span 3;
  display: grid;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(14px, calc(4.65 * var(--cq, 3.7px)), 20px);
  font-weight: 500;
  line-height: 1.35;
}
.tarif li { padding: clamp(10px, calc(3.8 * var(--cq, 3.7px)), 17px) 0; }
/* les filets : un trait de pinceau qui part de la gauche */
.tarif-nom, .tarif li { position: relative; }
.tarif-nom::after, .tarif li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 200ms ease;
}
.tarif-nom::after { bottom: 0; height: 2px; }
.tarif li::before { top: 0; opacity: 0.55; }
.tarif-action {
  grid-row: 8;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, calc(6 * var(--cq, 3.7px)), 30px);
  padding: 14px 22px;
  border-radius: 999px;
  background: currentColor;
  font: 600 clamp(15px, calc(4.9 * var(--cq, 3.7px)), 20px)/1.2 DM, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.tarif-action i { font-style: normal; color: var(--creux); } /* lettres laissées en réserve : on voit le panneau */
.tarif-action {
  position: relative;
  cursor: pointer;
  transition: scale 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
}
.tarif-action span { display: inline-block; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.tarif-action:hover, .tarif-action:focus-visible {
  scale: 1.06;
  padding-right: 30px;
  box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 30%, transparent);
}
.tarif-action:hover span, .tarif-action:focus-visible span { transform: translateX(8px); }
.tarif-action:active { scale: 0.98; transition-duration: 90ms; }
.tarif-action:focus-visible { outline: 2px solid currentColor; outline-offset: 9px; }
/* l'encre se pose : chaque rang se découvre de gauche à droite, l'un après l'autre, les deux panneaux en léger décalé */
.tarif-nom, .tarif-prix, .tarif-suite, .tarif li, .tarif-action {
  clip-path: inset(-0.3em 100% -0.3em -0.3em);
  transition: clip-path 180ms ease;
}
.stage.prix-proche :is(.tarif-nom, .tarif-prix, .tarif-suite, .tarif li, .tarif-action) {
  clip-path: inset(-0.3em -0.6em -0.3em -0.3em);
  transition: clip-path 800ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--retard) + var(--rang) * 130ms + 200ms);
}
/* le bouton garde ses propres transitions en plus de l'apparition */
.stage.prix-proche .tarif .tarif-action {
  transition: clip-path 800ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--retard) + 1006ms),
    scale 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stage.prix-proche .tarif .tarif-action { clip-path: inset(-1em -1.2em -1em -1em); }
.stage.prix-proche .tarif-nom::after, .stage.prix-proche .tarif li::before {
  transform: scaleX(1);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--retard) + var(--rang) * 130ms + 320ms);
}
.tarif-nom { --rang: 0; }
.tarif-prix { --rang: 1; }
.tarif-suite { --rang: 2.4; }
.tarif li:nth-child(1) { --rang: 3.4; }
.tarif li:nth-child(2) { --rang: 4.2; }
.tarif li:nth-child(3) { --rang: 5; }
.tarif-action { --rang: 6.2; }
.tarifs-note {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 12px;
  box-sizing: border-box;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(40, 22, 8, 0.78);
  margin: 0;
  font-size: clamp(12px, 0.8vw, 14px);
  line-height: 1.5;
  color: rgba(255, 246, 234, 0.94);
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 200ms ease;
}
.stage.prix-proche .tarifs-note { opacity: 1; transition: opacity 600ms ease 1300ms; }
/* l'ombre du feuillage bouge à peine, sur le mur comme sur l'encre : c'est elle qui colle le texte au panneau */
.prix-feuillage {
  position: absolute;
  z-index: 4;
  inset: -12%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 500ms ease;
  background:
    radial-gradient(ellipse 26% 7% at 34% 30%, rgba(120, 66, 24, 0.3), transparent 72%),
    radial-gradient(ellipse 30% 6% at 62% 47%, rgba(120, 66, 24, 0.26), transparent 72%),
    radial-gradient(ellipse 22% 8% at 46% 72%, rgba(120, 66, 24, 0.22), transparent 72%),
    radial-gradient(ellipse 18% 5% at 76% 24%, rgba(120, 66, 24, 0.24), transparent 72%);
  rotate: 16deg;
}
.stage.prix-proche .prix-feuillage { opacity: 1; animation: feuillage 9s ease-in-out infinite alternate; }
@keyframes feuillage {
  from { translate: -1.1% -0.5%; scale: 1; }
  to { translate: 1.2% 0.7%; scale: 1.035 1; }
}
/* --- Survol d'un panneau : tout l'étage change d'univers ---
   L'achat : plein jour, le mur blanchit, la poussière danse dans le soleil.
   Le mensuel : la nuit tombe, le cuivre rougeoie comme une forge, des braises montent.
   Ordre des couches : étalonnage et mots sous les panneaux (z 3, avant eux dans la page), panneau survolé z 4. */
.univers {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  /* l'univers s'ouvre en cercle depuis le panneau survolé */
  clip-path: circle(0px at var(--origine, 50%) 50%);
  transition: clip-path 700ms cubic-bezier(0.6, 0, 0.3, 1);
}
.stage.prix-proche.univers-achat .univers-jour,
.stage.prix-proche.univers-mensuel .univers-nuit {
  clip-path: circle(150vmax at var(--origine, 50%) 50%);
  transition: clip-path 1100ms cubic-bezier(0.55, 0, 0.2, 1);
}
/* le jour : le mur s'efface, on est en plein ciel au sommet du phare. Nuages qui dérivent, soleil, rayons qui tournent. */
@property --rayon { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.univers-jour {
  --origine: var(--foyer-jour-x, 30%);
  background: #2f7fd6 var(--ciel) 0% 35% / 135% auto;
  animation: derive 70s linear infinite alternate paused;
}
@keyframes derive { to { background-position: 100% 60%; } }
.univers::before, .univers::after { content: ""; position: absolute; inset: 0; }
.univers-jour::before {
  background: repeating-conic-gradient(from var(--rayon) at 6% -6%, rgba(255, 255, 255, 0.2) 0deg 3deg, transparent 3deg 11deg, rgba(255, 255, 255, 0.1) 11deg 13deg, transparent 13deg 24deg);
  -webkit-mask-image: radial-gradient(circle at 6% -6%, #000 10%, transparent 85%);
  mask-image: radial-gradient(circle at 6% -6%, #000 10%, transparent 85%);
  animation: rayons 40s linear infinite paused;
}
@keyframes rayons { to { --rayon: 24deg; } }
.univers-jour::after { background: radial-gradient(circle at 6% -6%, #fff 0, rgba(255, 252, 232, 0.9) 9%, rgba(255, 244, 200, 0.35) 26%, transparent 55%); }
.stage.univers-achat .univers-jour, .stage.univers-achat .univers-jour::before { animation-play-state: running; }
/* des nuages passent devant les panneaux : on est dedans */
.nuages {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.nuages i {
  position: absolute;
  width: 62%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35) 45%, transparent 70%);
  filter: blur(26px);
  animation: passage 26s linear infinite paused;
}
.nuages i:nth-child(1) { top: 62%; left: -70%; }
.nuages i:nth-child(2) { top: -16%; left: -70%; width: 48%; height: 30%; animation-duration: 38s; animation-delay: -14s; opacity: 0.7; }
.nuages i:nth-child(3) { top: 30%; left: -70%; width: 36%; height: 20%; animation-duration: 19s; animation-delay: -6s; opacity: 0.55; }
@keyframes passage { to { translate: 300% 0; } }
.stage.prix-proche.univers-achat .nuages { opacity: 1; }
.stage.univers-achat .nuages i { animation-play-state: running; }
/* la nuit : tout s'éteint, le cuivre rougeoie */
.univers-nuit { --origine: var(--foyer-x, 70%); background: rgba(6, 10, 30, 0.74); } /* un voile plein : le filtre de fond (brightness) était recalculé à chaque image de l'ouverture en cercle */
.univers-nuit::after {
  background: radial-gradient(ellipse 34% 62% at var(--foyer-x, 70%) 52%, rgba(255, 132, 44, 0.5), rgba(255, 96, 20, 0.14) 55%, transparent 75%);
  animation: forge 2.6s ease-in-out infinite alternate;
}
@keyframes forge { from { opacity: 0.72; } to { opacity: 1; } }
/* les mots qui défilent sur le mur, derrière les panneaux */
.mots {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
  font: 600 clamp(84px, 11.5vw, 220px)/1 Bricolage, DM, sans-serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.mots p {
  position: absolute;
  left: 0;
  display: flex;
  width: max-content;
  margin: 0;
  white-space: nowrap;
  animation: defile 38s linear infinite paused;
}
.mots p:nth-child(1) { top: 13%; }
.mots p:nth-child(2) { top: 44%; animation-direction: reverse; animation-duration: 52s; }
.mots p:nth-child(3) { top: 75%; animation-duration: 30s; }
.mots span { padding-right: 0.35em; }
@keyframes defile { to { translate: -50% 0; } }
.mots-jour { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9); }
.mots-jour p:nth-child(2) { color: rgba(255, 255, 255, 0.82); -webkit-text-stroke: 0; text-shadow: 0 6px 40px rgba(20, 70, 150, 0.35); }
.mots-nuit { color: rgba(255, 170, 96, 0.2); text-shadow: 0 0 46px rgba(255, 112, 30, 0.42); }
.mots-nuit p:nth-child(2) { color: transparent; -webkit-text-stroke: 2px rgba(255, 176, 104, 0.6); text-shadow: none; }
.stage.prix-proche.univers-achat .mots-jour,
.stage.prix-proche.univers-mensuel .mots-nuit { opacity: 1; transition: opacity 700ms ease 350ms; }
.stage.prix-proche.univers-achat .mots-jour p,
.stage.prix-proche.univers-mensuel .mots-nuit p { animation-play-state: running; }
/* le panneau survolé se décolle du mur et suit le pointeur ; l'autre s'efface dans l'univers */
.tarif {
  transform-origin: 50% calc(var(--plaque-haut, 0px) + var(--plaque-h, 100%) / 2);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}
.tarif.vedette {
  z-index: 4;
  transform: perspective(1500px) rotateX(calc(var(--ty, 0) * -2.4deg)) rotateY(calc(var(--tx, 0) * 3.2deg)) scale(1.035);
  transition: transform 220ms ease-out, filter 700ms ease;
}
.tarif.vedette .tarif-reflet { opacity: 1; }
.tarif.vedette .tarif-reflet::after { animation: balayage 1100ms cubic-bezier(0.3, 0, 0.2, 1) 80ms both; }
@keyframes balayage { to { translate: 420% 0; } }
.tarif-achat.vedette .tarif-plaque { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 70px 12px rgba(255, 255, 255, 0.6), 0 70px 130px rgba(12, 50, 110, 0.5); }
/* en plein ciel, les deux panneaux flottent : celui de l'achat devant, l'autre s'éloigne */
.tarif-achat.vedette { animation: flotte 4.6s ease-in-out infinite alternate; }
.stage.univers-achat .tarif-mensuel { animation: flotte 6.2s ease-in-out -2s infinite alternate; }
@keyframes flotte { from { translate: 0 7px; } to { translate: 0 -9px; } }
.tarif-mensuel.vedette .tarif-plaque {
  box-shadow: 0 0 0 1px rgba(255, 190, 120, 0.7), 0 0 70px 14px rgba(255, 122, 36, 0.6), 0 0 220px 60px rgba(255, 96, 20, 0.34), 0 50px 120px rgba(0, 0, 0, 0.7);
}
.tarif-mensuel.vedette .tarif-reflet { mix-blend-mode: overlay; background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), rgba(255, 196, 120, 0.9), transparent 50%); }
.stage.univers-achat .tarif-mensuel { transform: scale(0.86) rotate(2.5deg); filter: saturate(0.85) brightness(1.04); }
.stage.univers-achat .tarif-mensuel .tarif-plaque { box-shadow: 0 40px 90px rgba(12, 50, 110, 0.45); }
.stage.univers-mensuel .tarif-achat { filter: brightness(0.3) saturate(0.55); }
.stage.univers-mensuel .prix-feuillage, .stage.univers-achat .prix-feuillage { opacity: 0; }
.stage.univers-achat .tarifs-note { background: rgba(12, 48, 96, 0.84); }
.stage.univers-mensuel .tarifs-note { background: rgba(6, 10, 30, 0.82); }
.tarifs-note { transition: opacity 200ms ease, background 700ms ease; }
/* poussière de soleil ou braises : dessinées par le script */
.prix-poussiere { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .tarif-nom, .tarif-prix, .tarif-suite, .tarif li, .tarif-action { clip-path: none; }
  .tarif-nom::after, .tarif li::before { transform: none; transition: none; }
  .tarifs { transition: none; }
  .stage.prix-proche .prix-feuillage { animation: none; }
  .mots p, .univers-jour, .univers::before, .univers-nuit::after, .nuages i, .tarif, .tarif.vedette .tarif-reflet::after { animation: none !important; }
  .univers { transition-duration: 1ms !important; }
  .tarif.vedette { transform: scale(1.02); }
}
/* --- Le moniteur du poste --- */
.film-avance { transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1); transform-origin: 0 0; }
.moniteur {
  position: absolute;
  z-index: 5;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms ease, visibility 0s linear 360ms;
}
.stage.assis-net .moniteur {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease 150ms;
}
.moniteur-cadre {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: #f4f1ec;
  transform-origin: 0 0;
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.stage.moniteur-ouvert .moniteur-cadre { pointer-events: auto; }
/* assis : toute la dalle est un bouton, l'invitation apparaît au survol ou au clavier */
.moniteur-ouvrir {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 4%;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}
.moniteur-ouvrir span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 9, 5, 0.86);
  color: var(--cream);
  font: 600 14px/1 DM, sans-serif;
  box-shadow: 0 10px 30px -10px rgba(8, 4, 2, 0.8);
  transition: background 200ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.moniteur-ouvrir i { font-style: normal; color: var(--copper-clair); }
.moniteur-ouvrir:hover span,
.moniteur-ouvrir:focus-visible span { background: var(--copper); transform: translateY(-3px); }
.moniteur-ouvrir:hover i,
.moniteur-ouvrir:focus-visible i { color: var(--cream); }
.moniteur-ouvrir:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 3px; }
.stage.moniteur-ouvert .moniteur-ouvrir { display: none; }
/* les onglets au-dessus de l'écran ; écran ouvert, la même barre porte aussi le retour */
.moniteur-barre {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  pointer-events: auto;
  transition: left 1100ms cubic-bezier(0.65, 0, 0.35, 1), top 1100ms cubic-bezier(0.65, 0, 0.35, 1), width 1100ms cubic-bezier(0.65, 0, 0.35, 1);
}
.moniteur-onglets { display: flex; gap: 8px; margin: 0 auto; }
.stage.moniteur-ouvert .moniteur-onglets { margin: 0; }
.moniteur-onglets button,
.moniteur-fermer {
  padding: 8px 15px;
  border: 1px solid rgba(247, 241, 227, 0.32);
  border-radius: 999px;
  background: rgba(15, 9, 5, 0.74);
  color: var(--cream);
  font: 600 14px/1.2 DM, sans-serif;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.moniteur-onglets button:hover,
.moniteur-fermer:hover { border-color: var(--copper-clair); }
.moniteur-onglets button[aria-selected="true"] { background: var(--copper); border-color: var(--copper); }
.moniteur-onglets button:focus-visible,
.moniteur-fermer:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 3px; }
.moniteur-fermer { display: none; align-items: center; gap: 10px; }
.stage.moniteur-ouvert .moniteur-fermer { display: inline-flex; }
@media (prefers-reduced-motion: reduce) {
  .film-avance, .moniteur-cadre, .moniteur-barre { transition: none; }
}
/* --- La tablette et le téléphone --- */
.zone-appareil {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease, visibility 0s linear 360ms;
}
.stage.assis-net .zone-appareil {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease 400ms;
}
.zone-appareil span {
  translate: 0 -130%;
  padding: 8px 14px;
  border: 1px solid rgba(247, 241, 227, 0.32);
  border-radius: 999px;
  background: rgba(15, 9, 5, 0.8);
  color: var(--cream);
  font: 600 13px/1.2 DM, sans-serif;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, translate 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.zone-appareil:hover span,
.zone-appareil:focus-visible span { background: var(--copper); border-color: var(--copper); translate: 0 -150%; }
.zone-appareil:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }
.stage.appareil-actif .zone-appareil,
.stage.moniteur-ouvert .zone-appareil { opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
.stage.appareil-actif .moniteur { opacity: 0; transition: opacity 250ms ease; }
.appareil {
  position: absolute;
  z-index: 6;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.stage.appareil-actif .appareil { visibility: visible; }
.appareil canvas,
.appareil-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* à l'arrivée, l'image nette de face remplace la dernière image du mouvement */
.appareil-net { opacity: 0; transition: opacity 320ms ease; }
.stage.appareil-pret .appareil-net { opacity: 1; }
.appareil-cadre {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: #f4f1ec;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity 420ms ease 200ms;
}
.stage.appareil-pret .appareil-cadre { opacity: 1; pointer-events: auto; }
.appareil-barre {
  position: absolute;
  top: 14px;
  left: 26px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  transition: opacity 400ms ease 200ms;
}
.stage.appareil-pret .appareil-barre { opacity: 1; pointer-events: auto; }
.appareil-barre .moniteur-onglets { margin: 0; }
.appareil-barre .moniteur-fermer { display: inline-flex; }
/* le cartel du poste : la composition suit l'image, qui est symétrique. Le titre en grand en haut, sur toute la largeur ;
   deux notes de part et d'autre du bureau, sur les murs ; l'invitation à s'asseoir au centre, sur le fauteuil.
   Les voiles sombres viennent des bords et du haut : le bureau et la fenêtre restent clairs au milieu. */
.poste-texte {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 21.5vw) minmax(0, 1fr) minmax(0, 21.5vw);
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(100px, 14vh, 150px) max(clamp(28px, 4.5vw, 84px), (var(--sw, 100vw) - 1640px) / 2) clamp(22px, 4.5vh, 50px);
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(15, 9, 5, 0.74), rgba(15, 9, 5, 0.4) 28%, rgba(15, 9, 5, 0) 50%),
    linear-gradient(90deg, rgba(15, 9, 5, 0.8), rgba(15, 9, 5, 0.5) 19%, rgba(15, 9, 5, 0) 32%, rgba(15, 9, 5, 0) 68%, rgba(15, 9, 5, 0.5) 81%, rgba(15, 9, 5, 0.8));
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.stage.cartel-poste .poste-texte { opacity: 1; pointer-events: auto; transition: opacity 600ms ease; }
.poste-texte h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(38px, 5.4vw, 100px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 30px rgba(15, 9, 5, 0.55);
}
.poste-texte h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
  color: var(--copper-clair);
}
.poste-note {
  grid-row: 2;
  align-self: start; /* les deux notes commencent à la même hauteur, quelle que soit leur longueur */
  position: relative;
  margin-top: clamp(36px, 13vh, 130px);
  padding-top: 16px;
  opacity: 0;
  transition: opacity 300ms ease, translate 300ms ease;
}
.poste-note-g { grid-column: 1; translate: -28px 0; }
.poste-note-d { grid-column: 3; translate: 28px 0; }
.poste-note::before { /* le filet se tire, puis la note arrive */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(247, 241, 227, 0.5);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms ease;
}
.poste-note-d::before { transform-origin: 100% 50%; }
.poste-note span {
  font: 400 clamp(26px, 2.4vw, 44px)/1 "Iowan Old Style", Baskerville, Georgia, serif;
  font-style: italic;
  color: var(--copper-clair);
}
.poste-note h3 {
  margin: 6px 0 10px;
  font: 600 clamp(17px, 1.35vw, 24px)/1.15 Bricolage, DM, sans-serif;
  letter-spacing: -0.01em;
}
.poste-note p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  color: rgba(247, 241, 227, 0.92);
  text-shadow: 0 1px 12px rgba(15, 9, 5, 0.8);
}
.stage.cartel-poste .poste-note { opacity: 1; translate: 0 0; transition: opacity 800ms ease var(--d), translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) var(--d); }
.stage.cartel-poste .poste-note::before { transform: scaleX(1); transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) - 140ms); }
.poste-note-g { --d: 620ms; }
.poste-note-d { --d: 800ms; }
.poste-texte .piece-suite {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  opacity: 0;
  translate: 0 14px;
  transition: opacity 300ms ease, translate 300ms ease, border-color 200ms ease;
}
.stage.cartel-poste .poste-texte .piece-suite { opacity: 1; translate: 0 0; transition: opacity 700ms ease 1050ms, translate 900ms cubic-bezier(0.16, 1, 0.3, 1) 1050ms, border-color 200ms ease; }
.stage.cartel-poste .poste-texte .mot > span { transform: none; transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 85ms + 120ms); }
@media (max-width: 900px) {
  .poste-texte { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; gap: 18px; background: rgba(15, 9, 5, 0.72); }
  .poste-note, .poste-texte .piece-suite { grid-column: 1; grid-row: auto; margin-top: 0; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .poste-note { translate: 0 0; }
}
/* l'écran mural s'allume en douceur une fois la pièce posée (sinon : un grand rectangle blanc d'un coup) */
.stage.ecran-allume .sequence-phare .ecran,
.stage.ecran-allume .ecran {
  opacity: 1;
  transition: opacity 1200ms ease 200ms;
}
/* le petit bouton d'essai, sous la légende */
.piece-essai {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid rgba(230, 160, 106, 0.7);
  border-radius: 999px;
  background: rgba(15, 9, 5, 0.5);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.piece-essai:hover { background: var(--copper); border-color: var(--copper); }
.piece-essai:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }
.piece-essai span { transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.piece-essai:hover span { transform: translateX(3px); }
.stage.pres .piece-legende { pointer-events: auto; }
/* --- L'essai : la caméra cadre l'écran, le cockpit s'ouvre dedans --- */
.camera-suite.zoom-anime {
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1);
}
html { scrollbar-gutter: stable; }
html.essai-ouvert { overflow: hidden; }
/* la scène est épinglée à la fenêtre pendant l'essai : même si la page bouge dessous, rien ne se déplace */
html.essai-ouvert .sequence-phare .stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}
html.essai-ouvert .topbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.stage.essai-actif .piece-texte,
.stage.essai-actif .piece-legende {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.essai {
  position: absolute;
  z-index: 6;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.stage.essai-actif .essai { visibility: visible; }
.essai-barre {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 40px;
  color: var(--cream);
  opacity: 0;
  transition: opacity 400ms ease;
}
.essai-barre p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.82);
  text-shadow: 0 1px 8px rgba(12, 7, 4, 0.9);
}
.essai-fermer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(247, 241, 227, 0.4);
  border-radius: 999px;
  background: rgba(15, 9, 5, 0.72);
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.essai-fermer:hover { background: var(--copper); border-color: var(--copper); }
.essai-fermer:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }
.essai-cadre {
  position: absolute;
  border: 0;
  background: #f6f1ea;
  opacity: 0;
  transition: opacity 320ms ease;
}
.stage.essai-pret .essai-cadre,
.stage.essai-pret .essai-barre {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .camera-suite.zoom-anime { transition: none; }
}
/* --- « Ce qui déborde », devant le poste flouté. --b va de 0 à 1 à l'arrivée sur le poste, puis
   retombe à 0 au geste suivant : le flou et le texte suivent ensemble. --- */
.film-tour {
  filter: blur(calc(var(--b, 0) * 16px)) brightness(calc(1 - var(--b, 0) * 0.5)) saturate(calc(1 - var(--b, 0) * 0.25));
  transform: scale(calc(1 + var(--b, 0) * 0.04)); /* le flou ne laisse pas voir les bords */
}
.deborde {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 13vh, 150px) max(clamp(28px, 7vw, 110px), (100% - 1560px) / 2) clamp(40px, 7vh, 90px);
  color: var(--cream);
  opacity: clamp(0, calc((var(--b, 0) - 0.35) / 0.65), 1);
  transform: translateY(calc((1 - var(--b, 0)) * 22px));
  pointer-events: none;
}
.stage.deborde-la .deborde { pointer-events: auto; }
.suite-tete h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(30px, 3.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(12, 7, 4, 0.6);
}
.suite-tete h2 em {
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-weight: 400;
  color: var(--copper-clair);
}
.suite-tete p {
  margin: clamp(12px, 1.6vh, 20px) 0 0;
  font-size: clamp(15px, 1.05vw, 19px);
  color: rgba(247, 241, 227, 0.82);
}
.suite-phrases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.6vh, 44px) clamp(28px, 3.4vw, 60px);
  margin: clamp(26px, 5vh, 60px) 0 0;
  padding: 0;
  list-style: none;
}
.suite-phrases li {
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(247, 241, 227, 0.28);
}
.suite-phrases blockquote {
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(16px, 1.3vw, 23px);
  line-height: 1.38;
}
.suite-phrases blockquote::before { content: "« "; color: var(--copper-clair); }
.suite-phrases blockquote::after { content: " »"; color: var(--copper-clair); }
.suite-phrases li p {
  margin: clamp(8px, 1.4vh, 16px) 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-clair);
}
@media (prefers-reduced-motion: reduce) {
  .piece-suite span { animation: none; }
}
/* Entrée du texte, ligne par ligne. */
.phare-texte > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage.entree .phare-texte > * {
  opacity: 1;
  transform: none;
}
.stage.entree .phare-texte > :nth-child(2) {
  transition-delay: 0.12s;
}
.stage.entree .phare-texte > :nth-child(3) {
  transition-delay: 0.26s;
}
.stage.entree .phare-texte > :nth-child(4) {
  transition-delay: 0.4s;
}
/* l'invitation à descendre, sur le hero : un libellé et un filet où une lumière coule vers le bas,
   en boucle. C'est un bouton : un clic lance la descente. */
/* (la feuille de l'accueil règle aussi `.stage .indice` : on précise le sélecteur pour garder la main) */
.sequence-phare .stage .indice {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.92);
  font: 600 12px/1 DM, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(4, 24, 44, 0.9);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.sequence-phare .stage.entree.haut .indice {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease 1.2s;
}
.indice span { transition: translate 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.indice:hover span { translate: 0 3px; }
.indice:focus-visible { outline: 2px solid var(--copper-clair); outline-offset: 4px; }
.indice i {
  position: relative;
  display: block;
  width: 2px;
  height: 54px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.indice i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(230, 160, 106, 0), var(--copper-clair) 60%, #fff);
  animation: indice-coule 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes indice-coule {
  0% { transform: translateY(-110%); }
  65%, 100% { transform: translateY(240%); }
}
@media (prefers-reduced-motion: reduce) {
  .indice i::after { animation: none; transform: translateY(60%); }
}
@media (max-width: 800px) {
  .phare-texte {
    top: 120px;
    right: 22px;
    left: 22px;
  }
  /* petit écran : pas de place à côté de l'écran, le texte reste en bas dans un bloc sombre */
  .piece-texte {
    top: auto;
    right: 18px;
    bottom: 24px;
    left: 18px;
    width: auto;
    min-height: 0;
    padding: 22px 22px 24px;
    background: rgba(18, 12, 8, 0.84);
  }
  /* le bloc sombre n'apparaît qu'une fois dans la pièce (sinon il masque le phare, vide) */
  .stage:not(.pres) .piece-texte { background: transparent; }
  .piece-texte { transition: background 400ms ease; }
  .piece-texte::before { content: none; }
  .piece-legende { display: none; }
  .suite-phrases { grid-template-columns: 1fr; gap: 16px; }
  .suite-phrases blockquote { font-size: 15px; }
  .piece-texte h2 { font-size: clamp(32px, 10vw, 44px); }
  .piece-texte p { margin: 14px 0 18px; font-size: 15px; }
}

/* --- Barre de défilement flottante : par-dessus l'image, sans rail. Presque transparente au repos,
   plus présente quand on s'en approche, pleine quand on la tient. --- */
.barre-defil {
  position: fixed;
  z-index: 12;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 22px; /* zone d'accroche, plus large que le trait visible */
  touch-action: none;
  cursor: default;
}
.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, box-shadow 220ms ease;
  will-change: transform;
}
.barre-defil:hover i { width: 10px; background: rgba(255, 246, 234, 0.62); box-shadow: 0 0 0 1px rgba(20, 12, 6, 0.3), 0 4px 18px rgba(20, 12, 6, 0.3); }
.barre-defil.tenue i { width: 10px; background: rgba(255, 246, 234, 0.86); box-shadow: 0 0 0 1px rgba(20, 12, 6, 0.36), 0 4px 18px rgba(20, 12, 6, 0.36); }
html.essai-ouvert .barre-defil { display: none; }
@media (hover: none) { .barre-defil { display: none; } }

/* --- L'étage des démonstrations : la salle des quatre écrans --- */
.etage-demos {
  position: absolute;
  z-index: 3; /* au-dessus du texte du sommet (z 2), qui couvre toute la scène */
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 0 0;
}
.etage-demos.actif { visibility: visible; }
/* l'arrivée en dézoom : la descente finit sur la paroi en titane vue de près ; la pierre du phare s'y fond sur
   une large bande (pas de ligne franche). Puis le film du recul découvre la pièce, et l'image nette prend le relais. */
.bande-bas .bd-fondu { /* la paroi, retournée : son bord bas raccorde en miroir avec la tuile d'arrivée, son haut se fond dans la pierre */
  position: relative;
  margin-top: -24%;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 46%);
  mask-image: linear-gradient(0deg, transparent, #000 46%);
}
.demos-piece {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.etage-demos.piece .demos-piece { visibility: visible; }
.prix-piece {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  pointer-events: none;
}
.stage.prix-piece-la .prix-piece { visibility: visible; }
.film-prix-recul { z-index: 2; }
.film-demos { z-index: 2; }
.etage-demos.zoom-anime { transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1); }
.demos { position: absolute; z-index: 3; inset: 0; pointer-events: none; } /* au-dessus de la bande (z 2) */
/* chaque écran du mur : la capture de son cockpit, allumée à l'arrivée, l'une après l'autre */
.demo-ecran {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #0b0907;
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease, box-shadow 320ms ease, scale 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stage.demos-la .demo-ecran { opacity: 1; pointer-events: auto; transition: opacity 900ms ease calc(250ms + var(--n) * 170ms), box-shadow 320ms ease, scale 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.demo-ecran:nth-child(1) { --n: 0; }
.demo-ecran:nth-child(2) { --n: 1; }
.demo-ecran:nth-child(3) { --n: 2; }
.demo-ecran:nth-child(4) { --n: 3; }
.demo-ecran img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  filter: brightness(0.9) saturate(0.92);
  transition: filter 320ms ease, scale 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-ecran::after { /* la lumière des rampes passe aussi sur la dalle */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, rgba(235, 244, 255, 0.16), transparent 38%);
  pointer-events: none;
}
.demo-ecran span {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 9px 8px;
  background: linear-gradient(0deg, rgba(14, 9, 5, 0.92), rgba(14, 9, 5, 0));
  color: var(--cream);
  font: 600 clamp(11px, 0.8vw, 14px)/1.2 DM, sans-serif;
  text-align: left;
  transition: opacity 250ms ease;
}
.demo-ecran b { font-weight: 600; }
.demo-ecran i {
  position: absolute;
  right: 10px;
  bottom: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--copper);
  font-style: normal;
  font-size: 0.86em;
  opacity: 0;
  translate: 8px 0;
  transition: opacity 260ms ease, translate 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-ecran em { font-style: normal; }
.demo-ecran:hover, .demo-ecran:focus-visible {
  z-index: 2;
  scale: 1.045;
  box-shadow: 0 0 0 2px var(--copper-clair), 0 0 46px rgba(255, 170, 96, 0.55), 0 26px 50px rgba(20, 10, 4, 0.55);
  outline: none;
}
.demo-ecran:hover img, .demo-ecran:focus-visible img { filter: none; scale: 1.03; }
.demo-ecran:hover i, .demo-ecran:focus-visible i { opacity: 1; translate: 0 0; }
.demo-ecran:hover b, .demo-ecran:focus-visible b { opacity: 0; } /* écran étroit : le bouton prend la place du nom */
.demo-ecran b { transition: opacity 200ms ease; }
.demo-ecran i { right: 8px; bottom: 6px; }
.stage.demo-actif .demo-ecran { pointer-events: none; scale: 1; box-shadow: none; }
.stage.demo-actif .demo-ecran span { opacity: 0; }
/* le titre de l'étage : il s'étale en bas, sur le sol de l'atelier, là où il y a de la place.
   Le titre à gauche sur une ligne, le texte à droite : on occupe la largeur au lieu d'empiler dans une colonne étroite. */
.demos-texte {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 96px);
  padding: clamp(80px, 16vh, 170px) max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) clamp(26px, 5vh, 56px);
  color: #f2f4f6;
  background: linear-gradient(0deg, rgba(8, 10, 13, 0.95), rgba(8, 10, 13, 0.78) 48%, rgba(8, 10, 13, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.stage.demos-la .demos-texte { opacity: 1; transition: opacity 700ms ease 100ms; }
/* le texte ne prend pas les clics (les postes sont dessous), mais son lien vers les réalisations doit rester cliquable */
.stage.demos-la:not(.demo-actif) .demos-texte a { pointer-events: auto; position: relative; z-index: 2; }
.stage.demo-actif .demos-texte { opacity: 0; transition: opacity 300ms ease; }
.demos-texte h2 {
  margin: 0;
  font-family: Bricolage, DM, sans-serif;
  font-size: clamp(34px, 4.5vw, 78px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.demos-texte h2 em { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: var(--copper-clair); }
.demos-texte p {
  position: relative;
  max-width: 48ch;
  margin: 0 0 0.35em;
  padding-top: 18px;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.55;
  color: rgba(236, 240, 244, 0.9);
  opacity: 0;
  translate: 0 18px;
  transition: opacity 300ms ease, translate 300ms ease;
}
.demos-texte p b { font-weight: 600; color: #fff; }
.demos-texte p::before { /* un filet cuivre qui se tire avant le texte */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--copper-clair);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 300ms ease;
}
.stage.demos-la .demos-texte p { opacity: 1; translate: 0 0; transition: opacity 800ms ease 620ms, translate 900ms cubic-bezier(0.16, 1, 0.3, 1) 620ms; }
.stage.demos-la .demos-texte p::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 480ms; }
@media (max-width: 900px) {
  .demos-texte { grid-template-columns: 1fr; gap: 16px; }
}
/* les mots des titres d'étage : chacun monte de derrière sa ligne, en décalé (découpage fait par le script) */
.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.demos-la .demos-texte .mot > span,
.stage.prix-large .prix-texte .mot > span {
  transform: none;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 85ms + 180ms);
}
@media (prefers-reduced-motion: reduce) {
  .mot > span { transform: none; transition: none; }
  .demos-texte p { translate: 0 0; }
}
/* l'essai d'un cockpit : mêmes barre et cadre que l'essai de l'écran mural */
.demo-essai { position: absolute; z-index: 6; inset: 0; visibility: hidden; pointer-events: none; }
.stage.demo-actif .demo-essai { visibility: visible; }
.stage.demo-pret .demo-essai .essai-cadre, .stage.demo-pret .demo-essai .essai-barre { opacity: 1; pointer-events: auto; }
.demo-onglets { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .etage-demos.zoom-anime, .demo-ecran, .demo-ecran img { transition: none; }
}

/* --- Le rez-de-chaussée, puis la plage : méthode et propriétaire sur le mur blanc, questions et contact dehors,
   pied de page dans le sable --- */
.etage-accueil {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.etage-accueil.actif { visibility: visible; }
.accueil-piece {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.etage-accueil.piece .accueil-piece { visibility: visible; }
.film-accueil, .film-sortie, .film-plage, .film-sable { z-index: 2; }
/* base commune des cinq textes */
.accueil-bloc {
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 320ms;
  --encre: #2a1c11;
  --cuivre-encre: #a04f1a;
}
.stage.accueil-1 .accueil-methode, .stage.accueil-2 .accueil-proprio, .stage.accueil-3 .dehors-questions,
.stage.accueil-4 .dehors-contact, .stage.accueil-5 .pied-sable { visibility: visible; pointer-events: auto; transition: none; }
.accueil-bloc :is(p, h3, summary, li, a) { color: inherit; } /* la feuille commune colore certains textes en crème */
.accueil-bloc h2 { margin: 0; font-family: Bricolage, DM, sans-serif; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.accueil-bloc h2 em { display: inline-block; position: relative; font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-weight: 400; color: var(--cuivre-encre); }
.accueil-bloc h3 { margin: 0; font-family: Bricolage, DM, sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.accueil-bloc p { margin: 0; line-height: 1.5; }
.accueil-bloc ol, .accueil-bloc ul { display: grid; margin: 0; padding: 0; list-style: none; }
/* l'arrivée des éléments : filet tiré, puis le texte monte, en décalé (--n) */
.accueil-bloc .pose {
  position: relative;
  opacity: 0;
  translate: 0 16px;
  transition: opacity 240ms ease, translate 240ms ease;
}
.accueil-bloc .pose.filet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 240ms ease;
}
.stage.accueil-1 .accueil-methode .pose, .stage.accueil-2 .accueil-proprio .pose, .stage.accueil-3 .dehors-questions .pose,
.stage.accueil-4 .dehors-contact .pose, .stage.accueil-5 .pied-sable .pose {
  opacity: 1;
  translate: 0 0;
  transition: opacity 700ms ease calc(420ms + var(--n, 0) * 110ms), translate 900ms cubic-bezier(0.16, 1, 0.3, 1) calc(420ms + var(--n, 0) * 110ms);
}
.stage.accueil-1 .accueil-methode .pose::before, .stage.accueil-2 .accueil-proprio .pose::before, .stage.accueil-3 .dehors-questions .pose::before,
.stage.accueil-4 .dehors-contact .pose::before, .stage.accueil-5 .pied-sable .pose::before {
  transform: scaleX(1);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(320ms + var(--n, 0) * 110ms);
}
.stage.accueil-1 .accueil-methode .mot > span, .stage.accueil-2 .accueil-proprio .mot > span,
.stage.accueil-3 .dehors-questions .mot > span, .stage.accueil-4 .dehors-contact .mot > span {
  transform: none;
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 85ms + 120ms);
}
/* --- dans la pièce : écrit à l'encre sombre sur le mur blanc (fusion avec la photo, comme les prix sur les panneaux) --- */
.accueil-mur {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* part du haut du mur, sous la barre : le bas peut descendre vers la table */
  gap: calc(2.2 * var(--cq, 7px));
  color: var(--encre);
  mix-blend-mode: multiply;
}
.accueil-sur { /* le petit intitulé au-dessus du titre, précédé d'un trait qui se tire */
  display: flex;
  align-items: center;
  gap: calc(1.6 * var(--cq, 7px));
  font: 600 clamp(12px, calc(1.75 * var(--cq, 7px)), 17px)/1 DM, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cuivre-encre) !important;
}
.accueil-sur::before { content: ""; width: calc(7 * var(--cq, 7px)); height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms ease; }
.stage.accueil-1 .accueil-methode .accueil-sur::before, .stage.accueil-2 .accueil-proprio .accueil-sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
.accueil-mur h2 { font-size: clamp(26px, calc(6.5 * var(--cq, 7px)), 72px); }
/* un coup de pinceau sous la partie en italique du titre */
.accueil-mur h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.02em;
  height: 0.09em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(0) rotate(-0.6deg);
  transform-origin: 0 50%;
  transition: transform 240ms ease;
}
.stage.accueil-1 .accueil-methode h2 em::after, .stage.accueil-2 .accueil-proprio h2 em::after { transform: scaleX(1) rotate(-0.6deg); transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 720ms; }
.accueil-mur h3 { font-size: clamp(16px, calc(2.75 * var(--cq, 7px)), 27px); }
.accueil-mur p:not(.accueil-sur) { font-size: clamp(14px, calc(2.2 * var(--cq, 7px)), 19px); line-height: 1.45; }
/* la méthode : quatre étapes, deux par deux, un grand chiffre devant chacune */
.accueil-methode ol { grid-template-columns: 1fr 1fr; gap: calc(2.6 * var(--cq, 7px)) calc(5.5 * var(--cq, 7px)); margin-top: calc(1 * var(--cq, 7px)); }
.accueil-methode li { display: grid; grid-template-columns: auto 1fr; gap: 5px calc(2.2 * var(--cq, 7px)); padding-top: calc(1.8 * var(--cq, 7px)); }
.accueil-methode li span { grid-row: 1 / span 2; font: italic 400 clamp(30px, calc(7 * var(--cq, 7px)), 76px)/0.85 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--cuivre-encre); }
/* propriétaire : trois rangs, l'intitulé à gauche, l'explication à droite */
.accueil-proprio ul { margin-top: calc(1 * var(--cq, 7px)); }
.accueil-proprio li { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: calc(4.5 * var(--cq, 7px)); align-items: baseline; padding: calc(2.3 * var(--cq, 7px)) 0; }
.accueil-proprio h3 { color: var(--cuivre-encre); }
:is(.accueil-methode, .accueil-proprio) li:nth-child(2) { --n: 1; }
:is(.accueil-methode, .accueil-proprio) li:nth-child(3) { --n: 2; }
:is(.accueil-methode, .accueil-proprio) li:nth-child(4) { --n: 3; }
/* --- dehors : le titre en clair sur le paysage, à gauche ; le contenu à lire sur une carte de verre dépoli, à droite.
   La carte reprend le blanc du mur de la pièce et son encre sombre : on lit sans effort, la dune reste visible autour. --- */
.dehors-bloc {
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
  padding: clamp(112px, 17vh, 170px) max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) 0;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(8, 34, 68, 0.42), rgba(8, 34, 68, 0) 30%),
    linear-gradient(90deg, rgba(8, 34, 68, 0.62), rgba(8, 34, 68, 0.34) 32%, rgba(8, 34, 68, 0) 56%);
  opacity: 0;
  transition: opacity 300ms ease, visibility 0s linear 320ms;
  --cuivre-encre: #ffd9b0;
}
.stage.accueil-3 .dehors-questions, .stage.accueil-4 .dehors-contact { opacity: 1; transition: opacity 600ms ease; }
.dehors-tete, .dehors-appel { display: grid; gap: clamp(14px, 2.4vh, 26px); text-shadow: 0 2px 26px rgba(8, 34, 68, 0.5); }
.dehors-bloc h2 { font-size: clamp(36px, 4.7vw, 86px); line-height: 0.98; text-wrap: balance; }
.dehors-bloc .accueil-sur { color: #fff !important; }
.dehors-bloc .accueil-sur::before { width: clamp(36px, 4vw, 64px); }
.stage.accueil-3 .dehors-questions .accueil-sur::before { transform: scaleX(1); transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms; }
.carte-verre {
  padding: clamp(8px, 1.2vh, 14px) clamp(18px, 2vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background: rgba(253, 250, 244, 0.84);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 34px 90px rgba(8, 34, 68, 0.38), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  color: var(--encre);
  text-shadow: none;
  --cuivre-encre: #a04f1a;
}
/* les questions : une liste numérotée, une seule ouverte à la fois, la réponse se déplie sous la question */
.accueil-faq details { padding: 0; opacity: 1; translate: 0 0; }
.accueil-faq details + details { border-top: 1px solid rgba(42, 28, 17, 0.13); }
.accueil-faq summary {
  display: grid;
  grid-template-columns: 2.5em 1fr auto;
  gap: 0 6px;
  align-items: center;
  padding: clamp(11px, 1.7vh, 17px) 0;
  border: 0;
  font: 600 clamp(15px, 1.16vw, 20px)/1.25 DM, sans-serif;
  cursor: pointer;
  list-style: none;
  transition: color 200ms ease;
}
.accueil-faq summary::-webkit-details-marker { display: none; }
/* la feuille commune (questions de l'accueil) colore et fait tourner tout « summary span » : on neutralise ici */
.accueil-faq details { border-bottom: 0; }
.accueil-faq summary:hover { background: none; }
.accueil-faq summary span, .accueil-faq details[open] summary span { color: inherit; transform: none; }
.accueil-faq summary .q-num, .accueil-faq details[open] summary .q-num { color: var(--cuivre-encre); }
.q-num { font: italic 400 1.18em/1 "Iowan Old Style", Baskerville, Georgia, serif; color: var(--cuivre-encre); }
.q-plus {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(42, 28, 17, 0.28);
  border-radius: 50%;
  transition: rotate 380ms cubic-bezier(0.16, 1, 0.3, 1), background 200ms ease, border-color 200ms ease;
}
.q-plus::before, .q-plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: background 200ms ease; }
.q-plus::after { rotate: 90deg; }
.accueil-faq summary:hover { color: var(--cuivre-encre); }
.accueil-faq summary:hover .q-plus { border-color: var(--cuivre-encre); }
.accueil-faq details[open] summary { color: var(--cuivre-encre); }
.accueil-faq details[open] summary .q-plus { rotate: 135deg; background: var(--cuivre-encre); border-color: var(--cuivre-encre); color: #fff; }
.accueil-faq summary:focus-visible { outline: 2px solid var(--cuivre-encre); outline-offset: 2px; border-radius: 3px; }
.accueil-faq details p { max-width: 62ch; padding: 0 44px clamp(12px, 2vh, 18px) calc(2.5em + 6px); font-size: clamp(14px, 1.02vw, 17px); line-height: 1.55; color: #4b3a2b; }
/* la réponse se déplie en douceur là où le navigateur le permet */
@supports (interpolate-size: allow-keywords) {
  .accueil-faq { interpolate-size: allow-keywords; }
  .accueil-faq details::details-content { block-size: 0; overflow: clip; transition: block-size 420ms cubic-bezier(0.16, 1, 0.3, 1), content-visibility 420ms allow-discrete; }
  .accueil-faq details[open]::details-content { block-size: auto; }
}
/* la carte arrive d'un bloc, ses rangs se posent en cascade */
.carte-verre { opacity: 0; translate: 0 26px; transition: opacity 300ms ease, translate 300ms ease; }
.stage.accueil-3 .dehors-questions .carte-verre, .stage.accueil-4 .dehors-contact .carte-verre { opacity: 1; translate: 0 0; transition: opacity 800ms ease 260ms, translate 1000ms cubic-bezier(0.16, 1, 0.3, 1) 260ms; }
.accueil-faq summary > * { opacity: 0; translate: -10px 0; transition: opacity 240ms ease, translate 240ms ease; }
.stage.accueil-3 .accueil-faq summary > * { opacity: 1; translate: 0 0; transition: opacity 600ms ease calc(520ms + var(--n, 0) * 70ms), translate 800ms cubic-bezier(0.16, 1, 0.3, 1) calc(520ms + var(--n, 0) * 70ms); }
.accueil-faq details:nth-child(2) { --n: 1; }
.accueil-faq details:nth-child(3) { --n: 2; }
.accueil-faq details:nth-child(4) { --n: 3; }
.accueil-faq details:nth-child(5) { --n: 4; }
.accueil-faq details:nth-child(6) { --n: 5; }
.accueil-faq details:nth-child(7) { --n: 6; }
/* le contact : l'invitation à gauche sur le paysage, le local sur sa carte à droite */
.dehors-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); }
.dehors-appel p { max-width: 44ch; font-size: clamp(16px, 1.25vw, 22px); }
.accueil-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; --n: 1; }
.accueil-actions a { font: 600 clamp(15px, 1.15vw, 19px)/1.2 DM, sans-serif; text-underline-offset: 5px; }
.accueil-actions a:hover { color: var(--cuivre-encre); }
.accueil-bloc a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.accueil-actions .accueil-bouton {
  display: inline-flex;
  padding: 16px 26px;
  border-radius: 999px;
  background: #fff;
  color: #123a63;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 14px 40px rgba(9, 40, 78, 0.35);
  transition: scale 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.accueil-bouton i { font-style: normal; }
.accueil-bouton span { display: inline-block; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.accueil-actions .accueil-bouton:hover { scale: 1.05; padding-right: 34px; color: #123a63; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.3), 0 14px 40px rgba(9, 40, 78, 0.35); }
.accueil-bouton:hover span { transform: translateX(8px); }
.accueil-local { display: grid; gap: 12px; align-content: start; padding: clamp(20px, 3vh, 32px) clamp(20px, 2.2vw, 36px); }
.accueil-local h3 { font-size: clamp(20px, 1.8vw, 30px); }
.accueil-local p { font-size: clamp(14px, 1.05vw, 18px); color: #4b3a2b; }
.accueil-local nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; font: 500 clamp(13px, 0.95vw, 15px)/1 DM, sans-serif; }
.accueil-local nav a { padding: 8px 12px; border: 1px solid rgba(42, 28, 17, 0.22); border-radius: 999px; text-decoration: none; transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }
.accueil-local nav a:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
/* --- le pied de page : posé sur le sable du premier plan (doux, hors du point), face à la mer. Encre sombre fondue dans la photo.
   À gauche la marque, ce qu'on fait en une phrase, le téléphone et le rendez-vous ; à droite quatre colonnes de liens. --- */
.pied-sable {
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr);
  gap: clamp(22px, 3vh, 40px) clamp(28px, 6vw, 110px);
  padding: 0 max(clamp(28px, 5vw, 90px), (var(--sw, 100vw) - 1560px) / 2) clamp(20px, 3.4vh, 38px);
  color: var(--encre);
  mix-blend-mode: multiply;
}
.pied-tete { display: grid; gap: clamp(12px, 2vh, 20px); align-content: start; }
.pied-marque img { display: block; height: clamp(46px, 4.6vw, 74px); width: auto; }
.pied-tete p { max-width: 30ch; font-size: clamp(15px, 1.15vw, 19px); line-height: 1.45; }
.pied-joindre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.pied-tel { font: 600 clamp(24px, 2.3vw, 40px)/1 Bricolage, DM, sans-serif; letter-spacing: -0.02em; text-decoration: none; }
.pied-rdv { display: inline-flex; flex: none; padding: 13px 20px; border-radius: 999px; background: var(--encre); font: 600 clamp(14px, 1.05vw, 17px)/1.1 DM, sans-serif; text-decoration: none; transition: scale 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms ease; }
.pied-rdv i { font-style: normal; color: #fff; } /* lettres en réserve : on voit le sable */
.pied-rdv span { display: inline-block; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.pied-rdv:hover { scale: 1.05; box-shadow: 0 0 0 7px rgba(42, 28, 17, 0.22); }
.pied-rdv:hover span { transform: translateX(5px); }
.pied-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 54px); align-content: start; }
.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(--cuivre-encre); }
.pied-col ul { gap: clamp(7px, 1.1vh, 11px); padding-top: 14px; border-top: 1px solid rgba(42, 28, 17, 0.3); }
.pied-col a { position: relative; font: 500 clamp(15px, 1.1vw, 18px)/1.3 DM, sans-serif; text-decoration: none; }
.pied-col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.pied-col a:hover::after, .pied-col a:focus-visible::after { transform: scaleX(1); }
.pied-sable a:hover { color: var(--cuivre-encre); }
.pied-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: clamp(12px, 1.8vh, 18px); border-top: 1px solid rgba(42, 28, 17, 0.3); font: 600 clamp(12px, 0.88vw, 14px)/1 DM, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 1000px) {
  .pied-sable { grid-template-columns: 1fr; }
  .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dehors-bloc, .dehors-contact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .accueil-bloc .pose { translate: 0 0; }
}

/* le trait du balayage entre deux textes : cuivre sur le mur, blanc dans le ciel. Position posée par le script, au fil du défilement. */
.lien-trait {
  position: absolute;
  z-index: 5;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #a04f1a 12%, #a04f1a 88%, transparent);
  box-shadow: 0 0 22px 3px rgba(160, 79, 26, 0.35);
  opacity: 0;
  pointer-events: none;
}
.lien-trait.ciel { background: linear-gradient(180deg, transparent, #fff 10%, #fff 62%, transparent 88%); box-shadow: 0 0 26px 4px rgba(255, 255, 255, 0.5); }

.demos-texte p a { color: #fff; font-weight: 600; text-underline-offset: 4px; white-space: nowrap; }
.demos-texte p a:hover { color: var(--copper-clair); }

/* --- Téléphone (sous 760 px) : l'arrêt « tout le reste qui déborde » tient dans un écran, les six phrases en bande à faire glisser du doigt --- */
@media (max-width: 760px) {
  .deborde { justify-content: center; padding: 84px 20px 24px; }
  .suite-tete h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .suite-phrases { display: flex; grid-template-columns: none; gap: 16px; margin: 28px -20px 0; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .suite-phrases::-webkit-scrollbar { display: none; }
  .suite-phrases li { flex: 0 0 76%; scroll-snap-align: start; }
  .suite-phrases blockquote { font-size: 19px; line-height: 1.4; }
}

/* --- Téléphone (sous 760 px) : l'étage des prix. Les deux panneaux de l'image ne tiennent pas dans un écran en hauteur :
   les formules deviennent deux plaques l'une sous l'autre (crème pour l'achat, cuivre pour le mensuel), par-dessus la pièce. --- */
@media (max-width: 760px) {
  .prix-texte { inset: 0; width: auto; padding: 96px 22px 40px; justify-content: center; background: linear-gradient(180deg, rgba(38, 22, 10, 0.84), rgba(38, 22, 10, 0.62)); }
  .tarifs { left: 16px !important; right: 16px; top: 78px !important; bottom: 14px; height: auto !important; display: flex !important; flex-direction: column; gap: 10px; --cq: 3.2px !important; }
  .tarif { display: block; flex: 1 1 0; min-height: 0; padding: 14px 18px 12px; border-radius: 10px; overflow: hidden; animation: none !important; box-shadow: 0 18px 40px rgba(20, 10, 4, 0.4); }
  .tarif-achat { background: #f1e2c6; color: #3b2a1b; }
  .tarif-mensuel { background: #9c4a1c; color: #fff3e2; --creux: #6a3210; --fusion: normal; }
  .tarif-plaque { display: none; }
  .tarif-prix b { font-size: 42px; }
  .tarif ul { display: block; margin-top: 6px; font-size: 14px; }
  .tarif li { padding: 6px 0; }
  .tarifs-note { position: static; flex: 0 0 auto; padding: 8px 12px; font-size: 11.5px; line-height: 1.4; }
  /* la méthode : quatre étapes en bande à faire glisser */
  .accueil-methode ol { display: flex; gap: 18px; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
  .accueil-methode ol::-webkit-scrollbar { display: none; }
  .accueil-methode li { flex: 0 0 78%; scroll-snap-align: start; }
}

/* « Les 12 villes + » du pied : la règle générale « summary » (l'accordéon de la FAQ, site-panorama.css) y mettait 30 px de marge, le « + » à l'autre bout et un retour à la ligne. On le remet au rang des autres liens. */
.pied-villes details { margin: 0; border: 0; }
.pied-villes summary { display: inline-flex; align-items: baseline; justify-content: flex-start; gap: 8px; padding: 0; white-space: nowrap; background: none; list-style: none; cursor: pointer; color: inherit; font: 500 clamp(15px, 1.1vw, 18px)/1.3 DM, sans-serif; }
.pied-villes summary::-webkit-details-marker { display: none; }
.pied-villes summary:hover { background: none; color: var(--cuivre-encre); text-decoration: underline; text-underline-offset: 4px; }
.pied-villes summary:focus-visible { outline: 2px solid var(--cuivre-encre); outline-offset: 4px; border-radius: 4px; }
.pied-villes summary span { display: inline-block; font: inherit; line-height: inherit; color: var(--cuivre-encre); 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; }
