  :root {
    --nuit: #0d0820;
    --nuit-2: #170e33;
    --violet: #8b5cf6;
    --magenta: #e046f5;
    --rose: #ff7ad9;
    --or: #ffc94d;
    --texte: #f4eeff;
    --texte-2: #c3b6e6;
    --ligne: rgba(244, 238, 255, .14);
    --titre: "Lilita One", "Arial Black", sans-serif;
    --sans: "Nunito", system-ui, sans-serif;
    --mono: "Space Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; background: var(--nuit); color: var(--texte); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  /* bilingue : chaque texte existe en deux <span lang>, on cache l'autre langue */
  html[lang="fr"] [lang="en"]:not(html), html[lang="en"] [lang="fr"]:not(html) { display: none !important; }

  /* ---------- Écran de chargement ---------- */
  #chargement { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 45%, #2a1260, var(--nuit) 70%);
    display: grid; place-items: center; text-align: center; transition: transform 1s cubic-bezier(.76, 0, .24, 1), opacity .3s .9s; }
  #chargement.fini { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  html.charge-en-cours { overflow: hidden; }
  #chargement .fantome { width: 170px; animation: flotte 2.2s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(224, 70, 245, .35)); }
  @keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
  #chargement .nom { width: 280px; margin: 22px auto 0; }
  .pct { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--texte-2); margin-top: 26px; }
  .barre { width: 200px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin: 10px auto 0; overflow: hidden; }
  .barre i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--magenta)); transition: width .3s; }

  /* ---------- En-tête ---------- */
  header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 14px clamp(16px, 4vw, 44px); background: linear-gradient(to bottom, rgba(13, 8, 32, .8), rgba(13, 8, 32, 0)); transition: background .3s; }
  header.plein { background: rgba(13, 8, 32, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne); }
  .logo img { height: 74px; width: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); transition: height .3s; }
  header.plein .logo img { height: 52px; }
  nav { display: flex; gap: 26px; font-weight: 800; font-size: 14px; }
  nav a { opacity: .8; transition: opacity .2s, color .2s; }
  nav a:hover { opacity: 1; color: var(--rose); }
  .actions { display: flex; align-items: center; gap: 12px; }
  .langue { display: flex; border: 1px solid var(--ligne); border-radius: 99px; overflow: hidden; font-family: var(--mono); font-size: 12px; }
  .langue button { all: unset; cursor: pointer; padding: 7px 11px; color: var(--texte-2); }
  .langue button.on { background: var(--violet); color: #fff; }
  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-family: var(--titre); font-size: 17px; letter-spacing: .02em;
    background: linear-gradient(180deg, #f067ff, #b93ae0); color: #fff; box-shadow: 0 5px 0 #6f1d8c, 0 10px 28px rgba(224, 70, 245, .35);
    transition: transform .15s, box-shadow .15s; white-space: nowrap; border: 0; cursor: pointer; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #6f1d8c, 0 14px 32px rgba(224, 70, 245, .45); }
  .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #6f1d8c; }
  .btn.clair { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
  .btn.bientot { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px var(--ligne); color: var(--texte-2); cursor: default; font-size: 15px; }
  .btn.bientot:hover { transform: none; }
  .burger { display: none; background: none; border: 1px solid var(--ligne); border-radius: 10px; color: var(--texte); padding: 8px 12px; font-family: var(--mono); font-size: 12px; cursor: pointer; }
  .menu-mobile { display: none; }

  /* ---------- Film ---------- */
  .film { position: relative; }
  .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  canvas { width: 100%; height: 100%; display: block; }
  .voile { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(130% 100% at 50% 50%, rgba(13, 8, 32, 0) 45%, rgba(13, 8, 32, .55) 100%),
                linear-gradient(to top, rgba(13, 8, 32, .65), rgba(13, 8, 32, 0) 35%); }
  .progress { position: absolute; top: 0; left: 0; height: 3px; width: 0; z-index: 5; background: linear-gradient(90deg, var(--violet), var(--magenta)); }

  .chapitres { position: absolute; right: clamp(14px, 3vw, 36px); top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 12px; }
  .chapitres button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; transition: opacity .3s; }
  .chapitres button i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; transition: background .3s, transform .3s; }
  .chapitres button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
  .chapitres button.on { opacity: 1; color: var(--rose); }
  .chapitres button.on i { background: var(--rose); transform: scale(1.2); }
  .chapitres:hover button span { opacity: 1; transform: none; }

  .calque { position: absolute; z-index: 4; opacity: 0; pointer-events: none; will-change: opacity, transform; }
  .calque.actif { pointer-events: auto; }
  .halo::before { content: ""; position: absolute; inset: -80px -120px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(13, 8, 32, .78), rgba(13, 8, 32, .4) 60%, rgba(13, 8, 32, 0)); }
  .etiquette { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }
  .etiquette b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--or); color: var(--nuit); font-size: 13px; letter-spacing: 0; }
  .grand { font-family: var(--titre); font-weight: 400; line-height: .95; margin: 14px 0 0; text-shadow: 0 4px 0 rgba(60, 10, 90, .9), 0 10px 40px rgba(0, 0, 0, .5); }
  .phrase { font-size: 18px; line-height: 1.5; color: var(--texte); max-width: 460px; margin: 16px 0 0; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
  .plateforme { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 7px 14px; border-radius: 99px; background: rgba(13, 8, 32, .7); border: 1px solid var(--ligne); font-size: 13px; font-weight: 800; }
  .plateforme::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
  .plateforme.itch::before { background: #fa5c5c; box-shadow: 0 0 10px #fa5c5c; }
  .boutons { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

  .accueil { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(760px, 90vw); }
  .accueil .logo-geant { width: min(520px, 80vw); margin: 0 auto; filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .55)); }
  .accueil .phrase { margin: 18px auto 0; font-size: 20px; }
  .accueil .boutons { justify-content: center; }
  .defiler { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--texte-2); }
  .souris { width: 24px; height: 38px; border: 2px solid var(--texte-2); border-radius: 14px; position: relative; }
  .souris::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--rose); animation: roulette 1.6s infinite; }
  @keyframes roulette { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

  .gauche { left: clamp(16px, 7vw, 110px); bottom: 12vh; max-width: 560px; }
  .droite { right: clamp(60px, 9vw, 150px); bottom: 12vh; max-width: 560px; text-align: right; }
  .droite .boutons { justify-content: flex-end; }
  .gauche .grand, .droite .grand { font-size: clamp(54px, 7.5vw, 116px); }

  .vignettes { display: flex; gap: 12px; margin-top: 22px; }
  .droite .vignettes { justify-content: flex-end; }
  .vignettes img { cursor: zoom-in; width: 190px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .7);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55); transform: rotate(-3deg); transition: transform .3s; }
  .vignettes img:nth-child(even) { transform: rotate(3deg) translateY(-6px); }
  .vignettes.portrait img { width: 116px; aspect-ratio: 9 / 16; }
  .vignettes img:hover { transform: scale(1.12); z-index: 2; }
  .final { left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(900px, 92vw); }
  .final .grand { font-size: clamp(46px, 6.5vw, 100px); }
  .final .phrase { margin: 16px auto 0; }
  .final .boutons { justify-content: center; }

  /* ---------- Sections ---------- */
  section.bloc { padding: clamp(80px, 11vw, 150px) clamp(16px, 6vw, 90px); }
  .entete { text-align: center; margin-bottom: 60px; }
  .entete .grand { font-size: clamp(46px, 6vw, 88px); }
  .entete .phrase { margin: 16px auto 0; color: var(--texte-2); text-shadow: none; }

  .jeu { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 48px);
    border-radius: 28px; background: linear-gradient(150deg, var(--nuit-2), rgba(23, 14, 51, .4)); border: 1px solid var(--ligne); margin-bottom: 28px; position: relative; overflow: hidden; }
  .jeu::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -160px; top: -160px; background: radial-gradient(var(--teinte, rgba(139, 92, 246, .35)), transparent 70%); pointer-events: none; }
  .jeu:nth-child(even) .infos { order: 2; }
  .jeu .grand { font-size: clamp(42px, 5vw, 72px); }
  .jeu .phrase { color: var(--texte-2); text-shadow: none; font-size: 17px; }
  .points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .points li { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne); font-size: 13px; font-weight: 600; }
  .galerie { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
  .galerie.portrait { grid-template-columns: repeat(4, 1fr); }
  .galerie img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--ligne); cursor: zoom-in; transition: transform .3s; aspect-ratio: 16 / 10; }
  .galerie.portrait img { aspect-ratio: 9 / 16; }
  .galerie img:hover { transform: scale(1.03); }
  .galerie .large, .galerie.portrait .large { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

  .studio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; max-width: 1100px; margin: 0 auto; }
  .studio img { width: min(340px, 70vw); margin: 0 auto; animation: flotte 3s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(224, 70, 245, .3)); }
  .chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
  .chiffres div { padding: 18px; border-radius: 18px; background: var(--nuit-2); border: 1px solid var(--ligne); text-align: center; }
  .chiffres b { display: block; font-family: var(--titre); font-size: 44px; color: var(--or); font-weight: 400; }
  .chiffres span { font-size: 13px; color: var(--texte-2); }

  .newsletter { max-width: 640px; margin: 0 auto; text-align: center; padding: 44px clamp(20px, 5vw, 50px); border-radius: 28px;
    background: radial-gradient(circle at 50% 0%, rgba(224, 70, 245, .25), transparent 70%), var(--nuit-2); border: 1px solid var(--ligne); }
  .newsletter .grand { font-size: clamp(36px, 4.5vw, 60px); }
  .newsletter form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
  .newsletter input { flex: 1 1 260px; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--ligne); background: var(--nuit); color: var(--texte); }
  .newsletter input:focus { outline: none; border-color: var(--magenta); }
  .merci { display: none; margin-top: 16px; font-weight: 800; color: var(--rose); }

  footer.pied { padding: 40px clamp(16px, 6vw, 90px); border-top: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--texte-2); font-size: 14px; }
  footer.pied img { height: 34px; width: auto; }

  /* visionneuse */
  #visionneuse { position: fixed; inset: 0; z-index: 90; background: rgba(8, 4, 20, .92); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
  #visionneuse.ouvert { display: grid; }
  #visionneuse img { max-height: 90vh; max-width: 92vw; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }

  .rev { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
  .rev.vu { opacity: 1; transform: none; }

  @media (max-width: 900px) {
    nav, .langue-bureau { display: none; }
    .burger { display: block; }
    header .btn { display: none; }
    .menu-mobile { position: fixed; inset: 64px 12px auto 12px; z-index: 49; display: none; flex-direction: column; gap: 4px; padding: 14px;
      border-radius: 20px; background: rgba(23, 14, 51, .97); border: 1px solid var(--ligne); }
    .menu-mobile.ouvert { display: flex; }
    .menu-mobile a { padding: 12px 14px; border-radius: 12px; font-weight: 800; }
    .menu-mobile a:hover { background: rgba(255, 255, 255, .06); }
    .menu-mobile .langue { align-self: flex-start; margin: 8px 14px 4px; }
    .chapitres { display: none; }
    .gauche, .droite { left: 16px; right: 16px; bottom: 9vh; max-width: none; text-align: left; }
    .droite .boutons { justify-content: flex-start; }
    .droite .vignettes { justify-content: flex-start; }
    .defiler { display: none; }
    .phrase { font-size: 16px; }
    .vignettes img { width: 112px; }
    .vignettes.portrait img { width: 74px; }
    .logo img { height: 54px; }
    header.plein .logo img { height: 44px; }
    .jeu { grid-template-columns: 1fr; }
    .jeu:nth-child(even) .infos { order: 0; }
    .galerie.portrait { grid-template-columns: repeat(2, 1fr); }
    .studio { grid-template-columns: 1fr; text-align: center; }
    .defiler { bottom: 16px; }
  }

  .lien-bug { display: inline-flex; align-items: center; margin-left: 6px; padding: 12px 6px; font-size: 14px; font-weight: 800; color: var(--texte-2); }
  .lien-bug:hover { color: var(--rose); }
