/* ══════════════════════════════════════════════════════════════════════
   CHINOKAI — style « visual novel »
   Pastel à pois, rouge cerise et rose, contours blancs façon autocollant,
   boutons bombés, boîtes de dialogue, animations élastiques, étincelles.
   Identité originale : aucun personnage, logo ou police propriétaire d'un autre jeu.
   ══════════════════════════════════════════════════════════════════════ */

:root, :root[data-mode="jour"] {
  --bg: #fff0f4; --sheet: #ffffff; --sheet-2: #fff6f8; --sheet-3: #ffe4ec;
  --line: #f6cdd9; --line-2: #eeaabf;
  --ink: #4a3340; --ink-2: #7b5f6e; --ink-3: #a98a9a;
  --blue: #8e7bff; --green: #23a47c; --marker: #b9a2ff; --on-marker: #2a1a52; --marker-deep: #8a6fe6; --danger: #e5484d; --star: #ff8fb1;
  --accent: var(--accent-base, #e8395a); --on-accent: var(--accent-ink-base, #ffffff);
  --accent-deep: color-mix(in oklab, var(--accent) 70%, #3a0d1a);
  --rim: #ffffff; --dot: rgba(232, 57, 90, .10);
  --hole: var(--bg); --logo-sheet: var(--ink); --logo-hole: var(--bg);
  --lift: 0 5px 0 var(--line), 0 18px 30px -22px rgba(232, 57, 90, .45);
  --pop: 0 8px 0 var(--line-2), 0 22px 34px -20px rgba(232, 57, 90, .55);
  --grain: 0; --grain-blend: normal; --glow: transparent;
  color-scheme: light;
}
:root[data-mode="nuit"] {
  --bg: #1e1520; --sheet: #2a1d2c; --sheet-2: #33243a; --sheet-3: #3f2c47;
  --line: #4a3552; --line-2: #654670;
  --ink: #ffeef4; --ink-2: #e5c3d3; --ink-3: #a98a9c;
  --blue: #b3a6ff; --green: #6ee0b8; --marker: #c7b6ff; --on-marker: #221340; --marker-deep: #6f55c9; --danger: #ff6b70; --star: #ffb3c9;
  --accent: color-mix(in oklab, var(--accent-base, #e8395a) 82%, white); --on-accent: #2a0c16;
  --rim: #46324f; --dot: rgba(255, 120, 160, .07);
  --lift: 0 5px 0 #130c15, 0 18px 30px -22px rgba(0, 0, 0, .9);
  --pop: 0 8px 0 #130c15, 0 22px 34px -20px rgba(255, 90, 130, .35);
  --glow: rgba(255, 95, 140, .12);
  color-scheme: dark;
}
:root {
  --display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fredoka", "Nunito", ui-rounded, sans-serif;
  --hand: "Gaegu", "Comic Sans MS", cursive;
  --serif: "Instrument Serif", Georgia, serif;
  --jp: "Dela Gothic One", "Fredoka", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --twos: var(--spring);
  --nav-h: 66px; --gutter: clamp(16px, 3.4vw, 48px); --maxw: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 55% at 50% 0%, var(--glow), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 100%; font-weight: 800; letter-spacing: -.01em; line-height: 1; margin: 0; }
p { margin: 0; }
::selection { background: var(--marker); color: var(--on-marker); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.i { width: 19px; height: 19px; flex: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.kicker, .label { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.kicker .i, .label .i { width: 15px; height: 15px; color: var(--accent); }
.jp { font-family: var(--jp); font-weight: 400; }

/* trous de calage : signature, posée en haut des feuilles */
.pegs { position: relative; }
.pegs::before, .card-art::before, .tile::after, .holo::after, .layer::after {
  content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 48px; height: 8px; transform: translateX(-50%);
  background: var(--hole); -webkit-mask: var(--pegs) center / contain no-repeat; mask: var(--pegs) center / contain no-repeat; pointer-events: none; }

/* ── boutons : trait d'encre, décalage de calage au survol ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 7px;
  border: 3px solid var(--rim); background: var(--sheet); color: var(--ink); font: 600 14.5px/1 var(--body); white-space: nowrap;
  transition: transform .14s var(--twos), box-shadow .14s var(--twos), background .2s, color .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--pop); }
.btn:active { transform: none; box-shadow: none; }
.btn .i { width: 18px; height: 18px; }
.btn-primary, .btn-light { background: var(--accent); color: var(--on-accent); }
.btn-ghost, .btn-glass { background: transparent; }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent:hover { box-shadow: var(--pop); }
.btn-gold { background: var(--marker); color: var(--on-marker); border-color: var(--on-marker); }
.btn-gold:hover { box-shadow: var(--pop); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: space-between; }
.btn-block.btn-primary { justify-content: center; }
.btn-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; border: 2px solid var(--line); background: var(--sheet); color: var(--ink);
  transition: transform .14s var(--twos), box-shadow .14s var(--twos), border-color .2s; }
.btn-icon:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--pop); }
.btn-icon:active { transform: none; box-shadow: none; }
.btn-icon.sm { width: 32px; height: 32px; }
.btn-icon.sm .i { width: 15px; height: 15px; }
.btn-icon[disabled] { opacity: .35; pointer-events: none; }
.btn-icon.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.link-more, .link-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.link-more .i { width: 14px; height: 14px; transition: transform .2s var(--twos); }
.link-more:hover, .link-btn:hover { color: var(--accent); }
.link-more:hover .i { transform: translateX(3px); }
.link-btn { margin-top: 10px; color: var(--accent); }

/* ── puces, onglets, champs ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--sheet);
  font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip .i { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); background: var(--sheet-2); font: 500 11.5px/1 var(--mono); color: var(--ink-2); }
.tag .i { width: 13px; height: 13px; }
.seg { display: inline-flex; border: 3px solid var(--rim); border-radius: 7px; overflow: hidden; background: var(--sheet); }
.seg button { height: 36px; padding: 0 14px; font: 600 13px/1 var(--body); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; border-left: 1px solid var(--line-2); transition: background .15s, color .15s; }
.seg button:first-child { border-left: 0; }
.seg button .i { width: 15px; height: 15px; }
.seg button:hover { color: var(--ink); background: var(--sheet-2); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.field { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 7px; background: var(--sheet); border: 2px solid var(--line); transition: border-color .2s; }
.field:focus-within { border-color: var(--accent); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; }
.field .i { color: var(--ink-3); }
.select { height: 38px; padding: 0 34px 0 12px; border-radius: 7px; border: 2px solid var(--line); background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385827a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat; appearance: none; font: 500 12.5px/1 var(--mono); color: var(--ink); }
.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 7px; background: var(--sheet); border: 2px solid var(--line); outline: 0; transition: border-color .2s; }
.input:focus { border-color: var(--accent); }
.switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 6px; background: var(--sheet-3); border: 2px solid var(--line); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 4px; background: var(--ink-3); transition: transform .15s var(--twos), background .15s; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--on-accent); }

/* ══ barre du haut : intercalaires de classeur ══ */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo b { font: 800 22px/1 var(--display); font-stretch: 100%; letter-spacing: -.02em; }
.logo:hover .logo-play { animation: nudge .5s var(--spring) 1; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(2px); } 50% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
.tabs-nav { display: flex; gap: 2px; align-self: flex-end; }
.tabs-nav a { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; font: 600 14px/1 var(--body); color: var(--ink-2); transition: background .15s, color .15s; }
.tabs-nav a .i { width: 16px; height: 16px; }
.tabs-nav a:hover { color: var(--ink); background: var(--sheet-2); }
.tabs-nav a[aria-current="page"] { background: var(--sheet); border-color: var(--line); color: var(--ink); }
.tabs-nav a[aria-current="page"] .i { color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 220px; padding: 0 6px 0 12px; border-radius: 7px; border: 2px solid var(--line); background: var(--sheet); color: var(--ink-3); font: 500 12.5px/1 var(--mono); transition: border-color .15s; }
.search-field:hover { border-color: var(--accent); }
.search-field .i { width: 16px; height: 16px; }
.search-field kbd, .home-search kbd { margin-left: auto; font: 500 10.5px/1 var(--mono); padding: 5px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--sheet-2); }
.plus-badge { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 7px; background: var(--marker); color: var(--on-marker); border: 3px solid var(--rim); font: 700 13px/1 var(--body); transition: transform .14s var(--twos), box-shadow .14s var(--twos); }
.plus-badge:hover { transform: translateY(-3px); box-shadow: var(--pop); }
.plus-badge .i { width: 16px; height: 16px; }
.avatar-btn { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; border: 3px solid var(--rim); background: var(--sheet-2); flex: none; }
.avatar-btn img, .avatar-btn span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font: 800 16px/1 var(--display); color: var(--accent); }
main#view { min-height: 100vh; }
.page { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 3px dotted var(--line-2); }
.page-head h1 { font-size: clamp(44px, 7vw, 92px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; }
.page-head p { color: var(--ink-2); max-width: 560px; margin-top: 12px; font-size: 15.5px; }
.tabbar { display: none; }
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--ink-3); font: 500 12px/1.6 var(--mono); }
.foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

/* ══ affiches : des cellos percés ══ */
.card { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; display: block; position: relative; min-width: 0; }
.card-art { position: relative; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: var(--sheet-3); border: 1px solid var(--line);
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s var(--ease), box-shadow .14s var(--twos); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; font: 700 14px/1.2 var(--display); color: var(--ink-2); }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.3), transparent 55%); mix-blend-mode: overlay; }
.card-score { position: absolute; left: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; border-radius: 4px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); font: 600 11px/1 var(--mono); }
.card-score .i { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.card-play { position: absolute; right: 7px; bottom: 7px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--accent); color: var(--on-accent); opacity: 0; transform: translateY(4px); transition: opacity .14s var(--twos), transform .14s var(--twos); }
.card-play .i { width: 15px; height: 15px; margin-left: 2px; }
.card-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.35); }
.card-prog i { display: block; height: 100%; background: var(--accent); }
.card-meta { padding: 10px 1px 0; display: grid; gap: 4px; }
.card-meta b { font: 700 15px/1.15 var(--display); font-stretch: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); letter-spacing: .02em; }
@media (hover: hover) {
  .card:hover .card-art { box-shadow: var(--pop); transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px); }
  .card:hover .card-art img { transform: scale(1.04); }
  .card:hover .card-glare { opacity: 1; }
  .card:hover .card-play { opacity: 1; transform: none; }
}
.is-skel .card-art, .card.is-skel b, .card.is-skel small, .tile.is-skel, .skel-line, .sheet-poster.is-skel {
  background: linear-gradient(90deg, var(--sheet-2) 25%, var(--sheet-3) 50%, var(--sheet-2) 75%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.card.is-skel b { height: 14px; width: 80%; border-radius: 4px; }
.card.is-skel small { height: 10px; width: 50%; border-radius: 4px; }
.skel-line { height: 28px; border-radius: 6px; margin-bottom: 14px; }
.skel-line.w60 { width: 60%; height: 56px; } .skel-line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* carte « reprendre » : une image de cut avec sa piste de minutage */
.wide { display: block; position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sheet-3); border: 1px solid var(--line); transition: box-shadow .14s var(--twos), transform .14s var(--twos); }
.wide img { width: 100%; height: 100%; object-fit: cover; }
.wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12,13,20,.9)); }
.wide-body { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #f4f2ec; }
.wide-body b { display: block; font: 700 16px/1.2 var(--display); font-stretch: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide-body small { font: 500 11px/1 var(--mono); opacity: .8; }
.strip { margin-top: 8px; height: 6px; position: relative; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 6px), rgba(255,255,255,.12); }
.strip i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.wide-left { position: absolute; top: 8px; left: 8px; z-index: 2; font: 500 11px/1 var(--mono); padding: 5px 7px; border-radius: 4px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-2); }
.wide .card-play { z-index: 2; top: 8px; bottom: auto; }
@media (hover: hover) { .wide:hover { box-shadow: var(--pop); transform: translateY(-3px); } .wide:hover .card-play { opacity: 1; transform: none; } }

/* ══ rangées ══ */
.rail { margin-top: clamp(40px, 6vw, 64px); }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rail-head h2 { font-size: clamp(26px, 3vw, 36px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; }
.rail-head p { color: var(--ink-3); margin-top: 6px; font-size: 13.5px; }
.rail-head .kicker { margin-bottom: 8px; }
.rail-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.rail-nav .link-more { margin-right: 6px; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(138px, 13vw, 190px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 14px; margin: -6px calc(var(--gutter) * -1) -14px; scroll-padding: 0 var(--gutter); }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-wide .rail-track { grid-auto-columns: clamp(250px, 25vw, 340px); }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--spring), transform .4s var(--spring); }
[data-reveal].in { opacity: 1; transform: none; }

/* ══ ACCUEIL ══ */
.home { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 96px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 3px dotted var(--line-2); }
.home-date { color: var(--ink-3); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.home-head h1 { font-size: clamp(40px, 5.6vw, 76px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; line-height: .9; }
.home-search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 14px; min-width: min(440px, 100%); border-radius: 7px; border: 3px solid var(--rim); background: var(--sheet); color: var(--ink-3); font-size: 14px; transition: transform .14s var(--twos), box-shadow .14s var(--twos); }
.home-search:hover { transform: translateY(-3px); box-shadow: var(--pop); }
.home-search .i { color: var(--accent); }
.home-search span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); padding: 24px 20px 20px; overflow: hidden; min-width: 0; text-align: left; box-shadow: var(--lift); }
.tile.is-skel { min-height: 240px; }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.t-feature { grid-column: span 8; grid-row: span 2; min-height: 560px; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; background: #0d0e15; color: #f4f2ec; border-color: var(--accent); }
.t-feature::after { z-index: 4; }
.feat-bg { position: absolute; inset: 0; z-index: -2; }
.feat-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--spring); }
.feat-bg img.on { clip-path: inset(0 0 0 0); z-index: 1; }
.t-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,11,18,.95) 6%, rgba(10,11,18,.5) 45%, rgba(10,11,18,.05) 78%), linear-gradient(90deg, rgba(10,11,18,.65), transparent 60%); }
.feat-copy { padding: 28px 30px 26px; max-width: 640px; }
.feat-copy > * { animation: enter .36s var(--spring) both; }
.feat-copy > :nth-child(2) { animation-delay: .06s; } .feat-copy > :nth-child(3) { animation-delay: .12s; } .feat-copy > :nth-child(4) { animation-delay: .18s; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.feat-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.3); font: 500 11.5px/1 var(--mono); color: #f4f2ec; }
.pill:first-child { background: var(--marker); color: var(--on-marker); border-color: var(--marker); }
.pill .i { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.feat-copy h2 { font-size: clamp(40px, 5vw, 76px); font-stretch: 100%; font-weight: 900; line-height: .9; text-transform: uppercase; text-wrap: balance; }
.feat-copy p { margin-top: 14px; color: rgba(244,242,236,.78); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.t-feature .btn { border-color: #f4f2ec; background: transparent; color: #f4f2ec; }
.t-feature .btn-primary { background: #f4f2ec; color: #0d0e15; }
.feat-thumbs { position: absolute; top: 22px; right: 18px; display: flex; gap: 6px; z-index: 5; }
.feat-thumbs button { position: relative; width: 46px; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; opacity: .5; border: 1.5px solid transparent; transition: opacity .14s var(--twos), transform .14s var(--twos); }
.feat-thumbs button:hover { opacity: .9; transform: translateY(-2px); }
.feat-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--marker); }
.feat-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.feat-thumbs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--marker); }
.feat-thumbs button[aria-selected="true"] i { animation: fill var(--dur, 9s) linear forwards; }
.t-feature.paused .feat-thumbs i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.t-tonight { grid-column: span 4; display: flex; flex-direction: column; }
.clock { font: 600 14px/1 var(--mono); padding: 6px 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.big-line { font: 900 clamp(40px, 3.6vw, 54px)/.9 var(--display); font-stretch: 100%; text-transform: uppercase; }
.big-line em { display: block; font: 500 12px/1.4 var(--mono); font-style: normal; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; }
.tonight-pick { margin-top: auto; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 7px; border: 2px solid var(--line); transition: border-color .15s, transform .14s var(--twos), box-shadow .14s var(--twos); }
.tonight-pick:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--pop); }
.tonight-pick img { width: 42px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.tonight-pick small { display: block; color: var(--ink-3); font-size: 12px; }
.tonight-pick b { display: block; font: 700 16px/1.15 var(--display); font-stretch: 100%; }
.tonight-pick > .i { color: var(--ink-3); }
.t-tonight .tile-head { margin-bottom: 18px; }
.t-roulette { grid-column: span 4; min-height: 250px; cursor: pointer; display: flex; flex-direction: column; transition: transform .14s var(--twos), box-shadow .14s var(--twos), border-color .15s; }
.t-roulette:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--pop); }
.roul-fan { position: relative; flex: 1; min-height: 120px; }
.roul-fan img { position: absolute; left: 50%; top: 50%; width: 74px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line);
  transform: translate(-50%, -50%) translateX(calc(var(--k) * 44px)) rotate(calc(var(--k) * 6deg)); transition: transform .3s var(--spring); z-index: calc(10 - var(--k) * var(--k)); }
.t-roulette:hover .roul-fan img { transform: translate(-50%, -50%) translateX(calc(var(--k) * 56px)) rotate(calc(var(--k) * 10deg)) translateY(calc(var(--k) * var(--k) * 4px)); }
.roul-copy b { display: block; font: 900 26px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.roul-copy small { color: var(--ink-3); font-size: 13px; }
.t-continue { grid-column: span 8; }
.cont-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 4px 6px 8px 2px; }
.cont-track::-webkit-scrollbar { display: none; }
.cont-track > * { scroll-snap-align: start; }
.cont-empty p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.mini-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mini-row img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); transition: transform .14s var(--twos), box-shadow .14s var(--twos); }
.mini-row a:hover img { transform: translateY(-3px); box-shadow: var(--pop); }
.t-soon { grid-column: span 4; }
.soon-list, .top-list { list-style: none; margin: 0; padding: 0; display: grid; }
.soon-list li, .top-list li { border-top: 1px solid var(--line); }
.soon-list li:first-child, .top-list li:first-child { border-top: 0; }
.soon-list a, .top-list a { display: grid; align-items: center; gap: 12px; padding: 8px 4px; transition: background .12s; }
.soon-list a:hover, .top-list a:hover { background: var(--sheet-2); }
.soon-list a { grid-template-columns: 46px 30px minmax(0, 1fr); }
.soon-time { font: 600 12.5px/1 var(--mono); color: var(--accent); }
.soon-list img, .top-list img { width: 30px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.soon-list b, .top-list b { display: block; font: 700 14.5px/1.2 var(--display); font-stretch: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon-list small, .top-list small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }
.t-top { grid-column: span 5; }
.top-list { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.top-list li:nth-child(2) { border-top: 0; }
.top-list a { grid-template-columns: 26px 30px minmax(0, 1fr) auto; }
.rk { font: 900 24px/1 var(--display); font-stretch: 100%; text-align: center; color: var(--ink-3); }
.top-list li:nth-child(-n+3) .rk { color: var(--accent); }
.sc { font: 600 11.5px/1 var(--mono); color: var(--ink-2); }
.t-moods { grid-column: span 7; }
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mood { position: relative; min-height: 116px; padding: 12px; border-radius: 7px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  background: color-mix(in srgb, var(--m) 14%, var(--sheet)); border: 1.5px solid color-mix(in srgb, var(--m) 45%, var(--line)); transition: transform .14s var(--twos), box-shadow .14s var(--twos); }
.mood:hover { transform: translateY(-3px); box-shadow: 0 6px 0 color-mix(in srgb, var(--m) 55%, transparent); }
.mood b { font: 900 21px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.mood small { color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.mood-art { position: absolute; right: -4px; top: -8px; width: 110px; height: 100px; z-index: -1; }
.mood-art img { position: absolute; top: 0; right: calc(var(--k) * 24px); width: 48px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; transform: rotate(calc(10deg - var(--k) * 8deg)); opacity: .9; border: 1px solid var(--line); transition: transform .3s var(--spring); }
.mood:hover .mood-art img { transform: rotate(calc(14deg - var(--k) * 11deg)) translateY(6px); }
.empty-note { color: var(--ink-3); font-size: 13.5px; }

/* ══ EXPLORER ══ */
.explore-bar { position: sticky; top: var(--nav-h); z-index: 20; padding: 12px 0; margin-bottom: 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.explore-bar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.explore-bar .field { flex: 1; min-width: 220px; }
.genre-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 12px; }
.genre-scroll::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(136px, 14vw, 180px), 1fr)); gap: 24px 16px; }
.count { color: var(--ink-3); font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.more-row { display: flex; justify-content: center; margin-top: 36px; }

/* ══ FICHE : dossier de production ══ */
.sheet-ref { display: flex; flex-wrap: wrap; margin-bottom: 22px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-top: 3px dotted var(--line-2); border-bottom: 1px solid var(--line); }
.sheet-ref span { padding: 10px 14px 10px 0; margin-right: 14px; border-right: 1px solid var(--line); }
.sheet-ref span:last-child { border-right: 0; }
.dossier { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dos-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.sheet-poster { --gx: 50%; --gy: 50%; position: relative; padding: 24px 12px 12px; border-radius: 6px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--lift); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-.8deg); transition: transform .3s var(--ease); }
.sheet-poster.is-skel { aspect-ratio: 2/3.2; }
.sheet-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; }
.sheet-poster .card-glare { opacity: .8; }
.dos-actions { display: grid; gap: 8px; }
.dos-mini { display: flex; gap: 8px; }
.dos-main { min-width: 0; }
.cut { position: relative; margin: 0 0 22px; padding: 14px; }
.cut::before { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--ink-3);
  background: linear-gradient(var(--c), var(--c)) left top / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left top / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right top / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 1.5px 18px no-repeat; }
.cut img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; border-radius: 2px; }
.cut figcaption { position: absolute; right: 22px; bottom: 22px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; padding: 5px 7px; border-radius: 3px; background: var(--sheet); color: var(--ink-2); border: 1px solid var(--line-2); }
.dos-title { font-size: clamp(44px, 6vw, 92px); font-stretch: 100%; font-weight: 900; line-height: .88; text-transform: uppercase; text-wrap: balance; }
.dos-alt { margin-top: 12px; color: var(--ink-3); font: 500 13px/1.4 var(--mono); }
.memo { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 10px; background: var(--marker); color: var(--on-marker); font: 600 12.5px/1 var(--mono); transform: rotate(-1deg); border-radius: 2px; }
.memo .i { width: 15px; height: 15px; }
.specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 22px 0; border: 3px solid var(--rim); border-radius: 4px; background: var(--sheet); }
.specs > div { padding: 10px 12px; border-left: 1px solid var(--line-2); min-width: 0; }
.specs > div:first-child { border-left: 0; }
.specs dt { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.specs dd { margin: 0; font: 700 18px/1.1 var(--display); font-stretch: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs.cast { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 0; }
.specs.cast > div { border-top: 1px solid var(--line-2); }
.dos-syn { color: var(--ink-2); font-size: 15.5px; line-height: 1.72; white-space: pre-line; max-width: 780px; }
.dos-syn.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.folder-tabs { display: flex; gap: 2px; margin-top: 56px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.folder-tabs button { flex: none; height: 42px; padding: 0 16px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; font: 600 14px/1 var(--body); color: var(--ink-3); transition: color .15s, background .15s; }
.folder-tabs button:hover { color: var(--ink); background: var(--sheet-2); }
.folder-tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.folder-body { background: var(--sheet); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 22px; }
.xs-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.xsheet { border: 3px solid var(--rim); border-radius: 4px; overflow: hidden; }
.xs-head, .xs-row { display: grid; grid-template-columns: 50px 96px minmax(0, 1fr) 70px 150px 78px 40px; align-items: center; gap: 0 14px; padding: 0 12px; }
.xs-head { height: 34px; background: var(--sheet-2); border-bottom: 3px dotted var(--line-2); font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.xs-row { min-height: 66px; border-top: 1px solid var(--line); position: relative; transition: background .12s; }
.xs-head + .xs-row { border-top: 0; }
.xs-row:hover { background: var(--sheet-2); }
.xs-row.is-cur { background: color-mix(in srgb, var(--accent) 9%, var(--sheet)); box-shadow: inset 4px 0 0 var(--accent); }
.xs-n { font: 900 26px/1 var(--display); font-stretch: 100%; color: var(--ink-2); }
.xs-row.is-cur .xs-n { color: var(--accent); }
.xs-thumb { width: 96px; aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; background: repeating-linear-gradient(45deg, var(--sheet-2) 0 6px, var(--sheet-3) 6px 7px); border: 1px solid var(--line); }
.xs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.xs-title { min-width: 0; }
.xs-title b { display: block; font: 600 14.5px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xs-title small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-3); font-size: 12.5px; }
.xs-dur { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.xs-bar { height: 8px; position: relative; border: 1px solid var(--line-2); background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px); }
.xs-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.st { font: 500 11.5px/1 var(--mono); color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.st .i { width: 13px; height: 13px; }
.st.done { color: var(--green); } .st.part { color: var(--accent); }
.xs-go { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 2px solid var(--line); color: var(--ink-2); transition: all .12s var(--twos); }
.xs-go .i { width: 13px; height: 13px; margin-left: 2px; }
.xs-row:hover .xs-go { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.model-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.model { position: relative; margin: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--sheet); }
.model img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; background: var(--sheet-3); }
.model-n { position: absolute; top: 12px; left: 12px; font: 600 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; background: var(--sheet); border: 1px solid var(--line-2); }
.model figcaption { padding: 8px 2px 2px; }
.model b { display: block; font: 700 15px/1.15 var(--display); font-stretch: 100%; }
.model small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }
.badge-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* menu déroulant */
.menu-wrap { position: relative; }
.menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 220px; padding: 5px; border-radius: 8px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); display: none; }
.menu.open { display: block; animation: pop .2s var(--spring); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 5px; font-size: 14px; text-align: left; color: var(--ink-2); }
.menu button:hover { background: var(--sheet-2); color: var(--ink); }
.menu button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
.menu button .i { width: 16px; height: 16px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ══ LECTEUR (toujours sombre : c'est l'écran) ══ */
.watch { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 80px; overflow-x: clip; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.watch.theatre .watch-grid { grid-template-columns: minmax(0, 1fr); }
.stage { position: relative; isolation: isolate; padding: 10px; border-radius: 12px; background: #0b0c12; border: 3px solid var(--rim); }
.ambi { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; transform: scale(1.08); filter: blur(50px) saturate(1.4); opacity: .5; transition: opacity .6s; pointer-events: none; }
.ambi.off { opacity: 0; }
.pl { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 6px; overflow: hidden; user-select: none; -webkit-user-select: none; outline: none; color: #fff; --pa: #7d93ff; }
.pl:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.pl video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.pl.idle { cursor: none; }
.pl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.65), transparent 22%, transparent 60%, rgba(0,0,0,.88)); transition: opacity .3s var(--spring); }
.pl.idle .pl-shade, .pl.idle .pl-top, .pl.idle .pl-bottom { opacity: 0; pointer-events: none; }
.pl-top { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px; transition: opacity .3s var(--spring); }
.pl-title b { display: block; font: 800 20px/1.1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.pl-title small { color: rgba(255,255,255,.7); font: 500 12px/1.4 var(--mono); }
.pl-badges { display: flex; gap: 6px; flex: none; }
.pl-badge { height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 4px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.45); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; }
.pl-badge.demo { background: #ff8fb1; color: #1b1d2a; border-color: #ff8fb1; }
.pl-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.pl-big { width: 80px; height: 80px; border-radius: 12px; display: grid; place-items: center; background: #f4f2ec; color: #0b0c12; border: 2px solid #0b0c12; box-shadow: 5px 5px 0 var(--pa); pointer-events: auto; transition: transform .14s var(--twos), opacity .2s; }
.pl-big .i { width: 32px; height: 32px; margin-left: 4px; }
.pl-big:hover { transform: translateY(-3px); }
.pl.playing .pl-big { opacity: 0; pointer-events: none; }
.pl-spin { width: 48px; height: 48px; border-radius: 6px; border: 3px solid rgba(255,255,255,.25); border-top-color: #ff8fb1; animation: spin .8s linear infinite; display: none; }
.pl.buffering .pl-spin { display: block; }
.pl.buffering .pl-big { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-flash { position: absolute; top: 50%; width: 110px; height: 110px; margin-top: -55px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); opacity: 0; pointer-events: none; }
.pl-flash.l { left: 12%; } .pl-flash.r { right: 12%; }
.pl-flash.show { animation: flash .5s var(--spring); }
.pl-flash .i { width: 30px; height: 30px; }
@keyframes flash { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.pl-subs { position: absolute; left: 6%; right: 6%; bottom: 10%; text-align: center; pointer-events: none; transition: bottom .3s var(--spring); }
.pl:not(.idle) .pl-subs { bottom: 19%; }
.pl-subs span { display: inline; padding: .12em .45em; border-radius: 4px; line-height: 1.55; font: 600 calc(var(--cue-size, 100) * .02 * clamp(14px, 1.6vw, 26px) / 2) / 1.5 var(--body); color: var(--cue-color, #fff); background: rgba(0,0,0,var(--cue-bg, .45)); text-shadow: 0 1px 3px rgba(0,0,0,.8); box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: pre-line; }
.pl-skip { position: absolute; right: 20px; bottom: 92px; height: 42px; padding: 0 16px; border-radius: 7px; display: inline-flex; align-items: center; gap: 8px; background: #f4f2ec; color: #0b0c12; border: 2px solid #0b0c12; box-shadow: 4px 4px 0 var(--pa); font: 700 14px/1 var(--body); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s var(--spring), transform .2s var(--spring); overflow: hidden; isolation: isolate; }
.pl-skip.show { opacity: 1; transform: none; pointer-events: auto; }
.pl-skip .i { width: 17px; height: 17px; }
.pl-skip::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--skip-p, 0%); background: #ff8fb1; z-index: -1; }
.pl-resume { position: absolute; left: 20px; bottom: 92px; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border-radius: 7px; background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.25); font: 500 12.5px/1 var(--mono); opacity: 0; transform: translateY(8px); transition: all .2s var(--spring); pointer-events: none; }
.pl-resume.show { opacity: 1; transform: none; pointer-events: auto; }
.pl-resume button { height: 28px; padding: 0 10px; border-radius: 5px; background: #f4f2ec; color: #0b0c12; font: 600 12.5px/1 var(--body); }
.pl-bottom { position: absolute; inset: auto 0 0; padding: 0 16px 12px; transition: opacity .3s var(--spring); }
.pl-bar { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.pl-rail { position: relative; width: 100%; height: 6px; background: rgba(255,255,255,.2); transition: height .12s var(--spring); }
.pl-bar:hover .pl-rail, .pl-bar.drag .pl-rail { height: 9px; }
.pl-buf, .pl-done { position: absolute; inset: 0 auto 0 0; }
.pl-buf { background: rgba(255,255,255,.3); }
.pl-done { background: var(--pa); }
.pl-chap { position: absolute; top: -3px; bottom: -3px; background: rgba(255,143,177,.55); }
.pl-knob { position: absolute; top: 50%; width: 6px; height: 20px; margin: -10px 0 0 -3px; border-radius: 2px; background: #f4f2ec; transform: scaleY(0); transition: transform .12s var(--spring); }
.pl-bar:hover .pl-knob, .pl-bar.drag .pl-knob { transform: none; }
.pl-tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 6px 8px; border-radius: 5px; background: #f4f2ec; color: #0b0c12; font: 600 11.5px/1 var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.pl-tip small { display: block; font: 600 10px/1 var(--mono); color: #3557f5; margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.pl-bar:hover .pl-tip, .pl-bar.drag .pl-tip { opacity: 1; }
.pl-row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.pl-row .grow { flex: 1; }
.pl-b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: #fff; transition: background .12s; position: relative; }
.pl-b:hover { background: rgba(255,255,255,.14); }
.pl-b .i { width: 21px; height: 21px; }
.pl-b.on { color: #ff8fb1; }
.pl-b.txt { width: auto; padding: 0 9px; font: 600 11.5px/1 var(--mono); letter-spacing: .06em; border: 1px solid rgba(255,255,255,.3); height: 30px; margin: 0 4px; }
.pl-vol { display: flex; align-items: center; }
.pl-vol input { width: 0; opacity: 0; transition: width .2s var(--spring), opacity .2s; accent-color: #ff8fb1; }
.pl-vol:hover input, .pl-vol:focus-within input { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.pl-time { font: 500 12.5px/1 var(--mono); color: rgba(255,255,255,.88); margin-left: 8px; white-space: nowrap; }
.pl-time span { color: rgba(255,255,255,.5); }
.pl-pop { position: absolute; right: 14px; bottom: 74px; width: 300px; max-height: calc(100% - 96px); overflow: auto; padding: 6px; border-radius: 8px; background: rgba(21,23,34,.97); border: 1.5px solid rgba(255,255,255,.25); box-shadow: 4px 4px 0 var(--pa); display: none; z-index: 5; }
.pl-pop.open { display: block; animation: pop .2s var(--spring); }
.pl-pop h4 { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 10px 10px 8px; font-stretch: 100%; }
.pl-opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 5px; font-size: 14px; color: rgba(255,255,255,.82); text-align: left; }
.pl-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.pl-opt[aria-checked="true"] { color: #ff8fb1; }
.pl-opt em { font-style: normal; color: rgba(255,255,255,.5); font: 500 11.5px/1 var(--mono); }
.pl-opt .tagq { font: 500 10.5px/1 var(--mono); padding: 3px 5px; border-radius: 3px; border: 1px solid rgba(255,143,177,.5); color: #ff8fb1; }
.pl-opt.back { color: #fff; font-weight: 600; }
.pl-swatches { display: flex; gap: 8px; padding: 6px 10px 10px; }
.pl-swatches button { width: 26px; height: 26px; border-radius: 5px; border: 2px solid transparent; }
.pl-swatches button[aria-checked="true"] { border-color: #fff; }
.pl-range { padding: 4px 10px 12px; }
.pl-range input { width: 100%; accent-color: #ff8fb1; }
.pl-next { position: absolute; right: 20px; bottom: 92px; width: 300px; padding: 14px; border-radius: 8px; background: rgba(21,23,34,.96); border: 1.5px solid rgba(255,255,255,.25); box-shadow: 4px 4px 0 var(--pa); display: none; gap: 10px; }
.pl-next.show { display: grid; animation: pop .25s var(--spring); }
.pl-next small { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #ff8fb1; }
.pl-next b { font: 700 15px/1.25 var(--body); }
.pl-next .row { display: flex; gap: 8px; }
.pl-next .btn { flex: 1; height: 36px; font-size: 13.5px; border-color: #f4f2ec; color: #f4f2ec; background: transparent; }
.pl-next .btn-primary { background: #f4f2ec; color: #0b0c12; }
.pl-err { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: rgba(0,0,0,.82); }
.pl-err.show { display: grid; }
.pl-err b { display: block; font: 800 22px/1.2 var(--display); font-stretch: 100%; text-transform: uppercase; margin-bottom: 8px; }
.pl-err p { color: rgba(255,255,255,.75); margin-bottom: 16px; }
.pl-err .btn { background: #f4f2ec; color: #0b0c12; border-color: #f4f2ec; }
.pl-help { position: absolute; inset: 0; display: none; place-items: center; background: rgba(5,5,10,.85); z-index: 6; }
.pl-help.show { display: grid; }
.pl-help-box { width: min(520px, 92%); padding: 22px; border-radius: 10px; background: #f4f2ec; color: #1b1d2a; border: 2px solid #1b1d2a; box-shadow: 5px 5px 0 var(--pa); }
.pl-help-box h4 { font-size: 26px; font-stretch: 100%; text-transform: uppercase; margin-bottom: 14px; }
.pl-help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.pl-help-box dt { font: 500 11.5px/1.7 var(--mono); }
.pl-help-box dt kbd { padding: 2px 6px; border-radius: 4px; border: 1px solid #1b1d2a; }
.pl-help-box dd { margin: 0; }
.pl-help-box .btn { color: #1b1d2a; border-color: #1b1d2a; background: transparent; }
.watch-info { margin-top: 20px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.watch-info h1 { font-size: clamp(30px, 3.4vw, 48px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; line-height: .92; }
.watch-info p { color: var(--ink-3); margin-top: 8px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.watch-note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: color-mix(in srgb, var(--marker) 22%, var(--sheet)); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.watch-note .i { color: var(--ink); width: 18px; height: 18px; margin-top: 1px; }
.side-list { border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - var(--nav-h) - 40px); position: sticky; top: calc(var(--nav-h) + 20px); }
.side-list header { padding: 14px 16px 12px; border-bottom: 3px dotted var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.side-list header b { font: 900 20px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.side-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.side-ep { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 12px; align-items: center; border-top: 1px solid var(--line); transition: background .12s; }
.side-ep:first-child { border-top: 0; }
.side-ep:hover { background: var(--sheet-2); }
.side-ep[aria-current="true"] { background: color-mix(in srgb, var(--accent) 9%, var(--sheet)); box-shadow: inset 4px 0 0 var(--accent); }
.ep-art { position: relative; aspect-ratio: 16/9; border-radius: 3px; overflow: hidden; background: var(--sheet-3); border: 1px solid var(--line); }
.ep-art img { width: 100%; height: 100%; object-fit: cover; }
.ep-art .num { position: absolute; left: 6px; bottom: 4px; font: 900 22px/1 var(--display); font-stretch: 100%; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.side-ep b { font: 600 13.5px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-ep small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }
.watch.theatre .side-list { position: static; max-height: 420px; }

/* ══ PROFIL ══ */
.pf-banner { position: relative; height: clamp(200px, 26vw, 300px); border-radius: 10px; overflow: hidden; margin-top: 18px; border: 3px solid var(--rim); }
.pf-banner .bn { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bn-aurora { background: radial-gradient(55% 80% at 20% 35%, #6f86ff, transparent 62%), radial-gradient(45% 70% at 80% 30%, #8fd16a, transparent 60%), radial-gradient(50% 70% at 60% 110%, #ff8fb1, transparent 60%), #1b1d2a; background-size: 160% 160%; animation: aurora 16s ease-in-out infinite alternate; }
.bn-neon { background: repeating-linear-gradient(0deg, rgba(53,87,245,.22) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(53,87,245,.22) 0 1px, transparent 1px 24px), #f7f4ec; }
.bn-dusk { background: linear-gradient(170deg, #1b1d2a 0%, #3557f5 55%, #ffb38a 100%); }
.bn-sakura { background: radial-gradient(circle at 20% 25%, #fff 0 5%, transparent 6%) 0 0/80px 80px, radial-gradient(circle at 70% 65%, #ffd6e6 0 4%, transparent 5%) 0 0/64px 64px, linear-gradient(160deg, #ffb3cf, #c9b8ff 70%); }
.bn-ocean { background: linear-gradient(175deg, #0f3d5c 0%, #1d7a8c 55%, #8fd16a 130%); }
.bn-ember { background: radial-gradient(80% 90% at 75% 110%, #ff8fb1, transparent 55%), linear-gradient(170deg, #1b1d2a, #3b2a6b 70%); }
.bn-mono { background: repeating-linear-gradient(-45deg, rgba(27,29,42,.07) 0 2px, transparent 2px 12px), #fbf8f1; }
@keyframes aurora { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.pf-head { position: relative; margin-top: -64px; padding: 0 24px; display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; z-index: 2; }
.av { position: relative; width: 136px; height: 136px; flex: none; }
.av img, .av .av-ph { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; border: 4px solid var(--bg); background: var(--sheet-2); display: grid; place-items: center; font: 900 52px/1 var(--display); color: var(--accent); }
.av::before { content: ""; position: absolute; inset: -4px; border-radius: 18px; z-index: -1; }
.fr-ring::before { background: var(--ink); }
.fr-double::before { inset: -8px; border-radius: 20px; background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
.fr-glow::before { inset: -6px; border-radius: 19px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, var(--green) 8px 16px); animation: march 1.2s linear infinite; }
@keyframes march { to { background-position: 16px 0; } }
.fr-petals::before { inset: -10px; border-radius: 22px; background: repeating-conic-gradient(var(--marker) 0 10deg, transparent 10deg 20deg); }
.fr-gold::before { inset: -7px; border-radius: 20px; background: var(--marker); box-shadow: var(--pop); }
.fr-none::before { display: none; }
.pf-id { flex: 1; min-width: 240px; padding-bottom: 8px; }
.pf-name { font-size: clamp(36px, 5vw, 64px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; line-height: .9; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nf-display { font-family: var(--display); }
.nf-anime { font-family: var(--jp); font-weight: 400; text-transform: none; font-stretch: 100%; }
.nf-serif { font-family: var(--serif); font-weight: 400; font-style: italic; text-transform: none; font-stretch: 100%; }
.nf-mono { font-family: var(--mono); font-weight: 600; text-transform: none; font-stretch: 100%; letter-spacing: -.04em; }
.fx-gradient { background: linear-gradient(100deg, var(--accent), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-glow { text-shadow: var(--pop); }
.fx-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.pf-tag { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.pf-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.badge-gold { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 4px; font: 600 12px/1 var(--mono); color: var(--on-marker); background: var(--marker); border: 3px solid var(--rim); transform: rotate(-2deg); text-transform: none; letter-spacing: 0; }
.badge-gold .i { width: 13px; height: 13px; }
.pf-actions { display: flex; gap: 8px; padding-bottom: 10px; }
.pf-blocks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 36px; }
.blk { grid-column: span 6; padding: 20px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); min-width: 0; box-shadow: var(--lift); }
.blk h3 { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; font-stretch: 100%; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.blk.b-card { grid-column: span 5; background: none; border: 0; padding: 0; box-shadow: none; display: grid; place-items: center; }
.blk.b-stats { grid-column: span 7; }
.blk.b-top, .blk.b-activity { grid-column: span 7; }
.blk.b-now, .blk.b-badges { grid-column: span 5; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 3px solid var(--rim); border-radius: 4px; }
.stat { padding: 14px; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
.stat:nth-child(odd) { border-left: 0; }
.stat:nth-child(-n+2) { border-top: 0; }
.stat b { display: block; font: 900 36px/1 var(--display); font-stretch: 100%; }
.stat b small { font: 500 13px/1 var(--mono); color: var(--ink-3); margin-left: 3px; }
.stat span { color: var(--ink-3); font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.top4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.top4 .slot { aspect-ratio: 2/3; border-radius: 4px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--ink-3); font: 500 11px/1.3 var(--mono); text-align: center; padding: 8px; }
.top4 a img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); transition: transform .14s var(--twos), box-shadow .14s var(--twos); }
.top4 a:hover img { transform: translateY(-3px); box-shadow: var(--pop); }
.badge-list { display: grid; }
.ach { display: flex; gap: 12px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.ach:first-child { border-top: 0; }
.ach .ico { width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.ach .ico .i { width: 17px; height: 17px; }
.ach.locked { opacity: .5; }
.ach.locked .ico { background: var(--sheet-2); color: var(--ink-3); border: 1px dashed var(--line-2); }
.ach b { display: block; font: 700 15px/1.2 var(--display); font-stretch: 100%; }
.ach small { color: var(--ink-3); font-size: 12.5px; }
.act { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.act:first-of-type { border-top: 0; }
.act img { width: 36px; height: 52px; border-radius: 3px; object-fit: cover; background: var(--sheet-3); }
.act b { display: block; font: 700 15px/1.2 var(--display); font-stretch: 100%; }
.act small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }
.now-card { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.now-card img { width: 90px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.now-card b { font: 900 22px/1 var(--display); font-stretch: 100%; text-transform: uppercase; display: block; margin: 4px 0; }
.now-card small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }

/* carte de membre : un cello d'animation percé, reflet au survol */
.holo { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; width: min(100%, 420px); aspect-ratio: 1.586; border-radius: 12px; overflow: hidden; isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s var(--ease); cursor: grab;
  background: linear-gradient(150deg, var(--sheet), var(--sheet-2)); border: 3px solid var(--rim); box-shadow: var(--pop); color: var(--ink); }
.holo::after { top: 10px; width: 56px; height: 9px; z-index: 4; }
.holo::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--foil, none); background-size: 220% 220%; background-position: var(--mx) var(--my); mix-blend-mode: var(--foil-blend, soft-light); opacity: .55; }
.holo[data-foil="prisme"] { --foil: repeating-linear-gradient(115deg, #ff7aa2 0%, #ff8fb1 6%, #8fd16a 12%, #6ad1ff 18%, #8b7cff 24%, #ff7aa2 30%); }
.holo[data-foil="galaxie"] { --foil: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px) 0 0/40px 40px, radial-gradient(circle at 70% 80%, #fff 0 1px, transparent 2px) 0 0/55px 55px, linear-gradient(120deg, #3557f5, #8b7cff, #ffb38a, #3557f5); }
.holo[data-foil="sakura"] { --foil: radial-gradient(circle at 30% 30%, #ffd1e6 0 3px, transparent 4px) 0 0/34px 34px, repeating-linear-gradient(125deg, #ff9ac9 0%, #fff 8%, #c9a8ff 16%, #ff9ac9 24%); }
.holo[data-foil="neon"] { --foil: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 10px), linear-gradient(115deg, var(--accent), var(--green), var(--accent)); }
.holo[data-foil="or"] { --foil: repeating-linear-gradient(115deg, #efe6ff 0%, #b9a2ff 7%, #ff8fb1 14%, #d8c9ff 21%, #efe6ff 28%); --foil-blend: soft-light; }
.holo[data-foil="aucun"]::before { display: none; }
.holo-in { position: absolute; inset: 0; z-index: 3; padding: 26px 22px 18px; display: grid; grid-template-rows: auto 1fr auto; }
.holo-top { display: flex; justify-content: space-between; align-items: center; }
.holo-top .logo-mini { display: flex; align-items: center; gap: 7px; font: 800 16px/1 var(--display); font-stretch: 100%; }
.holo-top .logo-mini svg { width: 22px; height: 22px; }
.holo-top small { font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.holo-mid { display: flex; align-items: center; gap: 14px; }
.holo-mid img, .holo-mid .av-ph { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; border: 3px solid var(--rim); background: var(--sheet-3); display: grid; place-items: center; font: 900 30px/1 var(--display); color: var(--accent); }
.holo-mid b { display: block; font: 900 28px/.95 var(--display); font-stretch: 100%; text-transform: uppercase; }
.holo-mid span { font: 500 12px/1.4 var(--body); color: var(--ink-2); }
.holo-bot { display: flex; justify-content: space-between; align-items: flex-end; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.holo-bot b { display: block; color: var(--ink); font-size: 12.5px; letter-spacing: .02em; }
.holo-chip { width: 40px; height: 30px; border-radius: 5px; background: var(--marker); border: 3px solid var(--rim); position: relative; }
.holo-chip::after { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(27,29,42,.4); border-radius: 2px; }

/* studio de profil */
.studio { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: start; }
.studio-panel { display: grid; gap: 10px; }
.sect { border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); overflow: hidden; }
.sect > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font: 800 18px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.sect > summary::-webkit-details-marker { display: none; }
.sect > summary .i:first-child { color: var(--accent); }
.sect > summary .chev { margin-left: auto; transition: transform .2s var(--twos); color: var(--ink-3); }
.sect[open] > summary { border-bottom: 1px solid var(--line); }
.sect[open] > summary .chev { transform: rotate(180deg); }
.sect-body { padding: 16px; display: grid; gap: 16px; }
.lbl { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.lbl em { font-style: normal; color: var(--ink-3); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.pick { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; border: 1.5px solid var(--line); background: var(--sheet-2); transition: transform .12s var(--twos), border-color .12s, box-shadow .12s var(--twos); }
.pick:hover { transform: translateY(-2px); border-color: var(--accent); }
.pick[aria-checked="true"] { border-color: var(--accent); box-shadow: var(--pop); }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick.wide-pick { aspect-ratio: 16/7; }
.pick .lock, .opt .lock { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; background: var(--marker); color: var(--on-marker); }
.opt .lock { top: 5px; bottom: auto; width: 18px; height: 18px; }
.pick .lock .i, .opt .lock .i { width: 11px; height: 11px; }
.pick .cap { position: absolute; inset: auto 0 0; padding: 4px 6px; font: 500 10.5px/1.2 var(--mono); background: var(--sheet); border-top: 1px solid var(--line); text-align: left; color: var(--ink); }
.pick.upload { display: grid; place-items: center; color: var(--ink-3); border-style: dashed; background: none; }
.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { width: 36px; height: 36px; border-radius: 7px; border: 2px solid var(--line); transition: transform .12s var(--twos), box-shadow .12s var(--twos); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { border-color: var(--accent); box-shadow: var(--pop); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(#ff5a5a, #ff8fb1, #8fd16a, #6ad1ff, #3557f5, #b07cff, #ff5a5a); }
.swatch-custom input { position: absolute; inset: -10px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { position: relative; padding: 11px 8px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--sheet); text-align: center; font-size: 13px; color: var(--ink-2); transition: all .12s var(--twos); }
.opt:hover { border-color: var(--accent); color: var(--ink); }
.opt[aria-checked="true"] { border-color: var(--accent); color: var(--sheet); background: var(--ink); }
.opt .big { display: block; font-size: 22px; line-height: 1.1; margin-bottom: 4px; }
.opt-badge { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.opt-badge .bdg-mini { margin: 0; }
.block-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--sheet-2); }
.block-row b { flex: 1; font: 600 14px/1 var(--body); }
.block-row.off b { color: var(--ink-3); text-decoration: line-through; }
.studio-preview { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: 10px; border: 1px solid var(--line); background: var(--sheet); overflow: hidden; padding-bottom: 6px; }
.studio-preview .pf-banner { border-radius: 0; height: 180px; margin-top: 0; border: 0; border-bottom: 3px dotted var(--line-2); }
.studio-preview .pf-head { margin-top: -54px; }
.studio-preview .av { width: 104px; height: 104px; }
.studio-preview .av .av-ph { font-size: 40px; }
.studio-preview .pf-name { font-size: 40px; }
.studio-preview .holo-zone { padding: 26px 24px; display: grid; place-items: center; }
.studio-bar { position: sticky; bottom: 14px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 8px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); margin-top: 6px; }
.studio-bar span { flex: 1; color: var(--ink-2); font: 500 12px/1.3 var(--mono); display: flex; align-items: center; gap: 8px; }
.studio-bar span i { width: 9px; height: 9px; border-radius: 2px; background: var(--ink-3); }
.studio-bar.dirty span i { background: var(--marker); outline: 1.5px solid var(--on-marker); }

/* ══ CHINOKAI+ ══ */
.plus-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: calc(var(--nav-h) + 30px) 0 20px; }
.plus-hero h1 { font-size: clamp(52px, 7.4vw, 112px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; line-height: .86; }
.plus-hero h1 mark { background: none; color: var(--marker-deep); }
.plus-hero p.lead { color: var(--ink-2); font-size: 17px; margin-top: 18px; max-width: 540px; }
.plus-card-zone { display: grid; place-items: center; }
.plus-card-zone .holo { width: min(100%, 440px); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.plans { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; align-items: start; }
.plan-box { padding: 24px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--lift); }
.plan-box h3 { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-stretch: 100%; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.plan-box.main { border: 3px solid var(--rim); box-shadow: var(--pop); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; flex-wrap: wrap; }
.price b { font: 900 clamp(72px, 8vw, 110px)/.85 var(--display); font-stretch: 100%; }
.price span { font: 500 13px/1.3 var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.price-note { color: var(--ink-2); font-size: 14px; margin: 10px 0 18px; }
.pay-note { margin-top: 10px; font: 500 11.5px/1.4 var(--mono); color: var(--ink-3); text-align: center; }
.fund { margin: 16px 0 6px; }
.fund-bar { height: 14px; border: 3px solid var(--rim); border-radius: 3px; position: relative; background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px); overflow: hidden; }
.fund-bar i { position: absolute; inset: 0 auto 0 0; background: var(--marker); border-right: 1.5px solid var(--ink); }
.fund-legend { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11.5px/1.3 var(--mono); color: var(--ink-2); }
.costs { display: grid; margin-top: 4px; }
.costs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.costs div:first-child { border-top: 0; }
.costs b { font: 600 13px/1.4 var(--mono); white-space: nowrap; }
.key-row { display: flex; gap: 8px; margin-top: 10px; }
.key-row .input { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }
.perk { padding: 18px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); transition: transform .14s var(--twos), box-shadow .14s var(--twos), border-color .15s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--pop); border-color: var(--accent); }
.perk .ico { width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center; background: var(--marker); color: var(--on-marker); border: 3px solid var(--rim); margin-bottom: 12px; }
.perk b { display: block; font: 800 18px/1.15 var(--display); font-stretch: 100%; }
.perk p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 18px; border: 3px solid var(--rim); font-size: 14px; background: var(--sheet); }
.cmp th, .cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--sheet-2); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px dotted var(--line-2); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 22%; }
.cmp td:last-child { background: color-mix(in srgb, var(--marker) 16%, var(--sheet)); }
.cmp .i { width: 18px; height: 18px; }
.cmp .yes { color: var(--green); } .cmp .no { color: var(--ink-3); } .cmp .gold { color: var(--ink); font-weight: 600; }
.faq { display: grid; gap: 8px; margin-top: 18px; max-width: 860px; }
.faq details { border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font: 700 17px/1.3 var(--display); font-stretch: 100%; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s var(--twos); color: var(--ink-3); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 18px 16px; color: var(--ink-2); }
.demo-switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 7px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13px; margin-top: 14px; }
.section-title { margin-top: clamp(56px, 7vw, 90px); padding-bottom: 12px; border-bottom: 3px dotted var(--line-2); }
.section-title h2 { font-size: clamp(32px, 4vw, 52px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; }
.section-title p { color: var(--ink-2); margin-top: 8px; }

/* ══ SÉCURITÉ : une pile de cellos ══ */
.sec-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; margin-top: 12px; }
.vault { position: sticky; top: calc(var(--nav-h) + 40px); height: 500px; perspective: 1400px; display: grid; place-items: center; }
.vault-stack { position: relative; width: 280px; height: 280px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); transition: transform .8s var(--spring); }
.vault:hover .vault-stack { transform: rotateX(52deg) rotateZ(-30deg); }
.layer { position: absolute; inset: 0; border-radius: 10px; transform: translateZ(calc(var(--i) * 32px)); background: color-mix(in srgb, var(--sheet) 82%, transparent); border: 2px solid var(--line); transition: transform .4s var(--spring), background .3s, border-color .3s, box-shadow .3s; display: grid; place-items: center; }
.layer::after { top: 12px; }
.layer span { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transform: rotateZ(38deg); }
.layer.on { background: color-mix(in srgb, var(--accent) 22%, var(--sheet)); border-color: var(--accent); box-shadow: var(--pop); transform: translateZ(calc(var(--i) * 32px + 26px)); }
.layer.on span { color: var(--ink); }
.layer.core { background: var(--ink); border-color: var(--accent); }
.layer.core::after { display: none; }
.sec-list { display: grid; gap: 12px; }
.sec-item { padding: 22px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); transition: border-color .2s, box-shadow .14s var(--twos), transform .14s var(--twos); scroll-margin-top: 120px; }
.sec-item.on { border-color: var(--accent); box-shadow: var(--pop); transform: translateY(-3px); }
.sec-item .n { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.sec-item h3 { font-size: 26px; font-stretch: 100%; margin: 10px 0; display: flex; align-items: center; gap: 10px; }
.sec-item h3 .i { width: 24px; height: 24px; color: var(--accent); }
.sec-item p { color: var(--ink-2); }
.sec-item .chips { margin-top: 14px; }
.sec-tip { margin-top: 24px; padding: 20px; border-radius: 10px; border: 1.5px dashed var(--ink); background: color-mix(in srgb, var(--marker) 18%, var(--sheet)); display: flex; gap: 14px; align-items: flex-start; }
.sec-tip .i { color: var(--ink); width: 24px; height: 24px; }
.sec-tip b { display: block; font: 800 18px/1.2 var(--display); font-stretch: 100%; margin-bottom: 4px; }
.sec-tip p { color: var(--ink-2); font-size: 14px; }

/* ══ SORTIES ══ */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 3px solid var(--rim); border-radius: 6px; overflow: hidden; margin-bottom: 26px; background: var(--sheet); }
.day { padding: 12px 6px; text-align: center; border-left: 1px solid var(--line-2); transition: background .12s; }
.day:first-child { border-left: 0; }
.day:hover { background: var(--sheet-2); }
.day small { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.day b { display: block; font: 900 34px/1 var(--display); font-stretch: 100%; margin: 6px 0 4px; }
.day em { font-style: normal; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.day[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.day[aria-selected="true"] small, .day[aria-selected="true"] em { color: var(--sheet); opacity: .7; }
.day.today:not([aria-selected="true"]) b { color: var(--accent); }
.timeline { display: grid; gap: 10px; }
.slot-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.slot-time { font: 600 14px/1 var(--mono); color: var(--ink-2); padding-top: 20px; text-align: right; }
.slot-time.now { color: var(--accent); }
.air { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); transition: border-color .12s, transform .14s var(--twos), box-shadow .14s var(--twos); }
.air:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--pop); }
.air img { width: 60px; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; background: var(--sheet-3); }
.air b { display: block; font: 800 18px/1.15 var(--display); font-stretch: 100%; }
.air small { color: var(--ink-3); font-size: 13px; }
.air .status { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; border: 1px solid; }
.air .status .i { width: 12px; height: 12px; }
.status.out { color: var(--green); border-color: currentColor; }
.status.soon { color: var(--ink-3); border-color: var(--line-2); }
.air-actions { display: flex; gap: 8px; }
.now-line { display: flex; align-items: center; gap: 12px; color: var(--accent); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 4px 0; }
.now-line::before, .now-line::after { content: ""; height: 1.5px; flex: 1; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); }

/* ══ STATUT & ADMIN ══ */
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.svc-item { padding: 16px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); display: grid; gap: 10px; }
.svc-item header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.svc-item b { font: 800 18px/1.1 var(--display); font-stretch: 100%; }
.svc-item small { color: var(--ink-3); font: 500 11.5px/1.4 var(--mono); }
.dot { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.dot.ok { color: var(--green); } .dot.warn { color: #d39a00; } .dot.down { color: var(--danger); }
.uptime { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 26px; }
.uptime i { border-radius: 1px; background: var(--green); opacity: .85; }
.uptime i.warn { background: #e0a800; } .uptime i.down { background: var(--danger); }
.big-status { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 10px; border: 3px solid var(--rim); background: var(--sheet); box-shadow: 5px 5px 0 var(--green); margin-bottom: 26px; }
.big-status.warn { box-shadow: 5px 5px 0 #e0a800; }
.big-status > .i { width: 34px; height: 34px; }
.big-status b { font: 900 30px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.big-status small { display: block; color: var(--ink-3); font: 500 12px/1.4 var(--mono); margin-top: 6px; }

/* ══ status page v2 (st-*) ══ */
.st-banner { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 10px; border: 3px solid var(--rim); background: var(--sheet); box-shadow: 5px 5px 0 var(--green); margin-bottom: 28px; }
.st-banner.st-banner-warn { box-shadow: 5px 5px 0 #e0a800; }
.st-banner.st-banner-down { box-shadow: 5px 5px 0 var(--danger); }
.st-banner .i { width: 30px; height: 30px; flex: none; }
.st-banner > div { display: grid; gap: 4px; }
.st-banner b { font: 900 26px/1 var(--display); font-stretch: 100%; text-transform: uppercase; }
.st-banner span { display: block; color: var(--ink-3); font: 500 12px/1.4 var(--mono); }
.st-group { margin-bottom: 32px; }
.st-group h2 { font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.st-group-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.st-group-dot.warn { background: #e0a800; }
.st-group-dot.down { background: var(--danger); }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-card { padding: 16px; border-radius: 8px; background: var(--sheet); border: 1px solid var(--line); display: grid; gap: 10px; }
.st-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.st-card-info { display: grid; gap: 3px; min-width: 0; }
.st-card-info b { font: 700 15px/1.2 var(--display); font-stretch: 100%; }
.st-card-info small { color: var(--ink-3); font: 500 11.5px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dot { display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; flex: none; padding: 4px 7px; border-radius: 4px; border: 1px solid var(--line-2); }
.st-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, var(--line-2)); }
.st-warn { color: #d39a00; border-color: color-mix(in srgb, #d39a00 25%, var(--line-2)); }
.st-down { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, var(--line-2)); }
.st-testing { color: var(--ink-3); }
.st-uptime-row { display: flex; align-items: center; gap: 8px; }
.st-uptime-pct { font: 600 10.5px/1 var(--mono); color: var(--ink-3); flex: none; white-space: nowrap; }
.st-bars { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; height: 22px; flex: 1; }
.st-bar { border-radius: 1px; background: var(--green); opacity: .8; }
.st-bar-empty { background: var(--line-2); opacity: 1; }
.st-bar-warn { background: #e0a800; opacity: .9; }
.st-bar-down { background: var(--danger); opacity: .9; }

.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; padding: 8px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); }
.admin-nav button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 6px; font: 600 14px/1 var(--body); color: var(--ink-2); text-align: left; }
.admin-nav button .i { width: 17px; height: 17px; }
.admin-nav button:hover { background: var(--sheet-2); color: var(--ink); }
.admin-nav button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.admin-nav button em { margin-left: auto; font: 600 10.5px/1 var(--mono); font-style: normal; padding: 3px 5px; border-radius: 3px; background: var(--marker); color: var(--on-marker); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 3px solid var(--rim); border-radius: 6px; background: var(--sheet); margin-bottom: 18px; }
.kpi { padding: 14px 16px; border-left: 1px solid var(--line-2); }
.kpi:first-child { border-left: 0; }
.kpi span { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kpi b { display: block; font: 900 38px/1 var(--display); font-stretch: 100%; margin-top: 8px; }
.kpi small { font: 500 11px/1 var(--mono); color: var(--ink-3); }
.panel { border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); margin-bottom: 16px; overflow: hidden; }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 3px dotted var(--line-2); flex-wrap: wrap; }
.panel > header h2 { font-size: 22px; font-stretch: 100%; text-transform: uppercase; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 9px 16px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--sheet-2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--sheet-2); }
.who { display: flex; align-items: center; gap: 10px; }
.who .av-mini { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 800 13px/1 var(--display); flex: none; }
.who b { display: block; font-weight: 600; }
.who small { color: var(--ink-3); font: 500 11px/1 var(--mono); }
.role { font: 500 10.5px/1 var(--mono); text-transform: uppercase; padding: 4px 6px; border-radius: 3px; border: 1px solid var(--line-2); white-space: nowrap; }
.role.admin { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.role.mod { border-color: var(--accent); color: var(--accent); }
.log { list-style: none; margin: 0; padding: 0; font: 500 12.5px/1.6 var(--mono); }
.log li { padding: 8px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.log li:first-child { border-top: 0; }
.log time { color: var(--ink-3); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 16px; }
.form-grid label { display: grid; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.form-grid .wide-field { grid-column: 1 / -1; }
.form-grid textarea.input { height: 90px; padding: 10px 12px; resize: vertical; font: 400 14px/1.5 var(--body); letter-spacing: 0; text-transform: none; }
.notice { padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); background: color-mix(in srgb, var(--marker) 18%, var(--sheet)); border-bottom: 1px solid var(--line); }

/* ══ recherche, roulette, fenêtres ══ */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; background: color-mix(in srgb, #0b0c12 55%, transparent); }
.overlay.open { display: block; animation: fade .18s var(--spring); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.palette { width: min(700px, calc(100% - 32px)); margin: 10vh auto 0; border-radius: 10px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); overflow: hidden; animation: pop .22s var(--spring); }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 3px dotted var(--line-2); }
.palette-in .i { width: 21px; height: 21px; color: var(--accent); }
.palette-in input { flex: 1; background: none; border: 0; outline: 0; font: 600 18px/1 var(--body); }
.palette-in kbd, .palette-foot kbd { font: 500 10.5px/1 var(--mono); padding: 4px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-3); }
.palette-res { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; }
.pr { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 7px 10px; border-radius: 6px; }
.pr[aria-selected="true"] { background: var(--sheet-2); box-shadow: inset 3px 0 0 var(--accent); }
.pr img { width: 40px; height: 58px; object-fit: cover; border-radius: 3px; background: var(--sheet-3); }
.pr b { display: block; font: 700 16px/1.2 var(--display); font-stretch: 100%; }
.pr small { color: var(--ink-3); font: 500 11px/1.3 var(--mono); }
.palette-hint { padding: 24px 18px; color: var(--ink-3); font-size: 14px; display: grid; gap: 12px; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font: 500 11px/1 var(--mono); }
.palette-foot kbd { margin-right: 4px; }
.roul { width: min(860px, calc(100% - 32px)); margin: 6vh auto 0; border-radius: 10px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); padding: 24px; position: relative; animation: pop .25s var(--spring); overflow: hidden; }
.roul-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.roul-head h2 { font-size: clamp(32px, 4vw, 52px); font-stretch: 100%; font-weight: 900; text-transform: uppercase; }
.roul-head p { color: var(--ink-2); margin-top: 6px; }
.roul-stage { position: relative; height: 320px; perspective: 1200px; margin: 16px 0 8px; background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px); border-radius: 6px; border: 1px solid var(--line); }
.roul-ring { --r: 300px; --step: 30deg; --angle: 0deg; position: absolute; left: 50%; top: 50%; width: 146px; height: 219px; margin: -110px 0 0 -73px; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateY(var(--angle)); transition: transform 4.4s cubic-bezier(.12, .7, .08, 1); }
.roul-face { position: absolute; inset: 0; border-radius: 5px; overflow: hidden; transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--sheet-3); border: 3px solid var(--rim); }
.roul-face img { width: 100%; height: 100%; object-fit: cover; }
.roul-face.win { box-shadow: 0 0 0 4px var(--marker); }
.roul-pointer { position: absolute; left: 50%; top: -2px; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-top: 16px solid var(--ink); z-index: 2; }
.roul-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.roul-result { min-height: 52px; display: flex; align-items: center; gap: 14px; }
.roul-result b { display: block; font: 900 24px/1.05 var(--display); font-stretch: 100%; text-transform: uppercase; }
.roul-result small { color: var(--ink-3); font: 500 11.5px/1.3 var(--mono); }
.modal-video { width: min(1000px, calc(100% - 32px)); margin: 8vh auto 0; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; border: 3px solid var(--rim); animation: pop .25s var(--spring); }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: fixed; top: 18px; right: 18px; z-index: 2; }

/* ══ états, notifications ══ */
.state { display: grid; place-items: center; text-align: center; padding: 64px 20px; gap: 10px; }
.state-mark { width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); margin-bottom: 6px; }
.state-mark .i { width: 28px; height: 28px; }
.state h3 { font-size: 30px; font-stretch: 100%; text-transform: uppercase; }
.state p { color: var(--ink-2); max-width: 440px; }
.state .btn { margin-top: 10px; }
#toasts { position: fixed; z-index: 150; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: min(520px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; border-radius: 7px; background: var(--accent); color: var(--on-accent); box-shadow: var(--pop); font-size: 14px; animation: toastIn .3s var(--spring); }
.toast button { height: 30px; padding: 0 12px; border-radius: 5px; background: var(--sheet); color: var(--ink); font-weight: 700; font-size: 13px; }
.toast.gold { box-shadow: var(--pop); }
.toast.out { animation: toastOut .3s var(--spring) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.err-box { padding-top: calc(var(--nav-h) + 50px); }
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.nf .big { font: 900 clamp(110px, 22vw, 260px)/.85 var(--display); font-stretch: 100%; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.nf h1 { font-size: clamp(32px, 4.4vw, 52px); font-stretch: 100%; text-transform: uppercase; margin: 16px 0 10px; }
.nf p { color: var(--ink-2); margin-bottom: 22px; }

/* transitions entre pages : en deux, comme un anime */
::view-transition-old(root) { animation: vtOut .16s var(--spring) both; }
::view-transition-new(root) { animation: vtIn .3s var(--spring) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* ══ couche visual novel ══ */
body { background-color: var(--bg); background-image: radial-gradient(var(--dot) 2.2px, transparent 2.8px), radial-gradient(var(--dot) 2.2px, transparent 2.8px); background-size: 30px 30px; background-position: 0 0, 15px 15px; background-attachment: fixed; }
.pegs::before, .card-art::before, .tile::after, .holo::after, .layer::after { display: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.page-head h1, .home-head h1, .dos-title, .feat-copy h2, .rail-head h2, .section-title h2, .nf h1, .state h3, .roul-head h2, .watch-info h1, .plus-hero h1, .big-line, .pf-name,
.mood b, .roul-copy b, .now-card b, .holo-mid b, .side-list header b, .pl-title b, .pl-err b, .pl-help-box h4, .sect > summary, .big-status b, .roul-result b, .xs-n, .rk, .day b, .kpi b, .stat b, .price b { text-transform: none; font-weight: 700; letter-spacing: -.02em; }
.page-head h1, .dos-title, .plus-hero h1, .home-head h1, .section-title h2 { color: var(--accent); text-shadow: 3px 3px 0 var(--rim), 6px 6px 0 var(--line-2); line-height: 1; }
.rail-head h2 { color: var(--ink); }
.rail-head h2::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; background: var(--accent); vertical-align: middle; box-shadow: 16px 0 0 var(--line-2), 32px 0 0 var(--line); }
.label, .kicker { font-family: var(--display); font-weight: 600; letter-spacing: .03em; color: var(--accent); }

/* boutons bombés */
.btn { border-radius: 999px; border: 3px solid var(--rim); font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); background: var(--sheet); box-shadow: 0 5px 0 var(--line-2); transition: transform .25s var(--spring), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--line-2), 0 16px 24px -16px rgba(232, 57, 90, .6); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line-2); }
.btn-primary, .btn-light { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-deep); }
.btn-primary:hover, .btn-light:hover { box-shadow: 0 8px 0 var(--accent-deep), 0 18px 26px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:active, .btn-light:active { box-shadow: 0 2px 0 var(--accent-deep); }
.btn-gold { background: var(--marker); color: var(--on-marker); box-shadow: 0 5px 0 var(--marker-deep); }
.btn-gold:hover { box-shadow: 0 8px 0 var(--marker-deep), 0 18px 26px -14px color-mix(in srgb, var(--marker-deep) 60%, transparent); }
.btn-ghost, .btn-glass { background: transparent; border-color: var(--line-2); box-shadow: none; }
.btn-icon { border-radius: 16px; border: 3px solid var(--rim); color: var(--accent); box-shadow: 0 4px 0 var(--line-2); transition: transform .25s var(--spring), box-shadow .2s; }
.btn-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line-2); border-color: var(--rim); }
.btn-icon.on { background: var(--accent); color: var(--on-accent); }
.link-more, .link-btn { font-family: var(--display); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--accent); }
.chip { border-radius: 999px; border: 2px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0; transition: transform .2s var(--spring), background .15s, color .15s; }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"], .chip.on { box-shadow: 0 3px 0 var(--accent-deep); border-color: var(--rim); }
.tag { border-radius: 999px; font-family: var(--display); font-weight: 500; }
.seg { border-radius: 999px; border: 3px solid var(--rim); box-shadow: 0 4px 0 var(--line-2); }
.seg button { border-left: 0; font-family: var(--display); font-weight: 600; border-radius: 999px; }
.field, .select, .search-field, .home-search { border-radius: 999px; border: 3px solid var(--rim); box-shadow: inset 0 2px 0 var(--line), 0 4px 0 var(--line); }
.input { border-radius: 14px; border: 2px solid var(--line); }
.input:focus, .field:focus-within { border-color: var(--accent); }
.switch { border-radius: 999px; }
.switch::after { border-radius: 50%; }

/* barre du haut */
.top { background: color-mix(in srgb, var(--sheet) 86%, transparent); border-bottom: 3px dotted var(--line-2); }
.tabs-nav { align-self: center; gap: 6px; }
.tabs-nav a { height: 40px; margin: 0; padding: 0 16px; border-radius: 999px; border: 0; font-family: var(--display); font-weight: 600; font-size: 15px; transition: transform .25s var(--spring), background .2s, color .2s; }
.tabs-nav a:hover { transform: translateY(-2px); background: var(--sheet-3); color: var(--accent); }
.tabs-nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-deep); }
.tabs-nav a[aria-current="page"] .i { color: inherit; }
.logo b { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 24px; text-shadow: 2px 2px 0 var(--rim), 4px 4px 0 var(--line-2); }
.logo-mark { width: 40px; height: 40px; overflow: visible; }
.logo:hover .logo-mark { animation: glitch .5s steps(2) 1; }
.logo-star { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes glitch { 0%, 100% { filter: none; transform: none; } 25% { filter: drop-shadow(-3px 0 0 #3fd8ff) drop-shadow(3px 0 0 #ff3d7f); transform: translateX(1px) skewX(-8deg); } 50% { transform: translateX(-2px); } 75% { filter: drop-shadow(2px 0 0 #3fd8ff) drop-shadow(-2px 0 0 #ff3d7f); transform: skewX(5deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.55) rotate(45deg); } }
.plus-badge { border-radius: 999px; border: 3px solid var(--rim); box-shadow: 0 4px 0 var(--marker-deep); font-family: var(--display); font-weight: 600; }
.avatar-btn { border-radius: 50%; border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); }

/* cartes et panneaux : autocollants à contour blanc */
.card-art { border-radius: 18px; border: 3px solid var(--rim); box-shadow: var(--lift); transition: transform .35s var(--spring), box-shadow .25s; }
@media (hover: hover) { .card:hover .card-art { box-shadow: var(--pop); transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px) rotate(-1.2deg); } }
.card-play { border-radius: 50%; background: var(--accent); color: var(--on-accent); border: 2px solid var(--rim); }
.card-score { border-radius: 999px; border: 2px solid var(--rim); color: var(--accent); font-family: var(--display); }
.card-score .i { color: var(--star); }
.card-meta b { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.card-meta small { font-family: var(--body); }
.tile, .blk, .panel, .plan-box, .perk, .sec-item, .svc-item, .sect, .side-list, .studio-preview, .air, .faq details, .model, .sheet-poster, .admin-nav, .studio-bar, .big-status { border-radius: 24px; border: 3px solid var(--rim); box-shadow: var(--lift); }
.folder-body { border-radius: 0 24px 24px 24px; border: 3px solid var(--rim); border-top: 0; box-shadow: var(--lift); }
.folder-tabs { border-bottom: 0; gap: 6px; }
.folder-tabs button { border-radius: 18px 18px 0 0; border: 3px solid transparent; border-bottom: 0; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 0; }
.folder-tabs button[aria-selected="true"] { background: var(--sheet); border-color: var(--rim); color: var(--accent); }
.t-feature { border-color: var(--rim); }
.wide { border-radius: 18px; border: 3px solid var(--rim); }
.feat-thumbs button { border-radius: 12px; border-width: 3px; }
.feat-thumbs button[aria-selected="true"] { border-color: #fff; }
.pill { border-radius: 999px; font-family: var(--display); }
.specs, .xsheet, .stat-grid, .kpis, .days, .cmp { border-radius: 20px; border: 3px solid var(--rim); box-shadow: var(--lift); overflow: hidden; }
.cmp { border-collapse: separate; border-spacing: 0; }
.specs dd, .xs-title b { font-family: var(--display); font-weight: 600; }
.xs-head { background: var(--sheet-3); border-bottom: 2px solid var(--line); font-family: var(--display); }
.xs-row.is-cur { box-shadow: inset 6px 0 0 var(--accent); }
.xs-thumb { border-radius: 10px; }
.xs-go { border-radius: 50%; }
.xs-bar { border-radius: 999px; overflow: hidden; border: 0; background: var(--sheet-3); }
.dos-alt, .memo { font-family: var(--hand); font-size: 19px; font-weight: 700; }
.memo { border-radius: 8px; }
.cut { padding: 0; }
.cut::before, .cut figcaption { display: none; }
.cut img { border-radius: 22px; border: 3px solid var(--rim); box-shadow: var(--lift); }
.sheet-ref { border-top: 0; border-bottom: 3px dotted var(--line-2); font-family: var(--display); }
.sheet-ref span { border-right: 0; }
.sheet-ref span + span::before { content: "♡"; margin-right: 14px; color: var(--accent); }
.mood { border-radius: 20px; border-width: 3px; }
.pf-banner { border-radius: 24px; border: 3px solid var(--rim); }
.av img, .av .av-ph, .av::before { border-radius: 50% !important; }
.holo { border-radius: 22px; border: 3px solid var(--rim); box-shadow: var(--pop); }
.stage { border-radius: 24px; border: 3px solid var(--rim); }
.pl { border-radius: 16px; --pa: #ff5f86; }
.pl-big { border-radius: 50%; border: 3px solid #fff; }
.pl-skip, .pl-resume button, .pl-next, .pl-pop, .pl-help-box { border-radius: 18px; }
.palette, .roul, .menu { border-radius: 24px; border: 3px solid var(--rim); box-shadow: var(--pop); }
.menu button { border-radius: 12px; }
.toast { border-radius: 999px; border: 3px solid var(--rim); box-shadow: 0 5px 0 var(--accent-deep); font-family: var(--display); font-weight: 500; }
.state-mark { border-radius: 50%; color: var(--accent); }
.nf .big { font-family: var(--display); -webkit-text-stroke: 3px var(--accent); }
.tabbar { border-top: 3px dotted var(--line-2); }
.tabbar a, .tabbar button { font-family: var(--display); font-weight: 600; text-transform: none; font-size: 11px; }
.tabbar [aria-current="page"] { color: var(--accent); box-shadow: inset 0 4px 0 var(--accent); }
.page-head, .home-head, .rail-head, .section-title { border-bottom: 3px dotted var(--line-2); }
.sec-item h3, .perk b, .faq summary, .air b, .model b, .ach b, .act b, .pr b, .svc-item b { font-family: var(--display); font-weight: 600; }

/* boîte de dialogue et choix */
.vn { flex: 1; min-width: min(560px, 100%); }
.vn-box { position: relative; padding: 28px 26px 22px; border-radius: 26px; background: color-mix(in srgb, var(--sheet) 94%, transparent); border: 3px solid var(--rim); box-shadow: var(--lift); }
.vn-name { position: absolute; top: -18px; left: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--display); border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--accent-deep); }
.vn-name svg { width: 18px; height: 18px; }
.vn-text { font: 500 clamp(17px, 1.8vw, 21px)/1.55 var(--display); color: var(--ink); min-height: 3.1em; }
.vn-text b { color: var(--accent); font-weight: 700; }
.vn-caret { display: inline-block; margin-left: 2px; color: var(--accent); animation: blink 1s steps(2) infinite; }
.vn-next { position: absolute; right: 18px; bottom: 10px; color: var(--accent); font-size: 14px; animation: nudgeY 1s var(--spring) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudgeY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.vn-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vn-choice { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 16px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: 0 4px 0 var(--line-2); font: 600 15.5px/1.2 var(--display); color: var(--ink); text-align: left; transition: transform .25s var(--spring), box-shadow .2s, background .2s, color .2s; }
.vn-choice::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background .2s, transform .25s var(--spring); }
.vn-choice:hover { transform: translateY(-3px); background: var(--sheet-3); color: var(--accent); box-shadow: 0 7px 0 var(--line-2); }
.vn-choice:hover::before { background: var(--accent); transform: scale(1.4); }
.home-head { align-items: flex-start; border-bottom: 0; padding-bottom: 6px; margin-bottom: 24px; gap: 18px; }
.home-head .home-search { align-self: flex-end; }

/* étincelles au clic */
.spark { position: fixed; z-index: 400; pointer-events: none; width: 15px; height: 15px; margin: -7px 0 0 -7px; color: var(--c, var(--accent)); animation: spark .75s var(--spring) forwards; }
.spark svg { width: 100%; height: 100%; display: block; }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) scale(.3) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); } }

/* transitions entre pages : élastiques */
::view-transition-old(root) { animation: vtOut .18s ease both; }
::view-transition-new(root) { animation: vtIn .5s var(--spring) both; }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px) scale(.99); } }
[data-reveal] { transition: opacity .5s ease, transform .6s var(--spring); }

/* ══ badges : emblèmes illustrés et animés ══ */
.emb { display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; transition: transform .35s var(--spring); }
.emb svg { display: block; overflow: visible; filter: drop-shadow(0 2px 3px rgba(74, 20, 45, .18)); }
.emb:hover { transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.em-shine { animation: emShine 3.6s ease-in-out infinite; }
.em-sparks path { transform-box: fill-box; transform-origin: center; animation: emSpark 2.2s ease-in-out infinite; }
.em-sparks path:nth-child(2) { animation-delay: .7s; }
.em-sparks path:nth-child(3) { animation-delay: 1.3s; }
.em-rays { animation: emSpin 14s linear infinite; }
.emb[data-tier="common"] .em-shine { animation-duration: 5s; }
.emb.locked svg { filter: grayscale(1) opacity(.55); }
@keyframes emShine { 0%, 55% { transform: rotate(25deg) translateX(0); } 80%, 100% { transform: rotate(25deg) translateX(130px); } }
@keyframes emSpark { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes emSpin { to { transform: rotate(360deg); } }
.bdg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bdg { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 3px; border-radius: 999px; background: var(--sheet); border: 2.5px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); font: 600 13px/1 var(--display); color: var(--ink); white-space: nowrap; transition: transform .25s var(--spring); }
.bdg:hover { transform: translateY(-2px); }
.bdg[data-tier="legend"] { background: linear-gradient(120deg, color-mix(in srgb, var(--g1) 18%, var(--sheet)), color-mix(in srgb, var(--g2) 18%, var(--sheet))); }
.bdg.locked { color: var(--ink-3); }
.bdg-mini { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.pf-name .bdg-mini .emb { --s: 34px !important; width: 34px; height: 34px; }
.pf-name .bdg-mini svg { width: 34px; height: 34px; }
.bdg-big { display: inline-flex; }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bdg-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 10px 14px; border-radius: 20px; background: var(--sheet-2); border: 2px solid var(--line); transition: transform .3s var(--spring), border-color .2s; }
.bdg-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.bdg-card b { margin-top: 6px; font: 600 15px/1.2 var(--display); }
.bdg-card em { font-style: normal; font: 600 10.5px/1 var(--display); padding: 3px 8px; border-radius: 999px; background: var(--sheet-3); color: var(--ink-2); }
.bdg-card em[data-tier="rare"] { background: color-mix(in srgb, #3a9be0 18%, var(--sheet)); color: #2f86c7; }
.bdg-card em[data-tier="epic"] { background: color-mix(in srgb, var(--marker) 32%, var(--sheet)); color: var(--marker-deep); }
.bdg-card em[data-tier="legend"] { background: color-mix(in srgb, var(--accent) 16%, var(--sheet)); color: var(--accent); }
.bdg-card small { color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.bdg-card .lvl-bar { margin-top: 6px; width: 80%; }
.bdg-card .pr { font: 600 11px/1 var(--display); }
.bdg-card.locked b { color: var(--ink-2); }
.blk.b-badges { grid-column: span 12 !important; }
.lvl { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 3px; border-radius: 999px; background: var(--sheet); border: 2.5px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); }
.lvl b { font: 700 12px/1 var(--display); padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.lvl-bar { display: block; position: relative; width: 72px; height: 8px; border-radius: 999px; background: var(--sheet-3); overflow: hidden; }
.lvl-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--marker)); }
.lvl-bar.big { width: 100%; height: 12px; }
.xp { margin-top: 16px; }
.xp-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font: 600 14px/1 var(--display); }
.xp-head span { color: var(--ink-3); }
.xp .empty-note { margin-top: 8px; font-size: 12.5px; }
/* le pseudo et les actions commencent sous la bannière (l'avatar seul la chevauche) */
.pf-head { align-items: flex-start; }
.pf-id { padding-top: 74px; }
.pf-actions { padding-top: 78px; }
.studio-preview .pf-id { padding-top: 62px; }
@media (max-width: 760px) { .pf-id { padding-top: 0; flex-basis: 100%; } .pf-actions { padding-top: 0; } .studio-preview .pf-id { padding-top: 0; } }
.holo-top .lvl { box-shadow: none; }
.holo-bot { align-items: center; }
.holo-bot .bdg-row { gap: 4px; }

/* ══ menu du profil ══ */
.me-wrap { position: relative; }
.me-menu { position: absolute; z-index: 70; top: calc(100% + 10px); right: 0; width: 290px; padding: 8px; border-radius: 22px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); display: none; }
.me-menu.open { display: block; animation: pop .3s var(--spring); }
.me-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 2px dotted var(--line); margin-bottom: 6px; }
.me-head > img, .me-head > span { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); display: grid; place-items: center; background: var(--sheet-3); font: 700 20px/1 var(--display); color: var(--accent); flex: none; }
.me-head b { display: flex; align-items: center; gap: 4px; font: 700 17px/1.1 var(--display); margin-bottom: 6px; }
.me-menu nav { display: grid; }
.me-menu nav a, .me-out { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; font: 600 14.5px/1 var(--display); color: var(--ink-2); transition: background .15s, color .15s, transform .2s var(--spring); }
.me-menu nav a .i, .me-out .i { width: 17px; height: 17px; color: var(--accent); }
.me-menu nav a:hover, .me-out:hover { background: var(--sheet-3); color: var(--accent); transform: translateX(3px); }
.me-menu hr { border: 0; border-top: 2px dotted var(--line); margin: 6px 4px; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; font: 600 13.5px/1 var(--display); color: var(--ink-2); }
.me-sw { display: flex; gap: 6px; }
.me-sw button { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--rim); box-shadow: 0 2px 0 var(--line-2); transition: transform .2s var(--spring); }
.me-sw button:hover { transform: scale(1.15); }
.me-sw button[aria-checked="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.me-out { width: 100%; text-align: left; }

/* ══ communauté ══ */
.cm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cm-h { font-size: 26px; margin-bottom: 14px; color: var(--ink); }
.feed { display: grid; gap: 10px; }
.feed-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.feed-item[hidden] { display: none; }
.who-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font: 700 17px/1 var(--display); border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); flex: none; overflow: hidden; }
.who-av img, .who-av .av-ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; background: var(--sheet-3); color: var(--accent); }
.feed-body p { color: var(--ink-2); line-height: 1.45; }
.feed-body b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.feed-body a { color: var(--accent); font-weight: 700; }
.feed-body small { color: var(--ink-3); }
.feed-body blockquote { margin: 8px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--sheet-2); color: var(--ink); font: 400 19px/1.35 var(--hand); }
.feed-art img { width: 42px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; border: 2px solid var(--rim); }
.cm-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 20px); }
.board-sub { padding: 12px 16px 0; color: var(--ink-3); font-size: 13px; }
.board-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; }
.board-list li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; }
.board-list li.me { background: color-mix(in srgb, var(--accent) 12%, var(--sheet)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.board-list .pos { font: 700 18px/1 var(--display); color: var(--ink-3); text-align: center; }
.board-list .podium .pos { color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.board-list .p1 .pos { background: linear-gradient(135deg, #ff8fb1, #e8395a); }
.board-list .p2 .pos { background: linear-gradient(135deg, #c7b6ff, #8e7bff); }
.board-list .p3 .pos { background: linear-gradient(135deg, #8fd6ff, #3a9be0); }
.board-who b { display: flex; align-items: center; gap: 2px; font: 600 15px/1.15 var(--display); }
.board-who small { color: var(--ink-3); font-size: 12px; }
.board-xp { font: 700 13px/1 var(--display); color: var(--accent); white-space: nowrap; }
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 16px 16px; }
.pick-card { position: relative; }
.pick-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); transition: transform .3s var(--spring); }
.pick-card:hover img { transform: translateY(-4px) rotate(-2deg); }
.pick-card span { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--display); border: 2px solid var(--rim); white-space: nowrap; }
.pick-card span .i { width: 11px; height: 11px; fill: currentColor; }

/* ══ aide et documentation ══ */
.help-hero { position: relative; text-align: center; padding: 40px 16px 36px; margin-bottom: 26px; border-radius: 32px; background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, var(--sheet)), var(--sheet) 70%); border: 3px solid var(--rim); box-shadow: var(--lift); overflow: hidden; }
.help-hero h1 { font-size: clamp(48px, 7vw, 96px); color: var(--accent); text-shadow: 3px 3px 0 var(--rim), 6px 6px 0 var(--line-2); }
.help-hero p { color: var(--ink-2); margin: 14px auto 22px; max-width: 520px; font-size: 16px; }
.help-search { max-width: 620px; margin: 0 auto; height: 54px; }
.help-deco { position: absolute; color: var(--accent); opacity: .5; animation: float2 5s ease-in-out infinite; }
.help-deco .i { width: 34px; height: 34px; }
.help-deco.d1 { left: 8%; top: 24%; } .help-deco.d2 { right: 10%; top: 18%; animation-delay: 1.2s; color: var(--marker-deep); } .help-deco.d3 { right: 18%; bottom: 14%; animation-delay: 2.1s; }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(12deg); } }
.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.help-cat { display: grid; justify-items: start; gap: 6px; padding: 18px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); text-align: left; transition: transform .3s var(--spring), box-shadow .2s; }
.help-cat:hover { transform: translateY(-4px); box-shadow: var(--pop); }
.help-cat[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent), var(--pop); }
.help-cat b { font: 700 17px/1.2 var(--display); margin-top: 6px; }
.help-cat small { color: var(--ink-3); font-size: 13px; }
.help-cat em { font-style: normal; font: 600 11.5px/1 var(--display); color: var(--accent); }
.help-cat-ico { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--marker))); color: #fff; border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--accent-deep); }
.help-cat-ico .i { width: 22px; height: 22px; }
.help-cat-ico.sm { width: 38px; height: 38px; border-radius: 12px; }
.help-cat-ico.sm .i { width: 18px; height: 18px; }
.help-list { display: grid; gap: 8px; margin-top: 16px; }
.help-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 18px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); transition: transform .25s var(--spring); }
.help-item:hover { transform: translateX(5px); }
.help-item b { display: block; font: 600 16px/1.25 var(--display); }
.help-item small { color: var(--ink-3); font-size: 13px; }
.help-item > .i { color: var(--accent); }
.help-contact { margin-top: 40px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font: 600 13.5px/1 var(--display); color: var(--ink-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs .i { width: 14px; height: 14px; }
.help-art { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.help-toc { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; padding: 12px; border-radius: 22px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.help-toc b { font: 700 14px/1 var(--display); padding: 8px 10px 10px; color: var(--accent); }
.help-toc a { padding: 9px 10px; border-radius: 12px; font: 600 13.5px/1.3 var(--display); color: var(--ink-2); }
.help-toc a:hover { background: var(--sheet-3); }
.help-toc a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.help-body { padding: 30px clamp(20px, 4vw, 44px); border-radius: 28px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); max-width: 820px; }
.help-body h1 { font-size: clamp(32px, 4vw, 48px); color: var(--ink); }
.help-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; color: var(--ink-3); font-size: 13px; }
.vn-name.static { position: static; }
.help-body p, .help-body li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.help-body p + p, .help-body ul + p, .help-body p + ul { margin-top: 14px; }
.help-body ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 14px 0; }
.help-body li { position: relative; padding: 10px 14px 10px 40px; border-radius: 14px; background: var(--sheet-2); }
.help-body li::before { content: ""; position: absolute; left: 15px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.helpful { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 3px dotted var(--line-2); font: 600 15px/1.3 var(--display); }

/* ══ annonces ══ */
.ann-page { max-width: 900px; }
.ann-list { display: grid; gap: 14px; }
.ann { padding: 20px 22px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); scroll-margin-top: 120px; }
.ann.pinned { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), var(--pop); }
.ann header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ann time { margin-left: auto; color: var(--ink-3); font: 600 12.5px/1 var(--display); }
.ann-tag, .ann-pin { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--display); border: 2px solid var(--rim); }
.ann-tag .i, .ann-pin .i { width: 13px; height: 13px; }
.ann-tag[data-tag="new"] { background: color-mix(in srgb, var(--accent) 16%, var(--sheet)); color: var(--accent); }
.ann-tag[data-tag="maint"] { background: color-mix(in srgb, #3a9be0 16%, var(--sheet)); color: #2f86c7; }
.ann-tag[data-tag="event"] { background: color-mix(in srgb, var(--marker) 32%, var(--sheet)); color: var(--marker-deep); }
.ann-tag[data-tag="fix"] { background: color-mix(in srgb, var(--green) 16%, var(--sheet)); color: var(--green); }
.ann-pin { background: var(--sheet-3); color: var(--ink-2); }
.ann h3 { font: 700 22px/1.2 var(--display); }
.ann p { color: var(--ink-2); margin-top: 8px; line-height: 1.65; }
.ann-preview { padding: 0 16px 16px; display: grid; gap: 10px; }
.ann-bubble { position: fixed; z-index: 90; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(360px, calc(100% - 40px)); padding: 26px 18px 16px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); animation: bubbleIn .5s var(--spring); }
.ann-bubble.out { animation: bubbleOut .3s ease forwards; }
.ann-bubble .vn-name { top: -16px; left: 16px; }
.ann-bubble b { display: block; font: 700 17px/1.25 var(--display); }
.ann-bubble p { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.ann-bubble-row { display: flex; gap: 8px; margin-top: 12px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bubbleOut { to { opacity: 0; transform: translateY(14px) scale(.95); } }

/* ══ pièces, boutique, quêtes ══ */
.coin-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line-2); font: 700 13.5px/1 var(--display); color: var(--ink); transition: transform .25s var(--spring); }
.coin-pill:hover { transform: translateY(-2px); }
.coin-pill .i, .coin .i { width: 16px; height: 16px; color: #fff; fill: #fff; }
.coin-pill .i { padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--marker-deep)); }
.coin-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.coin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--marker-deep)); box-shadow: 0 3px 0 var(--accent-deep); }
.coin .i { width: 22px; height: 22px; }
.coin-box b { display: block; font: 700 24px/1 var(--display); }
.coin-box small { color: var(--ink-3); font-size: 12px; }
.shop-sec { margin-top: 34px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shop-item { display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); text-align: center; transition: transform .3s var(--spring); }
.shop-item:hover { transform: translateY(-4px); }
.shop-item.own { background: color-mix(in srgb, var(--green) 7%, var(--sheet)); }
.shop-item > b { font: 600 15px/1.2 var(--display); }
.shop-prev { width: 100%; height: 120px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--sheet-2); }
.lock.price { position: static; display: inline-flex; width: auto; height: 20px; padding: 0 7px; gap: 3px; margin: 0 auto 4px; border-radius: 999px; font: 700 10.5px/1 var(--display); background: linear-gradient(135deg, var(--accent), var(--marker-deep)); color: #fff; }
.pick .lock.price { position: absolute; top: 6px; right: 6px; margin: 0; }
.lock.price .i { width: 10px; height: 10px; fill: #fff; }
.checkin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 22px 24px; border-radius: 28px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--sheet)), var(--sheet) 60%); border: 3px solid var(--rim); box-shadow: var(--pop); }
.checkin h2 { font-size: 28px; margin: 8px 0 6px; }
.checkin p { color: var(--ink-2); font-size: 14px; max-width: 460px; }
.checkin-days { display: flex; gap: 6px; }
.checkin-days span { width: 46px; padding: 8px 0; border-radius: 14px; display: grid; justify-items: center; gap: 3px; background: var(--sheet-2); border: 2px solid var(--line); font: 700 13px/1 var(--display); color: var(--ink-3); }
.checkin-days span small { font-size: 10px; font-weight: 600; }
.checkin-days span.on { background: var(--accent); color: var(--on-accent); border-color: var(--rim); box-shadow: 0 3px 0 var(--accent-deep); }
.quest-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.quest-head .cm-h { margin: 0; }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.quest { display: grid; gap: 10px; padding: 18px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.quest.done:not(.claimed) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent), var(--pop); animation: questPulse 2s ease-in-out infinite; }
.quest.claimed { opacity: .65; }
@keyframes questPulse { 50% { transform: translateY(-2px); } }
.quest-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quest-top b { font: 700 18px/1.15 var(--display); }
.quest-coins { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--sheet)); color: var(--accent); font: 700 13px/1 var(--display); }
.quest-coins .i { width: 13px; height: 13px; fill: currentColor; }
.quest p { color: var(--ink-2); font-size: 14px; }
.quest-bar { height: 10px; border-radius: 999px; background: var(--sheet-3); overflow: hidden; }
.quest-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--marker)); transition: width .6s var(--spring); }
.quest-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 12.5px/1 var(--display); }
/* « Qui regarde ? » */
.who-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 40px 20px; text-align: center; }
.who-page h1 { font-size: clamp(42px, 6vw, 72px); color: var(--accent); text-shadow: 3px 3px 0 var(--rim), 6px 6px 0 var(--line-2); }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.who-card { display: grid; justify-items: center; gap: 10px; padding: 14px; border-radius: 24px; transition: transform .3s var(--spring), background .2s; }
.who-card:hover { transform: translateY(-6px) rotate(-2deg); background: var(--sheet); }
.who-pic { position: relative; width: 112px; height: 112px; border-radius: 30px; overflow: hidden; display: grid; place-items: center; background: var(--c); border: 4px solid var(--rim); box-shadow: var(--pop); color: #fff; font: 700 44px/1 var(--display); }
.who-pic img { width: 100%; height: 100%; object-fit: cover; }
.who-pic i { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sheet); color: var(--accent); }
.who-pic i .i { width: 14px; height: 14px; }
.who-card b { font: 600 17px/1.2 var(--display); }
.who-pin { display: flex; gap: 8px; }
.who-note { color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .coin-pill b { display: none; } .coin-pill { padding: 0 8px; } .checkin { grid-template-columns: 1fr; } .checkin-days span { width: 38px; } }

/* ══ connexion / inscription ══ */
body.bare .top, body.bare .foot, body.bare .tabbar, body.bare .ann-bubble { display: none; }
body.bare { padding-bottom: 0; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-main { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 40px clamp(20px, 6vw, 80px); }
.auth-logo .logo-mark { width: 48px; height: 48px; }
.auth-logo b { font-size: 30px; }
.auth-card { width: min(100%, 470px); padding: 30px 28px 24px; border-radius: 30px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); }
.auth-tabs { display: flex; width: fit-content; margin-bottom: 22px; }
.auth-tabs a { height: 38px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 14px/1 var(--display); color: var(--ink-2); }
.auth-tabs a[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.auth-card h1 { font-size: clamp(34px, 4vw, 46px); color: var(--accent); text-shadow: 3px 3px 0 var(--rim), 5px 5px 0 var(--line-2); }
.auth-lead { color: var(--ink-2); margin: 12px 0 22px; font-size: 15.5px; }
.auth-btns { display: grid; gap: 10px; }
.auth-btns .btn { height: 52px; justify-content: center; font-size: 16px; }
.auth-btns .btn svg { width: 22px; height: 22px; flex: none; }
.auth-discord { background: #5865f2; color: #fff; box-shadow: 0 5px 0 #3c45b8; }
.auth-discord:hover { box-shadow: 0 8px 0 #3c45b8, 0 18px 26px -14px rgba(88, 101, 242, .7); }
.auth-google { background: #fff; color: #3c4043; box-shadow: 0 5px 0 var(--line-2); }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--ink-3); font: 600 13px/1 var(--display); }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; border-top: 3px dotted var(--line-2); }
.auth-mail { display: grid; gap: 10px; }
.auth-mail .field { opacity: .6; }
.auth-mail .btn[disabled] { box-shadow: none; }
.auth-soon { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.auth-soon .tag { background: color-mix(in srgb, var(--marker) 30%, var(--sheet)); color: var(--marker-deep); border: 0; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--sheet-2); color: var(--ink-2); font-size: 13.5px; }
.auth-note .i { color: var(--accent); width: 18px; height: 18px; margin-top: 1px; }
.auth-note a { color: var(--accent); font-weight: 700; }
.auth-foot { color: var(--ink-3); font: 600 13px/1.5 var(--display); }
.auth-foot a:hover { color: var(--accent); }
.auth-art { position: relative; overflow: hidden; margin: 14px 14px 14px 0; border-radius: 36px; border: 3px solid var(--rim); box-shadow: var(--pop); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 35%, #1e1520), #1e1520 70%); }
.auth-wall { position: absolute; inset: -40px -20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-8deg) scale(1.08); opacity: .9; }
.auth-col { display: grid; gap: 14px; align-content: start; animation: wallUp var(--t, 40s) linear infinite; animation-direction: var(--d, normal); }
.auth-col img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 18px; border: 3px solid rgba(255,255,255,.85); }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,21,32,.85), transparent 45%); pointer-events: none; }
.auth-vn { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; }
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-main { align-items: center; }
}

@media (max-width: 1180px) {
  .cm-layout { grid-template-columns: minmax(0, 1fr); }
  .cm-side { position: static; }
  .help-art { grid-template-columns: minmax(0, 1fr); }
  .help-toc { position: static; }
}
@media (max-width: 760px) {
  .me-menu { position: fixed; top: calc(var(--nav-h) + 6px); right: 10px; left: 10px; width: auto; }
  .ann-bubble { left: 10px; right: 10px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .feed-item { grid-template-columns: 40px minmax(0, 1fr); }
  .feed-item > :last-child:not(.feed-body) { display: none; }
  .help-hero { border-radius: 24px; padding: 30px 14px; }
  .help-deco { display: none; }
}

/* ══ responsive ══ */
@media (max-width: 1180px) {
  .search-field { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-field span, .search-field kbd { display: none; }
  .t-feature { grid-column: span 12; min-height: 520px; }
  .t-tonight, .t-roulette, .t-soon, .t-top { grid-column: span 6; }
  .t-continue, .t-moods { grid-column: span 12; }
  .top-list { grid-template-columns: 1fr; }
  .top-list li:nth-child(2) { border-top: 1px solid var(--line); }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .side-list { position: static; max-height: 460px; }
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-preview { position: relative; top: 0; order: -1; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs > div:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .specs > div:nth-child(4) { border-left: 0; }
  .xs-head, .xs-row { grid-template-columns: 44px 84px minmax(0, 1fr) 120px 70px 34px; }
  .xs-dur, .xs-head span:nth-child(4) { display: none; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav button { flex: none; }
}
@media (max-width: 980px) {
  .tabs-nav a span { display: none; }
  .tabs-nav a { padding: 0 12px; }
  .dossier { grid-template-columns: minmax(0, 1fr); }
  .dos-side { position: static; grid-template-columns: 180px minmax(0, 1fr); align-items: end; }
  .pf-blocks .blk { grid-column: span 12 !important; }
  .sec-layout { grid-template-columns: minmax(0, 1fr); }
  .vault { position: relative; top: 0; height: 340px; }
  .plus-hero { grid-template-columns: minmax(0, 1fr); }
  .plus-card-zone { order: -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .top-in { gap: 10px; }
  .tabs-nav { display: none; }
  .logo b { font-size: 20px; }
  .plus-badge span { display: none; }
  .plus-badge { width: 38px; padding: 0; justify-content: center; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--sheet); border-top: 3px dotted var(--line-2); }
  .tabbar a, .tabbar button { display: grid; place-items: center; align-content: center; gap: 4px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
  .tabbar .i { width: 21px; height: 21px; }
  .tabbar [aria-current="page"] { color: var(--ink); background: var(--sheet-2); box-shadow: inset 0 3px 0 var(--accent); }
  .home { padding-top: calc(var(--nav-h) + 18px); }
  .home-search { min-width: 0; width: 100%; }
  .home-search kbd { display: none; }
  .bento { gap: 10px; }
  .bento > .tile { grid-column: span 12; }
  .tile { padding: 22px 16px 16px; }
  .t-feature { min-height: 460px; padding: 0; }
  .feat-copy { padding: 20px 18px 18px; }
  .feat-thumbs { top: 20px; right: 12px; gap: 5px; }
  .feat-thumbs button { width: 34px; }
  .feat-actions .btn, .hero-actions .btn { flex: 1 1 auto; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-nav .btn-icon { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
  .rail-track { grid-auto-columns: 124px; gap: 10px; }
  .rail-wide .rail-track { grid-auto-columns: 236px; }
  .dos-side { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
  .sheet-poster { padding: 18px 8px 8px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(n) { border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }
  .specs > div:nth-child(odd) { border-left: 0; }
  .specs > div:nth-child(-n+2) { border-top: 0; }
  .folder-body { padding: 14px 10px; }
  .xs-head { display: none; }
  .xs-row { grid-template-columns: 34px 72px minmax(0, 1fr) 30px; gap: 0 10px; padding: 8px 8px; }
  .xs-bar, .st, .xs-dur { display: none; }
  .xs-thumb { width: 72px; }
  .pl-row .hide-sm { display: none; }
  .pl-b { width: 36px; height: 36px; }
  .pl-skip, .pl-next, .pl-resume { bottom: 66px; }
  .pl-next { left: 10px; right: 10px; width: auto; }
  .pl-pop { left: 8px; right: 8px; width: auto; bottom: 62px; }
  .stage { padding: 6px; }
  .pf-head { margin-top: -54px; gap: 12px; padding: 0 12px; }
  .av { width: 100px; height: 100px; }
  .av .av-ph { font-size: 40px; }
  .pf-actions { width: 100%; }
  .pf-actions .btn { flex: 1; }
  .top4 { gap: 6px; }
  .days { overflow-x: auto; grid-template-columns: repeat(7, minmax(48px, 1fr)); }
  .day b { font-size: 24px; }
  .day em { display: none; }
  .slot-row { grid-template-columns: 1fr; gap: 6px; }
  .slot-time { text-align: left; padding-top: 6px; }
  .air { grid-template-columns: 52px minmax(0, 1fr); }
  .air img { width: 52px; }
  .air-actions { grid-column: 1 / -1; }
  .air-actions .btn { flex: 1; }
  .cmp th, .cmp td { padding: 10px; font-size: 13px; }
  .roul { padding: 18px; }
  .roul-stage { height: 270px; }
  .roul-ring { --r: 230px; width: 118px; height: 177px; margin: -88px 0 0 -59px; }
  .studio-bar { flex-wrap: wrap; }
  .page-head h1 { font-size: clamp(42px, 13vw, 60px); }
  .tbl .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── alerte « bientôt disponible » ───────────────────────────────────── */
.soon { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 22px; padding: 16px 18px;
  border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--marker) 26%, var(--sheet)), var(--sheet));
  border: 2px solid var(--rim); box-shadow: var(--lift); position: relative; overflow: hidden; }
.soon::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.soon-mark { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-deep); }
.soon-mark .i { width: 20px; height: 20px; }
.soon b { display: block; font-family: var(--display); font-size: 16.5px; margin-bottom: 3px; }
.soon p { color: var(--ink-2); font-size: 13.5px; max-width: 70ch; }
.soon-sm { margin-bottom: 16px; padding: 12px 14px; border-radius: 16px; }
.soon-sm .soon-mark { width: 30px; height: 30px; }
.soon-sm .soon-mark .i { width: 16px; height: 16px; }
.soon-sm b { font-size: 15px; }
@media (max-width: 560px) { .soon { gap: 10px; padding: 13px 14px; } .soon p { font-size: 13px; } }

/* ══ CONNEXION — « carte de membre » ═══════════════════════════════════
   A gauche la feuille d'adhesion. A droite la carte, posee sur un tapis :
   elle s'incline et son hologramme suit le curseur. */
.auth2 { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); isolation: isolate; }
.auth2-dots { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 2px, transparent 2.5px); background-size: 26px 26px;
  mask-image: linear-gradient(90deg, #000 0, #000 45%, transparent 75%); }

.auth2-main { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vh, 48px) clamp(20px, 6vw, 84px); justify-content: center; align-items: flex-start; }
.auth2-logo .logo-mark { width: 44px; height: 44px; }
.auth2-logo b { font-size: 27px; }

.auth2-sheet { width: min(100%, 500px); padding: 30px 30px 24px; border-radius: 30px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); position: relative; overflow: hidden; }
.auth2-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--marker) 18px 36px); opacity: .9; }
.auth2-tabs { display: flex; width: fit-content; margin-bottom: 22px; border-radius: 999px; padding: 3px; gap: 2px; }
.auth2-tabs a { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 14px/1 var(--display); color: var(--ink-2); transition: background .2s, color .2s; }
.auth2-tabs a[aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-deep); }
.auth2-sheet h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.02; letter-spacing: -.02em; }
.auth2-sheet h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.auth2-sheet h1 em::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .26em; z-index: -1; border-radius: 4px;
  background: color-mix(in srgb, var(--marker) 55%, transparent); transform: skewX(-8deg); }
.auth2-lead { color: var(--ink-2); margin: 14px 0 22px; font-size: 15.5px; max-width: 46ch; }
.auth2-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--sheet-3); color: var(--ink-2); font: 600 12.5px/1 var(--display); letter-spacing: .03em; }
.auth2-kicker .i { width: 15px; height: 15px; color: var(--accent); }

.auth2-btns { display: grid; gap: 10px; }
.auth2-btns .btn { height: 54px; justify-content: flex-start; padding: 0 18px; gap: 12px; font-size: 16px; position: relative; }
.auth2-btns .btn svg { width: 22px; height: 22px; flex: none; }
.auth2-reco { margin-left: auto; font: 600 11px/1 var(--display); font-style: normal; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.auth2-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--ink-3); font: 600 12.5px/1 var(--display); }
.auth2-sep::before, .auth2-sep::after { content: ""; flex: 1; border-top: 3px dotted var(--line-2); }
.auth2-mail { display: grid; gap: 10px; }
.auth2-micro { color: var(--ink-3); font-size: 12.5px; }
.auth2-micro[data-tone="bad"] { color: var(--danger); font-weight: 600; }
.auth2-micro .link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth2-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--green) 14%, var(--sheet)); }
.auth2-sent > .i { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 2px; }
.auth2-sent b { font-family: var(--display); }
.auth2-sent p { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.auth2-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--sheet-2); color: var(--ink-2); font-size: 13.5px; }
.auth2-note .i { color: var(--accent); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.auth2-note a { color: var(--accent); font-weight: 700; }

.auth2-steps { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 0; }
.auth2-steps li { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.auth2-steps li:last-child { padding-bottom: 0; }
.auth2-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; border-left: 3px dotted var(--line-2); }
.auth2-steps li[data-done="true"]:not(:last-child)::before { border-left-style: solid; border-color: var(--accent); }
.auth2-step-n { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 700 14px/1 var(--display);
  background: var(--sheet-3); color: var(--ink-3); border: 3px solid var(--rim); }
.auth2-step-n .i { width: 16px; height: 16px; }
.auth2-steps li[data-done="true"] .auth2-step-n { background: var(--accent); color: var(--on-accent); }
.auth2-steps li[data-now="true"] .auth2-step-n { background: var(--marker); color: var(--on-marker); animation: stepPulse 2.2s var(--ease) infinite; }
.auth2-steps b { font-family: var(--display); display: block; margin-top: 4px; }
.auth2-steps small { color: var(--ink-3); font-size: 13px; }
.auth2-steps li[data-done="false"][data-now="false"] b { color: var(--ink-3); }
@keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--marker) 70%, transparent); } 60% { box-shadow: 0 0 0 9px transparent; } }
.auth2-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.auth2-club { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: min(100%, 500px); }
.auth2-club li { display: flex; gap: 14px; align-items: flex-start; }
.auth2-club li > span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--line); color: var(--accent); }
.auth2-club .i { width: 18px; height: 18px; }
.auth2-club b { font-family: var(--display); font-size: 15px; }
.auth2-club p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
@media (max-height: 940px) { .auth2-club li:nth-child(3) { display: none; } }
@media (max-height: 820px) { .auth2-club { display: none; } }
.auth2-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font: 600 13px/1.5 var(--display); }
.auth2-foot a:hover { color: var(--accent); }

/* la scene : un tapis sombre, la carte au centre, la replique en bas */
.auth2-stage { position: sticky; top: 14px; height: calc(100vh - 28px); min-height: 560px; margin: 14px 14px 14px 0; border-radius: 36px; border: 3px solid var(--rim); box-shadow: var(--pop); overflow: hidden;
  display: grid; place-items: center; padding: 40px 28px 150px; perspective: 1100px;
  background:
    radial-gradient(70% 50% at 50% 42%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px),
    linear-gradient(165deg, #2c1b2f, #160e18 75%); }
.auth2-vn { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; }

.auth2-pass { --rx: 0deg; --ry: 0deg; --hx: 50%; --hy: 50%;
  position: relative; width: min(380px, 100%); aspect-ratio: 1.586; border-radius: 22px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-4deg); transform-style: preserve-3d;
  transition: transform .5s var(--ease); animation: passIn 1s var(--spring) both; }
.auth2-stage:hover .auth2-pass { transition-duration: .12s; }
@keyframes passIn { from { opacity: 0; transform: translateY(40px) rotateX(30deg) rotate(-10deg); } }
.auth2-pass-in { position: absolute; inset: 0; border-radius: inherit; padding: 18px 20px; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto 1fr auto; gap: 12px 16px;
  background: linear-gradient(140deg, #fff 0%, #fff4f7 55%, #f4ecff 100%); color: #3b2633;
  border: 3px solid #fff; box-shadow: 0 30px 50px -18px rgba(0,0,0,.75), 0 8px 0 #c9a7b6, inset 0 0 0 1px rgba(232, 57, 90, .2); overflow: hidden; }
.auth2-pass-in header { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.auth2-pass-in header .logo-mark { width: 26px; height: 26px; }
.auth2-pass-in header b { font: 700 18px/1 var(--display); color: #e8395a; }
.auth2-pass-kind { margin-left: auto; font: 600 10.5px/1 var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #a98a9a; }
.auth2-pass-portrait { grid-row: 2; align-self: start; width: 76px; aspect-ratio: 3/4; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffd1dd, #d9ccff); color: #fff; border: 3px solid #fff; box-shadow: 0 3px 0 #e8c6d2; }
.auth2-pass-portrait span { font: 700 34px/1 var(--display); text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.auth2-pass-portrait svg { width: 44px; height: 44px; }
.auth2-pass-rows { grid-row: 2; margin: 0; display: grid; gap: 7px; align-content: start; }
.auth2-pass-rows div { display: grid; gap: 1px; }
.auth2-pass-rows dt { font: 600 9.5px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #b399a6; }
.auth2-pass-rows dd { margin: 0; font: 700 14.5px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth2-pass-rows dd.num { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.auth2-pass-in footer { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.auth2-pass-stamp { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 8px;
  border: 2.5px solid currentColor; transform: rotate(-6deg); color: #a98a9a; }
.auth2-pass-stamp[data-stamp="validee"], .auth2-pass-stamp[data-stamp="validée"] { color: #23a47c; }
.auth2-pass-stamp[data-stamp="en attente"] { color: #8a6fe6; animation: stampIn .7s .6s var(--spring) both; }
.auth2-pass-stamp[data-stamp="ferme"], .auth2-pass-stamp[data-stamp="fermé"] { color: #e5484d; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } }
.auth2-pass-code { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.auth2-pass-code i { width: 3px; height: var(--h); background: #3b2633; border-radius: 1px; opacity: .78; }
.auth2-pass-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: radial-gradient(40% 55% at var(--hx) var(--hy), rgba(255,255,255,.9), transparent 60%),
    linear-gradient(115deg, transparent 20%, rgba(185, 162, 255, .55) 35%, rgba(255, 143, 177, .5) 45%, rgba(140, 230, 255, .45) 55%, transparent 70%);
  background-size: 100% 100%, 250% 250%; background-position: 0 0, var(--hx) var(--hy); }
.auth2-pass-perf { position: absolute; top: 50%; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #1d1220; transform: translateY(-50%); box-shadow: inset 2px 0 0 rgba(0,0,0,.2); }

@media (max-width: 960px) {
  .auth2 { grid-template-columns: 1fr; }
  .auth2-stage { position: relative; top: 0; height: auto; min-height: 0; margin: 0 12px 12px; padding: 30px 18px 34px; grid-row: 2; }
  .auth2-main { display: contents; }
  .auth2-logo { grid-row: 1; margin: 22px 20px 14px; }
  .auth2-sheet { grid-row: 3; margin: 6px auto 0; width: calc(100% - 24px); }
  .auth2-foot { grid-row: 4; margin: 18px 20px 28px; }
  .auth2-vn { display: none; }
  .auth2-pass { width: min(330px, 92%); transform: rotate(-2deg); animation: none; }
  .auth2-stage { padding: 34px 18px 40px; }
  .auth2-club { display: none; }
  .auth2-main { padding-top: 10px; }
}
@media (max-width: 520px) { .auth2-sheet { padding: 24px 20px 20px; border-radius: 24px; } .auth2-pass-in { grid-template-columns: 62px 1fr; padding: 14px 15px; } .auth2-pass-portrait { width: 62px; } }
@media (prefers-reduced-motion: reduce) { .auth2-pass, .auth2-pass-stamp, .auth2-steps li[data-now="true"] .auth2-step-n { animation: none; } }

/* ── thèmes : sélecteur dans le menu du profil ── */
.me-menu { width: 320px; }
.me-theme { padding: 9px 10px 4px; }
.me-theme > span { display: block; font: 600 13.5px/1 var(--display); color: var(--ink-2); margin-bottom: 9px; }
.me-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.me-th { display: grid; gap: 5px; justify-items: center; padding: 7px 4px 6px; border-radius: 14px; background: var(--sheet-2); border: 2px solid transparent;
  font: 600 11.5px/1 var(--display); color: var(--ink-2); transition: transform .2s var(--spring), border-color .15s; }
.me-th:hover { transform: translateY(-2px); }
.me-th[aria-checked="true"] { border-color: var(--accent); color: var(--ink); background: var(--sheet-3); }
.me-th-sw { display: flex; width: 100%; height: 22px; border-radius: 8px; overflow: hidden; border: 2px solid var(--rim); box-shadow: 0 2px 0 var(--line); }
.me-th-sw i { flex: 1; }
.me-th-sw i:first-child { flex: 1.4; }
/* transition douce quand on change de thème */
:root { --theme-fade: background-color .35s, color .35s, border-color .35s; }
.tile, .auth2-sheet, .me-menu, .top, .card, .vn-box { transition: var(--theme-fade); }

/* ══ MESSAGERIE ═══════════════════════════════════════════════════════ */
.dm-pill { position: relative; }
.dm-dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 10.5px/17px var(--display); text-align: center; border: 2px solid var(--bg); }

.dm-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 28px; }
.dm-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift);
  height: calc(100vh - var(--nav-h) - 54px); position: sticky; top: calc(var(--nav-h) + 20px); }
.dm-side header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dm-side header b { font: 800 22px/1 var(--display); }
.dm-search { height: 40px; }
.dm-list { flex: 1; overflow-y: auto; display: grid; gap: 4px; align-content: start; margin: 0 -6px; padding: 0 6px; }
.dm-empty { color: var(--ink-3); font-size: 13.5px; padding: 10px 4px; }

.dm-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 16px; text-align: left; transition: background .15s; }
.dm-row:hover { background: var(--sheet-2); }
.dm-row[aria-current="true"] { background: var(--sheet-3); }
.dm-row-body { min-width: 0; flex: 1; display: grid; }
.dm-row-body b { font: 600 14.5px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-row-body small { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-badge { flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 11px/20px var(--display); text-align: center; }

.dm-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--rim); box-shadow: 0 2px 0 var(--line); }
.dm-av img, .dm-av span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font: 700 16px/1 var(--display); color: #fff; }
.dm-av[data-online="true"]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--sheet); }

.dm-main { display: flex; flex-direction: column; border-radius: 24px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift);
  height: calc(100vh - var(--nav-h) - 54px); overflow: hidden; }
.dm-none { flex: 1; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 40px 24px; color: var(--ink-2); }
.dm-none > .i { width: 40px; height: 40px; color: var(--accent); }
.dm-none b { font: 800 20px/1.1 var(--display); color: var(--ink); }
.dm-none p { font-size: 13.5px; max-width: 42ch; }

.dm-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 3px solid var(--line); background: var(--sheet-2); }
.dm-top > div { flex: 1; min-width: 0; }
.dm-top b { display: block; font: 700 16px/1.2 var(--display); }
.dm-top small { color: var(--ink-3); font-size: 12.5px; }
.dm-back { display: none; }

.dm-scroll { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 3px; }
.dm-first { margin: auto; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.dm-day { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--ink-3); font: 600 11.5px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.dm-day::before, .dm-day::after { content: ""; flex: 1; border-top: 2px dotted var(--line-2); }

.dm-msg { position: relative; max-width: min(76%, 560px); align-self: flex-start; margin-bottom: 4px; }
.dm-msg[data-mine="true"] { align-self: flex-end; }
.dm-bubble { position: relative; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--sheet-3); color: var(--ink);
  font-size: 14.5px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.dm-msg[data-mine="true"] .dm-bubble { border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--on-accent); }
.dm-meta { display: flex; align-items: center; gap: 7px; height: 15px; margin-top: 2px; padding: 0 4px; color: var(--ink-3); font-size: 11px; opacity: 0; transition: opacity .15s; }
.dm-msg[data-mine="true"] .dm-meta { justify-content: flex-end; }
.dm-msg:hover .dm-meta, .dm-msg:focus-within .dm-meta { opacity: 1; }
.dm-del, .dm-react-btn { color: inherit; opacity: .7; }
.dm-del:hover { color: var(--danger); opacity: 1; }
.dm-del .i { width: 13px; height: 13px; }
.dm-react-btn { position: absolute; top: 50%; translate: 0 -50%; right: -30px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sheet); border: 2px solid var(--line); color: var(--ink-2); opacity: 0; transition: opacity .15s, transform .15s var(--spring); }
.dm-msg[data-mine="true"] .dm-react-btn { right: auto; left: -30px; }
.dm-msg:hover .dm-react-btn, .dm-react-btn:focus-visible { opacity: 1; }
.dm-react-btn:hover { transform: translateY(-50%) scale(1.14); color: var(--accent); }
.dm-react-btn .i { width: 13px; height: 13px; }

.dm-reacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: -2px; padding: 0 2px; }
.dm-msg[data-mine="true"] .dm-reacts { justify-content: flex-end; }
.dm-reacts button { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--sheet-2); border: 2px solid var(--line); color: var(--ink-2); font: 700 11.5px/1 var(--display); }
.dm-reacts button .i { width: 13px; height: 13px; }
.dm-reacts button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--sheet)); }
.dm-picker { position: absolute; z-index: 5; bottom: calc(100% - 4px); left: 0; display: flex; gap: 2px; padding: 5px; border-radius: 14px;
  background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--pop); animation: pickIn .18s var(--spring); }
.dm-msg[data-mine="true"] .dm-picker { left: auto; right: 0; }
@keyframes pickIn { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.dm-picker button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-2); transition: background .12s, transform .15s var(--spring); }
.dm-picker button:hover { background: var(--sheet-3); color: var(--accent); transform: scale(1.16); }
.dm-picker .i { width: 16px; height: 16px; }

.dm-typing { padding: 2px 18px 6px; color: var(--ink-3); font-size: 12.5px; font-style: italic; }
.dm-compose { display: flex; gap: 10px; padding: 12px 14px; border-top: 3px solid var(--line); background: var(--sheet-2); }
.dm-compose .field { flex: 1; height: 46px; }
.dm-compose .btn { width: 46px; height: 46px; padding: 0; justify-content: center; }

@media (max-width: 900px) {
  .dm-page { grid-template-columns: 1fr; position: relative; }
  .dm-side, .dm-main { height: calc(100vh - var(--nav-h) - 90px); position: static; }
  .dm-main { display: none; }
  .dm-page.on-thread .dm-side { display: none; }
  .dm-page.on-thread .dm-main { display: flex; }
  .dm-back { display: grid; }
  .dm-msg { max-width: 86%; }
  .dm-react-btn { opacity: 1; }
}

/* ══ FONCTIONS PROPRES À CHINOKAI ═════════════════════════════════════ */

/* zone sans spoil : titre et vignette cachés pour les épisodes en avance */
.spoil-chip[aria-pressed="true"] { background: var(--marker); border-color: var(--marker-deep); color: var(--on-marker); }
.xs-row.is-veiled .xs-thumb img { filter: blur(11px) saturate(.5); transform: scale(1.12); }
.xs-row.is-veiled .xs-title b { color: var(--ink-3); }
.xs-row.is-veiled .xs-thumb { position: relative; }
.xs-row.is-veiled .xs-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 6px, color-mix(in srgb, var(--sheet) 55%, transparent) 6px 12px); }
.xs-hide { display: none; }
.xs-reveal { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--sheet-3); color: var(--ink-2); font: 600 11.5px/1 var(--display); transition: background .15s, color .15s; }
.xs-reveal:hover { background: var(--marker); color: var(--on-marker); }
.xs-reveal .i { width: 13px; height: 13px; }

/* marque-pages horodatés */
.pl-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--star); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.marks { margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); }
.marks header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marks header b { display: flex; align-items: center; gap: 8px; font: 700 15.5px/1 var(--display); }
.marks header .i { width: 17px; height: 17px; color: var(--accent); }
.mk-empty { margin-top: 10px; color: var(--ink-3); font-size: 13px; max-width: 70ch; }
.mk-empty kbd { font: 700 11px/1 var(--display); padding: 2px 6px; border-radius: 5px; background: var(--sheet-3); border: 2px solid var(--line); }
.marks ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.marks li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; transition: background .15s; }
.marks li:hover { background: var(--sheet-2); }
.mk-t { flex: none; min-width: 54px; padding: 4px 8px; border-radius: 8px; background: var(--sheet-3); color: var(--ink);
  font: 700 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
button.mk-t:hover { background: var(--accent); color: var(--on-accent); }
.mk-note { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-note i { color: var(--ink-3); font-style: italic; }
.mk-edit { width: 100%; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--sheet); border: 2px solid var(--accent); }
.marks .btn-icon.sm { width: 28px; height: 28px; }
.marks .btn-icon.sm .i { width: 14px; height: 14px; }
.mk-form { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--sheet-2); border: 2px dashed var(--line-2); }
.mk-form .field { flex: 1; height: 38px; }
@media (max-width: 640px) {
  .marks header { flex-wrap: wrap; }
  .mk-form { flex-wrap: wrap; }
  .mk-form .field { flex-basis: 100%; }
}


/* ══ page d'arrivée publique en 3D (web/js/pages/landing.js) ═════════════
   Une salle panoramique : le visiteur est au centre d'un cylindre d'affiches.
   Tout est en transformations 3D du navigateur, aucune bibliothèque.
   Les mouvements fins sont pilotés par landing.js via des variables CSS. */
.l3 { --gut: clamp(18px, 4vw, 64px); position: relative; }
.l3 .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.l3-over { margin: 0 0 8px; font: 700 12.5px/1 var(--display); letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); }

/* ── la salle ───────────────────────────────────────────────────────── */
.l3-hero { position: relative; display: grid; place-items: center;
  min-height: min(100svh, 940px); padding: clamp(80px, 12vh, 140px) var(--gut); overflow: clip; }
.l3-hero.is-drag { cursor: grabbing; user-select: none; }
.l3-stage { position: absolute; inset: 0; z-index: 0; perspective: var(--persp, 820px);
  perspective-origin: 50% 46%; will-change: opacity; }
.l3-scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.l3-ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.l3-p { position: absolute; left: 0; top: 0; margin: 0; width: var(--pw, 130px); aspect-ratio: 2 / 3;
  transform-style: preserve-3d; backface-visibility: hidden; opacity: 0; }
.l3-p img, .l3-p > span { display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 13px; border: 1.5px solid color-mix(in srgb, var(--accent) 24%, transparent);
  background: var(--sheet-2); box-shadow: 0 18px 34px -20px #0009;
  filter: brightness(var(--lit, 1)) saturate(.96); }
.l3-p > span { background: linear-gradient(150deg, hsl(var(--h, 0) 46% 42%), hsl(var(--h, 0) 40% 24%)); }

/* le sol : une lueur posée sous le cylindre */
.l3-floor { position: absolute; left: 50%; top: 46%; width: min(190vw, 1900px); aspect-ratio: 1;
  transform: translate3d(-50%, -50%, -340px) rotateX(78deg); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(42px); opacity: .62; }

/* pétales qui descendent très lentement, pour habiter l'espace */
.l3-petals { position: absolute; inset: -10% 0 0; z-index: 1; pointer-events: none; overflow: hidden; }
.l3-petals i { position: absolute; left: var(--x); top: -8%; width: calc(9px * var(--s)); height: calc(9px * var(--s));
  border-radius: 60% 10% 60% 10%; background: color-mix(in srgb, var(--accent) 52%, #fff);
  opacity: .32; transform: rotate(var(--r)); }
@media (prefers-reduced-motion: no-preference) {
  .l3-petals i { animation: l3-fall var(--t) linear var(--dl) infinite; }
  @keyframes l3-fall {
    0% { transform: translate3d(0, 0, 0) rotate(var(--r)); opacity: 0; }
    12% { opacity: .34; }
    100% { transform: translate3d(calc(14px * var(--s) * 4), 118svh, 0) rotate(calc(var(--r) + 420deg)); opacity: 0; }
  }
}
/* voile : garde le texte lisible par-dessus les affiches */
.l3-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 44%, color-mix(in srgb, var(--bg) 93%, transparent), transparent 74%),
    linear-gradient(to bottom, var(--bg) 0, transparent 22%, transparent 72%, var(--bg) 100%); }

/* ── l'accroche ─────────────────────────────────────────────────────── */
.l3-copy { position: relative; z-index: 3; max-width: 880px; text-align: center; will-change: transform, opacity; }
.l3-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 16px 7px 12px;
  border-radius: 999px; border: 2px solid var(--line); color: var(--ink-2);
  background: color-mix(in srgb, var(--sheet) 72%, transparent); backdrop-filter: blur(7px);
  font: 700 13px/1 var(--display); }
.l3-kicker svg { width: 15px; height: 15px; color: var(--accent); }

.l3-title { margin: 0 0 20px; font: 700 clamp(38px, 7.6vw, 92px)/1.02 var(--display);
  letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.l3-line { display: block; }
.l3-w { display: inline-block; }
.l3-em em { font-style: normal; color: var(--accent); }
.l3-em em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .26em; z-index: -1;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.l3-em em { position: relative; }
.l3-lead { max-width: 54ch; margin: 0 auto clamp(26px, 4vh, 36px);
  font-size: clamp(15.5px, 1.5vw, 18.5px); line-height: 1.64; color: var(--ink-2); text-wrap: pretty; }

.l3-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.l3-acts .btn { height: 52px; padding: 0 24px; font-size: 15.5px; }
.l3-ghost { background: color-mix(in srgb, var(--sheet) 76%, transparent); backdrop-filter: blur(7px); }
.l3-cta { position: relative; overflow: hidden; }
.l3-cta::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 42%;
  background: linear-gradient(100deg, transparent, #ffffff52, transparent); transform: skewX(-18deg); }
.l3-mirror { margin: clamp(20px, 3vh, 28px) 0 0; font-size: 14px; color: var(--ink-3); }
.l3-mirror b { color: var(--ink-2); }
.l3-mirror a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; }
.l3-mirror a svg { width: 14px; height: 14px; }
.l3-mirror a:hover { text-decoration: underline; text-underline-offset: 3px; }

.l3-hint { position: absolute; z-index: 3; left: 50%; bottom: clamp(18px, 4vh, 34px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  font: 600 12.5px/1 var(--display); letter-spacing: .04em; color: var(--ink-3);
  transition: opacity .5s ease; }
.l3-hint.gone { opacity: 0; }
.l3-hint span { display: block; width: 30px; height: 15px; border-radius: 999px; border: 2px solid var(--line-2); position: relative; }
.l3-hint span::after { content: ""; position: absolute; top: 50%; left: 4px; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .l3-hint span::after { animation: l3-swipe 2.6s ease-in-out infinite; }
  @keyframes l3-swipe { 0%, 100% { left: 4px; } 50% { left: 17px; } }
}

/* entrée de la page : le texte monte mot par mot */
@media (prefers-reduced-motion: no-preference) {
  .l3 .l3-w { opacity: 0; transform: translate3d(0, .5em, -60px) rotateX(-40deg); }
  .l3.is-in .l3-w { animation: l3-word .78s cubic-bezier(.19, 1, .22, 1) forwards; animation-delay: calc(var(--n) * 70ms + 120ms); }
  @keyframes l3-word { to { opacity: 1; transform: none; } }
  .l3 :is(.l3-kicker, .l3-lead, .l3-acts, .l3-mirror) { opacity: 0; transform: translateY(14px); }
  .l3.is-in :is(.l3-kicker, .l3-lead, .l3-acts, .l3-mirror) { animation: l3-rise .7s cubic-bezier(.19, 1, .22, 1) forwards; }
  .l3.is-in .l3-kicker { animation-delay: 60ms; }
  .l3.is-in .l3-lead { animation-delay: .56s; }
  .l3.is-in .l3-acts { animation-delay: .66s; }
  .l3.is-in .l3-mirror { animation-delay: .76s; }
  @keyframes l3-rise { to { opacity: 1; transform: none; } }
  .l3-cta::after { animation: l3-sheen 4.8s cubic-bezier(.4, 0, .2, 1) 1.8s infinite; }
  @keyframes l3-sheen { 0%, 64% { left: -60%; } 100% { left: 130%; } }
}

/* ── les arguments : cartes qui s'inclinent sous le curseur ─────────── */
.l3-points { padding: clamp(52px, 10vh, 118px) var(--gut); text-align: center; }
.l3-points h2, .l3-peek h2, .l3-end h2 { margin: 0 0 clamp(26px, 4vh, 40px);
  font: 700 clamp(26px, 3.4vw, 40px)/1.14 var(--display); color: var(--ink); letter-spacing: -.015em; }
.l3-points ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(282px, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none; text-align: left; perspective: 900px; }
.l3-tilt { position: relative; overflow: hidden; padding: 24px; border-radius: 20px;
  border: 2px solid var(--line); background: var(--sheet); box-shadow: var(--lift);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .16s ease-out, box-shadow .3s ease, border-color .3s ease; }
.l3-tilt:hover { border-color: var(--line-2); box-shadow: var(--pop); }
.l3-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%); }
.l3-tilt:hover .l3-shine { opacity: 1; }
.l3-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 15px;
  border-radius: 14px; color: var(--accent); transform: translateZ(26px);
  background: color-mix(in srgb, var(--accent) 13%, var(--sheet-2));
  border: 1.5px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.l3-ico svg { width: 22px; height: 22px; }
.l3-tilt b { display: block; margin-bottom: 7px; font: 700 17px/1.3 var(--display); color: var(--ink); transform: translateZ(16px); }
.l3-tilt p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); transform: translateZ(8px); }

/* ── le carrousel 3D du catalogue ───────────────────────────────────── */
.l3-peek { padding: clamp(18px, 3vh, 36px) 0 clamp(52px, 9vh, 110px); text-align: center; }
.l3-peek header { margin-bottom: clamp(22px, 4vh, 38px); }
.l3-peek header h2 { margin-bottom: 9px; }
.l3-peek header p:last-child { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.l3-flow { display: flex; align-items: center; gap: 0;
  padding: clamp(22px, 4vh, 44px) 0; overflow-x: auto; overflow-y: hidden;
  perspective: 1150px; perspective-origin: 50% 50%; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.l3-flow::-webkit-scrollbar { display: none; }
.l3-flow:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.l3-flow-pad { flex: 0 0 42vw; }
.l3-fp { flex: 0 0 clamp(142px, 15vw, 212px); margin: 0 clamp(-34px, -2.6vw, -14px); scroll-snap-align: center; cursor: pointer;
  transform-style: preserve-3d; }
.l3-fp-in { transform: rotateY(var(--fr, 0deg)) translateZ(var(--fz, 0px)); opacity: var(--fo, 1);
  transition: transform .18s ease-out, opacity .18s ease-out; transform-style: preserve-3d; }
.l3-fp img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 17px;
  border: 2px solid var(--line); background: var(--sheet-2); box-shadow: 0 26px 44px -26px #0009; }
.l3-fp.is-mid .l3-fp-in { filter: drop-shadow(0 0 32px color-mix(in srgb, var(--accent) 34%, transparent)); }
.l3-fp.is-mid img { border-color: var(--accent); }
.l3-fp figcaption { margin-top: 12px; font: 600 13.5px/1.35 var(--display); color: var(--ink-3);
  opacity: 0; transition: opacity .25s ease;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.l3-fp.is-mid figcaption { opacity: 1; color: var(--ink); }

/* ── le dernier appel : la carte de membre en 3D ─────────────────────── */
.l3-end { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px); align-items: center; padding: clamp(40px, 8vh, 96px) var(--gut); }
.l3-card-zone { perspective: 1000px; display: grid; place-items: center; padding: 18px; cursor: pointer; }
.l3-card { position: relative; width: min(100%, 370px); aspect-ratio: 1.6 / 1; transform-style: preserve-3d;
  transform: rotateX(var(--cx, 0deg)) rotateY(calc(var(--cy, 0deg) + var(--flip, 0deg)));
  transition: transform .5s cubic-bezier(.3, 1, .3, 1); }
.l3-card.flip { --flip: 180deg; }
.l3-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px; border-radius: 20px; overflow: hidden; backface-visibility: hidden;
  border: 2px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, var(--sheet)), var(--sheet-2) 62%, var(--sheet));
  box-shadow: 0 34px 56px -28px #000b; }
.l3-back { transform: rotateY(180deg); justify-content: center; gap: 14px; }
.l3-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: linear-gradient(105deg, transparent 32%, #ffffff5e 46%, color-mix(in srgb, var(--accent) 55%, transparent) 52%, transparent 66%);
  background-size: 260% 100%; background-position: var(--hx, 50%) 0; }
.l3-card-top { display: flex; align-items: center; justify-content: space-between; }
.l3-card-logo { display: inline-flex; align-items: center; gap: 7px; font: 700 15px/1 var(--display); color: var(--ink); }
.l3-card-logo svg { width: 22px; height: 22px; }
.l3-chip { width: 36px; height: 27px; border-radius: 6px; border: 1px solid #0003;
  background: linear-gradient(135deg, #f2d389, #c99b4a 48%, #f6e2ad); box-shadow: inset 0 0 0 2px #ffffff40; }
.l3-card-mid small { display: block; font: 700 10.5px/1 var(--display); letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3); }
.l3-card-mid b { font: 700 clamp(19px, 2.2vw, 25px)/1.2 var(--display); color: var(--ink); }
.l3-card-bot { display: flex; justify-content: space-between; font: 600 11.5px/1 var(--display);
  letter-spacing: .08em; color: var(--ink-3); }
.l3-stripe { height: 34px; margin: 0 -20px; background: #1b1016; }
.l3-back p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.l3-sign { font: 400 24px/1 var(--hand, var(--display)); color: var(--ink); opacity: .8; }

.l3-end-copy h2 { margin-bottom: 12px; }
.l3-end-copy > p { max-width: 50ch; margin: 0 0 clamp(22px, 3.4vh, 30px); font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.l3-end-copy .l3-acts { justify-content: flex-start; }
.l3-end { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.19, 1, .22, 1); }
.l3-end.in { opacity: 1; transform: none; }

.l3-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: clamp(12px, 3vh, 34px); padding: clamp(20px, 3vh, 32px) var(--gut) clamp(32px, 5vh, 52px);
  border-top: 2px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.l3-foot-logo { display: inline-flex; align-items: center; gap: 7px; font: 700 15px/1 var(--display); color: var(--ink-2); }
.l3-foot-logo svg { width: 21px; height: 21px; }
.l3-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.l3-foot a { color: var(--ink-2); }
.l3-foot a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* apparition au défilement (cartes) */
.l3-tilt[data-reveal] { opacity: 0; transform: perspective(900px) translateY(24px) rotateX(-6deg); }
.l3-tilt[data-reveal].in { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .6s ease calc(var(--k) * 70ms), transform .6s cubic-bezier(.19, 1, .22, 1) calc(var(--k) * 70ms); }
.l3-peek { opacity: 0; transition: opacity .7s ease; }
.l3-peek.in { opacity: 1; }

/* ── téléphones et tablettes ────────────────────────────────────────── */
@media (max-width: 900px) {
  .l3-end { grid-template-columns: 1fr; text-align: center; }
  .l3-end-copy > p { margin-left: auto; margin-right: auto; }
  .l3-end-copy .l3-acts { justify-content: center; }
  .l3-card-zone { order: -1; }
  .l3-acts .btn { flex: 1 1 210px; justify-content: center; }
  .l3-flow-pad { flex-basis: 30vw; }
}
@media (max-width: 560px) {
  .l3-hero { min-height: min(96svh, 760px); padding-top: clamp(64px, 11vh, 96px); }
  .l3-title { font-size: clamp(33px, 10.5vw, 46px); }
  .l3-points { padding-top: clamp(34px, 6vh, 56px); }
  .l3-tilt { padding: 19px; }
  .l3-hint { display: none; }
}

/* sobriété si l'utilisateur limite les animations : rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  .l3-scene, .l3-copy, .l3-card, .l3-fp-in, .l3-tilt { transition: none !important; }
  .l3-petals, .l3-hint { display: none; }
  .l3-end, .l3-peek, .l3-tilt[data-reveal] { opacity: 1; transform: none; }
}

/* visiteur : la page d'arrivée porte son propre pied de page, pas deux */
#view:has(.l3) ~ .foot-guest { display: none; }
.foot-guest nav a { color: var(--ink-2); }

/* les affiches se chevauchent : la centrale passe devant ses voisines */
.l3-fp { z-index: 1; }
.l3-fp.is-mid { z-index: 4; }

/* barre du visiteur sur petit écran : « Se connecter » disparaît (la page l'offre déjà) */
@media (max-width: 560px) {
  .is-guest .top-right .btn-ghost.sm { display: none; }
  .is-guest .top-right { gap: 8px; }
}

/* ══ TheScent — l'heure bleue ════════════════════════════════════════════
   Même site, même code : seule l'apparence change quand le domaine est
   thescent.cc (brand.js pose html.thescent et data-brand="thescent").

   Chinokai est rond, pastel, visual novel. TheScent est net, nocturne,
   néon : angles coupés, traits lumineux, typographie géométrique.
   Les couleurs viennent du thème « scent » (themes.js), pas d'ici : cette
   feuille ne touche qu'aux formes, aux polices et aux lumières. */

html.thescent {
  --display: "Sora", "Outfit", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", monospace;
  --hand: "Zen Maru Gothic", "Outfit", sans-serif;
  --jp: "Zen Maru Gothic", "Sora", sans-serif;
  /* angles coupés plutôt qu'arrondis généreux */
  --r-sm: 4px; --r: 8px; --r-lg: 12px;
  --neon: 0 0 0 1px color-mix(in srgb, var(--accent) 36%, transparent), 0 0 22px -4px color-mix(in srgb, var(--accent) 42%, transparent);
}
html.thescent body { letter-spacing: -.004em; }

/* titres : larges, serrés, avec un filet lumineux sous les accents */
html.thescent :is(h1, h2, h3, .l3-title, .vn-name) { letter-spacing: -.028em; font-weight: 700; }
html.thescent .l3-title { font-weight: 800; }
html.thescent .l3-em em { text-shadow: 0 0 38px color-mix(in srgb, var(--accent) 55%, transparent); }
html.thescent .l3-em em::after {
  height: 3px; bottom: -.02em; border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--marker) 82%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
html.thescent .l3-over { letter-spacing: .22em; }

/* les surlignages ronds de Chinokai deviennent des filets néon */
html.thescent .l3-kicker { border-radius: 2px; border-width: 1px;
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: inset 0 0 18px -8px color-mix(in srgb, var(--accent) 50%, transparent); }

/* boutons : rectangles nets, lueur au survol, plus d'ombre « gomme » */
html.thescent .btn { border-radius: 3px; border-width: 1px; font-weight: 600; letter-spacing: .005em; box-shadow: none; }
html.thescent .btn-primary, html.thescent .btn-accent {
  color: #04221f; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--marker)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 10px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
html.thescent :is(.btn-primary, .btn-accent):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 34px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
html.thescent .btn-ghost { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
html.thescent .btn-ghost:hover { border-color: var(--accent); box-shadow: var(--neon); }
html.thescent .btn-icon { border-radius: 3px; border-width: 1px; box-shadow: none; }
html.thescent .btn-icon:hover { transform: translateY(-2px); box-shadow: var(--neon); }
html.thescent .btn-icon.on { color: #04221f; }

/* cartes et panneaux : liseré fin, coin coupé en haut à droite */
html.thescent :is(.l3-tilt, .card, .panel, .sheet, .box, .me-menu, .vn-box, .soon) {
  border-radius: 6px; border-width: 1px; box-shadow: 0 20px 40px -28px #000c; }
html.thescent .l3-tilt { position: relative; }
html.thescent .l3-tilt::after {
  content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px; pointer-events: none;
  background: linear-gradient(225deg, color-mix(in srgb, var(--accent) 55%, transparent) 0 1px, transparent 1px); }
html.thescent .l3-ico { border-radius: 4px; border-width: 1px; }

/* affiches : cadre net et halo froid */
html.thescent :is(.l3-p img, .l3-p > span, .l3-fp img) { border-radius: 6px; border-width: 1px; }
html.thescent .l3-fp.is-mid .l3-fp-in { filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 48%, transparent)); }

/* le sol de la salle : nappe turquoise plutôt que lueur rose */
html.thescent .l3-floor { opacity: .5; filter: blur(50px); }
/* pétales → étincelles froides, plus petites et plus vives */
html.thescent .l3-petals i { border-radius: 50%; width: calc(5px * var(--s)); height: calc(5px * var(--s));
  background: var(--accent); opacity: .5; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 80%, transparent); }

/* un filet lumineux en haut de page, signature de la marque */
html.thescent .top { border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
html.thescent .top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent) 25%, color-mix(in srgb, var(--marker) 70%, transparent) 75%, transparent); }
html.thescent .top { position: relative; }

/* la carte du club : métal sombre et hologramme froid */
html.thescent .l3-face { border-radius: 8px; border-width: 1px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, var(--sheet)), var(--sheet-2) 55%, #04161b); }
html.thescent .l3-chip { border-radius: 3px;
  background: linear-gradient(135deg, #cfeeea, #6fb9b2 48%, #d8f3ef); }
html.thescent .l3-stripe { background: #02100f; }

/* égaliseur : trois barres qui respirent, posées près du logo (clin d'œil au nom) */
html.thescent .logo { position: relative; }
html.thescent .logo::after {
  content: ""; position: absolute; right: -16px; bottom: 5px; width: 11px; height: 13px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 3px 60% no-repeat,
    linear-gradient(var(--marker), var(--marker)) 4px 100% / 3px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) 8px 100% / 3px 40% no-repeat;
  opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  html.thescent .logo::after { animation: ts-eq 1.5s ease-in-out infinite alternate; }
  @keyframes ts-eq {
    0% { background-size: 3px 60%, 3px 100%, 3px 40%; }
    50% { background-size: 3px 100%, 3px 45%, 3px 85%; }
    100% { background-size: 3px 35%, 3px 80%, 3px 100%; }
  }
}
@media (max-width: 560px) { html.thescent .logo::after { display: none; } }

/* champs de saisie : ligne lumineuse au focus */
html.thescent :is(input, textarea, select, .field) { border-radius: 3px; }
html.thescent :is(input, textarea, select):focus-visible { outline-color: var(--accent); box-shadow: var(--neon); }

/* pastilles, puces et jetons : nets eux aussi */
html.thescent :is(.chip, .tag, .badge, .pill, .coin-pill, .plus-badge, .spoil-chip) { border-radius: 3px; }
html.thescent :is(.dm-dot, .l3-hint span::after) { border-radius: 50%; }
html.thescent .l3-hint span { border-radius: 2px; }

/* le pied de page prend un filet du haut lui aussi */
html.thescent :is(.foot, .l3-foot) { border-top-color: color-mix(in srgb, var(--accent) 20%, var(--line)); }


/* ══ TheScent : le personnage dans la salle 3D (web/js/mascot.js) ═══════
   L'image est un visuel officiel sous licence, déposé par l'exploitant du site
   dans web/img/thescent/diva.png ; elle n'est pas dans le dépôt. Sans fichier,
   rien ne s'affiche. Ici on ne fait que la mettre en scène : elle flotte dans la
   salle, deux anneaux lumineux tournent autour d'elle, son ombre bat la mesure. */
.diva-box { position: absolute; left: 50%; top: 46%; z-index: 2; width: 0; height: 0;
  transform-style: preserve-3d; pointer-events: none;
  transform: translate3d(clamp(240px, 30vw, 520px), 0, 170px); }
.diva-in { position: absolute; left: 0; top: 0; width: clamp(210px, 21vw, 360px);
  transform: translate(-50%, -52%); transform-style: preserve-3d; }
.diva-img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 30px 40px #000b) drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 34%, transparent)); }

/* anneaux de scène : deux cercles lumineux inclinés, à ses pieds */
.diva-ring, .diva-ring.r2 { position: absolute; left: 50%; bottom: -4%; width: 108%; aspect-ratio: 1;
  transform: translateX(-50%) rotateX(80deg); border-radius: 50%; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.diva-ring.r2 { width: 78%; bottom: 1%; border-color: color-mix(in srgb, var(--marker) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--marker) 40%, transparent); }
/* nappe de lumière sous ses pieds */
.diva-shadow { position: absolute; left: 50%; bottom: -6%; width: 86%; height: 7%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%);
  filter: blur(10px); }
.diva-float { transform-style: preserve-3d; }

@media (prefers-reduced-motion: no-preference) {
  /* entrée : elle apparaît en avançant vers nous */
  .diva-in { animation: diva-enter 1.2s cubic-bezier(.19, 1, .22, 1) .3s both; }
  @keyframes diva-enter {
    from { opacity: 0; transform: translate(-50%, -44%) scale(.86) rotateY(-26deg); }
    to { opacity: 1; transform: translate(-50%, -52%) scale(1) rotateY(0deg); }
  }
  /* elle flotte, très lentement */
  .diva-float { animation: diva-float 5.4s ease-in-out 1.5s infinite; }
  @keyframes diva-float {
    0%, 100% { transform: translateY(0) rotateZ(-.9deg); }
    50% { transform: translateY(-16px) rotateZ(.9deg); }
  }
  /* les anneaux tournent, en sens inverse l'un de l'autre */
  .diva-ring { animation: diva-spin 11s linear infinite; }
  .diva-ring.r2 { animation: diva-spin 7.5s linear reverse infinite; }
  @keyframes diva-spin {
    from { transform: translateX(-50%) rotateX(80deg) rotateZ(0deg); }
    to { transform: translateX(-50%) rotateX(80deg) rotateZ(360deg); }
  }
  /* l'ombre respire avec elle */
  .diva-shadow { animation: diva-shadow 5.4s ease-in-out 1.5s infinite; }
  @keyframes diva-shadow { 0%, 100% { opacity: .85; width: 86%; } 50% { opacity: .5; width: 72%; } }
}
.diva-box.still .diva-in, .diva-box.still .diva-float,
.diva-box.still .diva-ring, .diva-box.still .diva-shadow { animation: none; }

/* écrans étroits : elle passe derrière le texte, en filigrane */
@media (max-width: 900px) {
  .diva-box { transform: translate3d(0, -30px, -140px); }
  .diva-in { width: clamp(190px, 52vw, 290px); opacity: .34; }
  .diva-ring, .diva-shadow { display: none; }
}

/* ── tickets de support (centre d'aide et administration) ── */
.tk-h { font: 700 15px/1.2 var(--display, inherit); margin: 22px 0 8px; }
.tk-row { cursor: pointer; }
.tk-row:hover td, .tk-row:focus-visible td { background: var(--sheet-2); }
.tk-new { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--body); font-style: normal; }
.tk-dialog { width: min(640px, calc(100% - 24px)); max-height: min(80vh, 760px); padding: 0; border: 3px solid var(--rim); border-radius: 10px; background: var(--sheet); color: var(--ink); display: flex; flex-direction: column; animation: pop .25s var(--spring); }
.tk-dialog:not([open]) { display: none; }
.tk-dialog::backdrop { background: rgb(10 6 14 / .55); backdrop-filter: blur(3px); }
.tk-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.tk-dialog > header b { display: block; font-size: 15px; }
.tk-dialog > header small { color: var(--ink-3); font-size: 12px; }
.tk-thread { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.tk-msg { max-width: 85%; align-self: flex-end; padding: 9px 12px; border-radius: 10px 10px 2px 10px; background: var(--sheet-2); border: 1px solid var(--line-2); }
.tk-msg.staff { align-self: flex-start; border-radius: 10px 10px 10px 2px; background: color-mix(in srgb, var(--accent) 12%, var(--sheet)); }
.tk-msg small { display: block; color: var(--ink-3); font-size: 11.5px; margin-bottom: 3px; }
.tk-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.tk-sys { align-self: center; margin: 4px 0; color: var(--ink-3); font-size: 12px; text-align: center; }
.tk-reply { padding: 12px 16px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.tk-reply textarea { min-height: 84px; resize: vertical; }
.tk-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-actions .select { height: 40px; margin-right: auto; }
.av-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ── mon compte ── */
.acct { max-width: 760px; }
.acct .panel h2 { display: flex; align-items: center; gap: 9px; }
.acct .panel h2 .i { width: 18px; height: 18px; color: var(--accent); }
.acct-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acct-links li, .acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sheet-2); }
.acct-row { margin: 12px 0; }
.acct-links li > div, .acct-row > div { flex: 1; min-width: 0; }
.acct-links b, .acct-row b { display: block; overflow-wrap: anywhere; }
.acct-links small, .acct-row small { color: var(--ink-3); font-size: 12.5px; }
.acct-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sheet); color: var(--accent); flex: none; }
.acct-ico .i { width: 18px; height: 18px; }
.acct-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.acct-form .field { flex: 1 1 240px; height: 44px; }
.acct .notice { margin: 12px 0 0; }
/* double authentification */
.mfa-steps { margin: 4px 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.mfa-setup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mfa-qr { width: 200px; height: 200px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.mfa-qr svg { display: block; width: 100%; height: 100%; }
.mfa-key { flex: 1 1 220px; min-width: 0; display: grid; gap: 6px; }
.mfa-key code { font: 600 15px/1.5 var(--mono); letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; padding: 8px 10px; border-radius: 8px; background: var(--sheet-2); border: 1px solid var(--line-2); }
.mfa-key-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.mfa-codes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.mfa-codes code { display: block; text-align: center; font: 600 15px/1 var(--mono); letter-spacing: .06em; padding: 10px; border-radius: 8px; background: var(--sheet-2); border: 1px solid var(--line-2); user-select: all; }
.mfa-full { flex-basis: 100%; margin: 0; }
.btn.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ── confirmation du lien reçu par e-mail ── */
.magic-dlg { width: min(420px, calc(100% - 24px)); }
.magic-in { padding: 28px 24px 22px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.magic-in h2 { margin: 4px 0 0; font: 700 22px/1.2 var(--display, inherit); }
.magic-in p { margin: 0 0 8px; color: var(--ink-2); }
.magic-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--sheet)); color: var(--accent); }
.magic-ico.bad { color: var(--ink-2); background: var(--sheet-2); }
.magic-ico .i { width: 26px; height: 26px; }

/* ── Chinokai+ : paiement ── */
.plus-done { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--lav, #b9a2ff) 18%, var(--sheet)); border: 2px solid color-mix(in srgb, var(--lav, #b9a2ff) 50%, transparent); }
.plus-done > .i { width: 28px; height: 28px; color: var(--lav, #b9a2ff); flex: none; }
.plus-done b { display: block; } .plus-done small { color: var(--ink-2); }
.kofi-steps { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--sheet-2); border: 1px solid var(--line-2); }
.kofi-steps small { color: var(--ink-3); }
.kofi-ref { display: flex; gap: 8px; align-items: center; }
.kofi-ref code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; background: var(--sheet); font: 600 13px/1.3 var(--mono, monospace); user-select: all; }

/* ── événement de la semaine ── */
.ev-card { display: flex; gap: 22px; align-items: center; padding: 20px 22px; margin-bottom: 22px; border-radius: 18px; border: 3px solid var(--rim);
  background: linear-gradient(120deg, color-mix(in srgb, var(--e1) 22%, var(--sheet)), color-mix(in srgb, var(--e2) 18%, var(--sheet))); }
.ev-badge { flex: none; }
.ev-body { flex: 1; min-width: 0; }
.ev-body h2 { margin: 6px 0 4px; font: 700 24px/1.15 var(--display); }
.ev-body p { margin: 0 0 12px; color: var(--ink-2); }
.ev-body .quest-bar i { background: linear-gradient(90deg, var(--e1), var(--e2)); }
@media (max-width: 600px) { .ev-card { flex-direction: column; text-align: center; } }

/* ── récap de saison ── */
.rc-hero { padding: 26px 24px; border-radius: 20px; border: 3px solid var(--rim); margin-bottom: 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 26%, var(--sheet)), var(--sheet) 60%); }
.rc-hero h2 { margin: 8px 0 18px; font: 600 26px/1.15 var(--display); }
.rc-hero h2 b { display: block; font-size: clamp(44px, 8vw, 72px); color: var(--accent); }
.rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.rc-stats div { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--sheet) 70%, transparent); border: 1px solid var(--line-2); }
.rc-stats b { display: block; font: 700 26px/1.1 var(--display); }
.rc-stats small { color: var(--ink-3); }
.rc-rank { margin: 16px 0 0; display: flex; gap: 8px; align-items: center; } .rc-rank .i { color: var(--accent); }
.rc-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-top li { display: flex; align-items: center; gap: 12px; }
.rc-top .pos { width: 26px; font: 700 20px/1 var(--display); color: var(--accent); text-align: center; }
.rc-top img, .rc-ph { width: 44px; height: 62px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sheet-2); display: grid; place-items: center; }
.rc-top b { display: block; } .rc-top small { color: var(--ink-3); }
.rc-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.rc-img { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid var(--line-2); }
.rc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── salon « regarder à plusieurs » ── */
.room-box { margin-top: 18px; padding: 14px 16px; border-radius: 20px; background: var(--sheet); border: 3px solid var(--rim); box-shadow: var(--lift); display: grid; gap: 12px; }
.room-box > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.room-box > header b { display: flex; align-items: center; gap: 8px; font: 700 15.5px/1 var(--display); }
.room-box > header .i { width: 17px; height: 17px; color: var(--accent); }
.rm-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-members { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rm-members li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--paper, rgba(0,0,0,.04)); border: 2px solid var(--line); font-weight: 700; font-size: 14px; }
.rm-members li[data-online="false"] { opacity: .5; }
.rm-members small { color: var(--accent); font: 700 11px/1 var(--mono); text-transform: uppercase; margin-left: 4px; }
.rm-members .who-av, .rm-chat .who-av { width: 28px; height: 28px; font-size: 13px; }
.rm-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.rm-note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin: 0; }
.rm-note .i { width: 15px; height: 15px; }
.rm-chat { list-style: none; margin: 0; padding: 4px 2px; max-height: 260px; min-height: 90px; overflow-y: auto; display: grid; gap: 10px; align-content: start; border-top: 3px dotted var(--line-2); padding-top: 12px; }
.rm-chat li { display: flex; gap: 10px; align-items: flex-start; }
.rm-chat li b { font-size: 14px; } .rm-chat time { margin-left: 8px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.rm-chat p { margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.rm-chat .rm-sys { display: block; text-align: center; font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.rm-reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.rm-reacts button { font-size: 20px; line-height: 1; padding: 6px 8px; border-radius: 12px; border: 2px solid var(--line); background: transparent; cursor: pointer; transition: transform .15s; }
.rm-reacts button:hover { transform: translateY(-2px) scale(1.08); border-color: var(--accent); }
.rm-form { display: flex; gap: 8px; } .rm-form .field { flex: 1; }
.rm-unblock { justify-self: start; }
.rm-burst { position: absolute; bottom: 70px; font-size: 38px; pointer-events: none; z-index: 30; animation: rm-up 2.6s ease-out forwards; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
@keyframes rm-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-20px) scale(1.1); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rm-burst { animation-duration: 1.2s; } }
.dm-room { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.12); border: 2px solid currentColor; color: inherit; text-decoration: none; }
.dm-room img { width: 34px; height: 48px; object-fit: cover; border-radius: 6px; }
.dm-room span { display: grid; gap: 2px; } .dm-room small { opacity: .8; font-size: 12px; }
.emo { display: block; } .rm-reacts button { display: grid; place-items: center; padding: 5px; }
.rm-burst .emo { filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }

/* ── manga & webtoons ── */
.mg-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 20px; }
.mg-bar > .field:first-child { flex: 1 1 260px; }
.mg-genre select { background: transparent; border: 0; color: inherit; font: inherit; min-width: 160px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.mg-card { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.mg-card b { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-card small { color: var(--ink-3); font-size: 12.5px; }
.mg-cover { position: relative; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--sheet-3, rgba(0,0,0,.2)); border: 3px solid var(--rim); box-shadow: var(--lift); transition: transform .2s; }
.mg-card:hover .mg-cover { transform: translateY(-4px) rotate(-1deg); }
.mg-cover img, .mg-ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--ink-3); }
.mg-tag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 11px/1.2 var(--mono); text-transform: uppercase; }
.mg-card.skel .mg-cover { animation: mg-pulse 1.2s ease-in-out infinite alternate; } .mg-card.skel b { height: 14px; border-radius: 6px; background: var(--line); }
@keyframes mg-pulse { from { opacity: .45; } to { opacity: .9; } }
.mg-more { display: grid; place-items: center; margin: 26px 0; }
.mg-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.mg-resume { display: flex; gap: 10px; align-items: center; min-width: 240px; padding: 8px; border-radius: 16px; background: var(--sheet); border: 3px solid var(--rim); color: inherit; text-decoration: none; }
.mg-resume img, .mg-resume .mg-ph { width: 46px; height: 66px; object-fit: cover; border-radius: 8px; flex: none; }
.mg-resume span { display: grid; gap: 3px; } .mg-resume small { color: var(--accent); font-size: 12.5px; font-weight: 700; }
.mg-hero { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 28px; margin: 16px 0 26px; }
@media (max-width: 700px) { .mg-hero { grid-template-columns: 1fr; } .mg-cover.big { max-width: 220px; } }
.mg-info h1 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.mg-meta { color: var(--ink-3); font: 500 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; margin-top: 10px; }
.mg-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; } .mg-tags span { padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); font-size: 12.5px; font-weight: 700; }
.mg-desc { color: var(--ink-2); line-height: 1.6; max-width: 70ch; white-space: pre-line; }
.mg-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
#mg-fav[aria-pressed="true"] { color: #fff; background: var(--accent); }
.mg-chapters header { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.mg-chapters header small { color: var(--ink-3); flex: 1; }
.mg-chapters ol { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; display: grid; gap: 4px; }
.mg-chapters li a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.mg-chapters li a:hover, .mg-chapters li.hl a { background: var(--line); }
.mg-chapters li a span { color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-chapters li a small { color: var(--ink-3); margin-left: auto; font-size: 12px; }
.mg-chapters li.read a b { color: var(--ink-3); } .mg-chapters li.read a b::after { content: " ✓"; color: var(--accent); }
.rd { max-width: 900px; margin: 0 auto; padding-bottom: 40px; }
.rd-bar { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; background: var(--sheet); border-bottom: 3px solid var(--rim); }
.rd-bar > a span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-pages { display: grid; justify-items: center; background: #000; }
.rd[data-mode="scroll"] .rd-pages img { width: 100%; max-width: 900px; display: block; min-height: 200px; }
.rd[data-mode="page"] .rd-pages { padding: 14px 0; } .rd[data-mode="page"] #rd-one { max-width: 100%; max-height: calc(100vh - var(--nav-h) - 110px); cursor: pointer; user-select: none; }
.rd-count { color: #bbb; font: 500 12.5px/1 var(--mono); margin: 10px 0 0; }
.rd-end { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 26px 12px; }
.mg-more [hidden] { display: none; }
.cm-rooms h2 { display: flex; align-items: center; gap: 8px; } .cm-rooms h2 .i { width: 18px; height: 18px; color: var(--accent); }
.cm-room-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.cm-room-list a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 2px solid var(--line); color: inherit; text-decoration: none; }
.cm-room-list a:hover { border-color: var(--accent); }
.cm-room-list img, .cm-room-list .rc-ph { width: 44px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--line); }
.cm-room-list span { display: grid; gap: 3px; min-width: 0; } .cm-room-list small { color: var(--ink-3); font-size: 12.5px; }
.cm-room-av { display: flex !important; } .cm-room-av .who-av { width: 24px; height: 24px; font-size: 11px; border-width: 2px; margin-right: -6px; }

/* ── alertes de sortie ── */
.al-wrap { position: relative; }
.al-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, 92vw); z-index: 80; background: var(--sheet); border: 3px solid var(--rim); border-radius: 18px; box-shadow: var(--lift); padding: 12px; display: grid; gap: 10px; }
.al-pop header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.al-pop header b { display: flex; align-items: center; gap: 8px; font: 700 15px/1 var(--display); } .al-pop header .i { width: 16px; height: 16px; color: var(--accent); }
.al-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; }
.al-pop li a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.al-pop li a:hover { background: var(--line); }
.al-pop li.new a { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.al-pop li img { width: 36px; height: 50px; object-fit: cover; border-radius: 6px; flex: none; }
.al-pop li span { display: grid; gap: 2px; min-width: 0; } .al-pop li b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .al-pop li small { color: var(--ink-3); font-size: 12px; }
.al-empty { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.al-perm { justify-self: start; }
@media (max-width: 1100px) { .al-pop { position: fixed; top: calc(var(--nav-h, 64px) + 6px); right: 10px; } }
.al-h { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font: 700 13px/1 var(--display); color: var(--ink-2); } .al-h .i { width: 14px; height: 14px; }
.al-parties li { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 12px; }
.al-parties li > span { flex: 1; } .al-parties li b small { font-weight: 500; color: var(--ink-3); }
.al-wait { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pt-form { display: grid; gap: 12px; min-width: min(420px, 86vw); }
.pt-form h2 { display: flex; align-items: center; gap: 8px; margin: 0; } .pt-form h2 .i { color: var(--accent); }
.pt-form p { margin: 0; }
.pt-friends { border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; max-height: 200px; overflow-y: auto; }
.pt-friends legend { font-weight: 700; font-size: 13px; padding: 0 4px; }
.pt-friends label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.pt-actions { display: flex; justify-content: flex-end; gap: 8px; }
/* barre du haut : plus d'icônes (cloche, manga) → on compacte plus tôt */
@media (max-width: 1360px) { .tabs-nav a span { display: none; } .tabs-nav a { padding: 0 12px; } }
@media (max-width: 1100px) { .plus-badge span { display: none; } .plus-badge { width: 38px; padding: 0; justify-content: center; } #sfx-btn { display: none; } }
.pt-form { padding: 20px 22px; }

/* ── avis ── */
.rv { display: grid; gap: 16px; }
.rv-avg { display: flex; align-items: baseline; gap: 4px; } .rv-avg b { font: 900 46px/1 var(--display); color: var(--accent); }
.rv-avg span { font: 700 16px/1 var(--display); display: grid; gap: 4px; } .rv-avg small { font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; }
.rv-form { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 3px dashed var(--line-2); }
.rv-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-pick button { width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--line); font: 700 15px/1 var(--display); color: var(--ink-2); background: transparent; cursor: pointer; transition: transform .12s; }
.rv-pick button:hover { transform: translateY(-2px); border-color: var(--accent); }
.rv-pick button[aria-checked="true"] { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--rim); }
.rv-text textarea { width: 100%; resize: vertical; background: transparent; border: 0; color: inherit; font: inherit; min-height: 70px; }
.rv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; } .rv-row > span { display: flex; gap: 8px; }
.rv-spoil { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rv-list li { display: flex; gap: 12px; align-items: flex-start; } .rv-list li.mine .rv-body { border-color: var(--accent); }
.rv-body { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); }
.rv-body header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .rv-body header small { color: var(--ink-3); font-size: 12px; }
.rv-score { font-size: 13px; color: var(--ink-3); } .rv-score b { color: var(--accent); font: 800 16px/1 var(--display); }
.rv-body p { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.rv-veil { position: relative; display: block; width: 100%; margin-top: 8px; padding: 0; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.rv-veil span { display: block; filter: blur(7px); user-select: none; white-space: pre-line; line-height: 1.55; }
.rv-veil em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.rv-body footer { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.rv-like { display: inline-flex; gap: 5px; align-items: center; background: none; border: 0; color: var(--ink-3); cursor: pointer; font: 700 13px/1 var(--body); }
.rv-like .i { width: 15px; height: 15px; } .rv-like[aria-pressed="true"] { color: var(--accent); } .rv-like:disabled { cursor: default; }
.btn-link { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 13px; cursor: pointer; text-decoration: underline; } .btn-link.danger:hover { color: #e8395a; }
.mg-reviews { margin-top: 20px; }

/* ── import de liste ── */
.im-in { display: grid; gap: 12px; padding: 20px 22px; width: min(520px, 88vw); }
.im-in h2 { display: flex; align-items: center; gap: 8px; margin: 0; } .im-in h2 .i { color: var(--accent); }
.im-in > p { margin: 0; }
.im-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); }
.im-box small { color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }
.im-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .im-row .field { flex: 1; min-width: 180px; }
.im-file { cursor: pointer; justify-self: start; }
.im-status { min-height: 1.2em; margin: 0; font-weight: 700; color: var(--accent); font-size: 14px; }
.im-actions { display: flex; justify-content: flex-end; }

/* vitrines du profil (façon Steam) */
.b-showcases { display: grid; gap: 14px; }
.sc { border: 3px solid var(--rim); border-radius: 10px; background: var(--sheet); padding: 14px 16px; }
.sc h3 { font: 800 15px/1.2 var(--display); margin: 0 0 10px; }
.sc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.sc-item { position: relative; display: block; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: var(--sheet-2); border: 2px solid var(--line-2); transition: transform .15s, border-color .15s; }
.sc-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.sc-item img { width: 100%; height: 100%; object-fit: cover; }
.sc-item em { position: absolute; right: 5px; bottom: 5px; font: 700 11px/1 var(--body); font-style: normal; padding: 4px 6px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; }
.sc-ph { display: grid; place-items: center; height: 100%; padding: 6px; text-align: center; font-size: 12px; color: var(--ink-2); }
.sc-big { display: flex; gap: 14px; align-items: center; }
.sc-big img { width: 96px; aspect-ratio: 2/3; object-fit: cover; border-radius: 7px; border: 2px solid var(--line-2); }
.sc-big b { display: block; font: 800 18px/1.2 var(--display); }
.sc-big small { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.sc-quote blockquote { margin: 0; font: italic 600 18px/1.45 var(--display); }
.sc-quote figcaption { margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.sc-quote figcaption::before { content: "— "; }
.sc-text p { margin: 0; white-space: pre-wrap; line-height: 1.6; color: var(--ink-2); }

/* mur de commentaires */
.wl-form { display: flex; gap: 8px; margin-bottom: 14px; }
.wl-form .field { flex: 1; }
.wl-form input { width: 100%; }
.wl-list, .wl-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wl-list > li, .wl-replies > li { display: flex; gap: 10px; align-items: flex-start; }
.wl-list > li > div { flex: 1; min-width: 0; }
.wl-list header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wl-list header small { color: var(--ink-3, var(--ink-2)); font-size: 12px; }
.wl-list header .btn-link { margin-left: auto; font-size: 12px; }
.wl-list p { margin: 3px 0 0; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.wl-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.who-av { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font: 800 14px/1 var(--display); }
.who-av img { width: 100%; height: 100%; object-fit: cover; }

/* studio : vitrines, mur et confidentialité */
.st-soc { margin-top: 28px; border: 3px solid var(--rim); border-radius: 12px; background: var(--sheet); padding: 18px 20px; }
.st-soc-head h2 { display: flex; gap: 8px; align-items: center; font: 800 20px/1.2 var(--display); margin: 0; }
.st-soc-head p { margin: 4px 0 16px; }
.st-soc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.st-soc h3 { font: 700 14px/1.2 var(--body); margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.st-soc h3 em { font-style: normal; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.sc-ed { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.sc-ed li { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px; display: grid; gap: 8px; background: var(--sheet-2); }
.sc-ed-top { display: flex; gap: 6px; align-items: center; }
.sc-ed-top b { flex: 1; }
.sc-ed textarea { resize: vertical; min-height: 60px; font: inherit; }
.sc-add { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-add .chip:disabled { opacity: .45; pointer-events: none; }
.st-sw { display: grid; gap: 10px; margin-top: 16px; }
.row-sw { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.st-soc-bar { display: flex; justify-content: flex-end; margin-top: 16px; }
.st-soc .seg { flex-wrap: wrap; }
@media (max-width: 860px) { .st-soc-grid { grid-template-columns: 1fr; } }
.blk.b-showcases { background: none; border: 0; box-shadow: none; padding: 0; }

/* VF de secours sur lecteur externe */
.w-vfbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin: 0 0 10px; padding: 10px 14px; border: 3px solid var(--rim); border-radius: 10px; background: var(--sheet); font-size: 14px; }
.w-vfbar span { display: inline-flex; gap: 8px; align-items: center; }
.w-vfbar .i { width: 16px; height: 16px; color: var(--accent); }
.vf-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.vf-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.seg button .lang-n { font-size: 11px; opacity: .75; font-weight: 600; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.count .no-vf { color: var(--danger, #e2463a); font-weight: 700; }

/* ══ thème événement « Doomsday » : couche d'effets (doom-fx.js) et retouches fer / magie verte ══ */
#doom-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#doom-fx .doom-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
#doom-fx .doom-glass { position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(43, 255, 136, .16), transparent 60%),
    conic-gradient(from 180deg at 50% -20%, transparent 0 40%, rgba(43, 255, 136, .07) 42%, transparent 44% 47%, rgba(43, 255, 136, .06) 49%, transparent 51% 54%, rgba(43, 255, 136, .07) 56%, transparent 58%),
    radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
:root[data-mode="jour"] #doom-fx .doom-glass { opacity: .55; }
#doom-fx .doom-ring { position: absolute; width: min(92vmin, 900px); left: 50%; top: 46%; translate: -50% -50%; opacity: .14; filter: drop-shadow(0 0 10px rgba(43, 255, 136, .9)); }
:root[data-mode="jour"] #doom-fx .doom-ring { opacity: .1; filter: none; }
#doom-fx .doom-ring circle, #doom-fx .doom-ring polygon { fill: none; stroke: #2bff88; stroke-width: 1.4; }
#doom-fx .doom-ring text { fill: #2bff88; text-anchor: middle; dominant-baseline: middle; font-family: serif; }
#doom-fx .doom-ring g { transform-origin: 300px 300px; }
#doom-fx .doom-ring .r1 { animation: doom-spin 140s linear infinite; }
#doom-fx .doom-ring .r2 { animation: doom-spin 90s linear infinite reverse; }
#doom-fx .doom-ring .r3 { animation: doom-spin 50s linear infinite; }
@keyframes doom-spin { to { transform: rotate(360deg); } }
#doom-fx .doom-fog { position: absolute; left: -20%; right: -20%; bottom: -12%; height: 55%; filter: blur(30px); opacity: .55;
  background: radial-gradient(40% 60% at 30% 70%, rgba(20, 120, 70, .55), transparent 70%), radial-gradient(35% 55% at 75% 75%, rgba(10, 90, 50, .5), transparent 70%); animation: doom-fog 26s ease-in-out infinite alternate; }
#doom-fx .doom-fog.f2 { bottom: auto; top: -18%; height: 40%; opacity: .35; animation-duration: 34s; animation-direction: alternate-reverse; }
:root[data-mode="jour"] #doom-fx .doom-fog { opacity: .22; }
@keyframes doom-fog { 0% { transform: translateX(-6%) scale(1); } 100% { transform: translateX(6%) scale(1.12); } }
#doom-fx .doom-flash { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 20%, rgba(120, 255, 180, .22), transparent 70%); opacity: 0; }
#doom-fx .doom-flash.on { animation: doom-flash .9s ease-out; }
@keyframes doom-flash { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: .2; } 24% { opacity: .8; } 100% { opacity: 0; } }
#doom-fx .doom-count { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 2px; padding: 10px 14px 9px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(14, 26, 19, .92), rgba(4, 9, 6, .92)); border: 1px solid rgba(43, 255, 136, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 26px -6px rgba(43, 255, 136, .6), inset 0 1px 0 rgba(255, 255, 255, .06); color: #e6f2ea; text-align: right; }
#doom-fx .doom-count b { font: 900 24px/1 var(--display); font-stretch: 100%; letter-spacing: .04em; color: #2bff88; text-shadow: 0 0 14px rgba(43, 255, 136, .7); }
#doom-fx .doom-count span { font: 600 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a9bdb1; }
@media (max-width: 760px) { #doom-fx .doom-count { bottom: calc(76px + env(safe-area-inset-bottom)); right: 10px; padding: 7px 10px; } #doom-fx .doom-count b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { #doom-fx .doom-ring g, #doom-fx .doom-fog { animation: none; } }

/* fer forgé : titres en métal, cartes et boutons qui s'allument en vert */
:root[data-theme="doomsday"][data-mode="nuit"] h1 { background: linear-gradient(180deg, #f2f7f4 0%, #b9c7bf 48%, #7f8f87 52%, #dfe9e3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
:root[data-theme="doomsday"] .card-art { border-color: color-mix(in srgb, var(--accent) 22%, var(--rim)); }
:root[data-theme="doomsday"] .card:hover .card-art, :root[data-theme="doomsday"] .card:focus-visible .card-art { box-shadow: var(--pop), 0 0 0 2px var(--accent), 0 0 34px -4px rgba(43, 255, 136, .55); }
:root[data-theme="doomsday"] .btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
:root[data-theme="doomsday"][data-mode="nuit"] .btn-primary:hover { box-shadow: 0 8px 0 var(--accent-deep), 0 0 30px -4px rgba(43, 255, 136, .8); }
:root[data-theme="doomsday"][data-mode="nuit"] .top { background: linear-gradient(180deg, rgba(10, 19, 14, .94), rgba(6, 12, 9, .86)); border-bottom: 1px solid rgba(43, 255, 136, .28); box-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 10px 30px -18px rgba(43, 255, 136, .5); }
:root[data-theme="doomsday"] ::selection { background: #2bff88; color: #02170b; }
:root[data-theme="doomsday"] .me-th[data-theme="doomsday"] .me-th-sw { box-shadow: 0 0 14px -2px rgba(43, 255, 136, .8); }

/* ══ reprise de l'ancienne version (/importer) ══ */
.im2 { max-width: 980px; padding-top: clamp(26px, 5vh, 54px); padding-bottom: 80px; }
.im2-head { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.im2-logo { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: var(--sheet); border: 2px solid var(--line); box-shadow: var(--lift); }
.im2-logo svg { width: 46px; height: 46px; }
.im2-over { margin: 0 0 6px; font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.im2-head h1 { margin: 0 0 6px; font: 700 clamp(26px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: -.015em; }
.im2-head p { margin: 0; }
.im2-card { position: relative; padding: clamp(20px, 3.4vw, 34px); border-radius: 22px; background: var(--sheet); border: 2px solid var(--line); box-shadow: var(--lift); }
.im2-card h2 { margin: 6px 0 8px; font: 700 clamp(21px, 2.6vw, 28px)/1.2 var(--display); }
.im2-card > .muted { max-width: 680px; margin: 0 0 20px; line-height: 1.6; }
.im2-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.im2-steps li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-3); font: 600 13px/1 var(--display); }
.im2-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sheet-2); font-size: 12px; }
.im2-steps li span svg { width: 13px; height: 13px; }
.im2-steps li.on { border-color: var(--accent); color: var(--ink); }
.im2-steps li.on span { background: var(--accent); color: var(--on-accent); }
.im2-steps li.done { color: var(--ink-2); }
.im2-steps li.done span { background: color-mix(in srgb, var(--green) 22%, var(--sheet)); color: var(--green); }
.im2-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 4px; }
.im2-small { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.im2-small svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.im2-profs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.im2-prof { padding: 18px; border-radius: 16px; background: var(--sheet-2); border: 1.5px solid var(--line); overflow: hidden; }
.im2-prof header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.im2-prof header b { display: block; font: 700 17px/1.2 var(--display); }
.im2-prof header small { color: var(--ink-3); font-size: 12.5px; }
.im2-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; color: #fff; font: 700 18px/1 var(--display); border: 2px solid var(--rim); }
.im2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.im2-stats div { padding: 10px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); }
.im2-stats dt { font: 600 11px/1.2 var(--display); color: var(--ink-3); letter-spacing: .02em; }
.im2-stats dd { margin: 4px 0 0; font: 700 19px/1 var(--display); color: var(--ink); }
.im2-strip { display: flex; margin-top: 14px; padding-left: 10px; }
.im2-strip span { width: 46px; aspect-ratio: 2/3; margin-left: -10px; border-radius: 7px; overflow: hidden; border: 2px solid var(--rim); background: var(--sheet-3); box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); transform: rotate(calc((var(--i) - 3.5) * 2.2deg)); }
.im2-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im2-reward { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--sheet)); }
.im2-reward b { display: block; font: 700 16px/1.2 var(--display); }
.im2-reward small { color: var(--ink-2); }
.im2-done { text-align: center; }
.im2-done .im2-steps, .im2-done .im2-acts { justify-content: center; }
.im2-done > .muted { margin-inline: auto; }
.im2-badge { display: grid; place-items: center; margin: 4px auto 6px; }
.im2-done.fresh .im2-badge { animation: im2-pop .9s var(--spring) both; }
@keyframes im2-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.im2-big { display: flex; justify-content: center; gap: clamp(14px, 4vw, 44px); margin: 8px 0 6px; flex-wrap: wrap; }
.im2-big b { display: block; font: 700 clamp(28px, 4vw, 42px)/1 var(--display); color: var(--accent); }
.im2-big span { font: 600 13px/1.6 var(--display); color: var(--ink-2); }
.im2-login { min-width: 250px; }
.im2-nudge { display: flex; gap: 14px; align-items: center; margin: 18px 0 4px; padding: 14px 16px; border-radius: 16px; background: var(--sheet); border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--lift); }
.im2-nudge > div { flex: 1; min-width: 0; }
.im2-nudge b { display: block; font: 700 15.5px/1.3 var(--display); }
.im2-nudge small { color: var(--ink-2); font-size: 13px; }
.im2-nudge-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
@media (max-width: 640px) { .im2-head { flex-direction: column; align-items: flex-start; } .im2-stats { grid-template-columns: repeat(2, 1fr); } .im2-nudge { flex-wrap: wrap; } }

/* bloc « Déjà vus » du profil */
.b-watched { grid-column: span 12; }
.wt-legacy { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 10px; font: 600 11px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--accent); font-style: normal; }
.wt-legacy svg { width: 13px; height: 13px; }
.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.wt-item { position: relative; display: block; aspect-ratio: 2/3; border-radius: 9px; overflow: hidden; background: var(--sheet-3); border: 1px solid var(--line); transition: transform .2s var(--spring); }
.wt-item:hover { transform: translateY(-3px) rotate(-1deg); }
.wt-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-item small { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; border-radius: 5px; background: rgba(20, 10, 18, .78); color: #fff; font: 600 10px/1 var(--display); }
.wt-item.wip small { background: var(--accent); color: var(--on-accent); }

/* Mon compte : MP Discord */
.dm-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px; cursor: pointer; }
.dm-row b { display: block; margin-bottom: 3px; }
.dm-row small { display: block; max-width: 560px; line-height: 1.5; }
.dm-switch { appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--sheet-3); border: 2px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; }
.dm-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transition: transform .18s var(--spring), background .15s; }
.dm-switch:checked { background: var(--accent); border-color: var(--accent); }
.dm-switch:checked::after { transform: translateX(20px); background: var(--on-accent); }
.dm-switch:disabled { opacity: .5; cursor: not-allowed; }
.dm-switch:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.dm-warn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, var(--sheet)); color: var(--ink); font-size: 13.5px; }
.dm-warn code { font: 500 12px/1.4 ui-monospace, monospace; padding: 2px 6px; border-radius: 5px; background: var(--sheet-2); }
.panel > .muted, .panel > .kpis, .panel > .row-actions { margin-left: 16px; margin-right: 16px; }
.panel > .muted { margin-top: 14px; }
.panel > .row-actions { margin-bottom: 16px; }

/* ══ page d'arrivée : vidéo de présentation et les deux portes ══ */
.l3-intro, .l3-duo { padding: clamp(48px, 9vh, 104px) var(--gut) 0; text-align: center; }
.l3-duo { padding-bottom: clamp(40px, 7vh, 80px); }
.l3-intro header h2, .l3-duo header h2 { margin: 0 0 9px; font: 700 clamp(26px, 3.4vw, 40px)/1.14 var(--display); color: var(--ink); letter-spacing: -.015em; }
.l3-intro header p:last-child, .l3-duo header p:last-child { margin: 0 auto; max-width: 560px; font-size: 14.5px; color: var(--ink-2); }
.l3-video { position: relative; max-width: 1080px; margin: clamp(22px, 4vh, 36px) auto 0; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden;
  background: #0c0409 url("/media/intro-chinokai.jpg") center/cover; border: 3px solid var(--rim); box-shadow: var(--pop), 0 40px 80px -40px rgba(232, 57, 90, .55); }
.l3-video video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.l3-vid-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); color: #fff; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); transition: transform .2s var(--spring); }
.l3-vid-play:hover { transform: scale(1.08); }
.l3-vid-play svg { width: 34px; height: 34px; margin-left: 4px; }
.l3-vid-play[hidden] { display: none; }
.l3-vid-sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(12, 4, 9, .72); color: #fff; font: 600 13px/1 var(--display); backdrop-filter: blur(8px); transition: background .15s; }
.l3-vid-sound:hover { background: rgba(12, 4, 9, .9); }
.l3-vid-sound svg { width: 17px; height: 17px; }
.l3-duo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 1080px; margin: clamp(22px, 4vh, 36px) auto 0; text-align: left; }
.l3-door { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 32px); border-radius: 24px; border: 2px solid var(--line); box-shadow: var(--lift); isolation: isolate; }
.l3-door.is-ck { background: linear-gradient(150deg, #fff6f8, #ffe1ea); color: #4a3340; border-color: #f6cdd9; }
.l3-door.is-ts { background: linear-gradient(150deg, #06212a, #0b3640 60%, #2a1240); color: #e4fbf9; border-color: #1f5560; }
.l3-door-glow { position: absolute; z-index: -1; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; filter: blur(30px); opacity: .55; }
.is-ck .l3-door-glow { background: radial-gradient(#ff8fb1, transparent 70%); }
.is-ts .l3-door-glow { background: radial-gradient(#39e0d6, transparent 70%); }
.l3-door-host { margin: 0 0 6px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.l3-door h3 { margin: 0 0 10px; font: 700 clamp(28px, 3vw, 36px)/1 var(--display); }
.is-ck h3 { color: #e8395a; }
.is-ts h3 { color: #39e0d6; text-shadow: 0 0 18px rgba(57, 224, 214, .45); }
.l3-door > p:not(.l3-door-host) { margin: 0 0 14px; line-height: 1.6; font-size: 14.5px; opacity: .88; }
.l3-door ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; font: 600 14px/1.3 var(--display); }
.l3-door li { display: flex; gap: 9px; align-items: center; }
.l3-door li svg { width: 17px; height: 17px; flex: none; }
.is-ck li svg { color: #e8395a; }
.is-ts li svg { color: #ff5fa8; }
.is-ts .btn-ghost { background: rgba(57, 224, 214, .1); border-color: #39e0d6; color: #e4fbf9; }
.l3-duo-note { display: inline-flex; gap: 8px; align-items: center; margin: 22px auto 0; font-size: 14px; color: var(--ink-2); }
.l3-duo-note a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.l3-duo-note svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .im2-done.fresh .im2-badge { animation: none; } }

/* ── Continuer à regarder : en tête de l'accueil, pleine largeur, dès qu'il y a quelque chose à reprendre ── */
@media (min-width: 981px) {
  .bento.has-cont .t-continue { order: -1; grid-column: span 12; }
  .bento.has-cont .t-soon { grid-column: span 5; }
  .bento.has-cont .t-top { grid-column: span 7; }
  .bento.has-cont .t-moods { grid-column: span 12; }
}
@media (max-width: 980px) { .bento.has-cont .t-continue { order: -1; } }
.bento.has-cont .cont-track { grid-auto-columns: minmax(260px, 320px); }
.wide-left.is-next { background: var(--accent); color: var(--on-accent, #fff); }
