/* ===== 1. Charte du Rêveur Ingénieux (coffre, pôle C, 2026-10-11) ===== */
:root {
  --indigo: #333399; --indigo-clair: #4040AD; --indigo-sombre: #272780;
  --bleu: #184989; --or: #F2B544; --or-doux: #F7D58B; --vert: #2E847B;
  --pourpre: #7851A9; --lait: #F5F2E6; --lait-clair: #FAF8F1; --nuit: #0D0D26;
  --lait-doux: rgba(245, 242, 230, .82); --encre-douce: rgba(13, 13, 38, .76);
  --titre: "Alegreya", Georgia, serif;
  --texte: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --sc: "Alegreya Sans SC", "Alegreya Sans", sans-serif;
  /* Une seule voix de mouvement, celle des vidéos LRI : entrée power3.out ; montée douce sans à-coup pour le ballon */
  --ease: cubic-bezier(.215, .61, .355, 1);
  --ease-doux: cubic-bezier(.45, .05, .25, 1);
  --ease-sinus: cubic-bezier(.37, 0, .63, 1);
  --d-vite: 200ms; --d-pose: 450ms; --d-revele: 800ms;
  --ombre: 0 8px 40px rgba(13, 13, 38, .08);
  --ombre-douce: 0 2px 14px rgba(13, 13, 38, .06);
  --entete: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 18px/1.6 var(--texte); color: var(--nuit); background: var(--lait); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 8px; }
.surtitre { font: 500 15px/1.4 var(--sc); letter-spacing: .05em; text-transform: lowercase; color: var(--pourpre); }
.sombre .surtitre { color: var(--or); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 6.2vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); color: var(--indigo); }
h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--indigo); }
.sombre h2, .sombre h3 { color: var(--lait); }
em.or { font-style: italic; color: var(--or); }
em.pourpre { font-style: italic; color: var(--pourpre); }
p { max-width: 64ch; }
.conteneur { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { position: relative; }
.sombre { background: var(--indigo); color: var(--lait); }

/* ===== 2. Boutons ===== */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font: 700 17px/1 var(--texte); text-decoration: none; letter-spacing: .01em;
  transition: transform var(--d-vite) var(--ease), box-shadow var(--d-vite) var(--ease), background-color var(--d-vite) var(--ease), border-color var(--d-vite) var(--ease); }
.bouton:active { transform: scale(.97); }
.bouton-or { background: var(--or); color: var(--nuit); box-shadow: 0 6px 20px rgba(13, 13, 38, .22); }
/* Prise de rendez-vous : fenêtre flottante presque plein écran, plein écran sur mobile */
.rdv { width: min(1120px, 100vw - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--lait); color: var(--nuit); box-shadow: 0 24px 80px rgba(13, 13, 38, .45); }
.rdv[open] { display: flex; flex-direction: column; animation: rdv-entree 260ms var(--ease) both; }
.rdv::backdrop { background: rgba(13, 13, 38, .62); backdrop-filter: blur(3px); }
@keyframes rdv-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.rdv-tete { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 10px 12px 10px 22px; border-bottom: 1px solid rgba(51, 51, 153, .14); }
.rdv-titre { margin: 0; max-width: none; flex: 1 1 220px; font: 600 18px/1.3 var(--titre); color: var(--indigo); }
.rdv-onglet { font-size: 15px; color: var(--bleu); text-underline-offset: 3px; }
.rdv-fermer { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(51, 51, 153, .08); color: var(--indigo); font-size: 26px; line-height: 44px; cursor: pointer; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.rdv-fermer:hover { background: rgba(51, 51, 153, .16); }
.rdv-fermer:active { transform: scale(.94); }
.rdv-cadre { flex: 1; width: 100%; border: 0; background: #fff; }
html.rdv-ouvert { overflow: hidden; }
@media (max-width: 640px) { .rdv { width: 100vw; height: 100dvh; border-radius: 0; } .rdv-onglet { order: 3; flex-basis: 100%; } }
.mouvement-reduit .rdv[open] { animation: none; }
.bouton-indigo { background: var(--indigo); color: var(--lait); box-shadow: 0 6px 20px rgba(13, 13, 38, .2); }
.bouton-fantome { color: var(--lait); border: 1.5px solid rgba(245, 242, 230, .45); }
.bouton-jalon { margin-top: 18px; min-height: 48px; padding: 0 22px; font-size: 16px; }
.bouton .fleche { transition: transform var(--d-vite) var(--ease); }
@media (hover: hover) {
  .bouton-or:hover { box-shadow: 0 10px 28px rgba(13, 13, 38, .28); transform: translateY(-2px); }
  .bouton-indigo:hover { background: var(--indigo-clair); transform: translateY(-2px); }
  .bouton-fantome:hover { border-color: var(--or); }
  .bouton:hover .fleche { transform: translateX(3px); }
  .portes-pied .bouton-fantome:hover .fleche { transform: translateY(3px); }
  .bouton-jalon:hover .fleche { transform: translate(2px, -2px); }
}

/* ===== 3. En-tête ===== */
.entete { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--entete); display: flex; align-items: center;
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  color: var(--lait); transition: background-color var(--d-pose) var(--ease), color var(--d-pose) var(--ease), box-shadow var(--d-pose) var(--ease); }
.entete.voile-sombre { background: rgba(39, 39, 128, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.entete.sur-clair { background: rgba(245, 242, 230, .92); color: var(--indigo); box-shadow: 0 1px 0 rgba(51, 51, 153, .1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.entete-inner { width: min(1180px, 100%); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--titre); white-space: nowrap; }
.marque .mini-ballon { width: 30px; height: 38px; }
.marque i { font-weight: 600; }
.nav { display: flex; gap: 20px; margin-left: auto; font: 500 16px/1 var(--texte); }
.nav a { text-decoration: none; padding: 14px 2px; opacity: .88; transition: opacity var(--d-vite) var(--ease); }
.nav a:hover { opacity: 1; }
.entete .bouton { min-height: 44px; padding: 0 20px; font-size: 16px; }
.bascule { min-height: 44px; padding: 0 12px; font: 500 14px/1.2 var(--texte); opacity: .8; border-radius: 999px; }
.bascule:hover { opacity: 1; }
@media (max-width: 1060px) { .nav { display: none; } .entete-inner > .bouton { margin-left: auto; } }
@media (max-width: 560px) {
  :root { --entete: 64px; }
  .entete-inner { gap: 8px; }
  .marque span { display: none; }
  .entete .bouton { padding: 0 16px; font-size: 15px; }
  .bascule { font-size: 13px; max-width: 92px; text-align: right; }
}

/* ===== 4. Ciel commun : étoiles, nuages ===== */
.etoiles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.etoiles circle { fill: var(--lait); }
.nuages-doux { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nuage { position: absolute; width: 62vmax; height: 24vmax; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 242, 230, .2), rgba(245, 242, 230, 0)); }
.nuage.pourpre { background: radial-gradient(closest-side, rgba(120, 81, 169, .5), rgba(120, 81, 169, 0)); }
.nuage-1 { left: 18%; top: 4%; } .nuage-2 { right: -22%; bottom: -6%; } .nuage-3 { left: -26%; bottom: 8%; width: 54vmax; height: 20vmax; }
.js:not(.mouvement-reduit) .nuage-1 { animation: derive 34s var(--ease-sinus) infinite alternate; }
.js:not(.mouvement-reduit) .nuage-2 { animation: derive 41s var(--ease-sinus) infinite alternate-reverse; }
.js:not(.mouvement-reduit) .nuage-3 { animation: derive 38s var(--ease-sinus) infinite alternate; }
@keyframes derive { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
/* Étoile filante, de temps en temps, tout en haut ; étoiles brillantes qui s'illuminent */
.filante { position: absolute; z-index: 1; width: 160px; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(245, 242, 230, 0), rgba(245, 242, 230, .9) 80%, #fff); transform-origin: 100% 50%; }
.filante::after { content: ""; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(247, 213, 139, .8); }
.brillante { position: absolute; z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; }
.brillante svg { width: 100%; height: 100%; }
.brillante.b1 { left: 22%; top: 13%; } .brillante.b2 { left: 83%; top: 9%; width: 20px; height: 20px; }
.js:not(.mouvement-reduit) .brillante.b1 { animation: brille 7s var(--ease-sinus) infinite 1.5s; }
.js:not(.mouvement-reduit) .brillante.b2 { animation: brille 9s var(--ease-sinus) infinite 5s; }
@keyframes brille { 0%, 70%, 100% { transform: scale(.35) rotate(0); opacity: .45; } 82% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.mouvement-reduit .filante { display: none; }
/* Le défilement attend la fin de l'ouverture (demande de Sébastien, 2026-10-18) */
html { scrollbar-gutter: stable; }
html.verrou, html.verrou body { overflow: hidden; }

/* ===== 5. Ouverture : le badge se construit au premier geste (souris, défilement, toucher, clavier) ===== */
.ouverture { min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 70% 40%, var(--indigo-clair) 0%, var(--indigo) 45%, var(--indigo-sombre) 100%); }
.ouverture .conteneur { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 40px; padding: calc(var(--entete) + 40px) 0 80px; }
.ouverture-texte .surtitre { margin-bottom: 18px; }
.ouverture h1 { color: var(--lait); margin-bottom: 24px; }
.ouverture .chapeau { font-size: clamp(18px, 1.5vw, 20px); color: var(--lait-doux); margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pastille-mission { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font: 500 15px/1.3 var(--texte); color: var(--lait-doux); }
.pastille-mission::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 4px rgba(46, 132, 123, .3); }
.scene-badge { position: relative; aspect-ratio: 93.45 / 120; width: min(100%, 320px); justify-self: center; }
.scene-badge .halo { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 181, 68, .3), rgba(242, 181, 68, 0) 70%); opacity: 0; transform: scale(.6); }
.montee, .flotte { position: absolute; inset: 0; }
.scene-badge svg { width: 100%; height: 100%; overflow: visible; }
.etiquette { position: absolute; top: 24%; white-space: nowrap; color: var(--lait); transition: transform 1.5s var(--ease-doux), opacity 1.5s var(--ease-doux); }
.etiquette.reveur { right: 72%; text-align: right; }
.etiquette.ingenieux { left: 72%; }
@media (min-width: 861px) { .etiquette { top: auto; bottom: 104%; } }
.etiquette b { display: block; font: italic 600 clamp(26px, 2.6vw, 36px)/1.05 var(--titre); }
.etiquette::after { content: ""; display: block; width: 46px; height: 2px; margin-top: 10px; background: var(--or); border-radius: 2px; }
.etiquette.reveur::after { margin-left: auto; }
.etiquette.ingenieux b { font: 700 clamp(24px, 2.4vw, 33px)/1.05 var(--sc); letter-spacing: .03em; text-transform: lowercase; }
.etiquette span { display: block; margin-top: 6px; font: 500 17px/1.3 var(--sc); letter-spacing: .05em; color: var(--or); }
/* Pièces du ballon */
.ballon .p { transform-box: fill-box; }
.ballon.sur-fonce .p-reveur, .ballon.sur-fonce .p-ingenieur, .ballon.sur-fonce .p-corde, .ballon.sur-fonce .p-nacelle path, .ballon.sur-fonce .p-panier path { fill: var(--lait); }
.ballon.sur-fonce .p-ingenieur { fill-opacity: .86; }
/* État de départ : ballon plus bas et plus petit, croissants écartés, ni nacelle ni flamme */
.js .ouverture .montee { transform: translateY(70px) scale(.74); transform-origin: 50% 100%; }
.js .ouverture .p-reveur { transform: translate(-150px, 20px) rotate(-14deg); opacity: 1; transform-origin: center; }
.js .ouverture .p-ingenieur { transform: translate(150px, -16px) rotate(14deg); opacity: 1; transform-origin: center; }
.js .ouverture .p-corde { transform: scaleY(0); transform-origin: 50% 0; }
.js .ouverture .p-nacelle, .js .ouverture .p-panier { opacity: 0; transform: translateY(-12px); }
.js .ouverture .p-flamme { transform: scale(0); opacity: 0; transform-origin: 50% 92%; }
.js .ouverture .etiquette.reveur { transform: translateX(-26%); }
.js .ouverture .etiquette.ingenieux { transform: translateX(26%); }
/* La séquence, jouée à son rythme (≈ 4,7 s) : croissants → cordes → nacelle → petite flamme qui grandit → envol → flottement */
.ouverture .montee { transition: transform 2.6s var(--ease-doux) 2.1s; }
.ouverture .p-reveur, .ouverture .p-ingenieur { transition: transform 1.5s var(--ease-doux), opacity 1.2s var(--ease-doux); }
.ouverture .p-corde { transition: transform .8s var(--ease-doux) 1.15s; }
.ouverture .p-nacelle, .ouverture .p-panier { transition: transform .7s var(--ease-doux) 1.55s, opacity .7s var(--ease-doux) 1.55s; }
.ouverture .halo { transition: opacity 2.2s var(--ease-doux) 2.1s, transform 2.6s var(--ease-doux) 2.1s; }
.js .ouverture.joue .montee { transform: none; }
.js .ouverture.joue .p-reveur, .js .ouverture.joue .p-ingenieur { transform: none; opacity: 1; }
.js .ouverture.joue .p-corde { transform: none; }
.js .ouverture.joue .p-nacelle, .js .ouverture.joue .p-panier { transform: none; opacity: 1; }
.js .ouverture.joue .p-flamme { animation: flamme 2.4s var(--ease-doux) 2s both; }
.js .ouverture.joue .halo { opacity: 1; transform: scale(1); }
.js .ouverture.joue .etiquette { transform: none; }
.js .ouverture.joue .flotte { animation: flotte 7s var(--ease-sinus) 4.7s infinite; }
@keyframes flamme { 0% { transform: scale(0); opacity: 0; } 18% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1deg); } }
.indice-defile { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 14px/1 var(--texte); color: var(--lait-doux); text-decoration: none; }
.indice-defile span { width: 1.5px; height: 36px; background: linear-gradient(var(--or), transparent); animation: goutte 2.4s var(--ease-sinus) infinite; transform-origin: top; }
@keyframes goutte { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
  .ouverture .conteneur { grid-template-columns: 1fr; gap: 6px; padding-top: calc(var(--entete) + 16px); }
  .scene-badge { order: -1; width: min(36vw, 160px); margin-bottom: 18px; }
  .etiquette { top: 18%; }
  .etiquette.reveur { right: 100%; margin-right: 4%; } .etiquette.ingenieux { left: 100%; margin-left: 4%; }
  .etiquette b { font-size: 21px; } .etiquette.ingenieux b { font-size: 19px; } .etiquette span { font-size: 14px; }
  .etiquette::after { width: 30px; margin-top: 6px; }
  .js .ouverture .etiquette.reveur { transform: translateX(-12%); } .js .ouverture .etiquette.ingenieux { transform: translateX(12%); }
  .indice-defile { display: none; }
}

/* ===== 5 bis. La traversée : on monte à travers les nuages, la nuit devient le jour de la méthode ===== */
.film, .voile-arrivee { position: fixed; inset: 0; pointer-events: none; visibility: hidden; opacity: 0; }
.film { z-index: 45; }
.film.actif, .voile-arrivee.actif { visibility: visible; }
.film .couche { position: absolute; inset: 0; }
.voile-arrivee { z-index: 46; background: var(--lait); }
.t-nuit { background: radial-gradient(120% 90% at 70% 40%, var(--indigo-clair) 0%, var(--indigo) 45%, var(--indigo-sombre) 100%); }
.t-aube { background: linear-gradient(180deg, var(--indigo-clair) 0%, var(--pourpre) 46%, var(--or-doux) 100%); }
.t-jour { background: linear-gradient(180deg, #F3E7C8 0%, var(--lait) 60%); }
.t-nuages .nuage { margin: -12vmax 0 0 -31vmax; left: 0; top: 0; will-change: transform, opacity; background: radial-gradient(closest-side, rgba(245, 242, 230, .62), rgba(245, 242, 230, 0)); }
.t-nuages .nuage.pourpre { background: radial-gradient(closest-side, rgba(120, 81, 169, .62), rgba(120, 81, 169, 0)); }
.t-phrase { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 20px; opacity: 0;
  font: italic 500 clamp(28px, 4vw, 52px)/1.2 var(--titre); color: var(--indigo); max-width: none; }
.t-phrase em { color: var(--pourpre); }
/* La montgolfière de l'ouverture s'envole et se pose sur le logo de l'en-tête */
.ballon-volant { position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none; visibility: hidden; transform-origin: 0 0; will-change: transform; }
.ballon-volant.actif { visibility: visible; }
.ballon-volant svg { width: 100%; height: 100%; overflow: visible; }
.ouverture .ouverture-texte, .ouverture .indice-defile { transition: opacity .8s var(--ease-doux), transform .8s var(--ease-doux); }
.ouverture.depart .ouverture-texte { opacity: 0; transform: translateX(-30px); }
.ouverture.depart .etiquette.reveur { opacity: 0; transform: translateX(-40px); transition-delay: 0s; }
.ouverture.depart .etiquette.ingenieux { opacity: 0; transform: translateX(40px); transition-delay: 0s; }
.ouverture.depart .indice-defile, .ouverture.depart .halo { opacity: 0 !important; }
.ouverture.depart .montee { visibility: hidden; }
.mini-ballon.recoit { animation: recoit .7s var(--ease) 1 both; }
@keyframes recoit { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ===== 6. Sections et apparitions ===== */
.bloc { padding: clamp(80px, 11vw, 140px) 0; }
.bloc-tete { max-width: 780px; margin-bottom: 52px; }
.bloc-tete .surtitre { margin-bottom: 14px; }
.bloc-tete h2 { margin-bottom: 18px; }
.bloc-tete p { color: var(--encre-douce); font-size: 19px; }
.sombre .bloc-tete p { color: var(--lait-doux); }
.mot { display: inline-block; }
.js [data-mots] .mot { opacity: 0; transform: translateY(24px); filter: blur(8px);
  transition: opacity var(--d-pose) var(--ease), transform var(--d-pose) var(--ease), filter var(--d-pose) var(--ease); transition-delay: calc(var(--i) * 40ms); }
.js [data-mots].vue .mot { opacity: 1; transform: none; filter: none; }
.js #titre-principal .mot { opacity: 1; transform: none; filter: none; transition: none; animation: motEntre var(--d-pose) var(--ease) both; animation-delay: calc(100ms + var(--i) * 40ms); }
@keyframes motEntre { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
.js .monte { opacity: 0; transform: translateY(20px); transition: opacity var(--d-pose) var(--ease), transform var(--d-pose) var(--ease); }
.js .monte.vue { opacity: 1; transform: none; }
.mouvement-reduit [data-mots] .mot, .mouvement-reduit .monte { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; }

/* ===== 7. La méthode : Rêver grand, puis les quatre éléments ===== */
.methode .intro { font: 500 clamp(21px, 2.1vw, 26px)/1.45 var(--titre); color: var(--nuit); max-width: 34em; }
.methode .intro em { color: var(--pourpre); }
.image-double { margin: 70px 0 10px; max-width: 760px; }
.image-double .surtitre { margin-bottom: 12px; }
.image-double h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.image-double h3 em { color: var(--pourpre); }
.image-double p { color: var(--encre-douce); font-size: 19px; }
.methode-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); margin-top: 30px; }
.collant { position: sticky; top: max(calc(var(--entete) + 10px), calc(50vh - 220px)); display: flex; flex-direction: column; align-items: center; align-self: start; }
.badge-construit { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.badge-construit .porte-ballon { position: absolute; left: 24%; right: 24%; top: 14%; bottom: 10%; transition: transform 1.4s var(--ease-doux); }
.badge-construit .porte-ballon svg { width: 100%; height: 100%; overflow: visible; }
.badge-construit .p { transition: opacity var(--d-pose) var(--ease), filter var(--d-pose) var(--ease), transform var(--d-pose) var(--ease); transform-origin: 50% 50%; }
.badge-construit .p-nacelle, .badge-construit .p-panier { transition-delay: .15s; }
.badge-construit .p-flamme { transform-origin: 50% 92%; }
.badge-construit .p-corde { transform-origin: 50% 0; }
/* La quintessence : une aura pourpre, une étoile au-dessus, et la montgolfière libérée qui s'élève */
.badge-construit .aura { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 81, 169, .34), rgba(120, 81, 169, .12) 55%, rgba(120, 81, 169, 0)); opacity: 0; transform: scale(.7); transition: opacity 1.2s var(--ease-doux), transform 1.6s var(--ease-doux); }
.badge-construit .quint { position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin-left: -17px; fill: var(--pourpre); opacity: 0; transform: scale(.3) rotate(-45deg); transition: opacity .8s var(--ease) .5s, transform 1s var(--ease) .5s; }
.etat { margin-top: 18px; min-height: 1.4em; font: 500 16px/1.3 var(--sc); letter-spacing: .05em; color: var(--pourpre); text-align: center; }
.js:not(.mouvement-reduit) .badge-construit .p { opacity: .1; filter: saturate(0); }
.js:not(.mouvement-reduit) .badge-construit .p-reveur { transform: translateX(-60px); }
.js:not(.mouvement-reduit) .badge-construit .p-ingenieur { transform: translateX(60px); }
.js:not(.mouvement-reduit) .badge-construit .p-corde { transform: scaleY(0); }
.js:not(.mouvement-reduit) .badge-construit .p-nacelle, .js:not(.mouvement-reduit) .badge-construit .p-panier { transform: translateY(-30px); }
.js:not(.mouvement-reduit) .badge-construit .p-flamme { transform: scale(.3); }
.js [data-atteint="1"] .p-reveur, .js [data-atteint="2"] .p-reveur, .js [data-atteint="3"] .p-reveur, .js [data-atteint="4"] .p-reveur, .js [data-atteint="5"] .p-reveur,
.js [data-atteint="2"] .p-ingenieur, .js [data-atteint="3"] .p-ingenieur, .js [data-atteint="4"] .p-ingenieur, .js [data-atteint="5"] .p-ingenieur,
.js [data-atteint="3"] .p-nacelle, .js [data-atteint="4"] .p-nacelle, .js [data-atteint="5"] .p-nacelle,
.js [data-atteint="3"] .p-panier, .js [data-atteint="4"] .p-panier, .js [data-atteint="5"] .p-panier { opacity: 1 !important; filter: none !important; transform: none !important; }
.js [data-atteint="3"] .p-corde, .js [data-atteint="4"] .p-corde, .js [data-atteint="5"] .p-corde,
.js [data-atteint="4"] .p-flamme, .js [data-atteint="5"] .p-flamme { opacity: 1 !important; filter: none !important; transform: none !important; }
.js [data-atteint="5"] .porte-ballon, .mouvement-reduit .badge-construit .porte-ballon { transform: translateY(-6%); }
.js [data-atteint="5"] .aura, .mouvement-reduit .badge-construit .aura { opacity: 1; transform: scale(1); }
.js [data-atteint="5"] .quint, .mouvement-reduit .badge-construit .quint { opacity: 1; transform: none; }
.js:not(.mouvement-reduit) [data-atteint="5"] .porte-ballon svg { animation: flotte 6s var(--ease-sinus) 1.4s infinite; }
.etapes { list-style: none; }
.etape { position: relative; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; padding: 34px 0 34px 30px; border-left: 2px solid rgba(51, 51, 153, .14); transition: border-color var(--d-pose) var(--ease), opacity 300ms var(--ease); }
.js:not(.mouvement-reduit) .etape:not(.actif) { opacity: .45; }
.etape::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--lait); border: 2px solid rgba(51, 51, 153, .3);
  transition: background-color var(--d-pose) var(--ease), border-color var(--d-pose) var(--ease), transform var(--d-pose) var(--ease); }
.etape.actif { border-left-color: var(--indigo); }
.etape.actif::before { background: var(--or); border-color: var(--or); transform: scale(1.25); }
.etape .element { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--sc); letter-spacing: .05em; color: var(--pourpre); margin-bottom: 8px; }
.etape .element i { width: 12px; height: 12px; border-radius: 50%; }
.etape h3 { margin-bottom: 4px; }
.etape .titre-action { font: italic 500 clamp(20px, 2vw, 24px)/1.3 var(--titre); color: var(--pourpre); margin-bottom: 12px; }
.etape .corps { color: var(--encre-douce); font-size: 18px; max-width: 32em; }
.etape.quintessence.actif { border-left-color: var(--pourpre); }
.etape.quintessence.actif::before { background: var(--pourpre); border-color: var(--pourpre); }
.etape.quintessence h3 { color: var(--pourpre); }
.fait { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 18px 8px 10px; background: var(--vert); color: var(--lait); border-radius: 999px; font: 700 19px/1.2 var(--texte); align-self: flex-start; }
.fait .coche { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(245, 242, 230, .22); }
.fait .coche svg { width: 15px; height: 15px; fill: none; stroke: var(--lait); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fait .coche path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js:not(.mouvement-reduit) .fait { opacity: 0; transform: scale(.92); transform-origin: 0 50%; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js:not(.mouvement-reduit) .fait .coche path { stroke-dashoffset: 1; transition: stroke-dashoffset 300ms var(--ease) 400ms; }
.js .fait.joue { opacity: 1; transform: none; }
.js .fait.joue .coche path { stroke-dashoffset: 0; }
.sigle { font-family: var(--sc); font-weight: 700; letter-spacing: .03em; text-transform: lowercase; text-decoration: none; }
.puce-air { background: var(--indigo); } .puce-eau { background: var(--bleu); } .puce-feu { background: var(--or); } .puce-terre { background: var(--vert); } .puce-quint { background: var(--pourpre); }
.mouvement-reduit .etape, html:not(.js) .etape { min-height: 0; }
@media (max-width: 860px) {
  .methode-grille { grid-template-columns: 1fr; gap: 0; }
  .collant { top: var(--entete); z-index: 2; flex-direction: row; gap: 16px; padding: 10px 0; background: var(--lait); border-bottom: 1px solid rgba(51, 51, 153, .1); }
  .badge-construit { width: 72px; }
  .badge-construit .quint { width: 14px; height: 14px; margin-left: -7px; top: -4px; }
  .etat { margin: 0; text-align: left; }
  .etape { min-height: auto; padding: 32px 0 32px 22px; }
}

/* ===== 8. Les trois portes : le monde du Rêveur Ingénieux (fond du short LRI) ===== */
.portes { background: var(--indigo-sombre); color: var(--lait); }
.portes-scene { position: relative; overflow: hidden; background: var(--indigo); }
.js:not(.mouvement-reduit) .portes-scene { height: 100vh; height: 100svh; }
.portes-grille { position: relative; z-index: 3; height: 100%; width: min(1180px, 100% - 40px); margin-inline: auto; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--entete) + 10px) 0 24vh; }
.portes-tete { max-width: 720px; margin-bottom: 26px; }
.portes-tete .surtitre { margin-bottom: 10px; }
.portes-tete h2 { color: var(--lait); margin-bottom: 10px; font-size: clamp(28px, 3.6vw, 44px); }
.portes-tete p { color: var(--lait-doux); font-size: 18px; }
.portes-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portes-liste { perspective: 1400px; }
.porte { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: rgba(13, 13, 38, .42); border: 1px solid rgba(245, 242, 230, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease), border-color var(--d-pose) var(--ease), box-shadow var(--d-pose) var(--ease); }
.porte .num { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--sc); letter-spacing: .05em; color: var(--or); margin-bottom: 10px; }
.porte .num i { width: 12px; height: 12px; border-radius: 50%; }
.porte h3 { color: var(--lait); font-size: clamp(22px, 1.9vw, 27px); margin-bottom: 10px; }
.porte p { color: var(--lait-doux); font-size: 16px; }
.porte .pour { margin-top: 12px; font-size: 16px; }
.porte .pour strong { color: var(--or); font-weight: 700; }
.porte .preuve { margin-top: 10px; font: 500 14px/1.4 var(--sc); letter-spacing: .04em; color: var(--lait-doux); }
.porte.courante { border-color: var(--or); box-shadow: 0 0 0 1px var(--or), 0 18px 50px rgba(13, 13, 38, .35); }
/* Le battant : une porte fermée qui s'ouvre sur sa charnière gauche */
.battant { position: absolute; inset: -1px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 20px;
  background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-sombre) 100%); border: 1.5px dashed rgba(242, 181, 68, .75); color: var(--lait);
  transform-origin: 0 50%; transition: transform 1.3s var(--ease-doux), opacity .5s var(--ease) .8s, box-shadow var(--d-pose) var(--ease); cursor: pointer; backface-visibility: hidden; }
.battant .serrure { width: 34px; height: 34px; color: var(--or); }
.battant .serrure svg { width: 100%; height: 100%; }
.battant-num { font: 600 24px/1 var(--titre); }
.battant-aide { font: 500 15px/1.2 var(--sc); letter-spacing: .05em; color: var(--or); text-transform: lowercase; }
.porte.attente .battant { animation: appelle 2.6s var(--ease-sinus) infinite; }
@keyframes appelle { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 181, 68, 0); } 50% { box-shadow: 0 0 0 6px rgba(242, 181, 68, .18); } }
@media (hover: hover) { .battant:hover { box-shadow: 0 0 0 6px rgba(242, 181, 68, .28); } }
.porte .contenu-porte { transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
.js:not(.mouvement-reduit) .porte:not(.visible) .contenu-porte { opacity: 0; transform: translateX(14px); }
.porte.visible .battant { transform: rotateY(-108deg); opacity: 0; pointer-events: none; }
.mouvement-reduit .battant, html:not(.js) .battant { display: none; }
.portes-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; transition: opacity .8s var(--ease) 1.3s, transform .8s var(--ease) 1.3s, filter .8s var(--ease) 1.3s; }
.js:not(.mouvement-reduit) .porte:not(.visible):not(.attente), .js:not(.mouvement-reduit) .portes-pied:not(.visible) { opacity: 0; transform: translateY(28px); filter: blur(6px); pointer-events: none; transition-delay: 0s; }
.porte.attente:not(.visible) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.js:not(.mouvement-reduit) .portes-tete { transition: opacity .6s var(--ease); }
html:not(.js) .portes-grille, .mouvement-reduit .portes-grille { padding: 110px 0 30vh; height: auto; }
@media (max-width: 960px) { .portes-liste { grid-template-columns: 1fr; gap: 10px; } .porte { padding: 14px 16px; } .porte .corps-porte, .porte .preuve { display: none; } .porte h3 { margin-bottom: 4px; } .porte .pour { margin-top: 4px; } }
@media (max-width: 860px) {
  .portes-grille { justify-content: flex-start; padding: calc(var(--entete) + 14px) 0 0; }
  .portes-tete { margin-bottom: 14px; } .portes-tete h2 { font-size: 26px; } .portes-tete p { display: none; }
  .porte h3 { font-size: 21px; } .porte .pour { font-size: 15px; }
  .portes-pied { margin-top: 14px; }
}
/* Le monde : le fond du short LRI en plein écran, paysage au bureau, portrait au téléphone */
.monde { position: absolute; inset: 0; z-index: 1; background: var(--indigo); transform-origin: 50% 72%; will-change: transform; }
.monde svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.voile-portes { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(39, 39, 128, .5) 0%, rgba(39, 39, 128, .2) 55%, rgba(39, 39, 128, 0) 72%); }
.aube-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(80% 70% at 50% 72%, var(--lait) 0%, var(--lait) 40%, rgba(245, 242, 230, .9) 100%); opacity: 0; }
.legende-monde { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; text-align: center; font: 500 13px/1.3 var(--sc); letter-spacing: .05em; color: var(--lait-doux); max-width: none; }
@media (max-width: 860px) {
  .monde { transform-origin: 50% 83%; }
  .voile-portes { background: linear-gradient(180deg, rgba(39, 39, 128, .55) 0%, rgba(39, 39, 128, .3) 55%, rgba(39, 39, 128, 0) 75%); }
}

/* ===== 9. Le parcours ===== */
.parcours-tete { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 40px; }
.parcours-tete .bloc-tete { margin-bottom: 0; }
.portrait-rond { text-align: center; }
.portrait-rond img { width: 210px; height: 210px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 6px solid var(--or); box-shadow: var(--ombre); background: var(--lait-clair); margin: 0 auto; }
.portrait-rond figcaption { margin-top: 12px; font-size: 15px; color: var(--encre-douce); max-width: 220px; }
/* La frise : un rail central qui se remplit d'or, des médaillons qui s'allument, des cartes en alternance */
.parcours { overflow-x: clip; }
.frise { position: relative; padding: 10px 0 20px; }
.frise-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trace-fond, .trace-or { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace-fond { stroke: rgba(51, 51, 153, .14); stroke-width: 3; stroke-dasharray: 2 9; }
.trace-or { stroke: var(--or); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.jalons { list-style: none; display: flex; flex-direction: column; }
/* le zigzag : les blocs alternent, un couloir central porte les médaillons, chaque bloc remonte sous le précédent */
.jalon { position: relative; width: 43%; }
.jalon:nth-child(odd) { align-self: flex-start; }
.jalon:nth-child(even) { align-self: flex-end; }
.jalon + .jalon { margin-top: 30px; }
.frise.quinconce .jalons { position: relative; display: block; }
.frise.quinconce .jalon { position: absolute; margin: 0; }
.frise.quinconce .jalon:nth-child(odd) { left: 0; }
.frise.quinconce .jalon:nth-child(even) { right: 0; }
.medaillon { position: absolute; z-index: 2; top: 22px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--lait); border: 2px solid rgba(51, 51, 153, .28); color: var(--indigo); font: 600 17px/1 var(--titre); font-variant-numeric: tabular-nums;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.jalon:nth-child(odd) .medaillon { right: -32px; }
.jalon:nth-child(even) .medaillon { left: -32px; }
.jalon.atteint .medaillon { background: var(--or); border-color: var(--or); color: var(--nuit); box-shadow: 0 0 0 7px rgba(242, 181, 68, .2); }
.jalon.ombre.atteint .medaillon { background: var(--pourpre); border-color: var(--pourpre); color: var(--lait); box-shadow: 0 0 0 7px rgba(120, 81, 169, .2); }
.jalon.realise.atteint .medaillon { background: var(--vert); border-color: var(--vert); color: var(--lait); box-shadow: 0 0 0 7px rgba(46, 132, 123, .2); }
.jalon.present.atteint .medaillon { background: var(--indigo); border-color: var(--indigo); color: var(--or); font-size: 22px; box-shadow: 0 0 0 7px rgba(51, 51, 153, .18); }
.carte-jalon { padding: 24px 28px; border-radius: 20px; background: var(--lait-clair); box-shadow: var(--ombre-douce); border: 1px solid rgba(51, 51, 153, .07); }
.jalon:nth-child(odd) .carte-jalon { margin-right: 44px; }
.jalon:nth-child(even) .carte-jalon { margin-left: 44px; }
.jalon.ombre .carte-jalon { background: #EFEAF4; }
.carte-jalon .an { font: 500 15px/1.3 var(--sc); letter-spacing: .05em; color: var(--pourpre); margin-bottom: 6px; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pastille-jalon { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(120, 81, 169, .14); color: var(--pourpre); font: 700 14px/1.2 var(--sc); letter-spacing: .05em; text-transform: lowercase; max-width: none; }
.realise .pastille-jalon { background: rgba(46, 132, 123, .14); color: #1F6159; }
.carte-jalon h3 { font-size: clamp(22px, 2vw, 26px); margin-bottom: 8px; }
.carte-jalon p:not(.an):not(.pastille-jalon):not(.label-fort):not(.photo-titre):not([class^="phoenix-"]) { font-size: 17px; color: var(--encre-douce); max-width: none; }
/* un bloc par année, séparé à l'intérieur */
.multi .sous + .sous { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(51, 51, 153, .2); }
.carte-jalon > p:not(.an) + .sous, .carte-jalon > figure + .sous { margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(51, 51, 153, .2); }
.sous .pastille-jalon { margin-bottom: 6px; }
.sous.ombre { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; padding-bottom: 12px; border-radius: 14px; background: #EFEAF4; }
.multi .sous.ombre + .sous, .multi .sous + .sous.ombre { border-top-color: transparent; }
.sous.ombre h3 { color: var(--pourpre); }
/* la phrase mise en avant */
.label-fort { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--or); color: var(--nuit);
  font: italic 600 19px/1.25 var(--titre); box-shadow: 0 6px 18px rgba(242, 181, 68, .28); max-width: none; }
.label-fort::before { content: "◆"; font-style: normal; font-size: 12px; color: var(--indigo); }
/* les photos et logos : une ou plusieurs par bloc, taille libre */
.galerie { margin: 16px 0 0; display: grid; gap: 10px; }
.galerie.deux { grid-template-columns: 1fr 1fr; align-items: center; }
.galerie img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--ombre-douce); }
.galerie img.photo-portrait { max-width: 210px; }
.galerie img.logo { box-shadow: none; border-radius: 12px; background: #fff; padding: 14px 18px; max-height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.galerie img.logo-carre { max-height: 140px; }
.galerie figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--encre-douce); }
/* P.H.Œ.N.I.X : la scène de nuit, ses braises, ses lettres */
.lecteur-seul { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.phoenix { margin: 16px 0 0; }
.phoenix-scene { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 80% at 50% 100%, #2a1a3a 0%, var(--nuit) 62%); box-shadow: var(--ombre-douce); isolation: isolate; }
.phoenix-braises { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.phoenix-compte { position: absolute; z-index: 0; left: 0; right: 0; top: 14%; margin: 0; max-width: none; text-align: center; font: 700 clamp(120px, 34vw, 210px)/1 var(--titre); color: rgba(242, 181, 68, .16) !important; transition: opacity 600ms var(--ease); }
.phoenix-oiseau { position: absolute; z-index: 1; left: 50%; top: 9%; width: 78%; height: auto; transform: translate(-50%, 14px) scale(.94); opacity: 0; transition: opacity 900ms var(--ease), transform 1200ms var(--ease), filter 900ms var(--ease); pointer-events: none; border-radius: 0 !important; box-shadow: none !important; }
.phoenix-oiseau.actif { opacity: 1; transform: translate(-50%, 0) scale(1); }
.phoenix-oiseau.eteint { filter: brightness(.38) saturate(.6); }
.phoenix-oiseau.monte.actif { transform: translate(-50%, -10px) scale(1.04); }
.js:not(.mouvement-reduit) .phoenix-oiseau.plane.actif { animation: phoenix-plane 4.8s ease-in-out infinite; }
@keyframes phoenix-plane { 0%, 100% { transform: translate(-50%, -6px) scale(1.04); } 50% { transform: translate(-50%, -18px) scale(1.06); } }
.phoenix-legende { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(13, 13, 38, .92) 30%, rgba(13, 13, 38, 0)); }
.phoenix-legende p { margin: 0; max-width: none; }
.carte-jalon .phoenix-legende .phoenix-an { font: 700 14px/1.2 var(--sc); letter-spacing: .12em; color: var(--or); }
.carte-jalon .phoenix-legende .phoenix-mot { margin-top: 2px; font: 600 clamp(22px, 2.4vw, 28px)/1.15 var(--titre); color: #fff; }
.carte-jalon .phoenix-legende .phoenix-texte { margin-top: 6px; min-height: 2.8em; font-size: 15px; line-height: 1.45; color: rgba(245, 242, 230, .86); }
.phoenix-legende .change { animation: phoenix-texte 520ms var(--ease) both; }
@keyframes phoenix-texte { from { opacity: 0; transform: translateY(8px); } }
.phoenix-scene .pause-media { z-index: 3; top: 10px; bottom: auto; }
.phoenix-lettres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; }
.phoenix-lettre { min-height: 44px; border: 0; border-radius: 10px; background: rgba(51, 51, 153, .07); color: rgba(51, 51, 153, .55); font: 700 20px/1 var(--titre); cursor: pointer; transition: background 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease); }
.phoenix-lettre:hover { background: rgba(51, 51, 153, .14); }
.phoenix-lettre:active { transform: scale(.95); }
.phoenix-lettre.vu { color: var(--indigo); }
.phoenix-lettre.actif { background: var(--nuit); color: var(--or); }
.phoenix .lecteur-seul + figcaption { margin-top: 8px; }
/* Photo titrée : un titre en haut, le logo blanc posé en bas à droite, sur un voile discret */
.photo-titree { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--ombre-douce); }
.photo-titree > img:first-child { display: block; border-radius: 0; box-shadow: none; }
.photo-titree::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(13, 13, 38, .62) 0, rgba(13, 13, 38, 0) 34%, rgba(13, 13, 38, 0) 66%, rgba(13, 13, 38, .55) 100%); }
.photo-titree .photo-titre { position: absolute; z-index: 1; left: 16px; right: 16px; top: 12px; margin: 0; max-width: none; color: #fff; font: 600 clamp(17px, 2vw, 23px)/1.2 var(--titre); text-shadow: 0 1px 10px rgba(13, 13, 38, .55); }
.photo-titree.sans-titre::after { background: linear-gradient(to bottom, rgba(13, 13, 38, 0) 58%, rgba(13, 13, 38, .6) 100%); }
.photo-titree .photo-logo.lovazen { width: 24%; max-width: 130px; filter: drop-shadow(0 1px 6px rgba(13, 13, 38, .5)); opacity: .96; }
.photo-titree .photo-logo.couleur { width: 38%; max-width: 210px; filter: none; opacity: 1; }
.photo-titree .photo-logo { position: absolute; z-index: 1; right: 14px; bottom: 12px; width: 30%; max-width: 160px; height: auto; border-radius: 0; box-shadow: none; filter: brightness(0) invert(1); opacity: .94; }
.video-boucle { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--nuit); box-shadow: var(--ombre-douce); }
.video-boucle video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-conference { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--nuit); box-shadow: var(--ombre-douce); }
.video-conference video { display: block; width: 100%; height: 100%; background: var(--nuit); }
.pause-media { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(13, 13, 38, .62); color: #fff; font-size: 15px; line-height: 44px; text-align: center; cursor: pointer; transition: transform 160ms var(--ease), background 160ms var(--ease); }
.pause-media:hover { background: rgba(13, 13, 38, .82); }
.pause-media:active { transform: scale(.94); }
/* Lecture animée : posée sur une vidéo en pause, deux ondes or partent du disque et le triangle bat doucement */
.play-anime { position: absolute; left: 50%; top: 50%; width: clamp(60px, 22%, 96px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.85); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.en-pause .play-anime { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.en-pause .pause-media { opacity: 0; pointer-events: none; }
.en-pause .play-anime:active { transform: translate(-50%, -50%) scale(.94); }
.play-anime svg { display: block; width: 100%; height: 100%; overflow: visible; }
.play-anime .disque { fill: rgba(13, 13, 38, .62); stroke: var(--or); stroke-width: 2.5; transition: fill 160ms var(--ease); }
.play-anime:hover .disque { fill: rgba(51, 51, 153, .85); }
.play-anime .onde { fill: none; stroke: var(--or); stroke-width: 2; opacity: 0; transform-origin: 60px 60px; }
.play-anime .triangle { fill: var(--or); stroke: var(--or); stroke-width: 3; stroke-linejoin: round; transform-origin: 64px 60px; }
.js:not(.mouvement-reduit) .en-pause .play-anime .onde { animation: onde-lecture 2.4s cubic-bezier(.23, 1, .32, 1) infinite; }
.js:not(.mouvement-reduit) .en-pause .play-anime .o2 { animation-delay: 1.2s; }
.js:not(.mouvement-reduit) .en-pause .play-anime .triangle { animation: battement-lecture 2.4s ease-in-out infinite; }
.play-anime:focus-visible { outline: 3px solid var(--or); outline-offset: 4px; }
@keyframes onde-lecture { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes battement-lecture { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.js:not(.mouvement-reduit) .jalon .carte-jalon { opacity: 0; transform: translateX(-36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js:not(.mouvement-reduit) .jalon:nth-child(even) .carte-jalon { transform: translateX(36px); }
.js:not(.mouvement-reduit) .jalon .medaillon { transform: scale(.7); }
.js .jalon.atteint .carte-jalon { opacity: 1 !important; transform: none !important; }
.js .jalon.atteint .medaillon { transform: scale(1); }
.mouvement-reduit .trace-or { stroke-dashoffset: 0; }
@media (max-width: 860px) {
  .parcours-tete { grid-template-columns: 1fr; gap: 20px; }
  .portrait-rond { text-align: left; } .portrait-rond img { width: 150px; height: 150px; margin: 0; }
  .jalon, .jalon:nth-child(odd), .jalon:nth-child(even) { width: 100%; align-self: stretch; padding-left: 64px; }
  .jalon + .jalon { margin-top: 26px; }
  .jalon:nth-child(odd) .medaillon, .jalon:nth-child(even) .medaillon { left: 0; right: auto; top: 14px; width: 52px; height: 52px; font-size: 15px; }
  .jalon:nth-child(odd) .carte-jalon, .jalon:nth-child(even) .carte-jalon { margin: 0; padding: 20px; }
  .js:not(.mouvement-reduit) .jalon .carte-jalon, .js:not(.mouvement-reduit) .jalon:nth-child(even) .carte-jalon { transform: translateX(24px); }
  .label-fort { font-size: 17px; }
}
.chute { margin: 46px auto 0; text-align: center; font: italic 500 clamp(21px, 2.2vw, 26px)/1.45 var(--titre); color: var(--pourpre); }
/* L'arrivée : le médaillon s'allume, la carte glisse depuis son côté */
.js:not(.mouvement-reduit) .jalon .carte-jalon { opacity: 0; transform: translateX(-36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js:not(.mouvement-reduit) .jalon:nth-child(even) .carte-jalon { transform: translateX(36px); }
.js:not(.mouvement-reduit) .jalon .medaillon { transform: scale(.7); }
.js .jalon.atteint .carte-jalon { opacity: 1 !important; transform: none !important; }
.js .jalon.atteint .medaillon { transform: scale(1); }

/* ===== 10. Les instruments ===== */
.instruments { overflow: hidden; }
.liste-instruments { display: grid; gap: 16px; }
.instrument { display: grid; grid-template-columns: minmax(230px, .8fr) 1.2fr; gap: 28px; align-items: center; padding: 26px 30px; border-radius: 20px;
  background: rgba(245, 242, 230, .06); border: 1px solid rgba(245, 242, 230, .14); }
.lettres { display: flex; flex-wrap: wrap; gap: 6px; }
.lettre { min-width: 44px; height: 52px; padding: 0 8px; border-radius: 12px; font: 700 30px/52px var(--sc); color: var(--lait); background: rgba(245, 242, 230, .08);
  transition: background-color var(--d-vite) var(--ease), color var(--d-vite) var(--ease), transform var(--d-vite) var(--ease); }
.lettre.point { min-width: 0; padding: 0; background: none; font-size: 30px; color: var(--or); pointer-events: none; }
.lettre[aria-pressed="true"] { background: var(--or); color: var(--nuit); transform: translateY(-3px); }
@media (hover: hover) { .lettre:not(.point):hover { background: rgba(242, 181, 68, .3); } }
.sens { font: 500 15px/1.5 var(--sc); letter-spacing: .04em; color: var(--lait-doux); margin-bottom: 8px; }
.sens span { transition: color var(--d-vite) var(--ease); }
.sens span.allume { color: var(--or); }
.instrument p.desc { font-size: 18px; color: var(--lait); }
@media (max-width: 800px) { .instrument { grid-template-columns: 1fr; gap: 14px; padding: 22px; } .lettres { gap: 4px; } .lettre { min-width: 40px; height: 48px; font-size: 26px; line-height: 48px; } .lettre.point { font-size: 26px; } }

/* ===== 11. La vision ===== */
.vision { background: var(--nuit); color: var(--lait); text-align: center; overflow: hidden; }
.vision .conteneur { max-width: 860px; }
.vision h2 { color: var(--lait); margin-bottom: 22px; }
.vision p { margin: 0 auto; color: var(--lait-doux); font-size: 19px; }
.citation { margin: 48px auto 0; max-width: 760px; }
.citation blockquote { font: italic 500 clamp(24px, 3vw, 34px)/1.35 var(--titre); color: var(--lait); }
.citation blockquote::before { content: "« "; color: var(--or); } .citation blockquote::after { content: " »"; color: var(--or); }
.citation figcaption { margin-top: 18px; font: 500 15px/1 var(--sc); letter-spacing: .05em; color: var(--or); }

/* ===== 12. L'échange ===== */
.echange .carte { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: clamp(30px, 5vw, 60px); background: var(--lait-clair); border-radius: 28px; box-shadow: var(--ombre); border: 1px solid rgba(51, 51, 153, .08); }
.etapes-rdv { list-style: none; display: grid; gap: 16px; counter-reset: e; margin: 28px 0 32px; }
.etapes-rdv li { counter-increment: e; display: flex; gap: 16px; align-items: flex-start; font-size: 18px; }
.etapes-rdv li::before { content: counter(e); flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: var(--lait); display: grid; place-items: center; font: 700 18px/1 var(--texte); }
.sous-bouton { margin-top: 14px; font-size: 15px; color: var(--encre-douce); }
.attente { align-self: center; padding: 30px; border-radius: 22px; background: var(--indigo); color: var(--lait); }
.attente .surtitre { color: var(--or); margin-bottom: 12px; }
.attente p { font: italic 500 23px/1.4 var(--titre); }
@media (max-width: 860px) { .echange .carte { grid-template-columns: 1fr; } }

/* ===== 13. La fin : badge révélé par la lumière, puis le clin d'œil SymbioteK ===== */
.fin { text-align: center; padding-bottom: 60px; }
.fin-badge { position: relative; width: min(64vw, 300px); margin: 0 auto 30px; overflow: hidden; border-radius: 50%; }
.fin-badge img { width: 100%; height: auto; }
.js .fin-badge img { filter: blur(14px); opacity: 0; transform: scale(1.035); transition: filter .6s var(--ease), opacity .6s var(--ease), transform 1.6s var(--ease); }
.js .fin-badge.vue img { filter: none; opacity: 1; transform: none; }
.fin-badge::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)); transform: skewX(-14deg); opacity: 0; }
.js .fin-badge.vue::after { animation: reflet 1.1s var(--ease) .7s 1 both; }
@keyframes reflet { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
.devise { font: 600 clamp(28px, 4vw, 44px)/1.2 var(--titre); color: var(--indigo); margin: 0 auto 30px; max-width: 20ch; }
.devise em { color: var(--pourpre); }
.fin .bouton { margin-bottom: 40px; }
.ps { max-width: 620px; margin: 0 auto; padding: 24px 28px; text-align: left; background: var(--lait-clair); border: 1px solid rgba(51, 51, 153, .1); border-radius: 18px; box-shadow: var(--ombre-douce); font-size: 18px; }
.ps strong { color: var(--pourpre); font-family: var(--titre); font-style: italic; margin-right: 4px; }
.clin-oeil { max-width: 620px; margin: 34px auto 0; font-size: 16px; color: var(--encre-douce); }
.clin-oeil a { color: var(--bleu); font-weight: 700; }
.mouvement-reduit .fin-badge img { filter: none !important; opacity: 1 !important; transform: none !important; }
.mouvement-reduit .fin-badge::after { display: none; }

/* Pied de page */
.pied { background: var(--nuit); color: var(--lait-doux); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 15px; }
.pied p { max-width: none; }

/* Le souffle : volet de charte, une fois à l'entrée d'une partie, jamais bloquant */
.souffle { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.souffle i { position: absolute; top: -10%; bottom: -10%; width: 34vw; left: -40vw; transform: skewX(-13deg); }
.souffle i:first-child { background: linear-gradient(90deg, rgba(51, 51, 153, 0), rgba(51, 51, 153, .22)); }
.souffle i:last-child { width: 3px; background: var(--or); opacity: .7; }
.souffle.passe i { animation: souffle .7s var(--ease) 1 both; }
.souffle.passe i:last-child { animation-delay: 40ms; }
@keyframes souffle { from { left: -40vw; } to { left: 115vw; } }
.mouvement-reduit .souffle { display: none; }

/* Le guide du défilement, repris du site SymbioteK : après 3 s sans geste, une invitation douce à faire défiler ;
   passé le premier écran, un raccourci flottant pour remonter tout le site. Sous le film (z-index 45), qui les couvre. */
.invite { position: fixed; z-index: 44; right: calc(84px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: min(calc(100vw - 120px), 27rem); margin: 0; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--nuit); border: 1px solid rgba(245, 242, 230, .18);
  box-shadow: 0 8px 28px rgba(13, 13, 38, .28); color: var(--lait); font: 500 15px/1.35 var(--texte); pointer-events: none; opacity: 0; translate: 0 12px; visibility: hidden;
  transition: opacity 420ms var(--ease), translate 520ms var(--ease), visibility 0s linear 420ms; }
.invite.montre { opacity: 1; translate: 0 0; visibility: visible; transition: opacity 600ms var(--ease), translate 760ms var(--ease), visibility 0s; }
.invite-souris { flex: none; position: relative; width: 18px; height: 28px; border: 2px solid var(--or); border-radius: 10px; }
.invite-souris i { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--or); }
.js:not(.mouvement-reduit) .invite.montre .invite-souris i { animation: invite-molette 1.8s var(--ease) infinite; }
@keyframes invite-molette { 0% { translate: 0 0; opacity: 1; } 60% { translate: 0 9px; opacity: 0; } 61% { translate: 0 0; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.remonter { position: fixed; z-index: 44; right: calc(20px + env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center;
  padding: 0; border-radius: 50%; border: 1px solid rgba(245, 242, 230, .28); background: var(--nuit); color: var(--or); box-shadow: 0 8px 24px rgba(13, 13, 38, .3); cursor: pointer;
  opacity: 0; translate: 0 10px; visibility: hidden; transition: opacity 260ms var(--ease), translate 260ms var(--ease), scale 160ms var(--ease), visibility 0s linear 260ms; }
.remonter.est-visible { opacity: 1; translate: none; visibility: visible; transition: opacity 260ms var(--ease), translate 260ms var(--ease), scale 160ms var(--ease), visibility 0s; }
.remonter:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .remonter.est-visible:hover { translate: 0 -2px; box-shadow: 0 12px 28px rgba(13, 13, 38, .36); } }
.remonter:active { scale: .97; }
.mouvement-reduit .invite, .mouvement-reduit .remonter { translate: none; }
/* Le témoin du rythme : quand la page retient plusieurs gestes de suite (une scène qui se joue, un texte qui doit rester
   lisible, le calme après trois animations), un anneau d'or le dit ; il passe au-dessus du film, qu'il commente. */
.temoin-rythme { position: fixed; z-index: 52; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; max-width: none; margin: 0;
  padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--nuit); border: 1px solid rgba(245, 242, 230, .18); box-shadow: 0 8px 24px rgba(13, 13, 38, .28); color: var(--lait);
  font: 500 15px/1 var(--texte); white-space: nowrap; pointer-events: none; opacity: 0; translate: -50% 10px; visibility: hidden;
  transition: opacity 220ms var(--ease), translate 260ms var(--ease), visibility 0s linear 220ms; }
.temoin-rythme.montre { opacity: 1; translate: -50% 0; visibility: visible; transition: opacity 180ms var(--ease), translate 220ms var(--ease), visibility 0s; }
.tr-anneau { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(242, 181, 68, .3); border-top-color: var(--or); }
.temoin-rythme.montre .tr-anneau { animation: tr-tour 900ms linear infinite; }
@keyframes tr-tour { to { rotate: 360deg; } }
html:has(.temoin-rythme.montre) .invite { opacity: 0; visibility: hidden; }
.mouvement-reduit .temoin-rythme { display: none; }
/* La mesure du défilement (« ?mesure » dans l'adresse), pour Sébastien : discrète, en bas à gauche ; sur téléphone, au-dessus du témoin. */
.mesure-badge { position: fixed; z-index: 60; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px;
  border-radius: 999px; background: var(--nuit); border: 1px solid rgba(245, 242, 230, .18); color: var(--lait); font: 500 14px/1 var(--texte); box-shadow: 0 6px 18px rgba(13, 13, 38, .3); }
.mesure-point { width: 9px; height: 9px; border-radius: 50%; background: #E2574C; }
html:not(.mouvement-reduit) .mesure-point { animation: mesure-pouls 1.6s ease-in-out infinite; }
@keyframes mesure-pouls { 50% { opacity: .35; } }
.mesure-badge button { min-height: 36px; padding: 0 14px; border: 1px solid rgba(245, 242, 230, .35); border-radius: 999px; background: transparent; color: var(--lait); font: inherit; cursor: pointer; }
.mesure-badge button:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
@media (max-width: 860px) { .mesure-badge { bottom: calc(76px + env(safe-area-inset-bottom)); } .mesure-nom { display: none; } }
@media (max-width: 860px) {
  /* au téléphone, l'invitation se centre sur la largeur utile ; le raccourci s'efface pendant qu'elle est là */
  .invite { left: 50%; right: auto; max-width: calc(100vw - 32px); translate: -50% 12px; font-size: 14px; padding: 9px 14px 9px 12px; }
  .invite.montre, .mouvement-reduit .invite { translate: -50% 0; }
  .invite.montre ~ .remonter { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Publication SymbioPlay : gardes et pages juridiques ===== */
[hidden] { display: none !important; }
.visuellement-masque { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-juridique { background: var(--lait); }
.juridique { width: min(820px, 100% - 40px); margin: 0 auto; padding: 56px 0 90px; }
.juridique .retour a { font: 500 15px/1.4 var(--sc); letter-spacing: .05em; text-transform: lowercase; color: var(--pourpre); text-decoration: none; }
.juridique .retour a::before { content: "← "; }
.juridique h1 { color: var(--indigo); font-size: clamp(34px, 4.6vw, 48px); margin: 18px 0 12px; }
.juridique h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 36px 0 10px; }
.juridique h3 { font-size: 20px; margin: 22px 0 8px; }
.juridique p, .juridique li { font-size: 17px; color: var(--encre-douce); max-width: 70ch; }
.juridique p + p { margin-top: 10px; }
.juridique ul { padding-left: 22px; margin: 10px 0; }
.juridique li + li { margin-top: 4px; }
.juridique a { color: var(--bleu); }
.juridique code { font-size: .92em; background: rgba(51, 51, 153, .08); padding: 1px 6px; border-radius: 6px; }
.juridique .chapeau-juridique { font-size: 19px; }
.juridique .maj { margin-top: 44px; font-size: 15px; }
/* Le pied de page commun (footer.html) */
.pied .conteneur { display: grid; gap: 12px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pied a { color: var(--lait); }
.pied-meta { font-size: 14px; opacity: .82; }
