/* Cynoche — site de présentation. Mêmes codes que l'application : fond encre violet, filets fins, cyan principal, magenta rare. */

:root {
  --bg: #080614; --bg2: #0d0a1f; --panel: #120e28; --panel2: #1a1538; --panel3: #2a2358;
  --line: rgba(150, 140, 255, .14); --line-strong: rgba(150, 140, 255, .3);
  --text: #f1effc; --muted: #a7a2c8; --faint: #6d6891;
  --accent: #00f0ff; --accent-2: #ff2bd6; --on-accent: #021016; --yellow: #fcee09; --on-yellow: #171300;
  --good: #35e0a1; --warn: #ffc04d;
  --radius: 8px;
  --glow: 0 0 0 1px rgba(252, 238, 9, .45), 0 0 26px rgba(252, 238, 9, .2);
  --font-ui: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(18px, 4vw, 56px);
  --top-h: 64px; --tabbar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--text); font: 400 1rem/1.55 var(--font-ui);
  background: var(--bg);
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(900px 480px at 85% -8%, rgba(255, 43, 214, .10), transparent 70%), radial-gradient(900px 520px at 10% -12%, rgba(0, 240, 255, .09), transparent 70%), linear-gradient(rgba(150, 140, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 140, 255, .035) 1px, transparent 1px); background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px; mask-image: linear-gradient(180deg, #000 0, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 75%); }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ Barre du haut */

/* ------------------------------------------------------------------ Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius); background: var(--yellow); color: var(--on-yellow); font-weight: 700; font-size: .95rem; letter-spacing: .01em; cursor: pointer; box-shadow: var(--glow); transition: transform .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(150, 140, 255, .1); filter: none; }
.btn[aria-disabled="true"] { background: var(--panel2); color: var(--muted); box-shadow: none; border-color: var(--line); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }

/* ------------------------------------------------------------------ Typographie */
.pill { display: inline-block; white-space: nowrap; flex: none; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 700 .66rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(150, 140, 255, .08); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.005em; }
em { font-style: normal; color: var(--accent); text-shadow: 0 0 28px rgba(0, 240, 255, .35); }
.lead { max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; }
.fine { color: var(--faint); font-size: .82rem; max-width: 78ch; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 .62rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }

/* ------------------------------------------------------------------ Page unique : les sections se suivent, la page défile normalement */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.stage { position: relative; outline: none; }
.scene { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: 100svh; display: grid; align-content: center; padding: clamp(56px, 10vh, 112px) var(--gutter); }
.wrap { width: min(1200px, 100%); margin: 0 auto; display: grid; gap: clamp(24px, 4vh, 44px); }
.two { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.scene-head { display: grid; gap: 14px; align-content: start; }
.scene-head.row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 40px; }
.two > div:first-child { display: grid; gap: clamp(16px, 3vh, 28px); }

/* Apparition échelonnée du contenu quand la section entre à l'écran */
html.js .scene .rv { opacity: 0; transform: translateY(18px); }
html.js .scene.in .rv { animation: rise .75s var(--ease) both; }
html.js .scene.in .rv:nth-child(1) { animation-delay: .05s; }
html.js .scene.in .rv:nth-child(2) { animation-delay: .12s; }
html.js .scene.in .rv:nth-child(3) { animation-delay: .19s; }
html.js .scene.in .rv:nth-child(4) { animation-delay: .26s; }
html.js .scene.in .rv:nth-child(5) { animation-delay: .33s; }
html.js .scene.in .rv:nth-child(6) { animation-delay: .40s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html:not(.js) .tabbar, html:not(.js) .dots { display: none; }
html.js:not(.no-splash):not(.splash-done) { overflow: hidden; }

/* Lueurs d'ambiance : se déplacent d'une scène à l'autre */
.glow { position: fixed; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none; opacity: .5; transition: transform 1.4s var(--ease); z-index: -1; }
.g1 { left: -20vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(0, 240, 255, .16), transparent); transform: translate(calc(var(--gx, 0) * 8vw), calc(var(--gy, 0) * 5vh)); }
.g2 { right: -22vmax; bottom: -24vmax; background: radial-gradient(closest-side, rgba(255, 43, 214, .13), transparent); transform: translate(calc(var(--gx, 0) * -7vw), calc(var(--gy, 0) * -6vh)); }

/* ------------------------------------------------------------------ Accueil */
.hero-copy { display: grid; gap: clamp(14px, 2.4vh, 24px); justify-items: start; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-sub { min-height: 1.4em; color: var(--faint); font-size: .86rem; margin-top: -6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .84rem; font-weight: 600; background: rgba(18, 14, 40, .6); }
.chips svg.i { width: 16px; height: 16px; color: var(--accent); }

.hero-visual { position: relative; min-width: 0; }
.device { position: relative; border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(180deg, rgba(18, 14, 40, .92), rgba(8, 6, 20, .96)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 240, 255, .06), 0 0 80px rgba(0, 240, 255, .07); overflow: hidden; }
.mock-nav { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: .66rem; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.mock-link.on { color: var(--text); box-shadow: 0 2px 0 -1px var(--accent); }
.mock-avatar { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.cf { position: relative; height: clamp(190px, 33vh, 340px); perspective: 900px; margin-top: 8px; }
.poster { position: absolute; left: 50%; top: 50%; width: 31%; aspect-ratio: 2 / 3; margin: 0; border-radius: 6px; border: 1px solid var(--line-strong); overflow: hidden; transition: transform .8s var(--ease), opacity .8s var(--ease); display: flex; align-items: flex-end; box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.poster::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 6, 20, .88)); }
.poster b { position: relative; padding: 10px; font-size: clamp(.58rem, .95vw, .8rem); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.poster.o-2 { transform: translate(-50%, -50%) translateX(-118%) translateZ(-160px) rotateY(34deg) scale(.82); opacity: .35; z-index: 1; }
.poster.o-1 { transform: translate(-50%, -50%) translateX(-68%) translateZ(-70px) rotateY(28deg) scale(.9); opacity: .85; z-index: 2; }
.poster.o0 { transform: translate(-50%, -50%) scale(1.08); z-index: 3; border-color: rgba(0, 240, 255, .55); box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 240, 255, .25), 0 0 40px rgba(0, 240, 255, .2); }
.poster.o1 { transform: translate(-50%, -50%) translateX(68%) translateZ(-70px) rotateY(-28deg) scale(.9); opacity: .85; z-index: 2; }
.poster.o2 { transform: translate(-50%, -50%) translateX(118%) translateZ(-160px) rotateY(-34deg) scale(.82); opacity: .35; z-index: 1; }
.poster.o-3, .poster.o3 { transform: translate(-50%, -50%) translateZ(-260px) scale(.7); opacity: 0; z-index: 0; }
/* Affiches abstraites (aucune œuvre réelle) */
.pa { background: radial-gradient(120% 70% at 75% 18%, #ff2bd6 0, transparent 55%), radial-gradient(90% 60% at 10% 90%, #3b2a9e 0, transparent 60%), #120e28; }
.pb { background: conic-gradient(from 210deg at 30% 35%, #00f0ff, #2a2358 30%, #120e28 60%, #00f0ff 100%); }
.pc { background: linear-gradient(165deg, #00c8d6 0, #1a1538 48%, #080614 100%), #120e28; }
.pc::after { content: ''; position: absolute; left: -10%; right: -10%; top: 38%; height: 26%; background: repeating-linear-gradient(180deg, rgba(0, 240, 255, .35) 0 2px, transparent 2px 9px); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.pd { background: linear-gradient(135deg, #2a2358 0 25%, transparent 25%) 0 0 / 40px 40px, linear-gradient(315deg, #ff2bd6 0, #5b1b8c 55%, #120e28 100%); }
.pe { background: radial-gradient(70% 45% at 50% 30%, #ff2bd6 0, transparent 70%), linear-gradient(180deg, #2a2358, #0d0a1f); }
.cf-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.cf-meta strong { display: block; font-size: .95rem; letter-spacing: -.01em; }
.cf-meta .mono { color: var(--faint); font-size: .7rem; letter-spacing: .04em; }
.mock-play { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; background: var(--yellow); color: var(--on-yellow); font-weight: 800; font-size: .74rem; }
.mock-play svg.i { width: 14px; height: 14px; fill: currentColor; }
.fiction { margin-top: 10px; color: var(--faint); font-size: .72rem; text-align: center; }

/* ------------------------------------------------------------------ Bento / cartes */
.card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(26, 21, 56, .62), rgba(18, 14, 40, .62)); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.card::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .55), transparent); opacity: 0; transition: opacity .25s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.card:hover::before { opacity: 1; }
.card.accent { border-color: rgba(0, 240, 255, .3); background: linear-gradient(180deg, rgba(0, 240, 255, .07), rgba(18, 14, 40, .62)); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bento .card { display: grid; gap: 8px; align-content: start; }
.bento p, .pillars p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }

/* Lecture */
.feat { display: grid; gap: 12px; margin-top: 4px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; }
.feat svg.i { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.feat b { display: block; font-size: .96rem; }
.feat span { color: var(--muted); font-size: .88rem; }
.player { min-width: 0; display: grid; gap: 12px; }
.player-screen { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: radial-gradient(70% 90% at 70% 20%, rgba(255, 43, 214, .28), transparent 60%), radial-gradient(80% 90% at 20% 90%, rgba(0, 240, 255, .22), transparent 60%), linear-gradient(180deg, #1a1538, #080614); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 8px; border-radius: 4px; background: rgba(8, 6, 20, .8); border: 1px solid var(--line-strong); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.sub { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); padding: 3px 10px; border-radius: 4px; background: rgba(0, 0, 0, .6); font-size: clamp(.7rem, 1vw, .9rem); white-space: nowrap; }
.scrub { position: absolute; left: 16px; right: 16px; bottom: 50px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); }
.scrub i { display: block; width: 37%; height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent); position: relative; }
.scrub i::after { content: ''; position: absolute; right: -5px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.player-bar { position: absolute; left: 16px; right: 16px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.ctrl { display: inline-flex; align-items: center; gap: 18px; color: var(--text); }
.ctrl svg.i { width: 18px; height: 18px; }
.ctrl svg.big { width: 24px; height: 24px; }
.devices { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.devices li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--faint); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

/* Téléchargements */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.col-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; }
.col-title small { color: var(--faint); font-weight: 500; font-size: .8rem; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--accent); color: var(--accent); font: 800 .78rem var(--font-mono); align-self: center; }
.col-note { margin: 0 0 12px; color: var(--faint); font-size: .8rem; line-height: 1.5; }
.dl-list { display: grid; gap: 8px; }
.dl-row { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 14, 40, .6); transition: border-color .2s, background .2s; }
.dl-row:hover { border-color: var(--line-strong); }
.dl-row > svg.i { width: 24px; height: 24px; color: var(--muted); }
.dl-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; font-size: .93rem; }
.dl-detail { display: block; color: var(--faint); font-size: .78rem; line-height: 1.4; }
.dl-meta { display: block; margin-top: 2px; color: var(--muted); font: .68rem var(--font-mono); }
.dl-meta button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.dl-act { display: flex; align-items: center; gap: 8px; }
.dl-act .btn { height: 34px; padding: 0 14px; font-size: .8rem; }
.state { padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--faint); font: 700 .64rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.state.ok { color: var(--accent); border-color: rgba(0, 240, 255, .4); }
.you { display: none; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 800 .6rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.dl-row.is-you { border-color: rgba(0, 240, 255, .55); background: linear-gradient(90deg, rgba(0, 240, 255, .09), rgba(18, 14, 40, .6)); box-shadow: 0 0 0 1px rgba(0, 240, 255, .12), 0 0 30px rgba(0, 240, 255, .08); }
.dl-row.is-you > svg.i { color: var(--accent); }
.dl-row.is-you .you { display: inline-block; }

/* Chez vous */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 14, 40, .45); }
.pillars li { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; }
.pillars li + li { border-left: 1px solid var(--line); }
.status { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; max-width: 86ch; }

/* Soutenir */
.roadmap { display: grid; gap: 0; margin-top: 4px; }
.roadmap li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0 10px 24px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .9rem; }
.roadmap li::before { content: ''; position: absolute; left: -5px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.roadmap li.done::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.roadmap b { font: 700 .68rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.roadmap .done b { color: var(--accent); }
.donate { display: grid; gap: 14px; padding: 24px; }
.donate:hover { transform: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.seg-b { height: 36px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .15s, color .15s; }
.seg-b.on { background: var(--panel3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amt { height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; font: 700 1rem var(--font-ui); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.amt:hover { background: rgba(150, 140, 255, .1); }
.amt[aria-pressed="true"] { border-color: var(--accent); background: rgba(0, 240, 255, .1); box-shadow: 0 0 18px rgba(0, 240, 255, .15); color: var(--accent); }
.custom { position: relative; display: block; }
.custom span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: .86rem; pointer-events: none; }
.custom i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); pointer-events: none; }
.custom input { width: 100%; height: 44px; padding: 0 34px 0 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--text); font: 700 1rem var(--font-ui); text-align: right; -moz-appearance: textfield; appearance: textfield; }
.custom input::-webkit-outer-spin-button, .custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.custom input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, .15); }
.providers { display: grid; gap: 8px; }
.prov { display: grid; gap: 2px; }
.prov .btn { width: 100%; height: 50px; }
.prov small { color: var(--faint); font-size: .74rem; text-align: center; }
.soon { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: .88rem; text-align: center; }
.donate-note { min-height: 1.2em; color: var(--faint); font-size: .78rem; text-align: center; margin-top: -6px; }
.terms { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: .76rem; line-height: 1.5; }
.terms svg.i { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.terms b { color: var(--muted); }
.terms a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ Progression de lecture et pied de page */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 30px var(--gutter) 38px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal a { transition: color .15s; }
.legal a:hover { color: var(--text); }
.tabbar { display: none; }

/* ------------------------------------------------------------------ Pages de texte (mentions légales) */
body.page { overflow: auto; }
.doc-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: var(--top-h); padding: 0 var(--gutter); background: rgba(8, 6, 20, .96); border-bottom: 1px solid var(--line); }
.doc-top .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.doc-top .back:hover { color: var(--text); }
.doc { width: min(860px, 100%); margin: 0 auto; padding: clamp(28px, 6vh, 64px) var(--gutter) 80px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.45rem; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc h3 { margin-top: 10px; color: var(--text); }
.doc p, .doc li { color: var(--muted); }
.doc ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc .box { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(18, 14, 40, .6); }
.todo { padding: 1px 6px; border-radius: 4px; background: rgba(255, 192, 77, .14); color: var(--warn); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: var(--line-strong); }

/* ------------------------------------------------------------------ Écrans moyens et petits */
@media (max-width: 1100px) {
  .bento { gap: 10px; }
}
@media (max-width: 900px), (max-height: 620px) {
  :root { --top-h: 56px; --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tabbar-h); }
  .scene { min-height: auto; padding-top: 44px; padding-bottom: 52px; }
  .two, .scene-head.row, .dl-grid { grid-template-columns: 1fr; }
  .scene-head.row { gap: 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(odd) { border-left: 0; }
  .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero { gap: 24px; }
  .hero-visual { order: 2; }
  .cf { height: clamp(180px, 34vh, 280px); }
  .tabbar { position: fixed; inset: auto 0 0; z-index: 40; height: var(--tabbar-h); display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(8, 6, 20, .97); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: .56rem; font-weight: 700; letter-spacing: 0; }
  .tabbar a[aria-current="true"] { color: var(--accent); }
  .tabbar a[aria-current="true"] svg.i { filter: drop-shadow(0 0 6px var(--accent)); }
  .tabbar svg.i { width: 22px; height: 22px; }
  .glow { opacity: .35; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { border-left: 0 !important; }
  .pillars li + li { border-top: 1px solid var(--line); }
  .btn-lg { height: 50px; padding: 0 22px; }
  .cta .btn { flex: 1 1 100%; }
  .dl-row { grid-template-columns: 26px minmax(0, 1fr); }
  .dl-act { grid-column: 2; }
  .roadmap li { grid-template-columns: 62px 1fr; }
}
}
@media (max-height: 760px) and (min-width: 901px) {
  h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
  h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
  .lead { font-size: 1rem; line-height: 1.5; }
  .card { padding: 15px 16px; }
  .pillars li { padding: 16px 18px 18px; }
  .dl-row { padding: 8px 12px; }
  .cf { height: clamp(170px, 30vh, 260px); }
  .donate { padding: 18px; gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html.js .scene .rv { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Pages légales : compléments */
.doc .meta { color: var(--faint); font: .78rem var(--font-mono); letter-spacing: .06em; margin-top: -4px; }
.doc ol.num { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; }
.doc ol.num li::marker { color: var(--accent); font-weight: 700; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.tbl th { color: var(--text); font: 700 .68rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(18, 14, 40, .6); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ Soutenir : invitation à donner son avis */
[hidden] { display: none !important; }
.feedback { display: grid; gap: 10px; justify-items: start; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(90deg, rgba(0, 240, 255, .07), rgba(18, 14, 40, .5)); }
.feedback p { color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 52ch; }
.feedback .btn { height: 38px; font-size: .86rem; }

/* ------------------------------------------------------------------ Cynoche : typographie et logo (inspiration néo-futuriste, caractères anguleux) */
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/rajdhani-500.woff2) format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/rajdhani-600.woff2) format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/rajdhani-700.woff2) format('woff2'); }
:root { --font-display: 'Rajdhani', 'Chakra Petch', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; }

h1, h2, h3, .btn, .feat b, .dl-name, .col-title, .seg-b, .amt, .tabbar a, .cf-meta strong, .doc .meta + * { font-family: var(--font-display); }
h1, h2 { text-transform: uppercase; font-weight: 700; line-height: .96; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 6.3vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: .02em; }
.btn { font-size: 1.04rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.btn-sm { font-size: .94rem; }
.btn-lg { font-size: 1.1rem; }
.feat b, .dl-name { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.col-title { font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.col-title small { font-family: var(--font-ui); text-transform: none; letter-spacing: 0; }
.seg-b, .amt { font-weight: 700; letter-spacing: .06em; }
.amt { font-size: 1.15rem; }
.tabbar a { letter-spacing: .02em; text-transform: uppercase; font-weight: 700; font-size: .62rem; }
.doc h1 { text-transform: uppercase; }
.doc h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.7rem; line-height: 1.1; }
.doc h3 { font-family: var(--font-display); }

@media (max-height: 760px) and (min-width: 901px) {
  h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
  h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .btn { letter-spacing: .07em; }
  .cta .btn { white-space: normal; height: auto; min-height: 50px; padding-block: 9px; line-height: 1.15; text-align: center; }
}

/* ------------------------------------------------------------------ Écran d'ouverture : le grand logo, façon titre d'animation */
.splash { display: none; }
html.js:not(.no-splash) .splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vmin; cursor: pointer;
  background: radial-gradient(60% 60% at 30% 45%, rgba(0, 240, 255, .14), transparent 70%), radial-gradient(50% 50% at 75% 60%, rgba(255, 43, 214, .12), transparent 70%), var(--bg);
  transition: opacity .8s var(--ease), visibility 0s linear .8s, transform .8s var(--ease); }
html.js .splash.out { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }

/* ------------------------------------------------------------------ Défilement dynamique : alternance, bandes en biais, titres fantômes, parallaxe */
/* --p (-1 à 1) : position de la section par rapport au centre de l'écran, mise à jour au défilement (js/site.js). */
.ghost { position: absolute; will-change: translate; z-index: -1; top: clamp(24px, 6vh, 80px); left: 0; white-space: nowrap; pointer-events: none;
  font: 700 clamp(6rem, 14.5vw, 15rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(150, 140, 255, .17);
  translate: -6vw 0; }
.scene:nth-of-type(even) .ghost { left: auto; right: 0; translate: 6vw 0; }
.scene:nth-of-type(even)::after { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(100deg, rgba(0, 240, 255, .085), rgba(18, 14, 40, 0) 62%);
  clip-path: polygon(0 clamp(28px, 4.5vw, 72px), 100% 0, 100% calc(100% - clamp(28px, 4.5vw, 72px)), 0 100%); }
.scene:nth-of-type(4)::after { background: linear-gradient(260deg, rgba(255, 43, 214, .085), rgba(18, 14, 40, 0) 62%); clip-path: polygon(0 0, 100% clamp(28px, 4.5vw, 72px), 100% 100%, 0 calc(100% - clamp(28px, 4.5vw, 72px))); }

/* Inversion des colonnes : le texte passe à droite */
.two.flip > :first-child { order: 2; }
.two .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two .pillars li + li { border-left: 0; }
.two .pillars li:nth-child(even) { border-left: 1px solid var(--line); }
.two .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }

/* Entrées alternées : de la gauche, de la droite */
html.js .scene .rv-l { transform: translateX(-56px); }
html.js .scene .rv-r { transform: translateX(56px); }
html.js .scene.in .rv-l, html.js .scene.in .rv-r { animation-name: slide; }
@keyframes slide { from { opacity: 0; transform: translateX(var(--sx, 56px)) scale(.97); } to { opacity: 1; transform: none; } }
html.js .scene .rv-l { --sx: -56px; }
html.js .scene .rv-r { --sx: 56px; }

/* Parallaxe douce */
.hero-visual, .player, .donate, .bento, .pillars { will-change: translate; }

/* Navigation discrète : losanges sur le bord droit (ordinateur) */
.dots { position: fixed; z-index: 40; right: 16px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 6px; }
.dot { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 24px; padding-left: 8px; }
.dot i { display: block; width: 10px; height: 10px; border: 1.5px solid var(--line-strong); rotate: 45deg; background: transparent; transition: background .2s, border-color .2s, box-shadow .2s, scale .2s; }
.dot .lbl { opacity: 0; translate: 8px 0; padding: 3px 10px; border-radius: 4px; background: rgba(8, 6, 20, .86); border: 1px solid var(--line); color: var(--text); font: 700 .78rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .2s, translate .2s; }
.dot:hover .lbl, .dot:focus-visible .lbl { opacity: 1; translate: 0 0; }
.dot:hover i { border-color: var(--accent); }
.dot[aria-current="true"] i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); scale: 1.25; }
@media (max-width: 900px) { .dots { display: none; } .two.flip > :first-child { order: 0; } .two .bento, .two .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } html.js .scene .rv-l, html.js .scene .rv-r { --sx: 0px; transform: translateY(18px); } .hero-visual, .player, .donate, .bento, .pillars { --par: 14px; } }
@media (max-width: 560px) { .two .bento, .two .pillars { grid-template-columns: 1fr; } .two .pillars li:nth-child(even) { border-left: 0; } .two .pillars li:nth-child(n+2) { border-top: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { .ghost { translate: none !important; } .hero-visual, .player, .donate, .bento, .pillars { translate: none; } html.js .scene .rv-l, html.js .scene .rv-r { transform: none; } }


/* ------------------------------------------------------------------ Jaune : réservé aux boutons principaux et aux états actifs */
.dot[aria-current="true"] i { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.amt[aria-pressed="true"] { border-color: var(--yellow); background: rgba(252, 238, 9, .09); box-shadow: 0 0 18px rgba(252, 238, 9, .14); color: var(--yellow); }
.tabbar a[aria-current="true"] { color: var(--yellow); }
.tabbar a[aria-current="true"] svg.i { filter: drop-shadow(0 0 6px var(--yellow)); }

/* ------------------------------------------------------------------ Gros titres : lettres qui jaillissent, glitch, éclairs, barre de lecture, égaliseur */
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.ttl-in { display: inline; }
.wd { display: inline-block; white-space: nowrap; vertical-align: top; padding: .1em .06em .1em; margin: -.1em -.06em -.1em; clip-path: inset(-.6em -.5em 0 -.5em); }
.ch { display: inline-block; }
html.js .scene .ch { opacity: 0; transform: translateY(120%) skewY(10deg); }
html.js .scene.in .ch { animation: chIn .75s var(--ease) calc(var(--i) * 26ms + .08s) both; }
@keyframes chIn { from { opacity: 0; transform: translateY(120%) skewY(10deg); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
html.js .scene.in .ttl { animation: glitch .9s steps(1, end) 1s 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 var(--accent-2), -3px 0 var(--accent); }
  20% { text-shadow: -5px 1px var(--accent-2), 5px -1px var(--accent); }
  40% { text-shadow: none; }
  55% { text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent); }
  70%, 100% { text-shadow: none; }
}
/* éclat blanc qui parcourt le mot mis en valeur */
html.js .scene.in em .ch { animation: chIn .75s var(--ease) calc(var(--i) * 26ms + .08s) both, wave .9s ease-in-out calc(1.9s + var(--i) * 70ms) 1; }
@keyframes wave { 0%, 100% { color: inherit; } 40% { color: #fff; } }


/* égaliseur devant les petites étiquettes */

@media (max-width: 900px) { h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); } }
@media (prefers-reduced-motion: reduce) {
  html.js .scene .ch { opacity: 1; transform: none; }
}
/* le titre d'accueil porte aussi la classe d'apparition : on ne garde que l'effet par lettres */
html.js .scene .ttl.rv { opacity: 1; transform: none; }
html.js .scene.in .ttl.rv { animation: glitch .9s steps(1, end) 1s 1; }

/* ------------------------------------------------------------------ Performance : rendu paresseux, pause hors écran, mode léger */
/* Les sections hors écran ne sont ni mises en page ni peintes tant qu'on n'en approche pas. */
.scene + .scene { content-visibility: auto; contain-intrinsic-size: auto 100svh; }
.litebtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.litebtn:hover { color: var(--text); }

/* Mode léger : plus de parallaxe, de titres animés, de décors animés, d'ouverture, de lueurs ni d'ombres diffuses. */
html.lite { scroll-behavior: auto; }
html.lite .glow { transition: none; }
html.lite .ghost { will-change: auto; }
html.lite .scene .ch { opacity: 1; transform: none; animation: none !important; }
html.lite .ttl, html.lite .scene.in .ttl { animation: none !important; }
html.lite .hero-visual, html.lite .player, html.lite .donate, html.lite .bento, html.lite .pillars { will-change: auto; translate: none !important; }
html.lite .poster { transition: none; }
html.lite em, html.lite h1, html.lite h2 { text-shadow: none; }
html.lite .btn, html.lite .card, html.lite .device, html.lite .poster, html.lite .donate, html.lite .feedback { box-shadow: none; }
html.lite .scene, html.lite .scene + .scene { transition: none; }

/* Une fois les entrées terminées (7 s après l'arrivée d'une section), on retire les animations d'entrée :
   l'état final est posé directement, plus rien ne reste à suivre pour le navigateur. */
.scene.settled .rv, .scene.settled .rv-l, .scene.settled .rv-r, .scene.settled .ch, .scene.settled .ttl { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Affichage léger : les blocs apparaissent par un simple fondu (pas de glissement, pas d'échelonnement). */
html.lite .scene .rv-l, html.lite .scene .rv-r { transform: none; }
html.lite .scene.in .rv, html.lite .scene.in .rv-l, html.lite .scene.in .rv-r { animation: liteIn .4s ease-out both !important; }
@keyframes liteIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ Accueil : le grand emblème détaillé derrière la maquette */
/* Affichage léger : ouverture réduite à un fondu */

/* ------------------------------------------------------------------ Écran d'ouverture animé : l'emblème tourne en arrivant, le nom se dévoile d'un trait lumineux */
.splash-art { position: relative; width: min(1180px, 94vw); aspect-ratio: 1480 / 560; }
.splash-art img { position: absolute; display: block; max-width: none; height: auto; }
.splash-emblem { left: 0; top: -.36%; width: 38.11%; }
.splash-word { inset: 0; width: 100%; }
.s-flash { position: absolute; left: 19%; top: 50%; width: 60%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 240, 255, .38), rgba(255, 43, 214, .16) 60%, transparent); opacity: 0; }
.s-scan { position: absolute; top: 30%; left: 41%; width: 3px; height: 42%; background: #fff; border-radius: 3px; box-shadow: 0 0 14px 3px var(--accent), 0 0 34px 6px rgba(255, 43, 214, .55); opacity: 0; }
html.js:not(.no-splash) .splash-emblem { animation: emblemIn 1.15s cubic-bezier(.16, .84, .24, 1) both; }
html.js:not(.no-splash) .splash-word { clip-path: inset(0 100% 0 0); animation: wipe 1s cubic-bezier(.5, 0, .2, 1) .55s forwards; }
html.js:not(.no-splash) .s-flash { animation: sflash 1.4s ease-out .15s both; }
html.js:not(.no-splash) .s-scan { animation: scan 1s cubic-bezier(.5, 0, .2, 1) .55s both; }
@keyframes emblemIn { from { opacity: 0; transform: rotate(-140deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sflash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .35; } }
@keyframes scan { 0% { left: 41%; opacity: 1; } 85% { opacity: 1; } 100% { left: 96%; opacity: 0; } }
/* Affichage léger : simple fondu, sans rotation ni balayage */
html.lite:not(.no-splash) .splash-emblem, html.lite:not(.no-splash) .splash-word { animation: liteIn .4s ease-out both; clip-path: none; }
html.lite:not(.no-splash) .s-flash, html.lite:not(.no-splash) .s-scan { display: none; }

/* Accueil : le grand emblème est entièrement visible en haut à droite, la maquette passe devant, en bas à gauche */
.hero-visual { isolation: isolate; aspect-ratio: 1 / 1.18; }
.hero-emblem { position: absolute; z-index: 1; right: 0; top: 0; width: 80%; height: auto; max-width: none; pointer-events: none; }
.hero-visual .device { position: absolute; z-index: 2; left: 0; bottom: 24px; width: 70%; }
.hero-visual .cf { height: auto; aspect-ratio: 16 / 9; }
.hero-visual .fiction { position: absolute; left: 0; bottom: 0; width: 70%; margin: 0; }

/* ------------------------------------------------------------------ Avis : formulaire et liste */
.avis-form { display: grid; gap: 16px; padding: 24px; }
.avis-form:hover { transform: none; }
.avis-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.avis-form legend, .avis-form .f-row > label { padding: 0; margin-bottom: 8px; font: 700 .72rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.avis-form .f-row { display: grid; }
.avis-form input[type="radio"], .avis-form .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avis-form textarea, .avis-form #avisName { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--text); font: 400 .95rem/1.5 var(--font-ui); resize: vertical; }
.avis-form textarea:focus, .avis-form #avisName:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, .15); }
.avis-form #avisName { margin-top: 10px; }
.avis-form #avisName[hidden] { display: none; }
.count { justify-self: end; margin-top: 4px; color: var(--faint); font: .7rem var(--font-mono); }
.avis-form .seg label { display: grid; place-items: center; height: 36px; border-radius: 6px; color: var(--muted); font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .15s, color .15s; }
.avis-form .seg input:checked + label { background: var(--panel3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .8rem; line-height: 1.5; cursor: pointer; }
.check span { position: relative; padding-left: 30px; }
.check span::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--bg2); }
.check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.check b { color: var(--text); }
.avis-form .btn { width: 100%; }
.avis-form .btn:disabled { background: var(--panel2); color: var(--muted); box-shadow: none; cursor: default; }
.avis-status { min-height: 1.3em; color: var(--muted); font-size: .84rem; text-align: center; }
.avis-status.ok { color: var(--accent); }
.avis-status.err { color: var(--accent-2); }

.avis-list { display: grid; gap: 12px; }
.avis-empty { padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: .92rem; }
.avis-items { display: grid; gap: 10px; }
.avis-items .avis-item.more { display: none; }
.avis-items.open .avis-item.more { display: grid; }
.avis-item { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 14, 40, .6); }
.av-text { color: var(--text); font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere; }
.av-sign { color: var(--muted); font-size: .84rem; }
.btn-more { justify-self: start; height: 38px; font-size: .9rem; }
.avis-note { color: var(--faint); font-size: .76rem; line-height: 1.5; }

.av-sign time { color: var(--faint); font: .72rem var(--font-mono); }

/* ------------------------------------------------------------------ Page de modération (privée) */
body.mod .doc { width: min(980px, 100%); }
.mod-tag { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--accent-2); font: 700 .66rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.mod-login { display: grid; gap: 12px; max-width: 460px; padding: 24px; }
.mod-login:hover { transform: none; }
.mod-login label { font: 700 .72rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mod-login input, .mod-item textarea, .mod-item input, .mod-item select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--text); font: 400 .95rem/1.5 var(--font-ui); }
.mod-login input:focus, .mod-item textarea:focus, .mod-item input:focus, .mod-item select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 240, 255, .15); }
.mod-msg { min-height: 1.3em; color: var(--muted); font-size: .86rem; }
.mod-msg.ok { color: var(--accent); } .mod-msg.err { color: var(--accent-2); }
.mod-hint { color: var(--faint); font-size: .8rem; line-height: 1.5; }
.mod-hint code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-size: .78rem; }
.mod-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.mod-tabs { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; }
.mod-tabs .seg-b { padding: 0 16px; }
.mod-tabs b { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(150, 140, 255, .18); font: 700 .72rem var(--font-mono); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-list { display: grid; gap: 12px; }
.mod-item { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 14, 40, .6); }
.mod-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-date { color: var(--faint); font: .74rem var(--font-mono); margin-right: auto; }
.mod-flag { padding: 2px 9px; border-radius: 4px; border: 1px solid rgba(255, 43, 214, .5); color: var(--accent-2); font: 700 .66rem var(--font-mono); letter-spacing: .06em; }
.mod-flag.soft { border-color: var(--line-strong); color: var(--muted); }
.mod-edit { display: grid; grid-template-columns: 1fr 220px; gap: 10px; }
.mod-item textarea { resize: vertical; min-height: 76px; }
.mod-orig { color: var(--faint); font-size: .8rem; } .mod-orig summary { cursor: pointer; }
.mod-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-btns select { width: auto; height: 38px; padding: 0 10px; }
.mod-btns .btn { height: 38px; }
.danger { color: var(--accent-2); border-color: rgba(255, 43, 214, .4); }
@media (max-width: 700px) { .mod-edit { grid-template-columns: 1fr; } .mod-tabs { grid-template-columns: 1fr; width: 100%; } }
.av-fix { color: var(--faint); font-size: .72rem; }
