/* VERSION FINALE — étape 1 (26/10/2026), après la réunion avec Cindy.
   Base : le Seuil (la porte). Polices décidées : gros titres en Michroma (la « vue éclatée »),
   sous-titres en Archivo condensé (le « monolithe »), texte en Courier Prime
   (en attendant American Typewriter, qui n'a pas de licence web libre). */
:root {
  --gros-titre: "Michroma", "Archivo", Arial, sans-serif;
}

/* Les gros titres : larges, nets, « spatial ». */
.identite h1,
.bienvenue h2,
.panneau h2,
.porte h3 { font-family: var(--gros-titre); font-weight: 400; font-stretch: normal; letter-spacing: .02em; }
.identite h1 { font-size: clamp(2.2rem, 5.6vw, 6rem); line-height: 1.04; }

/* Les sous-titres : Archivo condensé, plus « cinéma ». */
.espace { font-stretch: 75%; font-weight: 400; letter-spacing: .3em; }

/* 3. Welcome to Indy Eye. */
.bienvenue h2 { font-size: clamp(1.8rem, 4.6vw, 4.4rem); max-width: 14ch; line-height: 1.12; }
.bienvenue__texte { font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.5; max-width: 32ch; }
.bienvenue__formes { display: grid; color: var(--gris); max-width: 44ch; }

/* 4. Les deux panneaux : le titre à gauche, les partenaires en colonne à droite. */
.panneau { min-height: 90vh; }
.panneau__grille { width: 100%; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(30px, 6vw, 100px); align-items: center; }
.panneau h2 { font-size: clamp(1.6rem, 3.8vw, 3.6rem); line-height: 1.14; max-width: 16ch; }
.panneau__liste { display: grid; border-top: 1px solid var(--gris-2); }
.panneau__liste li { padding: 14px 0; border-bottom: 1px solid var(--gris-3); font-family: var(--titre); font-stretch: 75%; font-weight: 400; text-transform: uppercase; letter-spacing: .22em; font-size: clamp(.8rem, 1.1vw, .95rem); color: var(--gris);
  transition: color .3s; }
.panneau__liste li:hover { color: var(--texte); }

/* L'écriture « diamant » : la police de l'hologramme (Syncopate), taillée comme une pierre :
   un dégradé à facettes, et un reflet qui passe une fois quand le panneau arrive. */
.panneau h2.diamant { font-family: "Syncopate", var(--gros-titre); font-weight: 700; letter-spacing: .04em; line-height: 1.18;
  background: linear-gradient(115deg, #f4f2ff 0%, #b9b0ff 18%, #ffffff 26%, #8fa8ff 38%, #e9e4ff 52%, #a493ff 64%, #ffffff 72%, #c8d4ff 86%, #f4f2ff 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(-1px 0 0 rgba(255, 0, 90, .28)) drop-shadow(1px 0 0 rgba(0, 190, 255, .28)) drop-shadow(0 0 18px rgba(150, 120, 255, .25)); }
.panneau.est-vu h2.diamant { animation: diamant 2.4s var(--ease) .2s both; }
@keyframes diamant { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 5. Les portes : un peu plus resserrées pour arriver vite en bas. */
.portes { min-height: 90svh; }

/* 6. L'Astre parle. */
.astre-parle { min-height: 100vh; justify-items: center; }
.question-astre { width: min(620px, 100%); display: grid; gap: 14px; }
.question-astre h2 { font-size: .85rem; color: var(--gris); }
.question-astre .ligne { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gris-2); padding: 10px 0; transition: border-color .3s; }
.question-astre .ligne:focus-within { border-bottom-color: var(--violet); }
.question-astre .ligne span { color: var(--violet); }
.question-astre input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--texte); font: inherit; font-size: 1.05rem; outline: none; }
.question-astre input::placeholder { color: var(--gris); }
.question-astre button[type="submit"] { background: none; border: 0; color: var(--gris); cursor: pointer; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.question-astre button[type="submit"]:hover { color: var(--texte); }
.suggestions { display: flex; flex-wrap: wrap; gap: 10px; }
.suggestions button { background: transparent; border: 1px solid var(--gris-2); color: var(--gris); padding: 8px 14px; font: inherit; font-size: .85rem; cursor: pointer; transition: color .3s, border-color .3s; }
.suggestions button:hover { color: var(--texte); border-color: var(--texte); }
.reponse { min-height: 3.2em; color: var(--texte); }
.reponse:not(:empty)::before { content: "ASTRE  "; font-family: "Syncopate", sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .2em; color: var(--violet); }
.astre-parle { align-content: end; padding-bottom: 8vh; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le clic sur une porte : un éclat RVB avant de partir. */
.rvb-split { animation: rvb .55s steps(5) both; }
@keyframes rvb {
  0% { text-shadow: none; transform: none; }
  30% { text-shadow: -6px 0 rgba(255, 0, 60, .8), 6px 0 rgba(0, 200, 255, .8); transform: translateX(2px); }
  60% { text-shadow: 4px 0 rgba(255, 0, 60, .7), -4px 0 rgba(0, 200, 255, .7); transform: translateX(-2px); }
  100% { text-shadow: none; transform: none; }
}

@media (max-width: 860px) {
  .panneau__grille { grid-template-columns: minmax(0, 1fr); }
}

/* ============ ÉTAPE 5 (28/10/2026) ============ */

/* Fluidité : le grain passe entièrement par le rendu 3D (il y est déjà) ; le calque CSS en mélange
   « screen », deux fois plus grand que l'écran et animé, coûtait une recomposition à chaque image. */
.grain { display: none; }
html { scrollbar-gutter: stable; }
html.fige { overflow: hidden; }

/* 1. L'arrivée, mise en page de la Vue éclatée : la porte au centre (en 3D), le nom en bas sur toute la largeur. */
.arrivee--eclatee { grid-template-columns: minmax(0, 1fr); align-content: end; align-items: end; padding: 0 var(--marge) 34px; }
.nom { font-family: var(--gros-titre); font-weight: 400; text-transform: uppercase; font-size: min(8.1vw, 9rem); line-height: .92; letter-spacing: .005em; white-space: nowrap; text-align: center;
  text-shadow: 0 0 40px rgba(3, 3, 3, .65); animation: nom-apparait 1s var(--ease) .1s both; }
@keyframes nom-apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes nom-arrive { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: .005em; } }
.arrivee__ligne { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 16px; border-top: 1px solid var(--gris-3); animation: nom-arrive 1.4s var(--ease) .6s both; }
.arrivee__qui { display: grid; gap: 4px; }
.arrivee__metiers { font-size: .8rem; color: var(--texte); }
.arrivee__signature { font-size: .85rem; color: var(--gris); }
.arrivee__devise { font-family: var(--gros-titre); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); text-align: center; }
.arrivee--eclatee .entrer { justify-self: end; margin-top: 0; }
@media (max-width: 860px) {
  .arrivee--eclatee { padding-bottom: 26px; }
  .arrivee__ligne { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 16px; }
  .arrivee--eclatee .entrer { justify-self: center; }
}
@media (max-width: 860px) {
  /* Sur téléphone, l'en-tête reste posé sur la scène (sinon il repousse le nom sous l'écran), et le menu tient sur deux lignes. */
  .entete { position: absolute; padding: 20px var(--marge) 0; gap: 10px; }
  .menu { gap: 6px 16px; }
  .menu a { font-size: .66rem; letter-spacing: .2em; padding-block: 2px; }
}
@media (max-width: 600px) {
  .arrivee--eclatee { padding-bottom: 64px; }
  .arrivee__ligne { margin-top: 14px; padding-top: 12px; gap: 12px; }
  .arrivee__signature, .arrivee__devise { display: none; }
}

/* 2. La phrase manifeste, pendant qu'il est aspiré. */
.traversee__texte { place-content: stretch; grid-template-rows: minmax(0, 1fr); }
.traversee__texte [data-avant] { align-self: center; }
.traversee__texte .manifeste { font-size: clamp(1.1rem, 2.4vw, 2.1rem); line-height: 1.3; max-width: 22ch; text-align: center; color: var(--texte); }

/* L'écriture « diamant », la police de l'hologramme (Syncopate), sur tout ce qui arrive au défilement :
   taillée en facettes, un reflet qui passe une fois, et deux étoiles qui scintillent sur la pierre. */
h2.diamant, h3.diamant, p.diamant { position: relative; width: fit-content; font-family: "Syncopate", var(--gros-titre); font-weight: 700; font-stretch: normal; text-transform: uppercase; letter-spacing: .04em; line-height: 1.18;
  background: linear-gradient(115deg, #f4f2ff 0%, #b9b0ff 18%, #ffffff 26%, #8fa8ff 38%, #e9e4ff 52%, #a493ff 64%, #ffffff 72%, #c8d4ff 86%, #f4f2ff 100%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(-1px 0 0 rgba(255, 0, 90, .28)) drop-shadow(1px 0 0 rgba(0, 190, 255, .28)) drop-shadow(0 0 18px rgba(150, 120, 255, .25)); }
.diamant.est-vu { animation: diamant 2.4s var(--ease) .2s both; }
.diamant::before, .diamant::after { content: ""; position: absolute; width: .62em; height: .62em; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><defs><radialGradient id='g'><stop offset='0' stop-color='white'/><stop offset='1' stop-color='white' stop-opacity='0'/></radialGradient></defs><circle cx='20' cy='20' r='7' fill='url(%23g)'/><path d='M20 0 21 19 40 20 21 21 20 40 19 21 0 20 19 19Z' fill='white'/></svg>") center / contain no-repeat;
  -webkit-background-clip: border-box; background-clip: border-box; }
.diamant::before { left: -.28em; top: -.22em; }
.diamant::after { right: -.3em; bottom: .05em; width: .46em; height: .46em; }
.diamant.est-vu::before { animation: scintille 6.5s ease-in-out 1.6s infinite; }
.diamant.est-vu::after { animation: scintille 6.5s ease-in-out 4.4s infinite; }
@keyframes scintille { 0%, 64%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 72% { opacity: 1; transform: scale(1) rotate(30deg); } 84% { opacity: 0; transform: scale(.35) rotate(70deg); } }
.porte h3.diamant { margin-inline: auto; }
.question-astre h2.diamant { font-size: .8rem; letter-spacing: .3em; }

/* 3. Welcome to Indy Eye : au milieu de l'écran, l'Astre juste derrière. */
.bienvenue { justify-items: center; text-align: center; }
.bienvenue .bloc { justify-items: center; max-width: 54rem; }
.bienvenue h2.diamant { max-width: 18ch; font-size: clamp(1.7rem, 4.4vw, 4.4rem); line-height: 1.12; margin-inline: auto; }
.bienvenue .bloc > p { text-shadow: 0 0 22px rgba(3, 3, 3, .95), 0 0 6px rgba(3, 3, 3, .9); opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.bienvenue.est-vu .bloc > p { opacity: 1; transform: none; }
.bienvenue.est-vu .bloc > p + p { transition-delay: .35s; }
.bienvenue__texte { margin-inline: auto; }
.bienvenue__formes { justify-items: center; margin-inline: auto; }

/* L'extrait de Phénix : il s'ouvre depuis la porte jusqu'aux bords de l'écran. */
.extrait { position: fixed; inset: 0; z-index: 60; background: #000; clip-path: inset(var(--h, 30%) var(--d, 40%) var(--b, 30%) var(--g, 40%)); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1), opacity 1s ease; }
.extrait.est-ouvert { clip-path: inset(0 0 0 0); }
.extrait.se-ferme { opacity: 0; }
.extrait__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.extrait__st { position: absolute; left: 50%; bottom: 14vh; width: min(90vw, 980px); transform: translateX(-50%); text-align: center; font-family: var(--corps); font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.5; color: #fff; text-shadow: 0 1px 2px #000, 0 0 18px rgba(0, 0, 0, .9); opacity: 0; transition: opacity .45s ease; text-wrap: balance; }
.extrait__st.est-visible { opacity: 1; }
.extrait__bas { position: absolute; left: max(18px, env(safe-area-inset-left, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 18px; font-family: var(--titre); font-stretch: 125%; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.extrait__barre { flex: 1; height: 1px; background: rgba(255, 255, 255, .2); }
.extrait__barre i { display: block; height: 100%; background: rgba(255, 255, 255, .85); transform-origin: 0 50%; transform: scaleX(0); }
.extrait__bas button { display: inline-flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .4); color: #fff; padding: 9px 16px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: border-color .3s, background .3s; }
.extrait__bas button:hover, .extrait__bas button:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .08); }
.extrait__son svg { width: 18px; height: 14px; flex: none; }
/* Étape 34 : curseur du volume, un trait fin rempli jusqu'au niveau (--v), poignée carrée blanche. */
.extrait__volume { --v: .2; -webkit-appearance: none; appearance: none; width: 96px; height: 24px; margin: 0 14px 0 0; background: transparent; cursor: pointer; flex: none; }
.extrait__volume::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .85) calc(var(--v) * 100%), rgba(255, 255, 255, .25) 0); }
.extrait__volume::-moz-range-track { height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .85) calc(var(--v) * 100%), rgba(255, 255, 255, .25) 0); }
.extrait__volume::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -4px; background: #fff; border: 0; border-radius: 0; }
.extrait__volume::-moz-range-thumb { width: 9px; height: 9px; background: #fff; border: 0; border-radius: 0; }
.extrait__volume:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.extrait__volume.est-muet { opacity: .4; }
.extrait__volume[hidden] { display: none; }
.extrait__son[aria-pressed="false"] { border-color: #fff; animation: appel 2.2s ease-in-out infinite; }
@keyframes appel { 50% { box-shadow: 0 0 0 6px rgba(var(--violet-rgb), .25); } }
@media (max-width: 600px) { .extrait__bas { gap: 10px; } .extrait__bas button { padding: 8px 10px; } .extrait__st { bottom: 16vh; } .extrait__volume { width: 64px; } }

/* ÉTAPE 6 — L'écriture diamant de la proposition C : les titres sont écrits en particules par diamant.js.
   Le texte HTML reste là, transparent (lecture d'écran, sélection) ; les étoiles CSS ne servent plus. */
.diamant.diamant--gl, .diamant.diamant--gl.est-vu { background: none; color: transparent; -webkit-text-fill-color: transparent; filter: none; text-shadow: none; animation: none; }
.diamant.diamant--gl::before, .diamant.diamant--gl::after { display: none; }
.diamant.diamant--gl::selection { background: rgba(150, 120, 255, .35); }

/* Le texte blanc sous Welcome : la police de « Cindy Gzaiel » sur l'Hologramme (Syncopate). Le reste garde la machine à écrire. */
.bienvenue__texte { font-family: "Syncopate", var(--gros-titre); font-weight: 400; font-stretch: normal; font-size: clamp(.86rem, 1.22vw, 1.12rem); line-height: 1.85; letter-spacing: .05em; max-width: 44rem; color: #f2f3f7; }

/* ÉTAPE 10 — Les listes apparaissent une par une, en fondu lent (montée légère, flou qui se dissipe). */
.un-par-un { position: relative; opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease), transform 1s var(--ease), color .3s, box-shadow .5s, background .5s; }
.un-par-un.est-la { opacity: 1; transform: none; }
/* Les cartes d'offre : elles montent de plus loin, et leur cadre s'allume un instant en arrivant. */
.offres > .un-par-un { transform: translateY(40px) scale(.98); }
.offres > .un-par-un.est-la { transform: none; animation: offre-cadre 2.2s var(--ease) .2s backwards; }
@keyframes offre-cadre { 0% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0); } 45% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 50px 4px rgba(var(--violet-rgb), .25); } 100% { box-shadow: 0 0 0 1px var(--gris-2); } }
.offres > .un-par-un > * { opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.offres > .un-par-un.est-la > * { opacity: 1; transform: none; }
.offres > .un-par-un.est-la > :nth-child(2) { transition-delay: .25s; }
.offres > .un-par-un.est-la > :nth-child(3) { transition-delay: .45s; }
.offres > .un-par-un.est-la > :nth-child(4) { transition-delay: .6s; }
/* Titres et phrases des pages : ils montent doucement en fondu. */
.apparait { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.apparait.est-la { opacity: 1; transform: none; }
/* Plus d'air entre « You are watching your life become a film » et « This is not just an idea ». */
.bande--idee { padding-bottom: clamp(160px, 28vh, 300px); }
@media (prefers-reduced-motion: reduce) { .un-par-un, .apparait, .offres > .un-par-un > * { opacity: 1; transform: none; filter: none; transition: none; animation: none; } }

/* ÉTAPE 9 — Welcome plus lisible : une ombre douce derrière le texte (l'Astre reste derrière, plus discret). */
.bienvenue__texte, .bienvenue__formes { position: relative; isolation: isolate; }
.bienvenue__texte::before, .bienvenue__formes::before { content: ""; position: absolute; inset: -18px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 2, 6, .82), rgba(2, 2, 6, .55) 60%, transparent); }
.bienvenue__texte { font-size: clamp(.92rem, 1.3vw, 1.2rem); text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 18px rgba(2, 2, 6, .95); }
.bienvenue__formes { color: #b9bccb; }
/* Les portes sont la fin : leurs noms suivent le fondu des portes (scene-seuil.js écrit l'opacité). */
.porte { transition: none; }

/* ÉTAPE 13 — la porte du son : écran d'arrivée qui demande le clic autorisant le son du film. */
html.attente-son { overflow: hidden; }
html.attente-son .nom, html.attente-son .arrivee__ligne { animation-play-state: paused; }
.porte-son { position: fixed; inset: 0; z-index: 80; display: none; place-content: center; justify-items: center; gap: 26px; padding: 24px; text-align: center;
  background: radial-gradient(closest-side, rgba(2, 2, 6, .55), rgba(2, 2, 6, .9)); transition: opacity .8s ease; }
html.attente-son .porte-son, .porte-son.se-ferme { display: grid; }
.porte-son.se-ferme { opacity: 0; pointer-events: none; }
.porte-son__titre { font-family: var(--titre); font-stretch: 125%; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gris); }
.porte-son .entrer { margin-top: 0; justify-self: center; }
.porte-son__sans { background: none; border: 0; padding: 8px 12px; cursor: pointer; font: inherit; font-size: .8rem; color: var(--gris); text-decoration: underline; text-underline-offset: 4px; transition: color .3s; }
.porte-son__sans:hover, .porte-son__sans:focus-visible { color: var(--texte); }

/* ÉTAPE 13 — sous-titres de l'extrait : les glitchs que final.js lance de temps en temps (translate : le centrage utilise transform). */
.extrait__st::before, .extrait__st::after { content: attr(data-t); position: absolute; inset: 0; pointer-events: none; opacity: 0; text-shadow: none; }
.extrait__st.g-rgb { animation: st-rgb .26s steps(1) both; }
@keyframes st-rgb {
  0%, 100% { text-shadow: 0 1px 2px #000, 0 0 18px rgba(0, 0, 0, .9); translate: 0 0; }
  20% { text-shadow: -5px 0 rgba(255, 0, 60, .85), 5px 0 rgba(0, 200, 255, .85); translate: 3px 0; }
  45% { text-shadow: 4px 0 rgba(255, 0, 60, .8), -4px 0 rgba(0, 200, 255, .8); translate: -3px 0; }
  70% { text-shadow: -2px 0 rgba(255, 0, 60, .7), 2px 0 rgba(0, 200, 255, .7); translate: 1px 0; }
}
.extrait__st.g-tranche::before, .extrait__st.g-tranche::after { opacity: 1; animation: st-tranche .28s steps(1) both; }
.extrait__st.g-tranche::before { clip-path: inset(var(--a, 20%) 0 var(--b, 55%) 0); color: #fff; }
.extrait__st.g-tranche::after { clip-path: inset(var(--c, 60%) 0 var(--d, 15%) 0); color: #7fe3ff; }
@keyframes st-tranche {
  0% { translate: calc(var(--sens, 1) * 12px) 0; }
  35% { translate: calc(var(--sens, 1) * -8px) 0; }
  70% { translate: calc(var(--sens, 1) * 4px) 0; }
  100% { translate: 0 0; opacity: 0; }
}
.extrait__st.g-flash { animation: st-flash .24s steps(1) both; }
@keyframes st-flash { 0%, 100% { opacity: 1; } 15% { opacity: .1; } 35% { opacity: 1; } 55% { opacity: .3; } 75% { opacity: 1; } }

/* ÉTAPE 15 — le pointeur est sur le monolithe d une porte (scene-seuil.js) : la main, comme sur un lien. */
html.sur-porte, html.sur-porte body { cursor: pointer; }

/* ÉTAPE 20 — l'Astre répond : le lien vers la bonne page, sous la réponse (astre.js). */
.reponse__lien { display: table; margin-top: 12px; font-family: var(--f-texte); font-stretch: 125%; font-weight: 500; font-size: .7rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gris); text-decoration: none; border-bottom: 1px solid var(--gris-2); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.reponse__lien::after { content: "  →"; }
.reponse__lien:hover, .reponse__lien:focus-visible { color: var(--texte); border-color: var(--texte); }

/* ÉTAPE 21 — la bulle de l'Astre (astre.js) : elle sort de lui, reliée par un fil, et le suit. Froide, nette : un cadre fin, pas de dessin animé. */
.question-astre .reponse { display: none; }
.bulle { position: fixed; left: 0; top: 0; z-index: 7; padding: 14px 18px 16px; background: rgba(4, 4, 8, .78); border: 1px solid rgba(237, 237, 238, .26);
  box-shadow: 0 0 0 1px rgba(var(--violet-rgb), .12), 0 18px 50px -20px rgba(0, 0, 0, .9); pointer-events: none;
  opacity: 0; scale: .96; transform-origin: 0 0; transition: opacity .45s var(--ease), scale .45s var(--ease), border-color .6s; will-change: transform; }
.bulle.est-la { opacity: 1; scale: 1; pointer-events: auto; }
.bulle::before { content: ""; position: absolute; left: -1px; top: 16px; width: 2px; height: 14px; background: var(--violet); }
.bulle__tete { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-family: var(--f-texte); font-stretch: 125%; text-transform: uppercase; font-size: .62rem; letter-spacing: .26em; }
.bulle__tete b { color: var(--violet); font-weight: 700; }
.bulle__emo { color: var(--gris); font-weight: 400; transition: color .4s; }
.bulle__emo::before { content: "· "; }
.bulle__texte { margin: 0; font-family: var(--f-texte); font-size: .98rem; line-height: 1.55; color: var(--texte); }
.bulle__lien { display: table; margin-top: 12px; font-family: var(--f-texte); font-stretch: 125%; font-weight: 500; font-size: .66rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gris); text-decoration: none; border-bottom: 1px solid var(--gris-2); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.bulle__lien::after { content: "  \2192"; }
.bulle__lien:hover, .bulle__lien:focus-visible { color: var(--texte); border-color: var(--texte); }
/* Pendant qu'il parle, le trait violet du bord bat doucement. */
.bulle.parle::before { animation: bulle-bat .5s ease-in-out infinite alternate; }
@keyframes bulle-bat { from { opacity: .35; } to { opacity: 1; } }
/* La couleur du cadre suit l'émotion, très légèrement. */
.bulle[data-emotion="joie"] { border-color: rgba(255, 236, 214, .34); }
.bulle[data-emotion="mystere"] { border-color: rgba(170, 150, 255, .4); }
.bulle[data-emotion="grave"] { border-color: rgba(237, 237, 238, .16); }
.bulle[data-emotion="perplexe"] .bulle__emo, .bulle[data-emotion="joie"] .bulle__emo { color: var(--texte); }
.bulle__fil { position: fixed; left: 0; top: 0; z-index: 7; height: 1px; transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--violet-rgb), 0), rgba(237, 237, 238, .55)); opacity: 0; transition: opacity .45s; }
.bulle__fil.est-la { opacity: 1; }
html[data-film] .bulle, html[data-film] .bulle__fil { display: none; }
@media (prefers-reduced-motion: reduce) { .bulle { transition: opacity .2s; scale: 1; } .bulle.parle::before { animation: none; } }

/* ÉTAPE 22 — le texte des titres diamant est caché dès le premier affichage (avant même les scripts, qui arrivent après la 3D) :
   on ne voit que les particules. diamant.js le rend (.diamant--html) seulement si elles ne peuvent pas l'écrire (pas de WebGL, titre trop petit). */
.diamant:not(.diamant--html) { color: transparent !important; -webkit-text-fill-color: transparent !important; background: none !important;
  filter: none !important; text-shadow: none !important; animation: none !important; }
.diamant:not(.diamant--html)::before, .diamant:not(.diamant--html)::after { display: none !important; }

/* Retours 03/12/2026 : porte franchie une fois dans la visite -> la traversee disparait : « Cindy Gzaiel » puis directement Welcome. */
.porte-passee #traversee{display:none!important}
/* Retours 03/12/2026 : les panneaux de l'accueil (Agencies…, Brands…) suivent le défilement en fondu, à l'aller comme au retour
   (opacité réglée par final.js) ; plus de flou animé (lourd sur les PC modestes). */
.panneau__grille { will-change: opacity; }
