/* Lumikréa — prototype de page d'accueil immersive (mobile d'abord).
   Couleurs du moodboard 01 ; capitales Onest, mot lumineux Sacramento. */
:root {
  --nuit: #17182D;
  --indigo: #30385B;
  --ivoire: #F4EFE6;
  --texte: #D9D4CB;
  --halo: #FFD23F;
  --caps: "Onest", "Arial Narrow", system-ui, sans-serif;
  --script: "Sacramento", "Brush Script MT", cursive;
  --gutter: max(16px, 7.8vw);
  /* Hauteur réservée au header : les textes du hero et des scènes collées commencent en dessous. */
  --entete: calc(env(safe-area-inset-top, 0px) + 76px + var(--annonce, 0px));
  --ombre: 0 2px 24px rgba(8, 8, 20, .62), 0 1px 3px rgba(8, 8, 20, .5);
  color-scheme: dark;
}
/* Bandeau « Livraison offerte » affiché en haut de l'en-tête : les textes descendent d'autant. */
:root:has(.annonce:not([hidden])) { --annonce: 2.25rem; }

* { box-sizing: border-box; }
html { background: var(--nuit); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--ivoire); font-family: var(--caps); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Hero piloté par le scroll ---------- */
.hero { position: relative; height: var(--hero-h, 1000svh); }
/* La scène prend la GRANDE hauteur d'écran (barres du navigateur masquées) : quand elles se replient au scroll,
   l'image remplit toujours tout l'écran, sans bande en bas. Les textes du bas sont recalés sur la zone visible. */
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--nuit); --barres: calc(100lvh - 100svh); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--nuit) center / cover no-repeat; }
/* Extinction : le bleu nuit part des quatre coins et se referme vers le centre.
   --h = rayon du trou clair (1,25 = rien de visible, 0 = écran entièrement bleu nuit). */
/* Les arrêts restent ≥ 0 (Safari abandonne le dégradé quand ils deviennent négatifs, et la pièce réapparaissait
   derrière le titre) ; un aplat bleu nuit (--plein) prend le relais à la fermeture et reste derrière le titre. */
.eteint { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle farthest-corner at 50% 50%, rgba(23, 24, 45, 0) max(0%, calc(var(--h, 1.25) * 100% - 30%)), rgba(23, 24, 45, .72) max(0%, calc(var(--h, 1.25) * 100% - 12%)), var(--nuit) max(0%, calc(var(--h, 1.25) * 100%))); }
.eteint::after { content: ""; position: absolute; inset: 0; background: var(--nuit); opacity: var(--plein, 0); }


/* Chapitres */
.chapter { position: absolute; opacity: var(--a, 0); transform: translateY(calc(var(--y, 0) * 1px)); will-change: opacity, transform; }
.title { margin: 0; font-weight: 400; }
.caps { display: block; font: 800 15.6vw/.84 var(--caps); letter-spacing: -.03em; text-transform: uppercase; color: var(--ivoire); text-shadow: var(--ombre); }
/* Chapitres du hero : capitales de plusieurs mots (« Quelques minutes ») sur deux lignes au plus. */
.chapter .caps { font-size: 12.4vw; max-width: 86vw; }
.script { display: block; width: max-content; font: 400 19vw/.82 var(--script); color: var(--halo); margin: -.06em 0 0 .46em; transform: rotate(-4deg); transform-origin: 0 60%;
  text-shadow: 0 0 .05em rgba(255, 210, 63, .9), 0 0 .22em rgba(255, 160, 40, .55);
  clip-path: inset(-30% calc((1 - var(--s, 0)) * 100%) -40% -6%); }
.sub { margin: .9em 0 0; max-width: 64vw; font: 400 clamp(15px, 4.3vw, 19px)/1.3 var(--caps); color: var(--ivoire); text-shadow: var(--ombre); }
.sub .w { opacity: var(--w, .26); }

.pos-1 { left: var(--gutter); top: calc(var(--entete) + 7svh); }
.pos-2 { right: var(--gutter); top: calc(var(--entete) + 11svh); text-align: right; }
.pos-2 .script { margin-left: auto; margin-right: .1em; transform-origin: 100% 60%; }
.pos-2 .sub { margin-left: auto; }
.pos-3 { left: var(--gutter); top: calc(var(--entete) + 9svh); }
.pos-4 { left: var(--gutter); top: calc(var(--entete) + 6svh); }
.pos-4 .sub { position: absolute; left: 0; top: 70svh; width: 86vw; max-width: none; opacity: var(--sa, 0); }

/* Fin du hero : titre écrit par la boule (chaque .l révélée de gauche à droite par --r, la boule au bord), disposé
   comme « Dessinez dans la lumière. » : capitales, puis la ligne au feutre jaune ; fil laissé par la boule qui descend. */
.fin-bloc { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-58%); text-align: center; pointer-events: none; }
.titre { margin: 0; font-weight: 400; }
.titre .l { display: block; width: max-content; margin: 0 auto; padding: 0 .03em; clip-path: inset(-30% calc((1 - var(--r, 0)) * 100%) -40% -3%); }
.titre .caps { font-size: 13vw; line-height: .86; }
.titre .script { max-width: 92vw; margin-top: .04em; font-size: 13vw; line-height: 1; transform: rotate(-4deg); transform-origin: 50% 60%; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Galerie (début de la suite). Téléphone : carrousel horizontal, une carte par défilement (scroll-snap) ; sections.js
   donne à chaque carte sa distance au centre (--d, en cartes) et --k = min(1, |d|) : la carte du centre est droite et
   pleine, les voisines plus petites, inclinées et plus sombres ; l'image glisse un peu à l'intérieur (parallaxe).
   Ouverture (.is-ouverte) : chaque cadre se découvre de haut en bas comme un rideau, l'un après l'autre (--i), et
   l'image se pose (scale / translate). Seules des propriétés composées bougent. */
.galerie { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.4svh; padding: 7svh var(--gutter) 10svh; text-align: center; }
.g-tete { display: flex; flex-direction: column; align-items: center; gap: 1.6svh; }
.galerie .g-titre { margin: 0; }
.g-titre .script { margin-left: auto; margin-right: auto; transform-origin: 50% 60%; }
.g-sous { max-width: 34ch; margin: 0; font: 400 clamp(14px, 3.9vw, 17px)/1.45 var(--caps); color: var(--texte); }
/* Téléphone : titre, texte et bouton forment un bloc calé à gauche sur la gouttière, bien aéré ;
   bouton réduit en proportion du texte. Le carrousel reste pleine largeur. */
@media (orientation: portrait) {
  .galerie { align-items: flex-start; gap: 3.2svh; text-align: left; }
  .g-tete { align-items: flex-start; gap: 2.4svh; }
  .g-titre .script { margin-left: .08em; margin-right: 0; transform-origin: 0 60%; }
  .g-sous { max-width: 32ch; }
  .galerie .g-cta { min-height: 44px; padding: 0 24px; font-size: 14px; }
}
.g-piste { position: relative; display: flex; gap: 14px; width: 100vw; margin: 0 calc(-1 * var(--gutter)); padding: 1.6svh 16vw 2.4svh;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-piste::-webkit-scrollbar { display: none; }
.g-carte { --rond: 22px; position: relative; flex: 0 0 68vw; aspect-ratio: 3 / 4; max-height: 54svh; margin: 0; overflow: hidden; border-radius: var(--rond);
  scroll-snap-align: center; background: #14141c;
  transform: translateY(calc(var(--k, 0) * 22px)) rotate(calc(var(--d, 0) * 5deg)) scale(calc(1 - var(--k, 0) * .14));
  filter: brightness(calc(1 - var(--k, 0) * .45));
  clip-path: inset(0 0 100% 0 round var(--rond)); transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .16s); }
.g-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  scale: 1.22; translate: 0 -8%; transform: translateX(calc(var(--d, 0) * -9%));
  transition: scale 1.5s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .16s), translate 1.5s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * .16s); }
.galerie.is-ouverte .g-carte { clip-path: inset(0 0 0 0 round var(--rond)); }
.galerie.is-ouverte .g-carte img { scale: 1.1; translate: 0 0; }
.g-carte figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 18px 18px; text-align: left;
  background: linear-gradient(to bottom, rgba(7, 7, 13, 0), rgba(7, 7, 13, .72)); font: 600 clamp(16px, 4.6vw, 20px)/1.15 var(--caps); color: var(--ivoire); }
.g-tag { padding: 5px 12px; border-radius: 999px; background: rgba(244, 239, 230, .16); backdrop-filter: blur(6px); font: 500 12px/1 var(--caps); letter-spacing: .02em; }
.g-fleches { display: flex; gap: 14px; }
.g-fleche { width: 52px; height: 52px; border: 1.5px solid rgba(244, 239, 230, .35); border-radius: 50%; background: none; color: var(--ivoire); font: 400 20px/1 var(--caps); cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.g-fleche:hover, .g-fleche:focus-visible { border-color: var(--halo); color: var(--halo); }
.g-fleche:focus-visible { outline: 2px solid var(--halo); outline-offset: 3px; }
.g-fleche:disabled { opacity: .3; cursor: default; }

/* La boule (et la tête du fil) : cœur blanc, halo doré, éclat qui respire. */
.boule, .tete { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, #fff6d6 30%, var(--halo) 60%, rgba(255, 210, 63, 0) 74%); will-change: transform; }
.boule { width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; box-shadow: 0 0 16px 5px rgba(255, 200, 60, .75); }
.boule::after, .tete::after { content: ""; position: absolute; inset: -160%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 70, .42) 0%, rgba(255, 170, 40, .14) 38%, rgba(255, 170, 40, 0) 70%);
  animation: respire 2.6s ease-in-out infinite alternate; }
@keyframes respire { from { transform: scale(.78); opacity: .65; } to { transform: scale(1.18); opacity: 1; } }

/* Bouton : texte souligné d'un trait de feutre doré */
.cta { position: relative; display: inline-block; padding: 10px 0 18px; font: 700 clamp(13px, 3.3vw, 16px)/1 var(--caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ivoire); text-shadow: var(--ombre); }
.cta-trait { position: absolute; left: -2%; bottom: 2px; width: 104%; height: 14px; overflow: visible; }
/* ---------- Ouverture du hero ----------
   À l'apparition du site (body.is-ouvert) : le logo sort du flou, la phrase s'écrit au feutre, puis le bouton se
   souligne et l'invitation à défiler apparaît. Au premier scroll, tout s'efface en montant (--o, réglé par app.js). */
.ouverture { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2svh;
  padding: var(--entete) var(--gutter) calc(var(--barres, 0px) + 12svh); text-align: center; pointer-events: none;
  opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * -48px)); }
.ouverture::before { content: ""; position: absolute; inset: 0; z-index: -1;
  /* Voile neutre (pas bleu) resserré derrière le texte : la vidéo garde ses couleurs chaudes, le bas reste net. */
  background: radial-gradient(ellipse 78% 30% at 50% 42%, rgba(8, 7, 14, .62) 0%, rgba(8, 7, 14, .34) 52%, rgba(8, 7, 14, 0) 100%); }
.ouverture a { pointer-events: auto; }
/* Titre : les capitales sortent du flou, puis « dans la lumière. » s'écrit au feutre. */
.o-titre { margin: 0; font-weight: 400; }
.o-titre .caps { font-size: 15vw; line-height: .86; opacity: 0; transform: translateY(14px) scale(.97); filter: blur(10px);
  transition: opacity 1s ease .15s, transform 1.3s cubic-bezier(.2, .7, .2, 1) .15s, filter 1s ease .15s; }
.o-titre .script { width: auto; max-width: 90vw; margin: .02em auto 0; font-size: 13vw; line-height: 1; transform: rotate(-4deg); transform-origin: 50% 60%;
  clip-path: inset(-30% 100% -40% -6%); transition: clip-path 1.5s cubic-bezier(.45, .05, .25, 1) .95s; }
.o-sous { max-width: 30ch; margin: 1.2svh auto 0; font: 400 clamp(15px, 4.3vw, 19px)/1.4 var(--caps); color: var(--ivoire); text-shadow: var(--ombre);
  opacity: 0; transform: translateY(8px); transition: opacity .8s ease 2.1s, transform .8s ease 2.1s; }
.o-prix { margin: 0; font: 600 13px/1.4 var(--caps); letter-spacing: .04em; color: var(--halo); text-shadow: var(--ombre); opacity: 0; transition: opacity .7s ease 2.4s; }
.o-actions { display: flex; flex-direction: column; align-items: center; gap: 1.2svh; margin-top: .6svh; }
.o-cta { opacity: 0; transition: opacity .7s ease 2.6s; }
.o-cta .cta-trait path { stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease 2.9s; }
.o-decouvrir { padding: 8px 0; font: 500 clamp(14px, 3.8vw, 16px)/1 var(--caps); color: rgba(244, 239, 230, .82); text-decoration: none; text-shadow: var(--ombre); opacity: 0; transition: opacity .7s ease 2.8s, color .2s ease; }
.o-decouvrir:hover, .o-decouvrir:focus-visible { color: var(--halo); }
.o-decouvrir:focus-visible { outline: 2px solid var(--halo); outline-offset: 4px; }
.o-defiler { position: absolute; left: 50%; bottom: calc(var(--barres, 0px) + env(safe-area-inset-bottom, 0px) + 4svh); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; font: 600 11px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244, 239, 230, .78); text-shadow: var(--ombre); opacity: 0; transition: opacity .8s ease 3.2s; }
.o-defiler i { position: relative; width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255, 210, 63, .7), rgba(255, 210, 63, 0)); }
.o-defiler i::after { content: ""; position: absolute; left: -3.5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--halo);
  box-shadow: 0 0 10px 3px rgba(255, 200, 60, .75); animation: defile 1.9s ease-in-out infinite; }
@keyframes defile { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
.is-ouvert .o-titre .caps { opacity: 1; transform: none; filter: none; }
.is-ouvert .o-titre .script { clip-path: inset(-30% -6% -40% -6%); }
.is-ouvert .o-sous { opacity: 1; transform: none; }
.is-ouvert .o-cta, .is-ouvert .o-prix, .is-ouvert .o-decouvrir, .is-ouvert .o-defiler { opacity: 1; }
.is-ouvert .o-cta .cta-trait path { stroke-dashoffset: 0; }
/* Composition « Pear makes you appear » : texte aligné à gauche, la photo reste dégagée.
   Téléphone : le bloc (titre → boutons) est centré entre l'en-tête et « Faites défiler », puis remonté d'un cran
   (padding-top = --entete ; padding-bottom = barres du navigateur + hauteur de l'indicateur + 5svh), sur un voile qui monte depuis le bas. */
.ouverture { align-items: flex-start; justify-content: center; text-align: left;
  padding-bottom: calc(var(--barres, 0px) + env(safe-area-inset-bottom, 0px) + 9svh + 72px); }
.ouverture::before { background: linear-gradient(to top, rgba(8, 7, 14, .85) 0%, rgba(8, 7, 14, .6) 45%, rgba(8, 7, 14, 0) 85%); }
/* Téléphone : titre imposant, « DESSINEZ » presque sur toute la largeur, « dans la lumière. » dessous. */
.o-titre .caps { font-size: 17vw; letter-spacing: -.055em; line-height: .82; }
.o-titre .script { margin: .02em 0 0 .08em; font-size: 13.6vw; transform-origin: 0 60%; }
.o-sous { margin: 1svh 0 0; max-width: 32ch; }
.o-actions { flex-direction: row; align-items: center; gap: 24px; }

.cta-trait path { fill: none; stroke: var(--halo); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 0)); filter: drop-shadow(0 0 4px rgba(255, 200, 60, .9)); vector-effect: non-scaling-stroke; }
.cta-static { --t: 1; }
.cta:hover .cta-trait path, .cta:focus-visible .cta-trait path { animation: trait .7s ease forwards; }
@keyframes trait { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cta:focus-visible { outline: 2px solid var(--halo); outline-offset: 4px; }

/* ---------- Suite du site : fil lumineux en arrière-plan ---------- */
.suite { position: relative; background: var(--nuit); }
.fil { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
/* La boule continue seule, sans fil derrière elle : les tracés restent dans la page (invisibles)
   parce qu'ils donnent son trajet, jusqu'au centre de la tablette. */
.fil, .trace { visibility: hidden; }
.fil path, .trace path { fill: none; stroke-linecap: round; stroke-dasharray: var(--len, 1) var(--len, 1); stroke-dashoffset: var(--off, 1); }
.fil-halo { stroke: rgba(255, 190, 60, .22); stroke-width: 12; }
.fil-core { stroke: var(--halo); stroke-width: 2.5; opacity: .85; }
.tete { width: 14px; height: 14px; margin: -7px 0 0 -7px; z-index: 0; box-shadow: 0 0 12px 4px rgba(255, 200, 60, .7); transition: opacity .12s linear; }
.tete.is-arrivee { opacity: 0; transition-duration: .5s; }                     /* elle se fond dans la plaque qu'elle vient d'allumer */
.tete.is-cachee { opacity: 0; transition: none; }      /* tant que la boule du hero n'a pas passé le relais */

/* ---------- Dessin : la tablette éteinte, allumée par la boule ---------- */
.dessin { position: relative; z-index: 1; padding: 16svh var(--gutter) 10svh; }
.dessin-titre { max-width: 12ch; margin: 0 0 9svh; font: 800 clamp(34px, 9.4vw, 64px)/.95 var(--caps); letter-spacing: -.03em; text-transform: uppercase; color: var(--ivoire); text-shadow: var(--ombre); }
.tablette { width: min(84vw, 760px); margin: 0 auto; }
.plaque { position: relative; aspect-ratio: 3 / 2; border: 1.5px solid rgba(244, 239, 230, .2); border-radius: 12px 12px 3px 3px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 45%, rgba(255, 255, 255, .04)); transition: border-color .8s ease, box-shadow .8s ease; }
/* La lumière part du centre de la plaque, là où la boule arrive. */
.plaque::before { content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: 0; transform: scale(.05);
  background: radial-gradient(circle at 50% 50%, rgba(255, 214, 110, .24) 0%, rgba(255, 190, 70, .1) 40%, rgba(255, 190, 70, 0) 70%);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity .9s ease; }
.toile { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease .25s; touch-action: none; cursor: crosshair; pointer-events: none; }
.indice { position: absolute; inset: auto 0 8%; margin: 0; text-align: center; font: 500 clamp(13px, 3.4vw, 17px)/1 var(--caps); letter-spacing: .04em; color: rgba(244, 239, 230, .7); opacity: 0; transition: opacity .8s ease .6s; }
.socle { height: 12px; margin: 0 -3%; border-radius: 3px 3px 7px 7px; background: #2a2b45; transition: background .8s ease, box-shadow .8s ease; }
.plaque.is-allumee { border-color: rgba(255, 240, 210, .55); box-shadow: inset 0 -2.4rem 3rem -2rem rgba(255, 210, 63, .38), 0 0 60px rgba(255, 200, 60, .12); }
.plaque.is-allumee::before { opacity: 1; transform: scale(1); }
.plaque.is-allumee .toile { opacity: 1; pointer-events: auto; }
.plaque.is-allumee .indice { opacity: 1; }
.plaque.is-allumee + .socle { background: linear-gradient(to bottom, #ffe9a6, var(--halo)); box-shadow: 0 0 40px 6px rgba(255, 210, 63, .45); }
.outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; width: min(84vw, 760px); margin: 5svh auto 0; opacity: .35; transition: opacity .8s ease; }
.dessin:has(.is-allumee) .outils { opacity: 1; }
.feutres { display: flex; gap: 6px; }
.feutre { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.feutre::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); transition: transform .2s ease; }
.feutre[aria-checked="true"]::before { transform: scale(1.3); outline: 2px solid var(--ivoire); outline-offset: 3px; }
.feutre:focus-visible, .effacer:focus-visible { outline: 2px solid var(--halo); outline-offset: 4px; }
.effacer { padding: 10px 0; border: 0; border-bottom: 1px solid rgba(255, 210, 63, .7); background: none; color: var(--ivoire); font: 700 12px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sections après la tablette : même univers que le hero ----------
   Titres : capitales Onest + mot écrit au feutre lumineux (--s, réglé au scroll par sections.js).
   Chaque [data-station] est allumé (.is-allumee) quand la boule passe par son centre. */
.usages, .formats, .questions, .fin { position: relative; z-index: 1; padding: 14svh var(--gutter) 6svh; }
.bloc-titre { margin: 0 0 6svh; font-weight: 400; }
.bloc-titre .caps { font-size: 11.5vw; }
.bloc-titre .script { font-size: 15vw; }

/* Une photo réelle : éteinte (très sombre) jusqu'au passage de la boule, puis la lumière part de son centre. */
.photo { position: relative; margin: 0; border-radius: 8px; overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; filter: brightness(.14) saturate(.35); transition: filter 1.2s ease; }
.photo::after { content: ""; position: absolute; inset: -30%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 228, 140, .55) 0%, rgba(255, 190, 70, .18) 30%, rgba(255, 190, 70, 0) 60%); }
.photo.is-allumee img { filter: none; }
.photo.is-allumee::after { animation: eclat 1.4s ease-out forwards; }
@keyframes eclat { from { opacity: 1; transform: scale(.05); } to { opacity: 0; transform: scale(1.2); } }

/* Usages : une seule tablette qui reste à l'écran (la section est longue, sa scène colle en haut). Dans le cadre,
   une photo par usage ; --noir éteint la pièce, --lum / --eclat rallument depuis le centre (réglés par sections.js). */
.usages { height: calc(100lvh + 320svh); padding: 0; }
.u-scene { position: sticky; top: 0; height: 100vh; height: 100lvh; display: flex; flex-direction: column; justify-content: center; gap: 3svh; padding: calc(var(--entete) + 6svh) var(--gutter) 10svh; }
.u-titre { margin: 0; }
.u-titre .caps { font-size: 9vw; }
.u-titre .script { font-size: 12vw; }
.u-cadre { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 40svh; border: 1.5px solid rgba(244, 239, 230, .18); border-radius: 10px; overflow: hidden; background: #0d0e1d; }
.u-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.u-photo.is-vue { opacity: 1; }
.u-nuit { position: absolute; inset: 0; background: var(--nuit); opacity: var(--noir, .9); }
.u-cadre::after { content: ""; position: absolute; inset: -25%; pointer-events: none; opacity: var(--eclat, 0); transform: scale(calc(.2 + var(--lum, 0)));
  background: radial-gradient(circle at 50% 50%, rgba(255, 228, 140, .5) 0%, rgba(255, 190, 70, .16) 32%, rgba(255, 190, 70, 0) 62%); }
.u-textes { position: relative; min-height: 15rem; }
.u-texte { position: absolute; left: 0; right: 0; top: 0; opacity: var(--a, 0); transform: translateY(calc((1 - var(--a, 0)) * 12px)); }
.usage-titre { margin: 0; font-weight: 400; }
.usage-titre .script { font-size: 13vw; margin: 0 0 .05em -.04em; }
.usage-titre .caps { font-size: 6.4vw; line-height: .95; margin-top: .25em; }
.u-texte .sub { max-width: 34ch; margin-top: .8em; }

/* Formats : les quatre plaques à l'échelle d'une feuille A4, tracées par la lumière ; la liste des prix. */
/* ---------- Votre format : collage des quatre formats (inspiration « Gallery ») ----------
   Un grand cadre arrondi ; au centre le 20 × 20 (station de la boule), autour le 12 × 12, le 15 × 15 et le 30 × 20,
   un peu de travers (--r) ; chaque photo mène à sa fiche. Téléphone : collage empilé sur deux colonnes. */
.formats-cadre { position: relative; overflow: clip; padding: 9svh 18px 7svh; border: 1px solid rgba(244, 239, 230, .1); border-radius: 28px;
  background: radial-gradient(70% 45% at 50% 38%, rgba(255, 210, 63, .1), rgba(255, 210, 63, 0) 70%), linear-gradient(180deg, #1d2042, #141530); }
.formats-motif { position: absolute; width: 120px; fill: none; stroke: rgba(255, 210, 63, .14); stroke-width: 1; pointer-events: none; }
.formats-motif--haut { top: -30px; right: -30px; }
.formats-motif--bas { bottom: -30px; left: -30px; }
/* Téléphone : tout en colonne ; la galerie s'intercale entre « Dans la boîte » et le bouton. */
.formats-cadre { display: flex; flex-direction: column; align-items: flex-start; }
.formats-texte { display: contents; }
.formats-titre { order: 1; } .formats-lede { order: 2; } .boite-pilule { order: 3; } .collage { order: 4; align-self: stretch; }
.formats-pastilles { order: 5; } .formats-actions { order: 6; }
.formats-titre { margin-bottom: 3svh; }
.formats-lede { max-width: 42ch; margin: 0 0 3.5svh; font: 400 clamp(16px, 4.3vw, 19px)/1.5 var(--caps); color: var(--texte); }
.boite-pilule { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 100%; padding: 12px 16px; border: 1px solid rgba(244, 239, 230, .18); border-radius: 22px;
  background: rgba(15, 16, 36, .55); scroll-margin-top: 96px; }
.boite-pilule__titre { font: 700 11px/1 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--halo); }
.boite-pilule ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.boite-pilule li { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1.2 var(--caps); color: var(--ivoire); }
.boite-pilule svg { flex: none; color: var(--halo); }

/* Téléphone : galerie verticale, une photo sous l’autre, légèrement décalées et inclinées. */
.collage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 5svh 0 4svh; }
.collage__carte { --r: 0deg; position: relative; display: block; color: var(--ivoire); text-decoration: none;
  opacity: 0; transform: translateY(28px) rotate(var(--r)) scale(.96);
  transition: opacity .7s ease calc(var(--i, 0) * 120ms), transform .8s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 120ms), box-shadow .3s ease; }
.collage__carte img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(5, 5, 15, .45); }
.collage__legende { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 999px;
  background: rgba(15, 16, 36, .82); font: 400 12px/1 var(--caps); white-space: nowrap; backdrop-filter: blur(6px); }
.collage__legende b { font-weight: 700; }
.collage__legende span { color: var(--halo); font-variant-numeric: tabular-nums; }
.collage__carte--centre { --r: -1deg; }
.collage__carte--petit { --r: -3deg; width: 84%; justify-self: start; }
.collage__carte--moyen { --r: 3deg; width: 84%; justify-self: end; }
.collage__carte--large { --r: 1.5deg; }
.collage__support { justify-self: center; width: 72%; margin: 6px 0 0; text-align: center;
  opacity: 0; transform: translateY(28px) rotate(-2deg); transition: opacity .7s ease .5s, transform .8s cubic-bezier(.22, 1, .36, 1) .5s; }
.collage__support img { width: 100%; height: auto; border-radius: 14px; }
.collage__support figcaption { margin-top: 8px; font: 400 13px/1.4 var(--caps); color: rgba(244, 239, 230, .65); }
/* Les photos entrent en cascade quand la section arrive à l'écran (sections.js). */
.collage.is-ouverte .collage__carte { opacity: 1; transform: rotate(var(--r)); }
.collage.is-ouverte .collage__support { opacity: 1; transform: rotate(-2deg); }
.collage.is-ouverte .collage__carte:hover, .collage__carte:focus-visible { transform: translateY(-6px) rotate(0deg) scale(1.02); transition-delay: 0s; z-index: 2; }
.collage__carte:focus-visible { outline: 2px solid var(--halo); outline-offset: 4px; border-radius: 18px; }
/* La boule allume la photo centrale à son passage. */
.collage__carte--centre.is-allumee img { box-shadow: 0 0 0 2px rgba(255, 210, 63, .55), 0 0 60px rgba(255, 200, 60, .35), 0 18px 40px rgba(5, 5, 15, .45); }

.formats-pastilles { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 3svh 0 4svh; padding: 0; list-style: none; }
.formats-pastilles li { padding: 7px 14px; border: 1px solid rgba(244, 239, 230, .16); border-radius: 999px; font: 500 13px/1 var(--caps); color: var(--texte); }
.formats-note { margin: 1.6em 0 0; max-width: 46ch; font: 400 13px/1.5 var(--caps); color: rgba(244, 239, 230, .55); }

/* Questions : la réponse s'écrit mot à mot en néon, dans la couleur de feutre de la question (--pen). */
.q-corps { display: grid; gap: 5svh; }
.q-liste { display: flex; flex-direction: column; }
.q-onglet { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(244, 239, 230, .12); background: none; text-align: left; cursor: pointer; font: 500 clamp(15px, 4.2vw, 18px)/1.3 var(--caps); color: rgba(244, 239, 230, .62); transition: color .3s ease; }
.q-onglet::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pen); box-shadow: 0 0 8px var(--pen); opacity: .35; transition: opacity .3s ease; }
.q-onglet[aria-selected="true"] { color: var(--ivoire); }
.q-onglet[aria-selected="true"]::before { opacity: 1; }
.q-onglet:focus-visible { outline: 2px solid var(--halo); outline-offset: 2px; }
.q-tablette { --pen: var(--halo); }
.q-plaque { position: relative; min-height: 13rem; padding: 22px 20px; border: 1.5px solid rgba(244, 239, 230, .2); border-radius: 12px 12px 3px 3px; background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 45%, rgba(255, 255, 255, .04)); transition: border-color .8s ease, box-shadow .8s ease; }
.q-plaque.is-allumee { border-color: rgba(255, 240, 210, .5); box-shadow: inset 0 -2.4rem 3rem -2rem rgba(255, 210, 63, .3); }
.q-plaque.is-allumee + .socle { background: linear-gradient(to bottom, #ffe9a6, var(--halo)); box-shadow: 0 0 40px 6px rgba(255, 210, 63, .4); }
.q-reponse { font: 500 clamp(16px, 4.4vw, 21px)/1.45 var(--caps); color: var(--pen); text-shadow: 0 0 .3em var(--pen); opacity: .25; transition: opacity .8s ease; }
.q-plaque.is-allumee .q-reponse { opacity: 1; }
.q-reponse .mot { opacity: 0; animation: ecrit .35s ease forwards; animation-delay: calc(var(--k) * 55ms); }
@keyframes ecrit { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }

/* Dernier écran : une carte photo qui s'agrandit jusqu'au plein écran (--z de 0 à 1) pendant que la lumière part de son
   centre (--lum, --eclat). La carte est un calque plein écran découpé (clip-path) et légèrement réduit (scale) :
   seules des propriétés composées bougent, rien n'est remis en page pendant le scroll. */
.fin { height: calc(100lvh + 200svh); padding: 0; background: #07070d; }
.fin-scene { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.fin-carte { --ix: 7vw; --iy: 17lvh; position: absolute; inset: 0; overflow: hidden; background: #07070d;
  clip-path: inset(calc((1 - var(--z, 0)) * var(--iy)) calc((1 - var(--z, 0)) * var(--ix)) round calc((1 - var(--z, 0)) * 28px));
  transform: scale(calc(.9 + .1 * var(--z, 0))); }
/* Portrait : la photo descend sous une bande sombre où se posent le titre, le sous-titre et le prix, au-dessus de la
   lampe ; le dégradé de ::after fond le haut de la photo dans cette bande. */
.fin-carte img { position: absolute; inset: 18% 0 0; width: 100%; height: 82%; object-fit: cover; object-position: 50% 0; transform: scale(calc(1.12 - .12 * var(--z, 0))); }
/* La pièce éteinte, puis l'éclat qui part du centre quand la boule y entre ; un dégradé en bas pour lire le texte. */
.fin-nuit { position: absolute; inset: 0; background: #06060c; opacity: calc((1 - var(--lum, 0)) * .9); }
.fin-carte::before { content: ""; position: absolute; inset: -25%; z-index: 1; pointer-events: none; opacity: var(--eclat, 0); transform: scale(calc(.15 + var(--lum, 0)));
  background: radial-gradient(circle at 50% 50%, rgba(255, 228, 140, .5) 0%, rgba(255, 190, 70, .16) 32%, rgba(255, 190, 70, 0) 62%); }
.fin-carte::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, #07070d 18%, rgba(7, 7, 13, .6) 30%, rgba(7, 7, 13, .2) 44%, rgba(7, 7, 13, 0) 54%, rgba(7, 7, 13, 0) 80%, rgba(7, 7, 13, .6) 100%); }
/* Le texte reste dans la carte, en haut sous le header : titre, sous-titre, prix, puis les boutons. */
.fin-texte { position: absolute; z-index: 2; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 1.1svh; text-align: center;
  top: max(calc(var(--entete) + 10svh), calc((1 - var(--z, 0)) * var(--iy) + 4svh));
  padding: 0 calc(var(--gutter) + (1 - var(--z, 0)) * var(--ix)); }
.fin-titre { margin: 0; }
.fin-titre .caps { font-size: 11vw; }
.fin-titre .script { font-size: 17vw; margin-left: auto; margin-right: auto; transform-origin: 50% 60%; }
.fin-soustitre, .fin-prix, .fin-actions { opacity: var(--a, 0); transform: translateY(calc((1 - var(--a, 0)) * 14px)); }
.fin-soustitre { max-width: 30ch; margin: 0; font: 400 clamp(14px, 3.9vw, 19px)/1.4 var(--caps); color: var(--ivoire); text-shadow: var(--ombre); }
.fin-prix { margin: 0; font: 600 14px/1.4 var(--caps); letter-spacing: .03em; color: var(--halo); text-shadow: var(--ombre); }
/* Téléphone : un bloc carré, de la largeur du titre ; le prix sur deux lignes, les boutons l'un sous l'autre. */
.fin-livraison { display: block; }
.fin-point { display: none; }
.fin-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 2.4svh; white-space: nowrap; }
.fin-actions .btn-or { min-height: 46px; padding: 0 28px; font-size: 14.5px; }
.fin-actions .o-decouvrir { font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.fin-actions .o-decouvrir { opacity: 1; transition: color .2s ease; }
.fin:not(.is-lisible) .fin-actions { pointer-events: none; visibility: hidden; }
/* Le seul bouton plein du site : l'action finale, assez grand pour le pouce. */
.btn-or { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 34px; border-radius: 999px; background: var(--halo); color: #17182D;
  font: 700 15px/1 var(--caps); letter-spacing: .02em; text-decoration: none; box-shadow: 0 0 34px rgba(255, 200, 60, .32); transition: transform .2s ease, box-shadow .2s ease; }
.btn-or:hover { transform: translateY(-1px); box-shadow: 0 0 44px rgba(255, 200, 60, .5); }
.btn-or:focus-visible { outline: 2px solid var(--ivoire); outline-offset: 4px; }

/* ---------- Paysage (16:9) : textes sur le côté libre ---------- */
@media (orientation: landscape) {
  :root { --gutter: max(24px, 6.5vw); --entete: calc(env(safe-area-inset-top, 0px) + 88px + var(--annonce, 0px)); }
  /* Ouverture : même composition, centrée, à l'échelle de l'écran large. */
  .ouverture { gap: 2.6svh; padding-bottom: calc(var(--barres, 0px) + 14svh); }
  .ouverture::before { background: radial-gradient(ellipse 42% 38% at 50% 44%, rgba(8, 7, 14, .6) 0%, rgba(8, 7, 14, .32) 52%, rgba(8, 7, 14, 0) 100%); }
  /* Ordinateur : composition de page produit, titre géant centré, sous-titre court, prix, deux actions côte à côte.
     Le bloc est centré dans l'espace sous l'en-tête fixe (72 px), au-dessus de « Faites défiler ». */
  .ouverture { gap: 1.6svh; padding-top: calc(env(safe-area-inset-top, 0px) + 72px + var(--annonce, 0px)); padding-bottom: calc(var(--barres, 0px) + 11svh); }
  .o-titre .caps { font-size: min(11vw, 19svh); letter-spacing: -.04em; line-height: .84; }
  .o-titre .script { font-size: min(6.4vw, 11.5svh); max-width: 70vw; margin-top: -.12em; }
  .o-sous { max-width: 44ch; font-size: clamp(17px, 1.5vw, 22px); }
  .o-prix { font-size: 15px; }
  .o-actions { flex-direction: row; gap: 40px; margin-top: 1.4svh; }
  .o-decouvrir { font-size: 16px; }
  /* Ordinateur, comme « Pear makes you appear » : bloc de texte à gauche, centré en hauteur sous l'en-tête,
     titre sur une ligne, sous-titre court ; la scène du dessin reste libre à droite. */
  .ouverture { justify-content: center; max-width: none; padding-left: var(--gutter); padding-right: 36vw; padding-bottom: calc(var(--barres, 0px) + 8svh); gap: 2svh; }
  .ouverture::before { background: linear-gradient(90deg, rgba(8, 7, 14, .78) 0%, rgba(8, 7, 14, .5) 34%, rgba(8, 7, 14, .12) 58%, rgba(8, 7, 14, 0) 72%); }
  /* « dans la lumière. » sous « DESSINEZ », légèrement décalé, comme au feutre. */
  .o-titre .caps { font-size: min(8.4vw, 16svh); letter-spacing: -.04em; line-height: .84; }
  .o-titre .script { margin: -.02em 0 0 .35em; font-size: min(5.6vw, 10.5svh); max-width: none; }
  .o-sous { max-width: 36ch; margin-top: .4svh; font-size: clamp(16px, 1.25vw, 19px); }
  .o-prix { font-size: 14px; }
  .o-actions { gap: 32px; margin-top: 1svh; }
  .caps { font-size: min(8.4vw, 15svh); }
  .chapter .caps { font-size: min(6.4vw, 12svh); max-width: 40vw; }
  .script { font-size: min(10.2vw, 18svh); }
  .sub { max-width: 30vw; font-size: clamp(16px, 1.45vw, 22px); }
  /* Titre sur deux lignes : « en pleine » et « lumière » se suivent. */
  .titre .caps { font-size: min(11vw, 21svh); letter-spacing: -.04em; line-height: .84; }
  .titre .script { font-size: min(7.6vw, 14svh); max-width: 70vw; margin-top: -.08em; }
  .dessin { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; column-gap: 6vw; padding-top: 18svh; }
  .dessin-titre { margin: 0; font-size: min(5vw, 11svh); }
  .tablette, .outils { width: 100%; }
  .outils { grid-column: 2; }
  /* Sections : deux colonnes, la photo alterne à gauche et à droite. */
  .usages, .formats, .questions { padding-top: 16svh; }
  .bloc-titre .caps { font-size: min(6.4vw, 13svh); }
  .bloc-titre .script { font-size: min(8.4vw, 17svh); }
  .usage-titre .script { font-size: min(5.6vw, 12svh); }
  .usage-titre .caps { font-size: min(2.8vw, 6svh); }
  .q-corps { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: 6vw; }
  .fin-carte { --ix: 17vw; --iy: 14lvh; }
  /* Paysage : le texte en bas à gauche, sur l'étagère sombre, pour laisser voir le tableau au centre. */
  /* Paysage : la photo entière ; tout le texte en haut à gauche, devant l'étagère sombre, à côté de la lampe. */
  .fin-carte img { inset: 0; height: 100%; object-position: 50% 45%; }
  .fin-texte { right: auto; bottom: auto; width: min(44vw, 640px); align-items: flex-start; text-align: left;
    top: 50%; transform: translateY(-50%);
    padding: 0 0 0 calc(var(--gutter) + (1 - var(--z, 0)) * var(--ix)); }
  .fin-carte::after { background: linear-gradient(to right, rgba(7, 7, 13, .8), rgba(7, 7, 13, 0) 55%), linear-gradient(to bottom, rgba(7, 7, 13, .55), rgba(7, 7, 13, 0) 40%); }
  .fin-titre .caps { font-size: min(5.2vw, 11svh); }
  .fin-titre .script { font-size: min(7.4vw, 15svh); margin-left: .3em; margin-right: 0; transform-origin: 0 60%; }
  .fin-soustitre { font-size: min(1.5vw, 19px); }
  .fin-actions { flex-direction: row; align-items: center; gap: 32px; margin-top: 1.2svh; }
  .fin-actions .btn-or { min-height: 52px; padding: 0 34px; font-size: 15px; }
  .fin-actions .o-decouvrir { font-size: 16px; }
  .fin-livraison, .fin-point { display: inline; }
  /* Usages : le cadre à gauche, le titre et les textes à droite. */
  .u-scene { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: auto auto; align-content: center; column-gap: 5vw; row-gap: 4svh; padding: calc(var(--entete) + 8svh) var(--gutter) 8svh; }
  .u-cadre { grid-column: 1; grid-row: 1 / span 2; max-height: 72svh; align-self: center; }
  .u-titre { grid-column: 2; align-self: end; }
  .u-titre .caps { font-size: min(4.6vw, 10svh); }
  .u-titre .script { font-size: min(6vw, 13svh); }
  .u-textes { grid-column: 2; min-height: 34svh; }
  .pos-1 { left: auto; right: var(--gutter); top: calc(var(--entete) + 8svh); text-align: right; }
  .pos-1 .script { margin-left: auto; margin-right: .1em; transform-origin: 100% 60%; }
  .pos-1 .sub { margin-left: auto; }
  .pos-2 { right: auto; left: calc(var(--gutter) + 2vw); top: calc(var(--entete) + 12svh); text-align: left; }
  .pos-2 .script { margin-left: .46em; margin-right: 0; transform-origin: 0 60%; }
  .pos-2 .sub { margin-left: 0; }
  .pos-3 { left: auto; right: var(--gutter); top: calc(var(--entete) + 6svh); }
  .pos-4 { left: auto; right: var(--gutter); top: calc(var(--entete) + 10svh); }
  /* Collé sous le titre, sur le rideau sombre, et commencé à l'aplomb du « m » de « ensemble. »
     (le « m » est à 1,61 fois la taille du mot au feutre du bord du bloc : 10,2vw ou 18svh, d'où 16,5vw ou 29svh). */
  /* Zone indiquée par l'utilisateur : sous « …mble. », un peu plus à droite que le « m », débordant
     légèrement le titre. En absolu dans le bloc : sa largeur ne déplace pas le titre. */
  /* Mesures en multiples de la taille du mot au feutre (min(10.2vw, 18svh)) : départ à 1,84 fois (juste après « ens »),
     largeur 1,92 fois ; le bloc du titre est plus large que « QUELQUES », un pourcentage tomberait trop à droite. */
  .pos-4 .sub { position: absolute; top: 100%; left: min(18.8vw, 33.1svh); right: auto; width: min(19.6vw, 34.6svh); max-width: none; margin: .25em 0 0; text-align: left; text-wrap: balance; }
  .formats { padding-top: 16svh; }
  /* Votre format, ordinateur : collage libre comme « Gallery » ; le 20 × 20 au centre, les autres le chevauchent. */
  /* Votre format, ordinateur : texte à gauche, collé sous le titre pendant que la galerie défile à droite. */
  .formats-cadre { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 5vw; align-items: start; padding: 10svh 5vw 8svh; border-radius: 40px; }
  .formats-texte { display: block; position: sticky; top: calc(var(--entete) + 4svh); }
  .formats-motif { width: 200px; }
  .formats-titre .caps { font-size: min(6.4vw, 12svh); }
  .formats-titre .script { font-size: min(8.4vw, 15svh); }
  .formats-lede { font-size: clamp(17px, 1.35vw, 20px); }
  .boite-pilule { padding: 14px 20px; }
  /* Galerie en mosaïque : le 20 × 20 en grand, le 12 × 12 et le 15 × 15 côte à côte, le 30 × 20 en large, puis le support. */
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; }
  .collage__carte--centre, .collage__carte--large { grid-column: 1 / -1; }
  .collage__carte--petit, .collage__carte--moyen { width: auto; justify-self: stretch; }
  .collage__carte--petit { margin-top: 28px; }
  .collage__support { grid-column: 1 / -1; width: 60%; }
  .collage__legende { font-size: 14px; }
}

/* ---------- Mouvement réduit : images fixes, textes visibles ---------- */
.reduced .hero { height: auto; }
.reduced .stage { position: relative; height: auto; min-height: 100svh; padding: 18svh var(--gutter) 10svh; display: flex; flex-direction: column; gap: 10svh; }
.reduced .hero-video { position: absolute; }
.reduced .eteint { opacity: .82; background: var(--nuit); }
.reduced .chapter { position: relative; inset: auto; opacity: 1; transform: none; text-align: left; }
.reduced .script { clip-path: none; margin-left: .46em; transform-origin: 0 60%; }
.reduced .sub .w, .reduced .pos-4 .sub { opacity: 1; }
.reduced .pos-4 .sub { position: static; width: auto; }
.reduced .fin-bloc { position: relative; left: auto; right: auto; top: auto; transform: none; margin-top: 4svh; }
.reduced .titre .l { clip-path: none; }
.reduced .collage__carte, .reduced .collage__support { transition: none; }
.reduced .photo img { filter: none; }
.reduced .usages { height: auto; }
.reduced .u-scene { position: relative; height: auto; display: block; padding: 14svh var(--gutter) 6svh; }
.reduced .u-cadre { margin-top: 5svh; }
.reduced .u-photo:first-child { opacity: 1; }
.reduced .u-nuit { opacity: 0; }
.reduced .u-textes { min-height: 0; }
.reduced .u-texte { position: static; opacity: 1; transform: none; margin-top: 5svh; --s: 1; }
.reduced .u-texte .w { opacity: 1; }
.reduced .ouverture { position: relative; inset: auto; padding: 0 0 6svh; opacity: 1; transform: none; }
.reduced .ouverture::before, .reduced .o-defiler { display: none; }
.reduced .o-titre .caps, .reduced .o-sous, .reduced .o-cta, .reduced .o-prix, .reduced .o-decouvrir { opacity: 1; transform: none; filter: none; transition: none; }
.reduced .o-titre .script { clip-path: none; transition: none; }
.reduced .o-cta .cta-trait path { stroke-dashoffset: 0; transition: none; }
.reduced .q-reponse { opacity: 1; }
.reduced .q-reponse .mot { animation: none; opacity: 1; }

.reduced .fin-sub { opacity: 1; }
.reduced .boule, .reduced .tete, .reduced .trace { display: none; }
.reduced .fil path { stroke-dashoffset: 0; }
.reduced .g-carte, .reduced .g-carte img { transition: none; }

/* ---------- Galerie sur ordinateur : mosaïque ----------
   Titre et sous-titre en haut à gauche, grande carte portrait dessous ; paysage en haut au centre, carte large sous
   elle ; portrait haute à droite, bouton en bas à droite. Le carrousel devient la grille (display: contents). */
@media (orientation: landscape) and (min-width: 900px) {
  .galerie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, .55fr) minmax(0, 1fr) auto;
    grid-template-areas: "tete haut droite" "gauche haut droite" "gauche bas droite" "gauche bas cta";
    align-items: stretch; gap: 16px; height: clamp(640px, 94svh, 960px); max-width: 1440px; margin: 0 auto; padding: 10svh var(--gutter) 8svh; text-align: left; }
  .g-tete { grid-area: tete; align-items: flex-start; gap: 1.6svh; padding: 0 0 2svh; }
  .g-titre .caps { font-size: min(4.4vw, 8.5svh); }
  .g-titre .script { font-size: min(5.8vw, 11svh); margin-left: .3em; margin-right: 0; transform-origin: 0 60%; }
  .g-sous { max-width: 36ch; font-size: 15px; }
  .g-cta { grid-area: cta; justify-self: stretch; }
  .g-piste { display: contents; }
  .g-fleches { display: none; }
  .g-carte { --rond: 24px; flex: none; aspect-ratio: auto; width: auto; height: auto; max-height: none; transform: none; filter: none; }
  .g-carte img { transform: none; }
  .g-carte figcaption { font-size: 17px; }
  /* Les rideaux s'ouvrent de gauche à droite. */
  .g-gauche { grid-area: gauche; --i: 0 !important; }
  .g-haut { grid-area: haut; --i: 1 !important; }
  .g-bas { grid-area: bas; --i: 2 !important; }
  .g-droite { grid-area: droite; --i: 3 !important; }
  .g-bas img { object-position: 50% 62%; }
}

/* ---------- Survol des galeries (ordinateur, souris) ----------
   Mosaïque : la carte survolée monte un peu, son image zoome, un liseré doré s'allume et une tache de lumière suit la
   souris (--mx, --my, réglés par sections.js), comme la boule qui éclaire ; la légende remonte ; les autres cartes
   s'assombrissent. Usages : le cadre s'allume d'un liseré doré et la photo avance un peu. */
@media (orientation: landscape) and (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .g-carte { cursor: pointer; transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .16s), transform .6s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
  .g-carte::before, .g-carte::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease; }
  .g-carte::before { box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, .7), inset 0 0 48px rgba(255, 200, 60, .2); }
  .g-carte::after { mix-blend-mode: screen; background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), rgba(255, 228, 140, .34), rgba(255, 190, 70, .1) 45%, rgba(255, 190, 70, 0) 70%); }
  .g-carte figcaption { z-index: 2; transform: translateY(10px); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .g-tag { transition: background .4s ease, color .4s ease; }
  .g-carte:hover { transform: translateY(-6px); }
  .g-carte:hover::before, .g-carte:hover::after { opacity: 1; }
  .galerie.is-ouverte .g-carte:hover img { scale: 1.17; transition-delay: 0s; }
  .g-carte:hover figcaption { transform: none; }
  .g-carte:hover .g-tag { background: var(--halo); color: #17182D; }
  .galerie.is-ouverte:has(.g-carte:hover) .g-carte:not(:hover) { filter: brightness(.5) saturate(.75); }

  .u-cadre { transition: border-color .45s ease, box-shadow .45s ease; }
  .u-photo { transition: scale .8s cubic-bezier(.2, .7, .2, 1); }
  .u-cadre:hover { border-color: rgba(255, 210, 63, .65); box-shadow: 0 0 0 1px rgba(255, 210, 63, .25), 0 0 60px rgba(255, 200, 60, .16); }
  .u-cadre:hover .u-photo { scale: 1.05; }
}
