/* Tyméo SEKKAL : feuille de style unique
   Blanc d'abord, bleu en accent, quelques clins d'œil pixel, et l'histoire se lit comme un livre. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italique.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blanc: #ffffff;
  --encre: #121317;
  --texte: #3b404b;
  --doux: #5d6470;
  --bleu: #0566f0;
  --bleu-fonce: #0a2a6b;
  --bleu-clair: #b9d4fb;
  --ciel: #eef4ff;
  --ligne: #dfe6f1;

  --police: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --nuit: #0a1230;
  --rose: #ef4b6c;

  --marge: 1rem;
  --entete: 4rem;

  /* Coins « en escalier » façon pixel */
  --p: 12px;
  --escalier: polygon(0 var(--p), var(--p) var(--p), var(--p) 0, calc(100% - var(--p)) 0, calc(100% - var(--p)) var(--p), 100% var(--p), 100% calc(100% - var(--p)), calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p)) 100%, var(--p) 100%, var(--p) calc(100% - var(--p)), 0 calc(100% - var(--p)));

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--encre); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--bleu); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.evitement {
  position: absolute; left: var(--marge); top: -4rem; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: .6rem 1rem; font-weight: 700;
}
.evitement:focus { top: .75rem; color: var(--blanc); }

.conteneur { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--marge); }
@media (min-width: 640px) { :root { --marge: 1.5rem; } }
@media (min-width: 1024px) { :root { --marge: 2rem; } }

/* ---------- Boutons : ombre franche, on « appuie » dessus ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.35rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--encre); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.bouton-principal { background: var(--bleu); border-color: var(--bleu-fonce); color: var(--blanc); box-shadow: 4px 4px 0 var(--bleu-fonce); }
.bouton-principal:hover { color: var(--blanc); background: #0558d0; }
.bouton-secondaire { background: var(--blanc); color: var(--encre); box-shadow: 4px 4px 0 var(--bleu-clair); }
.bouton-secondaire:hover { color: var(--encre); }
.bouton:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bleu-fonce); }
.bouton-secondaire:hover { box-shadow: 2px 2px 0 var(--bleu-clair); }
.bouton:active { transform: translate(4px, 4px); box-shadow: 0 0 0 transparent; }
.bouton-principal:focus-visible { outline-color: var(--encre); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete-interieur { display: flex; align-items: center; justify-content: space-between; min-height: var(--entete); gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--encre); font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 1.05rem; }
.logo:hover { color: var(--encre); }
.logo-marque { color: var(--bleu); width: 1.75rem; height: 1.75rem; }

.menu ul { display: flex; align-items: center; gap: .25rem; }
.menu a { display: block; padding: .5rem .8rem; color: var(--encre); font-weight: 600; text-decoration: none; }
.menu a:hover { color: var(--bleu); }
.menu .menu-contact { background: var(--encre); color: var(--blanc); margin-left: .5rem; }
.menu .menu-contact:hover { background: var(--bleu); color: var(--blanc); }

.menu-bouton { display: none; }

@media (max-width: 759px) {
  .js .menu-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; margin-right: -.5rem;
    background: none; border: 0; cursor: pointer; color: var(--encre);
  }
  .menu-icone, .menu-icone::before, .menu-icone::after {
    display: block; width: 1.4rem; height: 3px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
  }
  .menu-icone { position: relative; }
  .menu-icone::before, .menu-icone::after { content: ""; position: absolute; left: 0; }
  .menu-icone::before { top: -7px; }
  .menu-icone::after { top: 7px; }
  .menu-bouton[aria-expanded="true"] .menu-icone { background: transparent; }
  .menu-bouton[aria-expanded="true"] .menu-icone::before { transform: translateY(7px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] .menu-icone::after { transform: translateY(-7px) rotate(-45deg); }

  .js .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--blanc); border-bottom: 1px solid var(--ligne);
    padding: .5rem var(--marge) 1rem;
    display: none;
  }
  .js .menu.est-ouvert { display: block; }
  .js .menu ul { flex-direction: column; align-items: stretch; }
  .js .menu a { padding: .8rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--ligne); }
  .js .menu .menu-contact { margin: .75rem 0 0; text-align: center; border: 0; }
  /* Sans JavaScript, le menu reste visible et passe à la ligne */
  .entete-interieur { flex-wrap: wrap; }
  html:not(.js) .menu ul { flex-wrap: wrap; padding-bottom: .5rem; }
}

section[id], .etape[id] { scroll-margin-top: calc(var(--entete) + .5rem); }

/* ---------- Accueil : l'avatar au centre, le nom par-dessus ---------- */
.accueil { position: relative; overflow: hidden; padding-bottom: 3.5rem; }
.accueil-scene {
  position: relative; max-width: 72rem; margin-inline: auto; padding: 2rem var(--marge) 0;
  display: grid; justify-items: center; text-align: center;
}
.accueil-halo {
  position: absolute; left: 50%; top: 1rem; width: min(46rem, 120vw); aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(circle, rgba(5, 102, 240, .22) 0%, rgba(5, 102, 240, .08) 38%, transparent 66%);
  pointer-events: none;
}
.accueil-arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.accueil-arcs circle { fill: none; stroke: var(--bleu-clair); stroke-width: 1.2; opacity: .7; }
.avatar {
  position: relative; z-index: 1; width: min(25rem, 88vw); aspect-ratio: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.avatar-vue {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; opacity: 0;
  transform: translate(calc(var(--x, 0) * 7px), calc(var(--y, 0) * 5px));
  transition: opacity .2s ease;
}
.avatar-vue.est-visible { opacity: 1; }
.accueil-nom {
  position: relative; z-index: 2; margin: -4.5rem 0 0;
  display: grid; justify-items: center; line-height: .9; letter-spacing: .02em;
}
.accueil-prenom { font-size: clamp(3.6rem, 15vw, 8.5rem); font-weight: 800; color: var(--encre); text-transform: uppercase; }
.accueil-famille { font-size: clamp(2.4rem, 9.5vw, 5.4rem); font-weight: 500; color: var(--bleu); letter-spacing: .32em; margin-right: -.32em; margin-top: .15em; }
.accueil-devise { position: relative; z-index: 2; margin: 1.5rem 0 0; font-weight: 600; font-size: clamp(.8rem, 2.6vw, 1rem); letter-spacing: .38em; text-transform: uppercase; color: var(--encre); }
.accueil-cote { position: relative; z-index: 2; max-width: 15rem; }
.accueil-cote::after { content: ""; display: block; width: 3rem; height: 2px; background: var(--bleu); margin-top: .9rem; }
.accueil-role { margin: 0; font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bleu); line-height: 1.6; }
.accueil-promesse { margin: 0; font-weight: 600; font-size: 1.1rem; line-height: 1.45; color: var(--encre); }
.accueil-cote-g, .accueil-cote-d { display: none; }
.accueil-suite { position: relative; z-index: 2; margin-top: 3rem; }
.accueil-suite::before { content: ""; display: block; width: 4rem; height: 2px; background: var(--bleu); margin-bottom: 1.5rem; }
.accueil-titre { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 800; color: var(--encre); letter-spacing: -.03em; line-height: 1.1; max-width: 22ch; margin-bottom: 1.1rem; text-wrap: balance; }
.accueil-texte { font-size: 1.1rem; color: var(--doux); max-width: 44rem; margin-bottom: 2rem; }
.accueil-texte a { font-weight: 700; }
@media (max-width: 519px) { .accueil .boutons .bouton { flex: 1 1 100%; margin-right: 4px; } }
@media (min-width: 900px) {
  .accueil-scene { padding-top: 2.5rem; }
  .accueil-cote-g, .accueil-cote-d { display: block; position: absolute; top: 5rem; text-align: left; }
  .accueil-cote-g { left: var(--marge); }
  .accueil-cote-d { right: var(--marge); }
  .avatar { width: 29rem; }
  .accueil-nom { margin-top: -5.5rem; }
}

/* ---------- Séparateur en blocs de pixels ---------- */
.separateur {
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23e3eefd' d='M0 12h192v12H0z'/%3E%3Cpath fill='%23b9d4fb' d='M12 0h12v12H12zM60 0h24v12H60zM132 0h12v12h-12zM24 12h12v12H24zM108 12h12v12h-12z'/%3E%3Cpath fill='%235c9df6' d='M24 0h12v12H24zM144 0h12v12h-12zM84 12h12v12H84zM168 12h12v12h-12z'/%3E%3Cpath fill='%230566f0' d='M36 0h12v12H36zM156 12h12v12h-12zM96 0h12v12H96z'/%3E%3C/svg%3E") repeat-x left bottom / 192px 24px;
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }
.section-tete { max-width: 40rem; margin-bottom: 3rem; }
.section-tete h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.section-tete p { font-size: 1.125rem; color: var(--doux); }

/* ---------- Frise chronologique : une barre d'expérience qui se remplit ---------- */
.frise {
  --rail: .8rem;        /* position du centre du rail */
  --retrait: 2.6rem;    /* décalage du contenu */
  position: relative;
  padding-left: var(--retrait);
}
.frise-rail {
  position: absolute; top: .4rem; bottom: 0;
  left: calc(var(--rail) - 5px); width: 10px;
  background: repeating-linear-gradient(to bottom, var(--ligne) 0 12px, transparent 12px 16px);
}
.frise-remplissage {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--bleu) 0 12px, transparent 12px 16px);
  clip-path: inset(0 0 calc((1 - var(--progression, 1)) * 100%) 0);
}
.etape { position: relative; padding-bottom: 4rem; }
.etape:last-child { padding-bottom: 0; }
.etape-bloc {
  position: absolute; top: .3rem;
  left: calc(var(--rail) - var(--retrait) - 11px);
  width: 22px; height: 22px;
  background: var(--blanc); border: 4px solid var(--ligne);
}
.etape.est-atteinte .etape-bloc { background: var(--bleu); border-color: var(--bleu-fonce); animation: pose .35s steps(3, end); }
.etape-finale .etape-bloc { width: 26px; height: 26px; left: calc(var(--rail) - var(--retrait) - 13px); }
@keyframes pose { from { transform: scale(1.6); } to { transform: scale(1); } }

.etape-date { font-family: var(--pixel); font-size: 1.05rem; line-height: 1.3; color: var(--bleu); margin-bottom: .5rem; letter-spacing: .01em; }
.etape h3 { font-size: clamp(1.5rem, 4.6vw, 2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1rem; }
.etape-texte { max-width: 38rem; }
.etape-corps { display: grid; gap: 1.75rem; }

.etape-medias { display: grid; gap: .75rem; align-content: start; }
.etape-medias-duo { grid-template-columns: 1fr 1fr; }
.etape-medias-createur { grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 34rem; align-items: start; margin-top: 2.5rem; }
.etape-medias-portrait { max-width: 19rem; }
.etape-medias-cod { gap: 2rem; }

/* Chiffres de créateur */
.stats { display: grid; gap: 1rem; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 1rem; border-top: 4px solid var(--encre); }
.stat dt { color: var(--doux); font-size: 1rem; line-height: 1.35; }
.stat dd { margin: 0; font-size: clamp(2.75rem, 9vw, 4.25rem); font-weight: 800; color: var(--bleu); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Tuiles pour les étapes sans photo */
.etape-tuile {
  align-self: start;
  background: var(--ciel); padding: 1.75rem 1.5rem 1.5rem;
  border: 2px solid var(--encre); box-shadow: 5px 5px 0 var(--bleu-clair);
}
.tuile-chiffre { font-size: clamp(3.5rem, 12vw, 5.5rem); font-weight: 800; color: var(--bleu); letter-spacing: -.05em; line-height: 1; margin-bottom: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tuile-phrase { font-size: clamp(1.75rem, 5.5vw, 2.4rem); font-weight: 800; color: var(--encre); letter-spacing: -.03em; line-height: 1.05; margin-bottom: .75rem; max-width: 12ch; }
.tuile-legende { font-family: var(--pixel); color: var(--bleu-fonce); font-size: 1rem; line-height: 1.4; }
/* Un escalier de blocs qui monte : la voie choisie */
.etape-tuile-voie {
  padding-bottom: 5.5rem;
  background: var(--ciel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='64' shape-rendering='crispEdges'%3E%3Cpath fill='%23b9d4fb' d='M0 48h32v16H0z'/%3E%3Cpath fill='%235c9df6' d='M32 32h32v32H32z'/%3E%3Cpath fill='%230566f0' d='M64 16h32v48H64z'/%3E%3Cpath fill='%230a2a6b' d='M96 0h32v64H96z'/%3E%3C/svg%3E") no-repeat right 1.5rem bottom 0 / 160px 64px;
}

@media (min-width: 900px) {
  .frise { --rail: 10.5rem; --retrait: 13rem; }
  .etape { padding-bottom: 6rem; }
  .etape-date {
    position: absolute; top: .1rem;
    left: calc(-1 * var(--retrait)); width: 9rem;
    text-align: right; font-size: 1.15rem;
  }
  .etape-corps { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .etape-corps-large { grid-template-columns: 1fr; }
  .etape-corps-large .etape-medias { max-width: 46rem; }
}

/* (les animations de lecture sont regroupées plus bas, section « Le livre ») */

/* ---------- Le livre : chapitres, lettrines, photos polaroid ---------- */
.surtitre { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--bleu); margin-bottom: .35rem; }
.etape-chapitre {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; line-height: 1.3;
  color: var(--bleu); margin-bottom: .4rem;
}
.etape-chapitre::after { content: ""; width: 2.5rem; height: 2px; background: var(--bleu-clair); }
.histoire .etape-texte > p:not(.etape-chapitre) { font-family: var(--serif); font-size: 1.22rem; line-height: 1.66; color: #2c313b; }
/* Lettrine au début de chaque chapitre */
.histoire .etape-texte > h3 + p::first-letter {
  float: left; font-family: var(--serif); font-size: 3.55em; line-height: .82;
  padding: .06em .1em 0 0; color: var(--bleu);
}

.photo { position: relative; translate: 0 var(--px, 0px); }
.photo-cadre {
  position: relative;
  background: var(--blanc); padding: .55rem .55rem .15rem;
  border: 1px solid #e3e8f0;
  box-shadow: 0 1px 2px rgba(18, 19, 23, .08), 0 14px 30px -10px rgba(10, 42, 107, .28);
  rotate: var(--incl, 0deg);
  transition: rotate .5s cubic-bezier(.2, .8, .2, 1), scale .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}
.photo-g { --incl: -2deg; }
.photo-d { --incl: 1.75deg; }
/* Un morceau de ruban adhésif, comme dans un album */
.photo-cadre::before {
  content: ""; position: absolute; z-index: 1; top: -.7rem; left: 50%;
  width: 4.5rem; height: 1.35rem; translate: -50% 0; rotate: calc(var(--incl, 0deg) * -2);
  background: rgba(185, 212, 251, .72); box-shadow: 0 1px 2px rgba(18, 19, 23, .1);
}
.photo-cadre img { width: 100%; background: var(--ciel); }
.photo-cadre figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.3;
  color: var(--texte); text-align: center; padding: .5rem .25rem .45rem;
}
@media (hover: hover) {
  .photo-cadre:hover { rotate: 0deg; scale: 1.035; box-shadow: 0 2px 4px rgba(18, 19, 23, .08), 0 26px 44px -14px rgba(10, 42, 107, .38); z-index: 2; }
}

/* Collage du GP Explorer */
.etape-medias-collage { grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 52rem; align-items: start; margin-top: 2rem; }
.etape-medias-collage .photo:nth-child(3) { grid-column: 1 / -1; width: 62%; justify-self: center; margin-top: -.5rem; }
@media (min-width: 640px) {
  .etape-medias-collage { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .etape-medias-collage .photo:nth-child(2) { margin-top: 3rem; }
  .etape-medias-collage .photo:nth-child(3) { grid-column: auto; width: auto; margin-top: .75rem; }
}

/* Chapitre 4 : le salon de jeu */
.lobby { background: #10141f; border-color: #10141f; color: #e8ecf5; box-shadow: 5px 5px 0 var(--bleu-clair); padding: 1.25rem; }
.lobby-titre { display: flex; justify-content: space-between; font-family: var(--pixel); font-size: 1.05rem; color: #8fb6ff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.lobby-joueurs { display: grid; gap: .4rem; }
.lobby-joueurs li { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; background: rgba(255, 255, 255, .06); font-weight: 700; }
.lobby-avatar { width: 1.5rem; height: 1.5rem; flex: none; background: var(--bleu); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .25); }
.lobby-joueurs li:nth-child(2) .lobby-avatar { background: #f2a93b; }
.lobby-joueurs li:nth-child(3) .lobby-avatar { background: #3bbf7a; }
.lobby-pret { margin-left: auto; font-family: var(--pixel); font-weight: 400; font-size: .85rem; color: #57e39a; }
.lobby-rejoint { margin: .9rem 0 1rem; padding: .6rem .7rem; background: var(--bleu); color: var(--blanc); font-weight: 700; }
.lobby-rejoint span { font-family: var(--pixel); margin-right: .35rem; }
.lobby .tuile-legende { color: #b9d4fb; }

/* Chapitre 12 : le cœur */
.tuile-coeur { text-align: left; }
.coeur { width: 5.5rem; height: auto; color: var(--rose); margin-bottom: 1.25rem; filter: drop-shadow(4px 4px 0 #f9c3cf); }

/* Chapitre 11 : la nuit, pleine largeur, avec un vrai ciel étoilé */
.etape.etape-nuit {
  --texte-nuit: #d6def5;
  padding-block: 4.5rem;
  margin-block: -1rem 4rem;
  background: var(--nuit);
  box-shadow: 0 0 0 100vmax var(--nuit);
  clip-path: inset(0 -100vmax);
  color: var(--texte-nuit);
}
.ciel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.etape-nuit .etape-bloc { top: 4.8rem; background: #fff7d6; border-color: #fff7d6; box-shadow: 0 0 18px 4px rgba(255, 240, 180, .55); }
.etape-nuit.est-atteinte .etape-bloc { background: #fff7d6; border-color: #fff7d6; }
.etape-nuit .etape-date { color: #ffe9a6; }
.etape-nuit h3 { color: var(--blanc); }
.etape-nuit .etape-chapitre { color: #9fc0ff; }
.etape-nuit .etape-chapitre::after { background: rgba(159, 192, 255, .35); }
.histoire .etape-nuit .etape-texte > p:not(.etape-chapitre) { color: var(--texte-nuit); }
.histoire .etape-nuit .etape-texte > h3 + p::first-letter { color: #ffe9a6; }
.etape-medias-nuit { justify-items: center; gap: 2rem; }
.lune {
  width: 8.5rem; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 38%, rgba(160, 150, 120, .35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 62%, rgba(160, 150, 120, .3) 0 12%, transparent 13%),
    radial-gradient(circle at 66% 28%, rgba(160, 150, 120, .25) 0 6%, transparent 7%),
    radial-gradient(circle at 38% 38%, #fffdf2, #f3e8c6 60%, #dccfa3);
  box-shadow: 0 0 40px 8px rgba(255, 240, 190, .35), 0 0 120px 30px rgba(255, 240, 190, .12), inset -12px -10px 0 rgba(0, 0, 0, .07);
}
.questions {
  width: 100%; max-width: 24rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: rgba(255, 255, 255, .06); border: 2px solid rgba(214, 222, 245, .28);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.questions-titre { font-family: var(--pixel); color: #ffe9a6; font-size: 1.05rem; margin-bottom: .75rem; }
.questions ul { display: grid; gap: .6rem; margin-bottom: 1rem; }
.questions li { display: flex; gap: .7rem; line-height: 1.4; color: var(--texte-nuit); }
.questions li::before { content: ""; flex: none; width: .95rem; height: .95rem; margin-top: .22rem; border: 2px solid #9fc0ff; }
.questions-score { font-family: var(--pixel); font-size: .95rem; color: #9fc0ff; }

@media (min-width: 900px) {
  .etape.etape-nuit { padding-block: 6rem; margin-block: -2rem 6rem; }
  .etape-nuit .etape-bloc { top: 6.3rem; }
  .etape-nuit .etape-date { top: 6.1rem; }
  .lune { width: 10rem; }
}

/* Chapitre 13 : l'IA, sur un réseau de neurones, pleine largeur */
.etape.etape-ia {
  --texte-ia: #d8def7;
  padding-block: 4.5rem; margin-block: -1rem 4rem;
  background: #0b0f2a; box-shadow: 0 0 0 100vmax #0b0f2a; clip-path: inset(0 -100vmax);
  background-image: radial-gradient(ellipse at 70% 40%, rgba(88, 80, 236, .28), transparent 60%);
  color: var(--texte-ia);
}
.etape-ia .etape-bloc { top: 4.8rem; background: #8fb6ff; border-color: #8fb6ff; box-shadow: 0 0 18px 4px rgba(143, 182, 255, .55); }
.etape-ia.est-atteinte .etape-bloc { background: #8fb6ff; border-color: #fff; }
.etape-ia .etape-date { color: #b8c9ff; }
.etape-ia h3 { color: var(--blanc); }
.etape-ia .etape-chapitre { color: #a9b8ff; }
.etape-ia .etape-chapitre::after { background: rgba(169, 184, 255, .35); }
.histoire .etape-ia .etape-texte > p:not(.etape-chapitre) { color: var(--texte-ia); text-shadow: 0 0 10px #0b0f2a, 0 0 22px #0b0f2a; }
.histoire .etape-ia .etape-texte > h3 + p::first-letter { color: #a9b8ff; }
.etape-medias-ia { gap: 1.25rem; justify-items: center; }
.discussion {
  width: 100%; max-width: 25rem; padding: 1rem 1rem 1.1rem; border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 20px 50px -20px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.discussion-tete { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(255, 255, 255, .14); font-weight: 700; color: #fff; }
.discussion-point { width: .65rem; height: .65rem; border-radius: 50%; background: #e08a5f; box-shadow: 0 0 10px #e08a5f; }
.bulle { max-width: 85%; margin: 0 0 .7rem; padding: .7rem .95rem; border-radius: 1.2rem; font-size: .98rem; line-height: 1.45; }
.bulle-moi { margin-left: auto; background: var(--bleu); color: #fff; border-bottom-right-radius: .35rem; }
.bulle-ia { width: max-content; background: rgba(255, 255, 255, .14); border-bottom-left-radius: .35rem; }
.ecrit { display: flex; gap: .3rem; padding: .2rem .1rem; }
.ecrit i { width: .5rem; height: .5rem; border-radius: 50%; background: #d8def7; opacity: .4; }
.discussion-saisie { margin: .6rem 0 0; padding: .65rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: rgba(216, 222, 247, .6); font-size: .92rem; }
.puces-ia { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 25rem; }
.puces-ia li { padding: .4rem .9rem; border-radius: 999px; font-size: .92rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.puces-ia .puce-favori { background: rgba(224, 138, 95, .25); border-color: rgba(224, 138, 95, .6); }
.puces-ia .puce-favori::before { content: "★ "; color: #ffc59e; }
@media (min-width: 900px) {
  .etape.etape-ia { padding-block: 6rem; margin-block: -2rem 6rem; }
  .etape-ia .etape-bloc { top: 6.3rem; }
  .etape-ia .etape-date { top: 6.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .ecrit i { animation: ecrit 1.3s ease-in-out infinite; }
  .js .ecrit i:nth-child(2) { animation-delay: .18s; }
  .js .ecrit i:nth-child(3) { animation-delay: .36s; }
  .js .bulle-moi { opacity: 0; transform: translateY(.6rem) scale(.96); transition: opacity .5s ease .6s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .6s; }
  .js .bulle-ia { opacity: 0; transition: opacity .4s ease 1.4s; }
  .js .est-visible .bulle-moi, .js .est-visible .bulle-ia { opacity: 1; transform: none; }
}
@keyframes ecrit { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-.25rem); } }

/* Fin du livre */
.a-suivre { margin: 3.5rem 0 0; font-family: var(--pixel); font-size: clamp(1.5rem, 5vw, 2rem); color: var(--encre); }
.a-suivre span { color: var(--bleu); }
.bouton-codex { margin-top: 1.5rem; }

/* ---------- Petit lecteur fixe : chapitre en cours et bouton du son ---------- */
.lecteur { position: fixed; right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .5rem; }
html:not(.js) .lecteur, html:not(.js) .hero-son { display: none; }
.lecteur-chapitre {
  display: none; margin: 0; padding: .45rem .75rem;
  font-family: var(--pixel); font-size: .95rem; line-height: 1.2; color: var(--encre);
  background: rgba(255, 255, 255, .92); border: 2px solid var(--ligne);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (min-width: 640px) { .lecteur-chapitre { display: block; } }
.lecteur-chapitre[hidden] { display: none !important; }
/* Le vinyle : il tourne quand la musique joue ; un appui la coupe ou la relance */
.son-bouton {
  position: relative; display: block; width: 4.25rem; height: 4.25rem; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  transition: transform .2s ease;
}
.son-bouton:hover { transform: scale(1.06); }
.son-bouton:active { transform: scale(.95); }
.son-bouton:focus-visible { outline: 3px solid var(--bleu); outline-offset: 4px; }
.son-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vinyle { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(10, 42, 107, .35), 0 0 0 3px var(--blanc); }
.vinyle-disque {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--blanc) 0 4%, var(--bleu) 4.5% 27%, #0b0c10 28%),
    #0b0c10;
  animation: tourne 2.4s linear infinite; animation-play-state: paused;
}
/* Les sillons */
.vinyle-disque::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 2px, rgba(255, 255, 255, .07) 2px 2.6px);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%); mask: radial-gradient(circle, transparent 38%, #000 39%);
}
/* Le « T » de l'étiquette, qui laisse voir la rotation */
.vinyle-disque::after {
  content: "T"; position: absolute; left: 50%; top: 50%; translate: -50% -58%;
  font: 800 .78rem/1 var(--police); color: var(--blanc);
}
/* Le reflet de la lumière, qui lui ne tourne pas */
.vinyle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .22) 13%, transparent 20% 55%, rgba(255, 255, 255, .14) 62%, transparent 70%);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%); mask: radial-gradient(circle, transparent 28%, #000 29%);
}
.vinyle-bras {
  position: absolute; z-index: 1; top: -.35rem; right: -.2rem; width: 4px; height: 2.6rem;
  background: linear-gradient(#e6ebf3, #aab6c8); border-radius: 2px;
  transform-origin: 50% .2rem; rotate: -14deg; transition: rotate .5s cubic-bezier(.3, 1.4, .5, 1);
}
.vinyle-bras::before { content: ""; position: absolute; top: -.25rem; left: 50%; width: .7rem; height: .7rem; translate: -50% 0; border-radius: 50%; background: #d4dbe6; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.vinyle-bras::after { content: ""; position: absolute; bottom: -.1rem; left: 50%; width: .5rem; height: .35rem; translate: -50% 0; background: #2a2d33; border-radius: 1px; }
.son-bouton[data-actif="true"] .vinyle-disque { animation-play-state: running; }
.son-bouton[data-actif="true"] .vinyle-bras { rotate: 22deg; }
@keyframes tourne { to { transform: rotate(360deg); } }

.hero-son { display: flex; align-items: center; gap: .55rem; margin: 1.5rem 0 0; font-size: .95rem; color: var(--doux); }
.hero-son svg { flex: none; color: var(--bleu); }


/* ---------- Animations de lecture (uniquement si JavaScript est actif et le mouvement autorisé) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Le haut de page se pose en douceur */
  .js .accueil-prenom, .js .accueil-famille, .js .accueil-devise, .js .accueil-cote, .js .accueil-suite > * { animation: monte 1s cubic-bezier(.2, .8, .2, 1) both; }
  .js .accueil-famille { animation-delay: .1s; }
  .js .accueil-devise { animation-delay: .25s; }
  .js .accueil-cote { animation-delay: .35s; }
  .js .accueil-suite > :nth-child(1) { animation-delay: .45s; }
  .js .accueil-suite > :nth-child(2) { animation-delay: .55s; }
  .js .accueil-suite > :nth-child(3) { animation-delay: .65s; }
  .js .accueil-suite > :nth-child(4) { animation-delay: .75s; }
  .js .avatar { animation: apparait 1.2s cubic-bezier(.2, .8, .2, 1) both; }

  /* Chaque chapitre arrive comme une page qu'on tourne */
  .js .etape .etape-date { opacity: 0; transform: translateX(-1rem); transition: opacity .7s ease, transform .7s ease; }
  .js .etape .etape-corps {
    opacity: 0; transform-origin: left center;
    transform: perspective(1400px) rotateY(-18deg) translateY(1.5rem);
    transition: opacity .9s ease .05s, transform 1.1s cubic-bezier(.2, .75, .2, 1) .05s;
  }
  .js .etape.est-visible .etape-date,
  .js .etape.est-visible .etape-corps { opacity: 1; transform: none; }

  /* Le texte apparaît de haut en bas, comme de l'encre qui se pose */
  .js .histoire .etape-texte > p:not(.etape-chapitre) {
    -webkit-mask-image: linear-gradient(to bottom, #000 0 40%, transparent 60% 100%);
    mask-image: linear-gradient(to bottom, #000 0 40%, transparent 60% 100%);
    -webkit-mask-size: 100% 250%; mask-size: 100% 250%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: 0 100%; mask-position: 0 100%;
    transition: -webkit-mask-position 1.8s cubic-bezier(.3, .6, .3, 1) .35s, mask-position 1.8s cubic-bezier(.3, .6, .3, 1) .35s;
  }
  .js .histoire .etape-texte > p:nth-of-type(3) { transition-delay: 1.1s; }
  .js .histoire .etape-texte > p:nth-of-type(4) { transition-delay: 1.8s; }
  .js .histoire .etape-texte > p:nth-of-type(5) { transition-delay: 2.4s; }
  .js .histoire .etape.est-visible .etape-texte > p:not(.etape-chapitre) { -webkit-mask-position: 0 0; mask-position: 0 0; }

  /* Les photos se posent sur la page, puis flottent doucement */
  .js .photo { opacity: 0; transform: translateY(3rem) rotate(-5deg) scale(.94); transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
  .js .etape-medias .photo:nth-child(2) { transition-delay: .18s; }
  .js .etape-medias .photo:nth-child(3) { transition-delay: .36s; }
  .js .etape.est-visible .photo { opacity: 1; transform: none; }
  .js .photo-cadre { animation: flotte 7s ease-in-out infinite; animation-delay: var(--delai, 0s); }
  .js .photo-d .photo-cadre { animation-duration: 8.5s; }

  .js .etape-tuile { transition: transform .9s cubic-bezier(.2, .8, .2, 1) .2s; }
  .js .lobby-joueurs li { opacity: 0; transform: translateX(-1rem); transition: opacity .5s ease, transform .5s ease; }
  .js .lobby-joueurs li:nth-child(1) { transition-delay: .5s; }
  .js .lobby-joueurs li:nth-child(2) { transition-delay: .75s; }
  .js .lobby-joueurs li:nth-child(3) { transition-delay: 1s; }
  .js .lobby-rejoint { opacity: 0; transform: translateY(.75rem) scale(.96); transition: opacity .5s ease 1.7s, transform .6s cubic-bezier(.3, 1.6, .5, 1) 1.7s; }
  .js .est-visible .lobby-joueurs li, .js .est-visible .lobby-rejoint { opacity: 1; transform: none; }

  .js .coeur { animation: bat 1.6s ease-in-out infinite; }
  .js .lune { animation: flotte-lune 9s ease-in-out infinite; }
  .js .questions li::before { transition: background-color .3s ease; }
  .a-suivre span { animation: clignote 1s steps(1) infinite; }

  .son-bouton[data-actif="false"]::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--bleu);
    animation: appel 2.6s ease-out 2s infinite; pointer-events: none;
  }
}

@keyframes apparait { from { opacity: 0; transform: translateY(1.5rem) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes flotte-portrait { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes flotte-lune { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 4deg; } }
@keyframes scintille { 0%, 100% { opacity: .2; scale: .6; } 50% { opacity: 1; scale: 1; } }
@keyframes bat { 0%, 60%, 100% { scale: 1; } 15% { scale: 1.12; } 30% { scale: .98; } 45% { scale: 1.08; } }
@keyframes clignote { 50% { opacity: 0; } }
@keyframes appel { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.45); } }

/* ---------- Entreprises ---------- */
.entreprises { display: grid; gap: 2rem; }
@media (min-width: 900px) { .entreprises { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.entreprise { display: flex; flex-direction: column; border: 2px solid var(--encre); background: var(--blanc); box-shadow: 6px 6px 0 var(--bleu-clair); }
.navigateur { display: block; border-bottom: 2px solid var(--encre); color: var(--doux); text-decoration: none; }
.navigateur-barre { display: flex; align-items: center; gap: 6px; height: 2.25rem; padding-inline: .9rem; background: #f4f7fc; border-bottom: 1px solid var(--ligne); }
.navigateur-barre i { width: 9px; height: 9px; background: var(--bleu-clair); }
.navigateur-barre i:first-child { background: var(--bleu); }
.navigateur-barre span { font-family: var(--pixel); font-size: .9rem; margin-left: .6rem; color: var(--doux); }
.navigateur img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.entreprise-texte { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.75rem 1.5rem 1.75rem; }
.entreprise h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.puces { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 1.75rem; font-size: .95rem; font-weight: 600; color: var(--encre); }
.puces li { display: flex; align-items: center; gap: .5rem; }
.puces li::before { content: ""; width: 7px; height: 7px; background: var(--bleu); }
.entreprise .bouton { margin-top: auto; }

/* ---------- Compétences : des cases d'inventaire ---------- */
.competences { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.competences li {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1rem .6rem .6rem;
  border: 2px solid var(--ligne); background: var(--blanc);
  font-weight: 600; color: var(--encre); line-height: 1.3;
}
.case {
  flex: none; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem;
  background: var(--ciel); color: var(--bleu);
  box-shadow: inset 3px 3px 0 var(--blanc), inset -3px -3px 0 #c9dcfa;
}
.case svg { width: 1.6rem; height: 1.6rem; }

/* ---------- CV ---------- */
.cv { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cv { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; } }
.cv-experiences { display: grid; gap: 1.5rem; }
.cv-poste { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.75rem; border: 2px solid var(--encre); background: var(--blanc); box-shadow: 6px 6px 0 var(--bleu-clair); }
.cv-poste::before { content: ""; position: absolute; left: -2px; top: 1.6rem; width: 6px; height: 2.2rem; background: var(--bleu); }
.cv-date { font-family: var(--pixel); color: var(--bleu); margin-bottom: .35rem; }
.cv-poste h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .2rem; }
.cv-lieu { font-weight: 700; color: var(--encre); margin-bottom: .75rem; }
.cv-atouts { display: grid; gap: 1rem; }
.cv-bloc { padding: 1.25rem 1.35rem; background: var(--ciel); border: 2px solid var(--ligne); }
.cv-bloc h3 { font-family: var(--pixel); font-weight: 400; font-size: 1.05rem; color: var(--bleu-fonce); margin-bottom: .6rem; }
.cv-bloc strong { color: var(--encre); }
.cv-liste { display: grid; gap: .35rem; }
.cv-bloc .puces { margin: 0; }

/* Statut du moment, avec un point vert qui « respire » */
.statut-actuel {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 1.25rem 0 0; padding: .55rem 1rem .55rem .85rem;
  background: #eafaf1; border: 2px solid #b5e8cb; color: var(--encre); font-weight: 600;
}
.statut-actuel strong { font-weight: 800; }
.point-vert { position: relative; flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: #1fbf64; }
.point-vert::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1fbf64; }
@media (prefers-reduced-motion: no-preference) {
  .point-vert::after { animation: onde 1.8s ease-out infinite; }
}
@keyframes onde { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.bouton-cv { margin-top: 1.25rem; display: flex; width: max-content; max-width: 100%; }

/* ---------- Avis ---------- */
:root { --etoile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h1v1h-1zM4 1h1v1h-1zM3 2h3v1h-3zM0 3h9v1h-9zM1 4h7v1h-7zM2 5h5v1h-5zM2 6h2v1h-2zM5 6h2v1h-2zM1 7h2v1h-2zM6 7h2v1h-2zM0 8h2v1h-2zM7 8h2v1h-2z'/%3E%3C/svg%3E"); --or: #f5b301; }
.avis-grille { display: grid; gap: 3rem; }
@media (min-width: 900px) { .avis-grille { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; } }
.avis-tete h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.avis-tete > p { font-size: 1.125rem; color: var(--doux); max-width: 34rem; }
.avis-moyenne { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 1.75rem 0 1.5rem; }
.avis-moyenne[hidden] { display: none; }
.avis-note-globale { margin: 0; font-size: 3rem; font-weight: 800; color: var(--encre); letter-spacing: -.04em; line-height: 1; }
.avis-sur { font-size: 1.25rem; color: var(--doux); }
.avis-nombre { margin: 0; color: var(--doux); width: 100%; }
/* Étoiles d'affichage : une bande dorée remplie selon la note (--remplissage) */
.etoiles-affichage {
  --taille: 1.5rem;
  width: calc(var(--taille) * 5); height: var(--taille); margin: 0;
  background: linear-gradient(to right, var(--or) calc(var(--remplissage, 100) * 1%), #d7dde8 0);
  -webkit-mask: var(--etoile) left center / var(--taille) var(--taille) repeat-x;
  mask: var(--etoile) left center / var(--taille) var(--taille) repeat-x;
}
.avis-liste { display: grid; gap: 1rem; margin-top: 1.5rem; }
.avis-carte { padding: 1.1rem 1.25rem; border: 2px solid var(--ligne); background: var(--blanc); }
.avis-carte-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin-bottom: .5rem; }
.avis-carte-nom { font-weight: 800; color: var(--encre); margin: 0; }
.avis-carte .etoiles-affichage { --taille: 1rem; }
.avis-carte-date { font-size: .875rem; color: var(--doux); margin: 0 0 0 auto; }
.avis-carte-message { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; margin: 0; white-space: pre-line; }
.avis-vide { margin-top: 1.5rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--doux); }
.avis-vide[hidden] { display: none; }

.etoiles-choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.etoiles-choix legend { font-weight: 700; color: var(--encre); padding: 0; margin-bottom: .4rem; }
.etoiles-boutons { display: flex; gap: .35rem; }
.etoiles-boutons input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-boutons label {
  width: 2.75rem; height: 2.75rem; cursor: pointer;
  background: #d7dde8;
  -webkit-mask: var(--etoile) center / 2.25rem 2.25rem no-repeat;
  mask: var(--etoile) center / 2.25rem 2.25rem no-repeat;
  transition: background-color .15s ease, transform .15s ease;
}
.etoiles-boutons label:hover { transform: scale(1.12); }
.etoiles-boutons:has(input:nth-of-type(1):checked) label:nth-of-type(-n+1),
.etoiles-boutons:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.etoiles-boutons:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.etoiles-boutons:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.etoiles-boutons:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5) { background: var(--or); }
@media (hover: hover) {
  .etoiles-boutons:has(label:nth-of-type(1):hover) label:nth-of-type(-n+1),
  .etoiles-boutons:has(label:nth-of-type(2):hover) label:nth-of-type(-n+2),
  .etoiles-boutons:has(label:nth-of-type(3):hover) label:nth-of-type(-n+3),
  .etoiles-boutons:has(label:nth-of-type(4):hover) label:nth-of-type(-n+4),
  .etoiles-boutons:has(label:nth-of-type(5):hover) label:nth-of-type(-n+5) { background: #ffd65c; }
}
/* Contour visible au clavier (le masque des étoiles cacherait un contour posé sur elles) */
.etoiles-boutons { width: max-content; padding: .15rem; }
.etoiles-boutons:has(input:focus-visible) { outline: 3px solid var(--bleu); outline-offset: 2px; }
.etoiles-choix.est-invalide legend { color: #b0212a; }

/* ---------- Questions fréquentes ---------- */
.faq { display: grid; gap: .75rem; max-width: 50rem; }
.faq-question { border: 2px solid var(--ligne); background: var(--blanc); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-question[open] { border-color: var(--encre); box-shadow: 5px 5px 0 var(--bleu-clair); }
.faq-question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.1rem; color: var(--encre);
}
.faq-question summary::-webkit-details-marker { display: none; }
.faq-question summary::after { content: "+"; flex: none; font-family: var(--pixel); font-size: 1.5rem; line-height: 1; color: var(--bleu); transition: transform .25s ease; }
.faq-question[open] summary::after { transform: rotate(45deg); }
.faq-question summary:hover { color: var(--bleu); }
.faq-question p { padding: 0 1.25rem 1.2rem; margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grille { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-infos h2 { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
.contact-infos > p { font-size: 1.125rem; color: var(--doux); max-width: 32rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0 1.75rem; padding-block: .5rem;
  font-size: clamp(1.1rem, 4.4vw, 1.4rem); font-weight: 700; color: var(--encre); text-decoration: none;
  word-break: break-all;
}
.contact-email svg { width: 1.6rem; height: 1.6rem; color: var(--bleu); flex: none; }
.contact-email:hover { color: var(--bleu); }
.reseaux { display: flex; flex-wrap: wrap; gap: .6rem; }
.reseaux a {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 2px solid var(--ligne); color: var(--encre);
  transition: color .15s ease, border-color .15s ease;
}
.reseaux a:hover { color: var(--bleu); border-color: var(--bleu); }
.reseaux svg { width: 1.35rem; height: 1.35rem; }
/* Un réseau pas encore rempli n'est pas affiché */
.reseaux li:has(a[href*="A-COMPLETER"]) { display: none; }

.formulaire { display: grid; gap: 1.25rem; padding: 1.5rem; border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--bleu-clair); background: var(--blanc); }
@media (min-width: 640px) { .formulaire { padding: 2rem; } }
.champ { display: grid; gap: .4rem; }
.champ label { font-weight: 700; color: var(--encre); }
.champ input, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  padding: .8rem .9rem; background: var(--blanc);
  border: 2px solid #c3cddd; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--bleu-clair); outline-offset: 0; border-color: var(--bleu); }
.champ [aria-invalid="true"] { border-color: #c0262d; }
.formulaire .bouton { justify-self: start; }
.formulaire-etat { min-height: 1.5em; font-weight: 600; margin: 0; }
.formulaire-etat.est-erreur { color: #b0212a; }
.formulaire-etat.est-ok { color: #11703a; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); padding-block: 3rem 2.5rem; }
.pied-interieur { display: grid; gap: 1.25rem; }
.pied-phrase { font-size: clamp(1.3rem, 4.5vw, 1.75rem); font-weight: 800; color: var(--encre); letter-spacing: -.02em; line-height: 1.2; max-width: 26ch; margin: 0; }
.pied-liens { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.pied-liens a { display: inline-block; padding-block: .5rem; font-weight: 600; }
.pied-copyright { color: var(--doux); font-size: .95rem; margin: 0; }
@media (min-width: 900px) {
  .pied-interieur { grid-template-columns: 1fr auto; align-items: end; }
  .pied-copyright { grid-column: 1 / -1; }
}

/* ---------- Page 404 ---------- */
.erreur { min-height: calc(100vh - var(--entete) - 12rem); display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.erreur .erreur-code { font-family: var(--pixel); font-size: clamp(5rem, 24vw, 10rem); line-height: 1; color: var(--bleu); margin-bottom: 1rem; }
.erreur h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.erreur p { color: var(--doux); font-size: 1.125rem; max-width: 30rem; margin-inline: auto; }
.erreur .boutons { justify-content: center; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Page de modération des avis ---------- */
.admin { max-width: 48rem; }
.admin h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.admin .formulaire { margin: 2rem 0; }
.admin .formulaire[hidden] { display: none; }
.admin-liste { display: grid; gap: 1rem; margin-top: 2rem; }
.admin-avis { border-color: #f5b301; }
.admin-avis.est-publie { border-color: var(--ligne); }
.admin-avis .boutons { margin-top: 1rem; }

/* ---------- Le Codex : un graphe de mon univers ---------- */
.page-codex { --c-moi: #ffffff; --c-projet: #4d8dff; --c-personne: #ff6b8b; --c-passion: #57e39a; --c-parcours: #ffd166; --c-travail: #ff9f43; --c-lieu: #b39dff; }
/* La scène du Codex : d'abord le cerveau, puis le graphe neuronal au même endroit */
.codex-scene {
  position: relative; overflow: hidden;
  height: clamp(36rem, calc(100svh - var(--entete)), 60rem);
  background: radial-gradient(ellipse at 58% 50%, #0b1a4a 0%, #040816 55%, #02040d 100%);
  color: #d6def5;
}
.cerveau-vue { position: absolute; inset: 0; transition: opacity .6s ease; }
.cerveau { position: absolute; inset: 0; width: 100%; height: 100%; }
.cerveau-textes { position: absolute; inset: 0; padding: 1.5rem var(--marge) 2rem; display: flex; flex-direction: column; pointer-events: none; }
.cerveau-textes > * { pointer-events: auto; }
.cerveau-marque { margin: 0; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: #4d8dff; }
.cerveau-titre { margin: auto 0 0; color: #f2f5ff; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; line-height: .95; font-size: clamp(3.2rem, 13vw, 7.5rem); }
.cerveau-titre span { display: block; }
.cerveau-titre-1 { font-size: .55em; letter-spacing: .3em; color: #a9bff5; }
.cerveau-tiret { display: inline-block; width: .5em; height: .07em; margin-left: .2em; vertical-align: middle; background: #0566f0; box-shadow: 0 0 14px #0566f0; }
.cerveau-sous { display: flex; align-items: center; gap: .9rem; margin: 1.25rem 0 0; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #9fb2e0; }
.cerveau-ligne { width: 4rem; height: 1px; background: rgba(159, 178, 224, .5); }
.cerveau-droite { margin: 1.5rem 0 0; max-width: 22rem; font-size: .88rem; line-height: 1.7; letter-spacing: .08em; text-transform: uppercase; color: #b9c6ea; }
.cerveau-droite strong { color: #fff; font-weight: 700; }
.cerveau-entrer { align-self: flex-start; margin-top: 1.75rem; }
.cerveau-aide { margin: 1rem 0 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(185, 198, 234, .55); }
@media (min-width: 900px) {
  .cerveau-textes { padding: 2rem 2.5rem; }
  .cerveau-titre { position: absolute; left: 2.5rem; top: 30%; margin: 0; }
  .cerveau-sous { position: absolute; left: 2.5rem; top: calc(30% + 16.5rem); margin: 0; }
  .cerveau-droite { position: absolute; right: 2.5rem; top: 34%; margin: 0; max-width: 17rem; }
  .cerveau-droite::after { content: ""; display: block; width: 3.5rem; height: 1px; margin-top: 1.2rem; background: #0566f0; box-shadow: 0 0 10px #0566f0; }
  .cerveau-textes .cerveau-entrer { position: absolute; left: 50%; bottom: 2.25rem; translate: -50% 0; margin: 0; padding: 1rem 2.2rem; font-size: 1.05rem; }
  .cerveau-aide { position: absolute; left: 2.5rem; bottom: 2.6rem; margin: 0; }
}
@media (max-width: 899px) {
  .cerveau-titre { margin-top: auto; }
  .cerveau-droite { display: none; }
}
/* La plongée : les textes s'effacent pendant que la caméra entre dans le cerveau */
.cerveau-textes > * { transition: opacity .5s ease, transform .6s ease; }
.est-en-plongee .cerveau-textes > * { opacity: 0; transform: translateY(-.75rem); }
.est-dans-le-codex .cerveau-vue { opacity: 0; pointer-events: none; }

.graphe {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(22, 40, 110, .55) 0%, rgba(2, 4, 13, 0) 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .graphe:not([hidden]) { animation: apparait-graphe .9s ease both; }
}
@keyframes apparait-graphe { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.graphe .legende { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; padding: 0; justify-content: center; }
.zone { fill: rgba(159, 192, 255, .16); font-family: var(--police); font-size: 30px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; pointer-events: none; transition: fill .3s ease; }
.zone.est-active { fill: rgba(190, 215, 255, .45); }
.arete-influx { fill: none; stroke: #cfe0ff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1.5 30; opacity: .45; }
.a-foyer .arete-influx { opacity: .06; }
.a-foyer .arete-influx.est-active { opacity: 1; stroke: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .arete-influx { animation: influx 2.6s linear infinite; }
}
@keyframes influx { to { stroke-dashoffset: -63; } }
.graphe[hidden] { display: none; }
.graphe-svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.graphe-svg:active { cursor: grabbing; }

.arete { fill: none; stroke: rgba(90, 150, 255, .3); stroke-width: 1.2; transition: stroke .25s ease, stroke-width .25s ease, opacity .25s ease; }
.noeud { cursor: pointer; outline: none; }
.noeud-point { fill: var(--c); stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; transition: r .25s ease; }
.noeud-halo { fill: var(--c); opacity: .35; transition: opacity .25s ease; }
.noeud-nom { fill: #d6def5; font-family: var(--police); font-size: 14px; font-weight: 600; paint-order: stroke; stroke: var(--nuit); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; transition: opacity .25s ease; }
.noeud-centre .noeud-nom { font-size: 16px; font-weight: 800; fill: #fff; }
.noeud-anneau { fill: none; stroke: #fff; stroke-width: 3; }
.noeud-centre .noeud-halo { opacity: .6; }
.noeud-moi { --c: var(--c-moi); }
.noeud-centre .noeud-halo { fill: var(--c-projet); }
.noeud-projet { --c: var(--c-projet); }
.noeud-personne { --c: var(--c-personne); }
.noeud-passion { --c: var(--c-passion); }
.noeud-parcours { --c: var(--c-parcours); }
.noeud-travail { --c: var(--c-travail); }
.noeud-lieu { --c: var(--c-lieu); }
.noeud:focus-visible .noeud-point { stroke: #fff; stroke-width: 3; }

/* Survol ou sélection : le point, ses voisins et leurs liens s'allument, le reste s'efface */
.a-foyer .noeud { opacity: .18; transition: opacity .25s ease; }
.a-foyer .noeud.est-actif { opacity: 1; }
.a-foyer .arete { opacity: .08; }
.a-foyer .arete.est-active { opacity: 1; stroke: #9fc0ff; stroke-width: 2.2; }
.noeud.est-actif .noeud-halo { opacity: .75; }
.noeud.est-choisi .noeud-point { stroke: #fff; stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .noeud-centre .noeud-halo { animation: respire 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes respire { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.18); opacity: .8; } }

.graphe-outils { position: absolute; left: .75rem; top: .75rem; display: flex; gap: .4rem; }
.graphe-bouton {
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(214, 222, 245, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.graphe-bouton:hover { background: rgba(255, 255, 255, .16); }

.panneau {
  position: absolute; right: .75rem; top: .75rem; bottom: .75rem; width: min(22rem, calc(100% - 1.5rem));
  overflow-y: auto; padding: 1.5rem 1.4rem 1.25rem;
  background: rgba(255, 255, 255, .97); color: var(--texte);
  border: 2px solid var(--encre); box-shadow: 6px 6px 0 var(--c, var(--bleu-clair));
}
.panneau[hidden] { display: none; }
.panneau-projet { --c: var(--c-projet); }
.panneau-personne { --c: var(--c-personne); }
.panneau-passion { --c: var(--c-passion); }
.panneau-parcours { --c: var(--c-parcours); }
.panneau-travail { --c: var(--c-travail); }
.panneau-lieu { --c: var(--c-lieu); }
.panneau-fermer { position: absolute; top: .35rem; right: .35rem; width: 2.5rem; height: 2.5rem; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--encre); }
.panneau h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; padding-right: 2rem; }
.panneau p { font-size: 1rem; }
.panneau .fiche-groupe { font-family: var(--pixel); color: var(--bleu); margin-bottom: .35rem; }
.panneau .fiche-lien a { font-weight: 700; }
.panneau .fiche-relations { font-size: .95rem; color: var(--doux); }
@media (max-width: 639px) {
  .panneau { top: auto; left: .75rem; width: auto; max-height: 60%; }
}
@media (prefers-reduced-motion: no-preference) {
  .panneau:not([hidden]) { animation: monte .35s cubic-bezier(.2, .8, .2, 1); }
}

.legende { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; }
.filtre {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem;
  font: inherit; font-size: .95rem; font-weight: 600; color: #d6def5; cursor: pointer;
  background: transparent; border: 2px solid rgba(214, 222, 245, .25);
}
.filtre:hover, .filtre[aria-pressed="true"] { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.pastille { width: .8rem; height: .8rem; border-radius: 50%; flex: none; display: inline-block; }
.pastille-moi { background: var(--c-moi, #fff); box-shadow: 0 0 0 2px var(--bleu); }
.pastille-projet { background: var(--c-projet, #4d8dff); }
.pastille-personne { background: var(--c-personne, #ff6b8b); }
.pastille-passion { background: var(--c-passion, #57e39a); }
.pastille-parcours { background: var(--c-parcours, #ffd166); }
.pastille-travail { background: var(--c-travail, #ff9f43); }
.pastille-lieu { background: var(--c-lieu, #b39dff); }

.fiches-groupe { margin-bottom: 3rem; }
.fiches-titre { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.fiches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.fiche { padding: 1.25rem 1.3rem; border: 2px solid var(--ligne); background: var(--blanc); scroll-margin-top: calc(var(--entete) + 1rem); }
.fiche:target { border-color: var(--encre); box-shadow: 5px 5px 0 var(--bleu-clair); }
.fiche h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.fiche .fiche-groupe { font-family: var(--pixel); font-size: .9rem; color: var(--bleu); margin-bottom: .25rem; }
.fiche .fiche-lien a { font-weight: 700; }
.fiche .fiche-relations { font-size: .92rem; color: var(--doux); }
.menu a[aria-current="page"] { color: var(--bleu); }

/* ==========================================================================
   Liquid glass : verre dépoli, reflets et boutons façon Apple sur tout le site
   (couche posée par-dessus les styles précédents)
   ========================================================================== */
:root {
  --verre: rgba(255, 255, 255, .58);
  --verre-fort: rgba(255, 255, 255, .78);
  --verre-bord: rgba(255, 255, 255, .75);
  --verre-ombre: 0 10px 30px -12px rgba(10, 42, 107, .28), 0 2px 6px -2px rgba(10, 42, 107, .12);
  --verre-reflet: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(10, 42, 107, .06), inset 0 0 0 1px rgba(255, 255, 255, .35);
  --verre-flou: blur(20px) saturate(1.8);
  --rayon: 1.25rem;
}

/* De douces taches de couleur derrière tout le site, pour que le verre ait quelque chose à réfracter */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 12% 18%, rgba(5, 102, 240, .10), transparent 70%),
    radial-gradient(30vmax 30vmax at 88% 30%, rgba(120, 110, 255, .09), transparent 70%),
    radial-gradient(34vmax 34vmax at 70% 90%, rgba(80, 170, 255, .10), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: taches 28s ease-in-out infinite alternate; }
}
@keyframes taches { to { transform: translate(4vmax, -3vmax) rotate(8deg); } }

/* Le reflet de lumière qui suit le doigt ou la souris (--mx, --my posés par main.js) */
.bouton, .reseaux a, .graphe-bouton, .filtre { --mx: 50%; --my: 0%; }

/* ---------- Boutons : pilules de verre ---------- */
.bouton {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 999px; border: 1px solid var(--verre-bord);
  padding: .8rem 1.5rem; font-weight: 650; letter-spacing: -.01em;
  box-shadow: var(--verre-reflet), var(--verre-ombre);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s ease, background-color .3s ease, filter .3s ease;
}
.bouton::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.bouton::after {
  content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1; border-radius: 999px 999px 40% 40% / 999px 999px 20% 20%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
}
.bouton:hover::before { opacity: 1; }
.bouton:hover { transform: translateY(-2px) scale(1.02); }
.bouton:active { transform: scale(.96); transition-duration: .12s; }
.bouton-principal {
  color: #fff; border-color: rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, #2f86ff 0%, #0566f0 55%, #0457cf 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(0, 30, 90, .25), 0 12px 28px -10px rgba(5, 102, 240, .65);
}
.bouton-principal:hover { color: #fff; background: linear-gradient(180deg, #3b8fff 0%, #0a6dfa 55%, #045bd8 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 30, 90, .25), 0 16px 34px -10px rgba(5, 102, 240, .7); }
.bouton-principal:active { box-shadow: inset 0 2px 8px rgba(0, 30, 90, .35), 0 6px 14px -8px rgba(5, 102, 240, .6); }
.bouton-secondaire {
  color: var(--encre); background: var(--verre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
}
.bouton-secondaire:hover { color: var(--encre); background: var(--verre-fort); box-shadow: var(--verre-reflet), 0 14px 32px -12px rgba(10, 42, 107, .35); }
.bouton-secondaire:active { box-shadow: var(--verre-reflet), 0 4px 10px -6px rgba(10, 42, 107, .3); }
.bouton-principal:focus-visible, .bouton:focus-visible { outline: 3px solid rgba(5, 102, 240, .45); outline-offset: 3px; }

/* ---------- En-tête et menu en verre ---------- */
.entete {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(24px) saturate(1.9); backdrop-filter: blur(24px) saturate(1.9);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 1px 0 rgba(10, 42, 107, .06), 0 8px 24px -18px rgba(10, 42, 107, .35);
}
.menu a { border-radius: 999px; transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.menu a:hover { background: rgba(5, 102, 240, .08); }
.menu a:active { transform: scale(.95); }
.menu .menu-contact {
  color: #fff; padding-inline: 1.1rem;
  background: linear-gradient(180deg, #2b2e36, #121317);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px rgba(18, 19, 23, .6);
}
.menu .menu-contact:hover { background: linear-gradient(180deg, #2f86ff, #0566f0); color: #fff; }
.logo-marque { border-radius: 8px; }
@media (max-width: 759px) {
  .js .menu { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); border-radius: 0 0 1.25rem 1.25rem; box-shadow: 0 20px 40px -20px rgba(10, 42, 107, .35); }
  .js .menu a { border-radius: .75rem; border-bottom-color: rgba(10, 42, 107, .06); }
  .js .menu .menu-contact { border-radius: 999px; }
}

/* ---------- Icônes : pastilles de verre ---------- */
.reseaux a {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--verre); border: 1px solid var(--verre-bord); color: var(--encre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-reflet), var(--verre-ombre);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), color .2s ease, box-shadow .3s ease;
}
.reseaux a:hover { color: var(--bleu); border-color: var(--verre-bord); transform: translateY(-3px) scale(1.06); }
.reseaux a:active { transform: scale(.94); }
.case {
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(214, 229, 252, .7));
  border: 1px solid var(--verre-bord);
  box-shadow: var(--verre-reflet), 0 6px 14px -8px rgba(5, 102, 240, .45);
}
.competences li {
  border-radius: var(--rayon); border: 1px solid var(--verre-bord); background: var(--verre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-reflet), var(--verre-ombre);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.competences li:hover { transform: translateY(-3px); }
.contact-email svg { filter: drop-shadow(0 4px 8px rgba(5, 102, 240, .35)); }

/* ---------- Cartes et blocs en verre ---------- */
.entreprise, .cv-poste, .cv-bloc, .formulaire, .avis-carte, .fiche, .etape-tuile:not(.lobby), .faq-question, .statut-actuel {
  border-radius: var(--rayon); border: 1px solid var(--verre-bord);
  background: var(--verre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-reflet), var(--verre-ombre);
}
.entreprise { overflow: hidden; }
.navigateur { border-bottom: 1px solid rgba(10, 42, 107, .08); }
.navigateur-barre { background: rgba(244, 247, 252, .7); }
.navigateur-barre i { border-radius: 50%; }
.cv-poste::before { border-radius: 0 4px 4px 0; left: 0; }
.cv-bloc { background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(226, 237, 253, .6)); }
.lobby { border-radius: var(--rayon); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 40px -20px rgba(10, 18, 40, .7); }
.lobby-joueurs li, .lobby-rejoint { border-radius: .8rem; }
.lobby-avatar { border-radius: .45rem; }
.faq-question[open] { border-color: var(--verre-bord); box-shadow: var(--verre-reflet), 0 16px 36px -14px rgba(10, 42, 107, .35); }
.faq-question summary { border-radius: var(--rayon); }
.statut-actuel { border-radius: 999px; padding-inline: 1rem 1.2rem; }
.stat { border-top-width: 3px; border-image: linear-gradient(90deg, var(--encre), rgba(18, 19, 23, 0)) 1; }
.photo-cadre { border-radius: 6px; }
.etape-tuile-voie { background-color: rgba(238, 244, 255, .7); }

/* ---------- Champs de formulaire ---------- */
.champ input, .champ textarea {
  border-radius: .9rem; border: 1px solid rgba(10, 42, 107, .14);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 2px rgba(10, 42, 107, .06);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.champ input:focus, .champ textarea:focus { outline: none; background: #fff; border-color: rgba(5, 102, 240, .6); box-shadow: 0 0 0 4px rgba(5, 102, 240, .15); }

/* ---------- Petites étiquettes flottantes ---------- */
.lecteur-chapitre {
  border-radius: 999px; border: 1px solid var(--verre-bord); background: var(--verre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-reflet), var(--verre-ombre);
}
.bouton-cv { width: max-content; }

/* ---------- Codex ---------- */
.graphe-bouton, .filtre {
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .2s ease;
}
.graphe-bouton:active, .filtre:active { transform: scale(.94); }
.panneau { border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -20px rgba(0, 0, 0, .6); }

/* ---------- Tyméo en bref ---------- */
.en-bref { padding-block: 3.5rem; }
.bref { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: 0; }
.bref-carte {
  padding: 1.1rem 1.25rem; border-radius: var(--rayon); border: 1px solid var(--verre-bord); background: var(--verre);
  -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); box-shadow: var(--verre-reflet), var(--verre-ombre);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.bref-carte:hover { transform: translateY(-3px); }
.bref-carte dt { font-family: var(--pixel); font-size: .92rem; color: var(--bleu); margin-bottom: .3rem; }
.bref-carte dd { margin: 0; font-weight: 700; color: var(--encre); line-height: 1.35; }
.bref-carte-actuel dd { display: flex; align-items: center; gap: .55rem; }
.bref-carte dd a { font-weight: 800; }
.bref-carte-actuel { background: linear-gradient(160deg, rgba(234, 250, 241, .85), rgba(255, 255, 255, .6)); }
.bref-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.bref-etat { min-height: 1.5em; margin: .75rem 0 0; font-weight: 600; color: #11703a; }
@media (max-width: 519px) { .bref-actions .bouton { flex: 1 1 100%; } }

/* ---------- Page des mentions légales ---------- */
.page-legale .section-tete { margin-bottom: 2rem; }
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin: 2.5rem 0 .8rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.legal-carte { padding: 1.5rem 1.6rem; border-radius: var(--rayon); border: 1px solid var(--verre-bord); background: var(--verre); -webkit-backdrop-filter: var(--verre-flou); backdrop-filter: var(--verre-flou); box-shadow: var(--verre-reflet), var(--verre-ombre); }
.titre-page { font-size: clamp(2.2rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .75rem; }
