:root {
  /* DA MOON de Hayāa : encre profond, encre, ardoise, lilas, rose, vert fluo, peau.
     Une scène fixe en plein écran : le défilement de la page fait avancer le film. Un seul thème, celui de la nuit. */
  --profond: #16161F; --encre: #24243C; --ardoise: #424D75; --lilas: #939AF8; --rose: #E389E8; --vert: #D7F13D; --peau: #EEEFF6; --texte: #CFD3E2;
  --titre: 'Anton', 'Arial Narrow', sans-serif; --corps: 'Poppins', 'Helvetica Neue', Arial, sans-serif; --mono: 'Space Mono', ui-monospace, monospace; --serif: 'Lora', Georgia, serif;
  --bord: clamp(14px, 2.4vw, 36px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--profond); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--profond); color: var(--peau); font-family: var(--corps); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.bloque { overflow: hidden; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.saut { position: fixed; left: 12px; top: -80px; z-index: 50; background: var(--vert); color: var(--profond); font: 700 13px/1 var(--mono); padding: 14px 16px; border-radius: 999px; text-decoration: none; }
.saut:focus { top: 12px; }

/* ---------- le film ---------- */
html.film #lire { display: none; }
/* 1 geste = 1 étape : la page ne défile pas, c'est le film qui avance (molette, doigt, clavier) */
html.film, html.film body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: var(--profond); }
.toile { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.toile svg text { user-select: none; }
.btn { transition: transform .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-3px); filter: brightness(1.07); }
.lien { text-decoration: underline; text-decoration-color: rgba(238, 239, 246, .4); text-underline-offset: .22em; }
.lien:hover { text-decoration-color: var(--vert); }

/* ---------- la barre du haut ---------- */
.hud { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 12px var(--bord); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-logo { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; flex: none; }
.hud-logo img { display: block; height: clamp(40px, 5vw, 52px); width: auto; border-radius: 12px; }
.fil { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(36, 36, 60, .82); font: 700 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--peau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fil svg { width: 14px; height: 14px; flex: none; fill: var(--vert); }
.fil-t { display: inline-block; overflow: hidden; text-overflow: ellipsis; animation: fil .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes fil { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hud-d { margin-left: auto; display: flex; gap: 8px; flex: none; }
.pil { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 17px; border: 0; border-radius: 999px; cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: transform .18s ease; }
.pil:hover { transform: translateY(-2px); }
.pil.creux { background: rgba(22, 22, 31, .8); color: var(--peau); box-shadow: inset 0 0 0 1.5px rgba(238, 239, 246, .38); }
.pil.plein { background: var(--vert); color: var(--profond); box-shadow: 0 0 0 2px var(--profond); }
.ico { display: inline-block; flex: none; }
.ico.lecture { width: 0; height: 0; border-left: 10px solid var(--vert); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ico.pause { width: 10px; height: 12px; border-left: 3.5px solid var(--vert); border-right: 3.5px solid var(--vert); }
.ico.barres { width: 15px; height: 8px; border-top: 2.5px solid var(--profond); border-bottom: 2.5px solid var(--profond); }
.croix { position: relative; width: 13px; height: 13px; }
.croix::before, .croix::after { content: ''; position: absolute; left: -1px; right: -1px; top: 5px; height: 2.5px; background: var(--profond); transform: rotate(45deg); }
.croix::after { transform: rotate(-45deg); }
@media (max-width: 720px) { .fil { display: none; } }
@media (max-width: 400px) { .pil { padding: 0 13px; gap: 8px; letter-spacing: .05em; } }

/* ---------- le bas : l'invitation à défiler, la ligne du film, la version texte ---------- */
.defiler { position: fixed; z-index: 19; left: 50%; bottom: 36px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 11px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--peau); transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.defiler.parti { opacity: 0; transform: translate(-50%, 14px); visibility: hidden; pointer-events: none; transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.defiler i { display: block; width: 2px; height: 26px; background: var(--vert); transform-origin: 50% 0; animation: tire 1.7s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes tire { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: 50% 0; } 55% { transform: scaleY(1); transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.rail { position: fixed; z-index: 19; left: var(--bord); right: var(--bord); bottom: 10px; height: 26px; display: flex; align-items: center; gap: 18px; pointer-events: none; }
.voie { position: relative; flex: 1; height: 2px; background: rgba(238, 239, 246, .2); }
.fait { position: absolute; left: 0; top: 0; height: 2px; background: var(--vert); }
.cran { position: absolute; top: -4px; width: 2px; height: 10px; background: rgba(238, 239, 246, .5); }
.tete { position: absolute; top: -10px; width: 22px; height: 22px; margin-left: -11px; fill: var(--vert); stroke: var(--profond); stroke-width: 14; paint-order: stroke fill; overflow: visible; }
.vt { pointer-events: auto; flex: none; min-height: 26px; padding: 0 2px; border: 0; background: none; cursor: pointer; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--peau); text-decoration: underline; text-decoration-color: rgba(238, 239, 246, .45); text-underline-offset: 4px; text-shadow: 0 0 6px var(--profond), 0 0 2px var(--profond); }
.vt:hover { text-decoration-color: var(--vert); }

/* ---------- le sommaire ---------- */
.grille-fond, .som, html.lecture body { background-color: var(--profond); background-image: linear-gradient(rgba(147, 154, 248, .09) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(147, 154, 248, .09) 1.5px, transparent 1.5px); background-size: 46px 46px; }
.som { position: fixed; z-index: 30; inset: 0; overflow: auto; padding: 14px var(--bord) 48px; animation: ouvre .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ouvre { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.som-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; padding: 0 0 14px; }
.som h2 { margin: 0; font: 400 clamp(30px, 5vw, 54px)/1 var(--titre); text-transform: uppercase; letter-spacing: .012em; }
.som h3 { margin: 40px 0 12px; font: 700 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.som-grille { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
@media (max-width: 480px) { .som-grille { grid-template-columns: 1fr 1fr; gap: 10px; } }
.carte { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: 100%; min-height: clamp(180px, 26vw, 250px); padding: 16px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--profond); overflow: hidden; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.carte:hover { transform: translateY(-5px) rotate(-1.2deg); }
.carte-forme { position: absolute; right: -6%; top: -4%; width: 62%; fill: var(--profond); opacity: .92; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.carte:hover .carte-forme { transform: rotate(12deg) scale(1.06); }
.carte-n { font: 700 12px/1 var(--mono); letter-spacing: .14em; }
.carte-t { font: 400 clamp(19px, 2.3vw, 25px)/1.08 var(--titre); text-transform: uppercase; letter-spacing: .012em; text-wrap: balance; }
.som-liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.som-liens a, .som-liens button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(36, 36, 60, .9); box-shadow: inset 0 0 0 1.5px rgba(238, 239, 246, .28); color: var(--peau); cursor: pointer; text-decoration: none; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.som-liens a:hover, .som-liens button:hover { box-shadow: inset 0 0 0 1.5px var(--vert); }

/* ---------- la version texte ---------- */
.lire { max-width: 780px; margin: 0 auto; padding: 104px 22px 96px; }
.lire .sur { margin: 0 0 12px; font: 700 12px/1.6 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.lire h1, .lire h2 { margin: 0; font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; text-wrap: balance; }
.lire h1 { font-size: clamp(40px, 8.4vw, 76px); line-height: 1.05; }
.lire h1 mark { background: var(--rose); color: var(--profond); padding: 0 .12em; }
.lire h2 { font-size: clamp(30px, 5.6vw, 46px); line-height: 1.08; }
.lire h3 { margin: 0 0 6px; font: 400 24px/1.1 var(--titre); text-transform: uppercase; letter-spacing: .012em; }
.lire p, .lire li, .lire dd, .lire td, .lire th { font-size: 18px; line-height: 1.6; color: var(--texte); }
.lire .chapo { font-size: 22px; font-weight: 500; color: var(--peau); margin: 18px 0 0; }
.lire section, .lire footer { margin-top: 64px; padding-top: 34px; border-top: 2px solid rgba(147, 154, 248, .25); }
.lire ol, .lire ul { padding-left: 1.2em; }
.lire a { color: var(--vert); text-underline-offset: .2em; }
.lire .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.lire .actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 13px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--vert); box-shadow: inset 0 0 0 2px var(--vert); }
.lire .actions a.plein { background: var(--vert); color: var(--profond); }
@media (max-width: 420px) { .lire .actions a { font-size: 11.5px; letter-spacing: .04em; padding: 0 16px; } }
.lire dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 26px 0 0; }
.lire dl > div, .lire .fiche { background: var(--encre); border-radius: 18px; padding: 20px 22px; }
.lire dt { font: 400 48px/1 var(--titre); color: var(--vert); text-transform: uppercase; }
.lire dd { margin: 10px 0 0; }
.lire small { display: block; margin-top: 10px; font: 700 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.lire table { width: 100%; border-collapse: collapse; margin-top: 22px; font-variant-numeric: tabular-nums; }
.lire caption { text-align: left; font: 700 12px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--peau); padding-bottom: 8px; }
.lire th, .lire td { text-align: left; padding: 10px 0; border-bottom: 1.5px solid rgba(147, 154, 248, .25); }
.lire .fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 26px; }
.lire .fiche { display: flex; flex-direction: column; gap: 8px; }
.lire .fiche p { margin: 0; font-size: 16px; }
.lire .prix { font: 400 30px/1 var(--titre); color: var(--peau); margin-top: auto; padding-top: 10px; }
.lire .slogan { font: 400 clamp(28px, 5vw, 40px)/1.1 var(--titre); text-transform: uppercase; color: var(--peau); }

@media (max-height: 520px) { .defiler { display: none; } }
@media (prefers-reduced-motion: reduce) { .defiler i, .som, .fil-t { animation: none; } .btn, .pil, .carte, .carte-forme { transition: none; } }

/* ---------- la formation : la liste des 42 ateliers dans la version texte ---------- */
.lire .fiche ul { margin: 4px 0 0; }
.lire .fiche li { font-size: 16px; }
.lire .ateliers { columns: 2 300px; column-gap: 36px; margin: 26px 0 0; padding-left: 2.2em; }
.lire .ateliers li { break-inside: avoid; margin: 0 0 10px; }
.lire .ateliers .t { color: var(--peau); }
.lire .ateliers .age { display: block; font: 700 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.lire footer h2 { margin-top: 4px; }
.lien-s:hover div:last-child { text-decoration: underline; text-decoration-color: var(--vert); text-underline-offset: .22em; }
.lire h1 mark { background: var(--vert); }

/* ---------- le néon radium : les verts brillent ---------- */
.pil.plein { box-shadow: 0 0 0 2px var(--profond), 0 0 14px rgba(215, 241, 61, .55), 0 0 34px rgba(215, 241, 61, .25); }
.btn { transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; }
.fait { box-shadow: 0 0 8px rgba(215, 241, 61, .8), 0 0 18px rgba(215, 241, 61, .4); }
.tete { filter: drop-shadow(0 0 5px rgba(215, 241, 61, .9)) drop-shadow(0 0 12px rgba(215, 241, 61, .45)); }
.fil svg { filter: drop-shadow(0 0 4px rgba(215, 241, 61, .9)); }

/* ---------- le son, Retour et Suivant ---------- */
.pil.rond { width: 44px; padding: 0; justify-content: center; }
.ico-son { width: 20px; height: 20px; fill: var(--peau); }
.ico-son .trait { fill: none; stroke: var(--peau); stroke-width: 2; stroke-linecap: round; }
.pil.rond[aria-pressed="true"] .ico-son { fill: var(--vert); filter: drop-shadow(0 0 4px rgba(215, 241, 61, .8)); }
.pil.rond[aria-pressed="true"] .ico-son .trait { stroke: var(--vert); }
@media (max-width: 480px) { .pil.creux .txt { display: none; } .pil.creux:not(.rond) { width: 44px; padding: 0; justify-content: center; gap: 0; } }
/* « Découvrir » (le lien vers la page de vente) garde son mot, même sur un téléphone */
a.pil { text-decoration: none; }
@media (max-width: 480px) {
  .pil.creux.lien { width: auto; padding: 0 12px; gap: 5px; letter-spacing: .05em; } .pil.creux.lien .txt { display: inline; }
  /* sur un téléphone, « Sommaire » ne garde que son icône, pour laisser la place à « Découvrir » */
  .pil.plein.som-btn { width: 44px; padding: 0; justify-content: center; gap: 0; } .pil.plein.som-btn .txt { display: none; }
}
@media (max-width: 350px) { .hud { gap: 6px; padding-left: 10px; padding-right: 10px; } .hud-d { gap: 5px; } .hud-logo img { height: 32px; } .pil.creux.lien { padding: 0 9px; letter-spacing: .03em; } }
.rail { height: 44px; bottom: 6px; gap: 12px; }
.nav { pointer-events: auto; flex: none; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(36, 36, 60, .92); box-shadow: inset 0 0 0 1.5px rgba(238, 239, 246, .35); display: grid; place-items: center; transition: transform .18s ease, box-shadow .18s ease; }
.nav:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--vert), 0 0 14px rgba(215, 241, 61, .35); }
.nav:disabled { opacity: .35; cursor: default; }
.chev { display: block; width: 11px; height: 11px; border-top: 3px solid var(--vert); border-right: 3px solid var(--vert); filter: drop-shadow(0 0 3px rgba(215, 241, 61, .8)); }
.chev.g { transform: translateX(2px) rotate(-135deg); }
.chev.d { transform: translateX(-2px) rotate(45deg); }
.defiler { bottom: 62px; }
/* le doigt ne fait plus défiler ni rafraîchir la page : chaque geste est pour le film (le Sommaire, lui, défile) */
html.film, html.film body { touch-action: none; }
.som { touch-action: pan-y; }
