/* Guilhem Bomont-Latouche · site personnel, version animée
   Une scène WebGL fixe sert de décor ; le contenu défile par-dessus.
   Sans JavaScript, chaque chapitre retrouve un fond plein et tout reste lisible. */

/* Polices hébergées ici (licence SIL OFL), sous-ensemble latin */
@font-face { font-family: 'Gloock'; src: url(../fonts/gloock.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Pinyon Script'; src: url(../fonts/pinyon-script.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../fonts/geist-mono.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --f-titre: 'Gloock', 'Times New Roman', serif;
  --f-ital: 'Instrument Serif', 'Times New Roman', serif;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --cyan: #22d3ff;
  --cyan-vif: #7fe9ff;
  --bleu: #2f6bff;
  --bleu-fonce: #1d4ed8;
  --marine: #0a1e4a;
  --glacier: #cdeaff;
  --ardoise: #14213a;
  --nuit: #030a1c;
  --creme: #f4efe4;
  --creme-ombre: #e6dccb;
  --encre: #08142b;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-doux: cubic-bezier(.65, 0, .35, 1);
  --gouttiere: clamp(16px, 4.5vw, 56px);
  --haut-sur: env(safe-area-inset-top, 0px);
  --bas-sur: env(safe-area-inset-bottom, 0px);

  --hab-encre: #08142b;
  --hab-verre: rgba(255, 255, 255, .55);
  --hab-bord: rgba(255, 255, 255, .7);
}

html[data-ton="sombre"] {
  --hab-encre: #eaf3ff;
  --hab-verre: rgba(6, 16, 40, .45);
  --hab-bord: rgba(255, 255, 255, .16);
}
html[data-ton="eclat"] {
  --hab-encre: #031024;
  --hab-verre: rgba(255, 255, 255, .5);
  --hab-bord: rgba(255, 255, 255, .75);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--nuit);
}

body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--nuit);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.bouton, .menu-fermer { transition: scale .35s var(--ease), background .4s, color .4s, box-shadow .4s; }
.bouton:active, .menu-fermer:active { scale: .94; }
::selection { background: var(--cyan); color: #031024; }

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.evitement {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.evitement:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------
   Décor fixe
   ------------------------------------------------------------------ */

.decor {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  background: var(--nuit);
}
.decor canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease; }
html.scene-prete .decor canvas { opacity: 1; }
/* en attendant la scène WebGL : l'image du premier plan en CSS */
html.js.mouvement-plein .decor { background: var(--nuit) url(../img/scenes/accueil-l.webp) center / cover; }
html.js.mouvement-plein.avec-porte .decor { background-image: url(../img/scenes/entree-l.webp); }
@media (max-aspect-ratio: 4/5) {
  html.js.mouvement-plein .decor { background-image: url(../img/scenes/accueil-p.webp); }
  html.js.mouvement-plein.avec-porte .decor { background-image: url(../img/scenes/entree-p.webp); }
}

.decor-repli { display: none; position: absolute; inset: 0; }
.repli {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease-doux);
}
.repli.actif { opacity: 1; }
.repli[data-plan="entree"] { background-image: url(../img/scenes/entree-l.webp); }
.repli[data-plan="accueil"] { background-image: url(../img/scenes/accueil-l.webp); }
.repli[data-plan="apropos"] { background-image: url(../img/scenes/apropos-l.webp); }
.repli[data-plan="ia"] { background-image: url(../img/scenes/ia-l.webp); }
.repli[data-plan="projets"] { background-image: url(../img/scenes/projets-l.webp); }
.repli[data-plan="securite"] { background-image: url(../img/scenes/securite-l.webp); }
.repli[data-plan="parcours"] { background-image: url(../img/scenes/parcours-l.webp); }
.repli[data-plan="audela"] { background-image: url(../img/scenes/audela-l.webp); }
.repli[data-plan="contact"] { background-image: url(../img/scenes/contact-l.webp); }
@media (max-aspect-ratio: 4/5) {
  .repli[data-plan="entree"] { background-image: url(../img/scenes/entree-p.webp); }
  .repli[data-plan="accueil"] { background-image: url(../img/scenes/accueil-p.webp); }
  .repli[data-plan="ia"] { background-image: url(../img/scenes/ia-p.webp); }
  .repli[data-plan="projets"] { background-image: url(../img/scenes/projets-p.webp); }
  .repli[data-plan="securite"] { background-image: url(../img/scenes/securite-p.webp); }
  .repli[data-plan="parcours"] { background-image: url(../img/scenes/parcours-p.webp); }
  .repli[data-plan="audela"] { background-image: url(../img/scenes/audela-p.webp); }
  .repli[data-plan="apropos"] { background-image: url(../img/scenes/apropos-p.webp); }
  .repli[data-plan="contact"] { background-image: url(../img/scenes/contact-p.webp); }
}
html.sans-webgl .decor canvas,
html.mouvement-reduit .decor canvas { display: none; }
html.sans-webgl .decor-repli,
html.mouvement-reduit .decor-repli { display: block; }

/* Sans JavaScript : pas de décor fixe, chaque chapitre porte son fond. */
html:not(.js) .decor { display: none; }
html:not(.js) .chap-accueil { background: url(../img/scenes/accueil-l.webp) center / cover; }
html:not(.js) .chap-apropos { background: #e9f5fd; }
html:not(.js) .chap-ia { background: #04102a; }
html:not(.js) .chap-projets { background: var(--ardoise); }
html:not(.js) .chap-securite { background: #030a1c; }
html:not(.js) .chap-parcours { background: #040a18; }
html:not(.js) .chap-audela { background: var(--nuit); }
html:not(.js) .chap-contact { background: #dbe9f6; }
html:not(.js) .porte, html:not(.js) .passage,
html:not(.js) .porte-entree, html:not(.js) .bouton-menu,
html:not(.js) .pastille-mouvement, html:not(.js) .jauge { display: none; }

/* ------------------------------------------------------------------
   Habillage : bouton mouvement, jauge, menu
   ------------------------------------------------------------------ */

.habillage { position: relative; z-index: 20; color: var(--hab-encre); }

.pastille {
  position: fixed;
  top: calc(14px + var(--haut-sur));
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  margin: 0;
  border-radius: 999px;
  background: var(--hab-verre);
  border: 1px solid var(--hab-bord);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: var(--hab-encre);
  transition: background .6s, color .6s, border-color .6s, scale .35s var(--ease);
}
.pastille-mouvement {
  left: calc(14px + env(safe-area-inset-left, 0px));
  width: 40px; padding: 0; justify-content: center;
  cursor: pointer;
}
.pastille-mouvement svg { width: 20px; height: 20px; }
.pastille-mouvement[aria-pressed="false"] svg path { d: path("M3 12h18"); }

/* Menu : un libellé discret en haut à droite */
.bouton-menu {
  right: calc(14px + env(safe-area-inset-right, 0px));
  cursor: pointer;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.bouton-menu-traits { display: grid; gap: 4px; width: 14px; }
.bouton-menu-traits i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.bouton-menu[aria-expanded="true"] .bouton-menu-traits i:first-child { transform: translateY(2.75px) rotate(45deg); }
.bouton-menu[aria-expanded="true"] .bouton-menu-traits i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.bouton-menu:active, .pastille-mouvement:active { scale: .94; }

/* le nom du chapitre et la progression, centrés en haut, loin des bords */
.jauge {
  position: fixed;
  top: calc(18px + var(--haut-sur));
  left: 50%;
  width: min(220px, 40vw);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.jauge-etiquette {
  margin: 0 0 8px;
  font: 500 10.5px/1 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .8;
  transition: opacity .4s;
}
.jauge-ligne { display: block; height: 1px; background: currentColor; opacity: .25; position: relative; }
.jauge-ligne i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--cyan);
  transform-origin: left; transform: scaleX(0);
}

/* Texte qui roule au survol */
.roule { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3em; }
.roule-in { display: inline-flex; flex-direction: column; transition: transform .6s var(--ease); }
.roule-in > span { display: block; height: 1.3em; line-height: 1.3em; white-space: nowrap; }
a:hover .roule-in, button:hover .roule-in, a:focus-visible .roule-in { transform: translateY(-50%); }

/* ------------------------------------------------------------------
   Menu plein écran
   ------------------------------------------------------------------ */

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  color: #f4f1ea;
}
.menu[hidden] { display: none; }
.menu-fond {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 110%, rgba(34, 211, 255, .35), transparent 60%), rgba(4, 8, 20, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.menu-corps { position: relative; width: min(760px, 100% - 2 * var(--gouttiere)); }
.menu-liste { list-style: none; margin: 0; padding: 0; }
.menu-liste li { overflow: hidden; }
.menu-liste a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 4px 0;
  font-family: var(--f-titre);
  font-size: clamp(2rem, 6.2vw, 4.2rem);
  line-height: 1.12;
  text-decoration: none;
  transition: color .4s, transform .6s var(--ease);
}
.menu-liste a:hover, .menu-liste a:focus-visible { color: var(--cyan-vif); transform: translateX(10px); }
.menu-num { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; opacity: .5; transform: translateY(-.6em); }
.menu-pied {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 32px;
  font: 500 13px/1.4 var(--f-mono); letter-spacing: .04em;
}
.menu-pied a { opacity: .75; text-underline-offset: 4px; }
.menu-pied a:hover { opacity: 1; color: var(--cyan-vif); }
.menu-fermer {
  position: absolute; top: calc(14px + var(--haut-sur)); right: calc(14px + env(safe-area-inset-right, 0px));
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* ------------------------------------------------------------------
   Porte d'entrée : tracer un cercle
   ------------------------------------------------------------------ */

.porte-entree { display: none; }
html.avec-porte .porte-entree {
  display: block;
  position: fixed; inset: 0; z-index: 30;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
html.avec-porte body { overflow: hidden; }
html.avec-porte #contenu { visibility: hidden; }
html.attente #contenu, html.attente .jauge, html.attente .bouton-menu { opacity: 0; }
html.avec-porte .habillage .jauge, html.avec-porte .habillage .bouton-menu { opacity: 0; }
.porte-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.porte-chargement, .porte-consigne {
  position: absolute; left: 50%; top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font: 600 13px/1 var(--f-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(5, 25, 60, .6), 0 0 18px rgba(5, 25, 60, .5);
  pointer-events: none;
  white-space: nowrap;
}
.porte-chargement { font-size: 15px; letter-spacing: .3em; }
.porte-consigne, .porte-passer { opacity: 0; }
.porte-consigne::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 340px; height: 120px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(5, 25, 60, .45), transparent);
  z-index: -1;
}
.porte-consigne span { display: inline-block; }
/* le pinceau du tracé : le même point et le même anneau que le curseur du site.
   Pendant le geste, l'anneau se resserre sur le point. */
.pinceau {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.pinceau i { position: absolute; left: 0; top: 0; border-radius: 50%; }
.pinceau-point {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(3, 16, 36, .5), 0 0 10px rgba(34, 211, 255, .95), 0 0 24px rgba(34, 211, 255, .45);
}
.pinceau-anneau {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(127, 233, 255, .85);
  box-shadow: 0 0 14px rgba(34, 211, 255, .3);
  transition: transform .35s var(--ease), opacity .35s, border-color .35s;
}
.pinceau.trace .pinceau-anneau { transform: scale(.42); opacity: .6; border-color: #fff; }
.porte-passer {
  position: absolute; left: 50%; bottom: calc(26px + var(--bas-sur));
  transform: translateX(-50%);
  padding: 8px 4px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .85);
  font: 600 10.5px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.porte-passer:hover { color: #fff; text-decoration-color: var(--cyan); }
.porte-passer:focus-visible { outline: 1px solid rgba(255, 255, 255, .9); outline-offset: 4px; }

/* ------------------------------------------------------------------
   Chapitres : éléments communs
   ------------------------------------------------------------------ */

main { position: relative; z-index: 1; }

.chapitre { position: relative; }
/* clip (et non hidden) : coupe les débordements décoratifs sans casser
   les scènes collantes (position: sticky) qu'ils contiennent */
.chapitre, .porte, .passage { overflow-x: clip; }

/* Titre écarté : la seconde ligne part dans l'angle opposé */
.titre-ecarte .t { display: grid; }
.titre-ecarte em {
  justify-self: end;
  font-size: 1.45em;
  line-height: .95;
  padding-left: 0;
  margin-top: .05em;
}

.oeil {
  margin: 0 0 18px;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .72;
}

.titre-scene {
  margin: 0 0 .35em;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 8.4rem);
  line-height: .92;
  letter-spacing: -.02em;
}
.titre-scene .t { display: block; }
.titre-scene em {
  display: block;
  font-family: var(--f-ital);
  font-style: italic;
  font-size: 1.04em;
  letter-spacing: -.01em;
  padding-left: .9em;
}
.swash {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 1.62em;
  line-height: .5;
  letter-spacing: 0;
  margin-right: -.2em;
  display: inline-block;
  vertical-align: -.08em;
  padding: .3em .12em .1em .05em;
}
.mots { display: inline; }
.titre-geant { font-size: clamp(4rem, 16vw, 13.5rem); }

.chapo {
  max-width: 34ch;
  margin: 0;
  font-family: var(--f-ital);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}

.chap-entete {
  padding: 0 var(--gouttiere);
  max-width: 1320px;
  margin: 0 auto;
}

.contenu-etroit, .contenu-large {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}
.contenu-etroit { max-width: 820px; }

.puces {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 18px 0 0; padding: 0;
}
.puces li {
  padding: 5px 10px;
  border-radius: 999px;
  font: 500 11.5px/1.3 var(--f-mono);
  letter-spacing: .02em;
  border: 1px solid currentColor;
  opacity: .78;
}

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font: 600 13px/1.25 var(--f-mono);
  text-decoration: none;
}
.lien-fleche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.lien-fleche:hover svg { transform: translate(3px, -3px); }

/* Cartes */
.carte {
  position: relative;
  padding: clamp(22px, 3.2vw, 38px);
  border-radius: 22px;
  transform-style: preserve-3d;
}
.carte h3 {
  margin: 0 0 12px;
  font-family: var(--f-titre);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.carte p { margin: 0 0 12px; }
.carte-role { font: 500 12px/1.4 var(--f-mono); letter-spacing: .04em; opacity: .7; }
.carte-badge {
  display: inline-block;
  margin-bottom: 14px !important;
  padding: 6px 11px; border-radius: 999px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.carte::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.carte:hover::after { opacity: 1; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .4s, color .4s, box-shadow .4s;
}
.bouton-plein { background: #0a1e4a; color: #fff; box-shadow: 0 10px 30px rgba(5, 20, 60, .3); }
.bouton-verre {
  background: rgba(255, 255, 255, .5); color: #0a1e4a;
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bouton-verre:hover { background: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------
   00 · Accueil
   ------------------------------------------------------------------ */

.chap-accueil { height: 230vh; }
.accueil-scene {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1200px;
}
.accueil-texte {
  position: relative;
  z-index: 2;
  width: min(1100px, 100% - 2 * var(--gouttiere));
  text-align: center;
  padding-top: 4vh;
}
.accueil-texte::before {
  content: "";
  position: absolute; left: 50%; top: 46%;
  width: 130%; height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(240, 248, 255, .25) 55%, transparent);
  z-index: -1;
  pointer-events: none;
}
.titre-nom {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.025em;
  color: var(--bleu-fonce);
}
.nom-visuel { display: block; }
.nom-ligne { display: block; white-space: nowrap; }
.nom-prenom { font-size: clamp(4rem, 13vw, 11.5rem); }
.nom-famille {
  font-family: var(--f-ital);
  font-style: italic;
  font-size: clamp(2.4rem, 8.4vw, 7rem);
  letter-spacing: -.01em;
  margin-top: -.08em;
}
.titre-nom .lettres, .titre-nom .swash {
  background: linear-gradient(180deg, #38bdf8 0%, #1d6fe8 55%, #0b2c7a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.titre-nom .lettres .char, .titre-nom .lettres > div, .titre-nom .lettres .mot {
  background: inherit;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* le G du prénom reste dans la police du nom : lisible, détaché du « u »,
   et rien ne déborde de la boîte que Safari découpe pour le dégradé */
.titre-nom .swash {
  font-family: var(--f-titre); font-size: 1em; line-height: inherit;
  margin: 0 .015em 0 0; padding: 0; vertical-align: baseline; letter-spacing: 0;
}
.accueil-sous {
  position: relative;
  max-width: 40ch;
  margin: 26px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.5;
  color: #06122a;
  font-weight: 500;
  text-shadow: 0 0 14px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9);
}
/* un voile clair sans bord net derrière le sous-titre, pour le lire sur les fleurs */
.accueil-sous::before {
  content: ""; position: absolute; inset: -38% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 249, 255, .82), rgba(244, 249, 255, .5) 55%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
  mask: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
}
.nom-ligne { padding: 0 .5em; margin: 0 -.5em; }
.accueil-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 26px;
}
.cavalier-boite {
  position: absolute;
  z-index: 3;
  width: clamp(140px, 19vw, 300px);
  right: 4%;
  bottom: 7%;
  pointer-events: none;
  perspective: 800px;
}
.cavalier {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 40px rgba(10, 40, 100, .3));
}
/* un reflet passe sur le cavalier au défilement : la lumière suit sa forme */
.cavalier-boite::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url(../img/objets/cavalier.webp) center / contain no-repeat;
  mask: url(../img/objets/cavalier.webp) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .85) 48%, rgba(200, 240, 255, .5) 52%, transparent 65%) 0 0 / 300% 100% no-repeat;
  background-position: var(--reflet, 120%) 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.fou-boite {
  position: absolute;
  z-index: 3;
  width: clamp(76px, 8.5vw, 150px);
  left: 20%;
  top: 9%;
  pointer-events: none;
}
.fou { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(10, 40, 100, .28)); }
.oeuf {
  position: absolute; left: 50%; bottom: 7vh; z-index: 4;
  margin: 0; transform: translateX(-50%);
  font-family: var(--f-ital); font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: #0b1a33;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.oeuf .lettre { display: inline-block; }
.indice-defile {
  position: absolute; left: 50%; bottom: calc(30px + var(--bas-sur));
  transform: translateX(-50%);
  margin: 0;
  display: grid; justify-items: center; gap: 8px;
  font: 600 10px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase;
  color: #0b1a33;
  opacity: .75;
}
.indice-defile i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(currentColor, transparent);
  animation: filet 2.2s var(--ease-doux) infinite;
  transform-origin: top;
}
@keyframes filet {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ------------------------------------------------------------------
   01 · À propos
   ------------------------------------------------------------------ */

.chap-apropos { padding: 20vh 0 6vh; color: #101828; }
.apropos-edito {
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gouttiere);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: 5vh;
  align-items: start;
}
.apropos-tete { grid-column: 1 / 8; grid-row: 1; padding-top: 4vh; }
.titre-apropos { font-size: clamp(3.6rem, 10vw, 9.4rem); color: #0b1a33; margin: 0; }
.titre-apropos .swash { color: var(--bleu-fonce); }
.portrait-edito { grid-column: 8 / 13; grid-row: 1 / 3; margin: 0; }
.portrait-cadre {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #d9dee6;
  box-shadow: 0 50px 90px rgba(15, 25, 45, .18);
}
.portrait-cadre img {
  width: 100%; height: 118%; object-fit: cover;
  filter: saturate(.94) contrast(1.03);
  will-change: transform;
}
/* une teinte froide très légère dans les ombres, la peau reste naturelle */
.portrait-cadre::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 30, 74, .28));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.portrait-reflet {
  position: absolute; inset: -20% -60%;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%);
  transform: translateX(-70%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.portrait-edito figcaption {
  margin-top: 14px;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: #4a5568;
}
.apropos-texte { grid-column: 1 / 7; grid-row: 2; }
/* voile de lecture : l'eau reste visible à droite et autour du portrait,
   la colonne de texte se lit sur un blanc laiteux sans bord net */
.apropos-edito { position: relative; }
.apropos-edito > * { position: relative; z-index: 1; }
.apropos-edito::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -12vh; bottom: -8vh; left: calc(50% - 50vw); width: 100vw;
  background: linear-gradient(90deg, rgba(244, 250, 255, .8) 0%, rgba(244, 250, 255, .68) 38%, rgba(244, 250, 255, 0) 60%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.apropos-texte p {
  margin: 0 0 20px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.62;
  max-width: 52ch;
  color: #1f2937;
}
.apropos-texte p:first-child { font-family: var(--f-ital); font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.32; color: #0b1a33; }

/* Les domaines : une liste typographique, un filet fin entre les lignes */
.domaines {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 12vh auto 0; padding: 0 var(--gouttiere) 6vh;
}
.domaines::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -10vh; bottom: -4vh; left: calc(50% - 50vw); width: 100vw;
  background: linear-gradient(90deg, rgba(244, 250, 255, .82) 0%, rgba(244, 250, 255, .7) 48%, rgba(244, 250, 255, 0) 78%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.domaines-oeil { margin: 0 0 2vh; }
.domaines-liste { list-style: none; margin: 0; padding: 0; max-width: 920px; }
.domaine {
  --filet: 1;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding: 24px 0 26px;
}
.domaine::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(11, 26, 51, .18);
  transform-origin: left; transform: scaleX(var(--filet));
}
.domaine h3 {
  margin: 0;
  font-family: var(--f-titre); font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -.015em;
  color: #0b1a33;
}
.domaine p { margin: 0; max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.55; color: #1f2937; }

/* ------------------------------------------------------------------
   Portes (transitions maintenues)
   ------------------------------------------------------------------ */

.porte { position: relative; height: 290vh; }
.porte-scene {
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  overflow: hidden;
  display: grid; place-items: center;
  perspective: 900px;
}
.porte-voile { position: absolute; inset: 0; background: #050505; opacity: 0; }
.fissures {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.fissures path {
  fill: none;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 1.3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7));
}
.debris { position: absolute; inset: 0; perspective: 700px; visibility: hidden; }
.debris i {
  position: absolute;
  background: linear-gradient(135deg, #1a1a1c 0%, #060606 40%, #0d0d0f 100%);
  backface-visibility: hidden;
}

.maintien {
  position: relative;
  z-index: 3;
  width: 120px; height: 120px;
  border: 0; padding: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
  color: #fff;
  opacity: 0;
}
.maintien-anneau { width: 120px; height: 120px; transform: rotate(-90deg); overflow: visible; }
.anneau-fond {
  fill: none;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 1.2;
  stroke-dasharray: 210 30 36 0;
  animation: tourne 6s linear infinite;
  transform-origin: 60px 60px;
}
.anneau-charge {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 276.5;
  stroke-dashoffset: 276.5;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.maintien-etiquette {
  position: absolute; left: 100%; top: 50%;
  transform: translate(14px, -50%);
  text-align: left;
  font: italic 400 17px/1.15 var(--f-ital);
  letter-spacing: .01em;
  white-space: nowrap;
}
.maintien.charge .anneau-fond { animation-duration: 1.2s; }
.maintien:active { transform: scale(.96); }

/* Le bouton « maintiens » suit le pointeur ; on peut tenir n'importe où */
.porte-scene { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (hover: hover) and (pointer: fine) {
  .porte-scene { cursor: none; }
}
.maintien-curseur { position: absolute; left: 50%; top: 50%; margin: -60px 0 0 -60px; pointer-events: auto; }

.porte-lumiere .porte-scene { perspective: none; }
.lumiere-halo {
  position: absolute; left: 50%; top: 50%;
  width: 120vmax; height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, .92) 18%, rgba(255, 246, 250, .6) 34%, rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  pointer-events: none;
}
.porte-lumiere .maintien { color: #0b2c5a; }
.porte-lumiere .anneau-fond { stroke: rgba(10, 26, 51, .7); }
.porte-lumiere .maintien-etiquette { color: #0b1a33; }

.porte-briser .porte-voile { background: radial-gradient(120% 90% at 50% 50%, #26282d 0%, #101114 60%, #050506 100%); }
.vitre, .vitre-copie {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, .1) 70%, rgba(255, 255, 255, .03) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .25));
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 60px rgba(255, 255, 255, .06);
}
.vitre {
  position: relative;
  width: min(1040px, 90vw);
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 72px);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
  opacity: 0;
}
.vitre-copie { position: absolute; border-radius: 6px; padding: inherit; }
.vitre .fissures { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vitre-oeil {
  margin: 0 0 14px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase;
  color: rgba(200, 235, 255, .85);
}
.vitre-titre {
  margin: 0;
  font-family: var(--f-titre);
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: #f2f8ff;
  text-shadow: 0 0 40px rgba(47, 107, 255, .6);
}
.vitre-titre em { display: block; font-family: var(--f-ital); font-style: italic; padding-left: .8em; color: var(--cyan-vif); }
.debris .morceau {
  position: absolute;
  overflow: hidden;
  backface-visibility: hidden;
}


.passage { height: 120vh; pointer-events: none; }

/* ------------------------------------------------------------------
   04 · Sécurité
   ------------------------------------------------------------------ */

.chap-securite { padding-top: 16vh; color: #e8f1ff; }
.chap-securite .titre-scene { color: #f2f8ff; text-shadow: 0 2px 26px rgba(2, 8, 26, .7), 0 0 3px rgba(2, 8, 26, .5); }
.chap-securite .titre-scene em { color: var(--cyan-vif); }
.chap-securite .chapo { color: #dbe8ff; margin-top: 10px; }
.chap-securite .chap-entete { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }

.salle-eclats { position: relative; height: 560vh; }
.journal {
  position: absolute; top: 0; bottom: 0; right: var(--gouttiere);
  width: 230px; margin: 0;
  overflow: hidden;
  font: 500 10.5px/1.6 var(--f-mono);
  color: rgba(127, 233, 255, .5);
  white-space: pre;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}
.eclats {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  list-style: none; margin: 0; padding: 0;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}
.eclat {
  position: absolute; left: 50%; top: 50%;
  width: min(560px, 86vw);
  aspect-ratio: 1.35;
  margin: 0;
  display: grid; align-content: center; justify-items: start;
  padding: 7% 11%;
  color: #fff;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
}
.eclat::before {
  content: ""; position: absolute; inset: -6% -4%;
  background: var(--img) center / contain no-repeat;
  z-index: -1;
  filter: drop-shadow(0 20px 40px rgba(0, 20, 80, .55));
}
.eclat-1 { --img: url(../img/objets/eclat-1.webp); }
.eclat-2 { --img: url(../img/objets/eclat-4.webp); }
.eclat-3 { --img: url(../img/objets/eclat-3.webp); }
.eclat-4 { --img: url(../img/objets/eclat-2.webp); }
.eclat-5 { --img: url(../img/objets/eclat-5.webp); }
.eclat-6 { --img: url(../img/objets/eclat-6.webp); }
.eclat-gros {
  font-family: var(--f-titre);
  font-size: clamp(4rem, 11vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  text-shadow: 0 0 30px rgba(127, 233, 255, .45), 0 2px 0 rgba(0, 20, 80, .3);
}
.eclat-cle {
  margin-top: 10px;
  font: 600 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.eclat-val {
  max-width: 30ch;
  margin-top: 4px;
  font-family: var(--f-ital);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.2;
  color: #e3efff;
}

.carte-verre {
  color: #f3f4f6;
  background: linear-gradient(140deg, rgba(38, 40, 44, .62), rgba(16, 17, 20, .58));
  border: 1px solid rgba(127, 233, 255, .24);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
  margin-bottom: 18vh;
}
.carte-verre p { color: #d1d5db; }
.carte-audit .carte-badge { background: var(--cyan); color: #031024; }
.carte-audit h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

/* Objets 3D posés sur les cartes */
.objet {
  position: absolute;
  top: -58px; right: -26px;
  width: clamp(96px, 11vw, 150px); height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 22px 26px rgba(0, 10, 40, .4));
  animation: flotte 5.5s var(--ease-doux) infinite alternate;
  transition: scale .8s var(--ease);
}
.objet-grand { width: clamp(120px, 15vw, 210px); top: -96px; right: 24%; }
.objet ~ h3 { padding-right: clamp(40px, 6vw, 80px); }
.carte:hover .objet { scale: 1.12; }
@keyframes flotte {
  0% { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-14px) rotate(6deg); }
}

/* ------------------------------------------------------------------
   02 · IA (le graphe)
   ------------------------------------------------------------------ */

.chap-ia { padding: 22vh 0 18vh; color: #e3edff; }
.chap-ia .titre-scene { color: #f2f8ff; }
.chap-ia .titre-scene .swash { color: var(--cyan); }
.chap-ia .titre-scene em { color: var(--cyan-vif); }
.chap-ia .chapo { color: #dbe8ff; margin-bottom: 9vh; }
.chap-ia .chap-entete { position: relative; z-index: 0; }
.chap-ia .chap-entete::before {
  content: ""; position: absolute; inset: -8vh -12vw; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 10, 32, .62), rgba(2, 10, 32, .38) 60%, transparent);
}
.chap-ia .contenu-large { display: grid; gap: 7vh; max-width: 900px; }
.braises { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.braises img {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--t); height: auto;
  transform: rotate(var(--r));
  opacity: .9;
  filter: drop-shadow(0 0 22px rgba(255, 120, 20, .45));
  will-change: transform;
}
.chap-projets .chap-entete, .chap-projets .contenu-large { position: relative; z-index: 1; }
.carte-givre {
  color: #e5e7eb;
  background: linear-gradient(150deg, rgba(22, 24, 28, .8), rgba(12, 13, 16, .74));
  border: 1px solid rgba(127, 233, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.carte-givre .carte-badge { background: var(--cyan); color: #031024; }
.carte-givre h3 { color: #fff; }
.carte-givre .puces li { color: var(--cyan-vif); }
.carte-givre p { color: #d1d5db; }

/* Précision mesurée, en deux barres */
.precision {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 26px;
  margin: 22px 0 8px; align-items: center;
}
.precision-barre {
  grid-column: 1;
  display: grid; grid-template-columns: clamp(96px, 11vw, 132px) minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px;
  align-items: center;
}
.precision-barre i { grid-column: 2; grid-row: 1; }
.precision-legende { grid-column: 2; grid-row: 2; }
.precision-valeur { grid-row: 1 / 3; font-family: var(--f-titre); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: #fff; }
.precision-haute .precision-valeur { color: var(--cyan); }
.precision-barre i {
  display: block; height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(127, 233, 255, .25), rgba(127, 233, 255, .25)) 0 0 / 100% 100% no-repeat, rgba(255, 255, 255, .06);
  position: relative; overflow: hidden;
}
.precision-barre i::after {
  content: ""; position: absolute; inset: 0;
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, var(--bleu), var(--cyan));
  transform-origin: left;
  transform: scaleX(var(--remplissage, 1));
  border-radius: 8px;
}
.precision-legende { font: 500 11px/1.3 var(--f-mono); letter-spacing: .04em; color: #9fb6dc; }

/* Matrice d'attention vivante, décorative */
.matrice {
  grid-column: 2; grid-row: 1 / 3;
  width: 112px; height: 112px;
  opacity: .9;
  border: 1px solid rgba(127, 233, 255, .2);
  pointer-events: none;
}

/* ------------------------------------------------------------------
   03 · Projets
   ------------------------------------------------------------------ */

.chap-projets { padding: 22vh 0 20vh; color: #eef6ef; }
.chap-projets .titre-scene { color: #eff8ff; }
.chap-projets .titre-scene .swash, .chap-projets .titre-scene em { color: var(--cyan-vif); }
.chap-projets .chap-entete { margin-bottom: 8vh; }
.feuille {
  color: #121a2b;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(175deg, #f5f4f0, #e4e2dc);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 30px 70px rgba(0, 0, 0, .5);
  transform: rotate(var(--penche, 0deg));
}
.feuille::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px;
  background: linear-gradient(175deg, #e4e2dc, #d8d5cd);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
}
.feuille h3 { color: #0a1324; }
.feuille .carte-role { color: #2c4a7a; opacity: 1; }
.feuille .puces li { color: #1e4b8f; }
.feuille-vedette { margin-bottom: 9vh; padding: clamp(26px, 4vw, 52px); }
.feuille-vedette h3 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 4px; }
.vedette-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-bottom: 18px; }
.vedette-entete .lien-fleche { margin-top: 10px; color: #1d4ed8; }
.feuille-vedette > p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 62ch; }
.grille-feuilles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}
.grille-feuilles .feuille:nth-child(2) { margin-top: 8vh; }
.grille-feuilles .feuille:nth-child(3) { margin-top: 3vh; }

/* ------------------------------------------------------------------
   05 · Parcours et 06 · Hors clavier
   ------------------------------------------------------------------ */

.chap-parcours { padding: 24vh 0 10vh; color: #e6ebf3; }
.titre-lueur { color: #fff; text-shadow: 0 2px 26px rgba(2, 8, 24, .7); }
.titre-lueur .swash { color: #fff; }
.titre-lueur em { color: #cfeaff; }
.esperluette { font-family: var(--f-script); font-size: .9em; margin: 0 .12em 0 .1em; color: var(--cyan-vif); }
.chap-parcours .chap-entete { margin-bottom: 8vh; position: relative; z-index: 0; }
.chap-parcours .chap-entete::before,
.chap-parcours .contenu-etroit::before {
  content: ""; position: absolute; inset: -6vh -8vw;
  background: radial-gradient(closest-side, rgba(3, 8, 20, .8), rgba(3, 8, 20, .5) 60%, transparent);
  z-index: -1; pointer-events: none;
}
.chap-parcours .contenu-etroit { z-index: 0; }
.frise { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; }
.frise::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: rgba(255, 255, 255, .16);
}
.frise-trait {
  position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(#fff, var(--cyan));
  transform-origin: top; transform: scaleY(0);
}
.frise li { position: relative; padding: 0 0 7vh; }
.frise li::before {
  content: ""; position: absolute; left: -29px; top: .45em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--nuit); border: 1.5px solid #fff;
}
.frise-annees { font: 600 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-vif); }
.frise h3 {
  margin: 10px 0 8px;
  font-family: var(--f-titre); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  color: #fff;
}
.frise p { margin: 0; max-width: 58ch; color: #c2cddd; }
.aussi { margin-top: 2vh; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); color: #c2cddd; }
.aussi p { margin: 0 0 10px; max-width: 64ch; }
.aussi strong { color: #fff; font-weight: 600; }

.chap-audela { padding: 14vh 0 10vh; color: #e6ebf3; }
.chap-audela .chap-entete { margin-bottom: 7vh; }
.tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tuile {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.tuile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 255, .2), transparent 50%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.tuile:hover::after { opacity: 1; }
.tuile h3 { margin: 0 0 12px; font-family: var(--f-titre); font-weight: 400; font-size: 1.6rem; color: #fff; }
.tuile p { margin: 0; color: #b4c0d4; font-size: .97rem; }
.langues { margin: 0; display: grid; gap: 6px; }
.langues div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255, 255, 255, .12); padding-bottom: 6px; }
.langues dt { color: #e6ebf3; }
.langues dd { margin: 0; font: 600 12px/1.6 var(--f-mono); color: var(--cyan-vif); }

/* ------------------------------------------------------------------
   07 · Contact
   ------------------------------------------------------------------ */

.chap-contact {
  min-height: 100vh; min-height: 100svh;
  padding: 16vh var(--gouttiere) calc(70px + var(--bas-sur));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  color: #031024;
}
/* voile laiteux derrière le bloc : l'échiquier gelé reste net sur les bords,
   le courriel se lit même quand il passe devant le roi */
.chap-contact { position: relative; isolation: isolate; }
.chap-contact::before {
  content: ""; position: absolute; inset: 8vh 0 4vh; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 46% at 50% 52%, rgba(238, 246, 255, .66), rgba(238, 246, 255, .4) 55%, rgba(238, 246, 255, 0) 100%);
}
.chap-contact .titre-scene { color: #031024; margin-bottom: .2em; }
.titre-contact { font-size: clamp(3.4rem, 11.5vw, 10rem); }
.chap-contact .titre-scene .swash { color: var(--bleu-fonce); }
.contact-texte { margin: 0 0 28px; font-family: var(--f-ital); font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.contact-courriel {
  font-family: var(--f-titre);
  font-size: clamp(1.5rem, 5.4vw, 4rem);
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid rgba(3, 16, 36, .3);
  transition: border-color .4s;
}
.contact-courriel:hover { border-color: #031024; }
.contact-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.contact-liens a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 999px;
  background: #031024; color: #eaf6ff;
  font: 600 13px/1 var(--f-mono); letter-spacing: .04em; text-decoration: none;
  transition: scale .35s var(--ease);
}
.contact-liens a:active { scale: .94; }
.pied { margin-top: 8vh; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.pied p { margin: 0; }
.pied .pied-lien { margin-top: 12px; }
.pied a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(3, 16, 36, .35); transition: text-decoration-color .3s; }
.pied a:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------
   Curseur
   ------------------------------------------------------------------ */

/* Le curseur maison remplace celui du système : on masque le natif partout,
   seulement avec une souris et quand le mouvement est plein. */
.curseur { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.curseur-actif, html.curseur-actif * { cursor: none !important; }
  html.curseur-actif .curseur {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 2147483647;
    pointer-events: none;
  }
  /* pendant la porte d'entrée, le pinceau du tracé tient lieu de curseur */
  html.curseur-actif.avec-porte .curseur { display: none; }
  .curseur i { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; pointer-events: none; }
  .curseur-point {
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(3, 16, 36, .55), 0 0 8px rgba(34, 211, 255, .9);
  }
  .curseur-anneau {
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(127, 233, 255, .9);
    box-shadow: 0 0 0 1px rgba(3, 16, 36, .18), inset 0 0 0 1px rgba(3, 16, 36, .12);
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .25s;
  }
  .curseur.survol .curseur-anneau { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(127, 233, 255, .14); }
  .curseur.cache .curseur-anneau { opacity: 0; }
  .curseur.dehors i { opacity: 0; }
}

/* ------------------------------------------------------------------
   États de départ des animations (posés seulement si le mouvement est plein)
   ------------------------------------------------------------------ */

html.mouvement-plein.js .maintien { opacity: 0; }

/* Mouvement réduit : pas de portes, tout est visible, décor statique */
html.mouvement-reduit .porte,
html.mouvement-reduit .passage { display: none; }
html.mouvement-reduit .chap-accueil { height: auto; }
html.mouvement-reduit .accueil-scene { position: relative; min-height: 100svh; }
html.mouvement-reduit .cavalier { animation: none; }
html.mouvement-reduit .salle-eclats { height: auto; padding: 6vh 0 10vh; }
html.mouvement-reduit .eclats {
  position: relative; height: auto; perspective: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere);
}
html.mouvement-reduit .eclat { position: relative; left: auto; top: auto; transform: none; width: auto; }
html.mouvement-reduit .objet,
html.mouvement-reduit .portrait-balayage,
html.mouvement-reduit .anneau-svg,
html.mouvement-reduit .anneau-fond,
html.mouvement-reduit .indice-defile i { animation: none; }
html:not(.js) .salle-eclats { height: auto; }
html:not(.js) .eclats { position: relative; height: auto; display: grid; gap: 12px; padding: 0 var(--gouttiere); }
html:not(.js) .eclat { position: relative; left: auto; top: auto; transform: none; width: auto; }
html:not(.js) .chap-accueil { height: auto; }
html:not(.js) .accueil-scene { position: relative; min-height: 100vh; }

/* ------------------------------------------------------------------
   Téléphones et tablettes
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .apropos-edito { display: block; }
  .apropos-tete { padding-top: 0; margin-bottom: 5vh; }
  .portrait-edito { width: min(440px, 100%); margin: 0 0 6vh auto; }
  .grille-feuilles { grid-template-columns: 1fr; gap: 6vh; }
  .grille-feuilles .feuille:nth-child(n) { margin-top: 0; }
  .tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .pastille { height: 36px; top: calc(10px + var(--haut-sur)); }
  .pastille-mouvement { width: 36px; left: 10px; }
  .bouton-menu { right: 10px; padding: 0 12px; }
  .jauge { width: 38vw; top: calc(14px + var(--haut-sur)); }
  .jauge-etiquette { font-size: 9px; letter-spacing: .1em; }
  .chap-accueil { height: 210vh; }
  .accueil-texte { padding-top: 0; margin-top: -8vh; }
  .nom-prenom { font-size: clamp(3rem, 18.5vw, 6rem); }
  .nom-famille { font-size: clamp(2.2rem, 11.4vw, 3.4rem); }
  .accueil-sous { font-size: 1rem; max-width: 30ch; }
  .accueil-actions .bouton { height: 44px; padding: 0 18px; font-size: 14px; }
  .cavalier-boite { width: 40vw; right: -4vw; bottom: 12vh; }
  .fou-boite { width: 17vw; left: 7%; top: 9%; }
  .oeuf { bottom: 6vh; }
  .indice-defile { display: none; }
  .titre-scene em { padding-left: .5em; }
  .chap-apropos { padding-top: 16vh; }
  .apropos-edito::before { background: rgba(244, 250, 255, .66); }
  .domaines::before { background: rgba(244, 250, 255, .7); }
  .domaine { grid-template-columns: 1fr; row-gap: 8px; padding: 20px 0 22px; }
  /* sur iPhone la main est au centre : un voile sombre derrière le titre et le chapô */
  .chap-securite .chap-entete { min-height: 0; padding-top: 22vh; padding-bottom: 22vh; position: relative; z-index: 0; }
  .chap-securite .chap-entete::before {
    content: ""; position: absolute; inset: 17vh 0; z-index: -1; pointer-events: none;
    background: rgba(2, 8, 26, .6);
    -webkit-mask: linear-gradient(180deg, transparent, #000 5vh, #000 calc(100% - 5vh), transparent);
    mask: linear-gradient(180deg, transparent, #000 5vh, #000 calc(100% - 5vh), transparent);
  }
  .chap-parcours .chap-entete::before,
  .chap-parcours .contenu-etroit::before {
    inset: -5vh -16px;
    background: rgba(3, 8, 20, .7);
    -webkit-mask: linear-gradient(180deg, transparent, #000 6vh, #000 calc(100% - 6vh), transparent);
    mask: linear-gradient(180deg, transparent, #000 6vh, #000 calc(100% - 6vh), transparent);
  }
  .matrice { width: 72px; height: 72px; }
  .precision { gap: 10px 14px; }
  .tuiles { grid-template-columns: 1fr; }
  .eclat { width: 92vw; padding: 9% 12%; }
  .eclat-gros { font-size: clamp(3.6rem, 18vw, 5rem); }
  .eclat-val { font-size: 1.05rem; }
  .porte { height: 250vh; }
  .maintien-etiquette { font-size: 10.5px; }
  .salle-eclats { height: 500vh; }
  .menu-liste a { font-size: clamp(1.8rem, 8.6vw, 2.6rem); }
  .objet { width: 88px; top: -44px; right: -6px; }
  .objet-grand { width: 112px; top: -62px; right: 8px; }
  .feuille-vedette .vedette-entete { padding-right: 70px; }
}

/* ------------------------------------------------------------------
   Données mises en scène
   ------------------------------------------------------------------ */

.courbe { display: block; width: 100%; pointer-events: none; }
.courbe-finlearn { height: 90px; margin: 22px 0 8px; }
.courbe-neutre { height: 54px; margin: -6px 0 14px; }
.langues div { position: relative; padding-bottom: 9px; }
.langues div::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px;
  width: calc(var(--niveau, 0) * 100%);
  background: linear-gradient(90deg, var(--bleu), var(--cyan));
  transform-origin: left;
  transform: scaleX(var(--remplissage, 1));
}
.frise-flux { position: absolute; left: 3px; top: 0; bottom: 0; width: 7px; pointer-events: none; overflow: hidden; }
.frise-flux i {
  position: absolute; left: 1px; top: 0; width: 5px; height: 5px; border-radius: 50%;
  background: #1d4ed8;
  animation: flux 3.6s linear infinite;
}
.frise-flux i:nth-child(2) { animation-delay: -1.2s; }
.frise-flux i:nth-child(3) { animation-delay: -2.4s; }
@keyframes flux { from { transform: translateY(-10px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(var(--hauteur, 1200px)); opacity: 0; } }
html.mouvement-reduit .frise-flux, html.mouvement-reduit .journal { display: none; }

.capsules { display: block; width: 100%; height: auto; margin: 26px 0 10px; overflow: visible; }
.capsules path { fill: none; stroke: rgba(10, 26, 51, .18); stroke-width: 1.5; }
.capsules .fait { stroke: #1d4ed8; stroke-width: 2; }
.capsules circle { fill: #f2f6fc; stroke: rgba(10, 26, 51, .3); stroke-width: 1.5; transition: fill .5s, stroke .5s; }
.capsules circle.allumee { fill: #1d4ed8; stroke: #1d4ed8; }
.capsules circle.courante { fill: #fff; stroke: #22d3ff; stroke-width: 3; }
.divergent { display: grid; gap: 5px; margin: 18px 0 4px; }
.divergent .ligne-d { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-items: center; height: 9px; }
.divergent .court { justify-self: end; height: 100%; background: rgba(10, 26, 51, .28); border-radius: 2px 0 0 2px; width: calc(var(--c) * 100%); transition: width 1.4s var(--ease); }
.divergent .long { height: 100%; background: #1d4ed8; border-radius: 0 2px 2px 0; width: calc(var(--l) * 100%); transition: width 1.4s var(--ease); }
.divergent .axe { grid-column: 1 / 3; height: 0; }
.divergent-legende { display: flex; justify-content: space-between; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #4a5568; margin-top: 4px; }
.loupe-graphe { display: block; width: 100%; height: 120px; margin: 16px 0 4px; }
.echelle { display: grid; gap: 7px; margin: 18px 0 4px; }
.echelle .marche { display: grid; grid-template-columns: 7.5ch 1fr; align-items: center; gap: 10px; font: 500 10px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #4a5568; }
.echelle .drapeaux { display: flex; gap: 6px; }
.echelle .drapeau { width: 14px; height: 14px; position: relative; }
.echelle .drapeau::before { content: ""; position: absolute; left: 2px; top: 1px; width: 1.5px; height: 13px; background: rgba(10, 26, 51, .35); }
.echelle .drapeau::after {
  content: ""; position: absolute; left: 3.5px; top: 1px; width: 9px; height: 6px;
  background: rgba(10, 26, 51, .18);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform-origin: left; transition: background .4s, transform .4s var(--ease);
}
.echelle .drapeau.pris::after { background: #1d4ed8; transform: scaleX(1.15); }
html.mouvement-reduit .portrait-reflet { display: none; }

/* Contact : courriel sélectionnable et bouton copier */
.courriel-ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 12px 20px; }
.contact-courriel { user-select: all; -webkit-user-select: all; }
.copier {
  border: 1px solid rgba(3, 16, 36, .35);
  background: rgba(255, 255, 255, .55);
  border-radius: 999px;
  height: 38px; padding: 0 18px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #031024;
  cursor: pointer;
  transition: background .3s, scale .3s var(--ease);
}
.copier:hover { background: #fff; }
.copier:active { scale: .95; }
.copier.fait { background: #031024; color: #fff; }
