/* Cosmoflix — direction « Orbite » : verre façon iOS 26, mode sombre, halos Aurore et Améthyste.
   Aucun style en ligne (CSP stricte) : tout est ici ; les valeurs qui bougent sont posées par le script (CSSOM). */
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --abysse: #0D1B26; --maree: #16303F; --aurore: #7CF5D2; --amethyste: #9C8CFF; --givre: #EAF4F7;
  --night: #0A1620; --deep: #08131B; --sheet: #12242F; --card: #11232E;
  --t1: #EAF4F7; --t2: #9FB6C2; --t3: #8BA5B3; --t4: #7E98A6; --t5: #C9DBE3;
  --warn: #FFB86B; --warn-t: #FFC98E; --danger: #FF9C9C; --violet-t: #C9C0FF;
  --glass: rgba(234,244,247,.06); --glass2: rgba(234,244,247,.08); --glass3: rgba(234,244,247,.10);
  --shine: inset 0 1px 0 rgba(255,255,255,.14);
  --font: -apple-system, 'SF Pro Text', 'SF Pro Display', 'Inter Tight', system-ui, sans-serif;
  --brand: 'Unbounded', -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(.2,.9,.3,1.1); --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--abysse); color: var(--t1); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--aurore); outline-offset: 2px; }
a { color: var(--aurore); text-decoration: none; }
img { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.pr { transition: transform .15s, background .25s, color .25s, opacity .2s; }
.pr:active { transform: scale(.95); }
.brand { font-family: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- fond */
#app { position: relative; min-height: 100%; overflow-x: hidden; }
.halo { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.halo.a { width: 340px; height: 340px; left: -110px; top: -120px; background: var(--aurore); opacity: .12; }
.halo.b { width: 300px; height: 300px; right: -130px; top: 46vh; background: var(--amethyste); opacity: .12; }

/* ---------------------------------------------------------------- écrans */
.screen { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; padding: calc(var(--safe-top) + 14px) 0 calc(var(--safe-bottom) + 120px); }
.screen.push { position: fixed; inset: 0; overflow-y: auto; background: var(--abysse); z-index: 30; animation: pushIn .35s var(--ease) both; padding-bottom: calc(var(--safe-bottom) + 40px); }
.screen.push.out { animation: pushOut .25s ease-in both; }
@keyframes pushIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pushOut { to { transform: translateX(100%); } }
.wrap { padding: 0 18px; display: flex; flex-direction: column; gap: 14px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; min-height: 52px; gap: 8px; }
.topbar .acts { display: flex; gap: 6px; align-items: center; }
h1.title { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.7px; }
h1.greet { margin: 0; font-size: 29px; line-height: 34px; font-weight: 700; letter-spacing: -.6px; }
.date { font-size: 14px; color: var(--t2); }
h2.sec { margin: 0; font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -.3px; }
h2.small { margin: 0 0 0 4px; font-size: 14px; font-weight: 600; color: var(--t2); }
.sub { font-size: 13px; color: var(--t2); }
.muted { color: var(--t2); }
.hint { font-size: 13px; color: var(--t3); line-height: 18px; }
.back { align-self: flex-start; min-height: 44px; margin-left: -8px; padding: 0 8px; color: var(--aurore); font-size: 17px; display: flex; align-items: center; gap: 2px; }

/* ---------------------------------------------------------------- boutons */
.iconbtn { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--t2); }
.iconbtn.glass { background: var(--glass2); color: var(--t1); }
.avatar { width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--aurore); background: var(--maree); color: var(--t1); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avatar.big { width: 56px; height: 56px; border-radius: 28px; border-width: 2.5px; font-size: 23px; flex: none; }
.avatar.violet { border-color: var(--amethyste); background: #262052; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; background: var(--glass2); color: var(--t1); }
.btn.primary { background: var(--givre); color: var(--abysse); font-weight: 700; }
.btn.accent { background: var(--aurore); color: var(--abysse); font-weight: 700; }
.btn.soft { background: rgba(124,245,210,.16); color: var(--aurore); font-weight: 700; }
.btn.danger { background: rgba(255,156,156,.12); color: var(--danger); }
.btn.big { height: 56px; border-radius: 28px; font-size: 17px; font-weight: 700; width: 100%; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; }
.link { min-height: 44px; padding: 0 4px; color: var(--aurore); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* puces, segments */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 15px; border-radius: 20px; font-size: 15px; font-weight: 600; background: var(--glass2); color: var(--t5); }
.chip[aria-pressed="true"] { background: var(--givre); color: var(--abysse); }
.chip.status { min-height: 36px; padding: 0 12px; border-radius: 18px; font-size: 14px; background: rgba(234,244,247,.07); }
.chip.status[aria-pressed="true"] { background: rgba(124,245,210,.18); color: var(--aurore); box-shadow: inset 0 0 0 1.5px var(--aurore); }
.seg { position: relative; display: grid; gap: 4px; padding: 3px; border-radius: 20px; background: rgba(234,244,247,.07); }
.seg button { position: relative; z-index: 1; min-height: 40px; border-radius: 17px; font-size: 14px; font-weight: 600; color: var(--t5); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--abysse); }
.seg .pill { position: absolute; top: 3px; bottom: 3px; align-self: auto; padding: 0; border-radius: 17px; background: var(--givre); transition: left .35s cubic-bezier(.3,1.3,.5,1), width .35s; }

/* interrupteur */
.switch { position: relative; width: 56px; height: 34px; flex: none; border-radius: 17px; background: rgba(234,244,247,.2); transition: background .25s; }
.switch[aria-checked="true"] { background: var(--aurore); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 14px; background: var(--givre); box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: left .25s cubic-bezier(.3,1.3,.5,1); }
.switch[aria-checked="true"] .knob { left: 25px; }

/* listes groupées façon Réglages iOS */
.group { display: flex; flex-direction: column; border-radius: 22px; background: var(--glass); overflow: hidden; }
.row { min-height: 56px; padding: 0 12px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; color: var(--t1); }
.row + .row, .row + .rowx, .rowx + .row { border-top: 1px solid rgba(234,244,247,.08); }
.row .lbl { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 16px; }
.row .lbl small { font-size: 13px; color: var(--t2); }
.row .val { font-size: 15px; color: var(--t2); }
.row.red { color: var(--danger); }
.tile { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.tile.aurore { background: var(--aurore); color: var(--abysse); }
.tile.amethyste { background: var(--amethyste); color: #120F2E; }
.tile.maree { background: var(--maree); color: var(--aurore); }
.tile.gold { background: var(--warn-t); color: #2B1A05; }
.tile.glass { background: rgba(234,244,247,.12); color: var(--t1); }
.tile.red { background: rgba(255,156,156,.14); color: var(--danger); }
.chev { color: var(--t4); flex: none; }

/* ---------------------------------------------------------------- affiches */
.poster { position: relative; overflow: hidden; flex: none; border-radius: 16px; background: var(--maree); box-shadow: var(--shine); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.poster img.ok { opacity: 1; }
.poster .ini { position: absolute; right: -8px; bottom: -18%; font: 700 120px/1 var(--brand); opacity: .92; }
.poster .badge { position: absolute; left: 7px; top: 7px; padding: 3px 7px; border-radius: 8px; background: rgba(13,27,38,.78); color: var(--aurore); font-size: 11px; font-weight: 700; z-index: 1; }
.poster .note { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: rgba(13,27,38,.8); color: var(--aurore); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; }
.poster .seen { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 12px; background: var(--aurore); color: var(--abysse); display: flex; align-items: center; justify-content: center; z-index: 1; }
.poster .prog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 4px; border-radius: 2px; background: rgba(13,27,38,.7); overflow: hidden; z-index: 1; }
.bar { display: block; height: 100%; background: var(--aurore); border-radius: inherit; }
.p0 { background: #16303F; color: #7CF5D2; } .p1 { background: #262052; color: #9C8CFF; } .p2 { background: #DDEBF0; color: #16303F; }
.p3 { background: #7CF5D2; color: #0D1B26; } .p4 { background: #9C8CFF; color: #120F2E; } .p5 { background: #203845; color: #EAF4F7; }

/* ---------------------------------------------------------------- squelettes (pas de roue qui tourne) */
.sk { position: relative; overflow: hidden; background: rgba(234,244,247,.07); border-radius: 16px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(234,244,247,.08), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- barre d'onglets en verre */
.tabbar { position: fixed; left: 14px; right: 14px; bottom: calc(var(--safe-bottom) + 14px); height: 68px; padding: 6px; border-radius: 34px; z-index: 20;
  background: rgba(22,48,63,.72); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06), 0 12px 34px rgba(0,0,0,.45);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; }
.tabbar .cap { position: absolute; top: 6px; bottom: 6px; border-radius: 28px; background: rgba(234,244,247,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: left .45s cubic-bezier(.3,1.35,.5,1), opacity .2s; }
.tabbar button { position: relative; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--t2); font-size: 10.5px; font-weight: 600; }
.tabbar button[aria-current="page"] { color: var(--t1); }
.tabbar .add { width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; background: var(--aurore); color: var(--abysse); box-shadow: 0 6px 18px rgba(124,245,210,.35); transition: box-shadow .25s; }
.tabbar button[aria-current="page"] .add { box-shadow: 0 0 0 4px rgba(124,245,210,.25), 0 6px 18px rgba(124,245,210,.35); }
.fade-bottom { position: fixed; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to bottom, rgba(13,27,38,0), #0D1B26 70%); pointer-events: none; z-index: 10; }
.bar-in { animation: barIn .6s cubic-bezier(.2,.9,.3,1.12) both; }
@keyframes barIn { from { transform: translateY(120px); } to { transform: none; } }

/* ---------------------------------------------------------------- toast (Annuler / Rétablir) */
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(var(--safe-bottom) + 96px); z-index: 60; min-height: 56px; padding: 6px 6px 6px 16px; border-radius: 20px; max-width: 520px; margin: 0 auto;
  background: rgba(22,48,63,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 30px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 10px; animation: rise .35s var(--spring) both; }
.toast span.txt { flex: 1; font-size: 14px; line-height: 19px; }
.toast .act { min-height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(124,245,210,.16); color: var(--aurore); font-size: 14px; font-weight: 700; }
.toast .act.solid { background: var(--aurore); color: var(--abysse); }
.toast .timer { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--aurore); transform-origin: left center; animation: timer linear both; }
.toast.err { box-shadow: inset 0 0 0 1.5px rgba(255,156,156,.5), 0 10px 30px rgba(0,0,0,.45); }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s var(--ease) both; }

/* ---------------------------------------------------------------- feuilles (fiche, avis, infos) */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(3,9,14,.6); animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100dvh - var(--safe-top) - 40px); overflow-y: auto; border-radius: 30px 30px 0 0;
  background: var(--sheet); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); padding: 10px 18px calc(var(--safe-bottom) + 30px); animation: sheetUp .42s cubic-bezier(.2,.9,.3,1) both; max-width: 640px; margin: 0 auto; }
.sheet.out { animation: sheetDown .25s ease-in both; }
.sheet .grab { display: block; margin: 0 auto 8px; width: 38px; height: 5px; border-radius: 3px; background: rgba(234,244,247,.3); }
.sheet .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 700; }
.sheet .body { display: flex; flex-direction: column; gap: 16px; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }

/* fiche d'un titre */
.sheet.fiche { padding: 0 0 calc(var(--safe-bottom) + 30px); background: var(--card); }
.fiche .hero { position: relative; height: 240px; overflow: hidden; background: var(--maree); }
.fiche .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.fiche .hero img.ok { opacity: .85; }
.fiche .hero .ini { position: absolute; right: 16px; top: -30px; font: 700 280px/1 var(--brand); color: var(--aurore); opacity: .85; }
.fiche .hero .glowA { position: absolute; width: 260px; height: 260px; right: -40px; top: -60px; border-radius: 50%; background: var(--aurore); opacity: .4; filter: blur(60px); }
.fiche .hero .glowB { position: absolute; width: 220px; height: 220px; left: -40px; bottom: -100px; border-radius: 50%; background: var(--amethyste); opacity: .35; filter: blur(60px); }
.fiche .hero .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to top, var(--card), rgba(17,35,46,0)); }
.fiche .hero .grab { position: absolute; left: 50%; top: 8px; margin-left: -19px; background: rgba(234,244,247,.45); z-index: 2; }
.fiche .hero .close { position: absolute; right: 14px; top: 16px; z-index: 2; background: rgba(13,27,38,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--t1); }
.fiche .hero .ttl { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 1; }
.fiche .hero h1 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -.8px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 4px 9px; border-radius: 9px; background: rgba(234,244,247,.12); font-size: 13px; font-weight: 600; }
.tag.vf { background: rgba(124,245,210,.16); color: var(--aurore); font-weight: 700; }
.tag.vo { background: rgba(156,140,255,.2); color: var(--violet-t); font-weight: 700; }
.fiche .content { display: flex; flex-direction: column; gap: 16px; padding: 8px 18px 0; }
.nasline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t5); }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--aurore); flex: none; }
.dot.off { background: var(--t4); }
.note-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 8px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.note-box .top { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--t5); }
.note-box .word { color: var(--aurore); }
.note-box .num { font: 700 40px/1.1 var(--brand); display: inline-block; }
.note-box .num.bump { animation: bump .3s ease-out; }
.note-box .num.none { color: var(--t4); }
@keyframes bump { 40% { transform: scale(1.18); } }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--aurore), var(--amethyste)); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--aurore), var(--amethyste)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 15px; background: var(--givre); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 15px; background: var(--givre); }
.why { display: flex; gap: 8px; font-size: 14px; line-height: 20px; color: var(--t5); }
.why svg { flex: none; margin-top: 2px; color: var(--aurore); }
.story { margin: 0; font-size: 15px; line-height: 22px; color: var(--t5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story.open { display: block; }
.pill-note { padding: 3px 9px; border-radius: 9px; background: rgba(124,245,210,.16); color: var(--aurore); font-size: 13px; font-weight: 700; }
.pill-note.empty { background: rgba(234,244,247,.1); color: var(--t5); font-weight: 600; }

/* ---------------------------------------------------------------- Accueil */
.next { position: relative; height: 176px; border-radius: 30px; overflow: hidden; background: var(--maree); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.next .g1 { position: absolute; width: 220px; height: 220px; right: -40px; top: -60px; border-radius: 50%; background: var(--aurore); opacity: .35; filter: blur(50px); }
.next .g2 { position: absolute; width: 180px; height: 180px; right: 40px; bottom: -110px; border-radius: 50%; background: var(--amethyste); opacity: .35; filter: blur(50px); }
.next .poster { position: absolute; right: 20px; top: 18px; width: 92px; height: 134px; transform: rotate(6deg); box-shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(234,244,247,.18); }
.next .poster .ini { font-size: 64px; }
.next .info { position: absolute; left: 16px; top: 16px; bottom: 14px; right: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.next .when { align-self: flex-start; padding: 6px 11px; border-radius: 12px; background: rgba(13,27,38,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; color: var(--aurore); }
.next .name { font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next .ep { font-size: 14px; color: var(--t5); }
.next .remind { align-self: flex-start; min-height: 40px; padding: 0 14px 0 12px; border-radius: 20px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; background: var(--givre); color: var(--abysse); }
.next .remind[aria-pressed="true"] { background: rgba(124,245,210,.2); color: var(--aurore); }
.next.empty { display: flex; align-items: center; padding: 20px; }
.calhead { display: flex; align-items: center; justify-content: space-between; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day { min-height: 60px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(234,244,247,.06); color: var(--t1); }
.day .dow { font-size: 11px; opacity: .85; }
.day .n { font-size: 18px; font-weight: 700; }
.day .cnt { height: 5px; border-radius: 3px; width: 5px; background: transparent; transition: width .3s; }
.day .cnt.one { background: var(--aurore); }
.day .cnt.many { width: 14px; background: var(--aurore); }
.day.today { background: rgba(124,245,210,.10); box-shadow: inset 0 0 0 1.5px rgba(124,245,210,.7); }
.day[aria-pressed="true"] { background: var(--givre); color: var(--abysse); box-shadow: 0 6px 18px rgba(124,245,210,.25); }
.day[aria-pressed="true"] .cnt.one, .day[aria-pressed="true"] .cnt.many { background: var(--abysse); }
.rel { display: flex; gap: 10px; align-items: stretch; }
.rel .time { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t5); }
.rel .time.past { color: var(--t4); }
.rel .time i { width: 2px; flex: 1; background: rgba(124,245,210,.22); border-radius: 1px; }
.rel .card { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 9px 8px 9px 9px; margin-bottom: 9px; border-radius: 22px; background: rgba(234,244,247,.07); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shine); }
.rel .poster { width: 48px; height: 68px; border-radius: 12px; }
.rel .poster .ini { font-size: 44px; right: -4px; }
.rel .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.rel .t { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel .e { color: var(--t2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel .meta { display: flex; gap: 6px; align-items: center; }
.lang { padding: 2px 7px; border-radius: 8px; font-weight: 700; font-size: 11px; }
.lang.vf { background: rgba(124,245,210,.16); color: var(--aurore); }
.lang.vo { background: rgba(156,140,255,.2); color: var(--violet-t); }
.who { color: var(--t3); font-size: 12px; }
.rel .act { width: 44px; height: 44px; flex: none; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--glass2); color: var(--t2); }
.rel .act.play { background: var(--aurore); color: var(--abysse); }
.rel .act[aria-pressed="true"] { background: rgba(124,245,210,.18); color: var(--aurore); }
.empty-card { padding: 18px; border-radius: 22px; background: var(--glass); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty-card b { font-size: 16px; font-weight: 600; }

/* ---------------------------------------------------------------- Pour toi */
.pick { margin: 0 18px; position: relative; border-radius: 28px; overflow: hidden; background: var(--maree); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); padding: 14px; display: flex; gap: 14px; }
.pick .g { position: absolute; width: 200px; height: 200px; right: -60px; top: -70px; border-radius: 50%; background: var(--aurore); opacity: .25; filter: blur(50px); }
.pick .poster { width: 104px; height: 150px; }
.pick .txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pill { align-self: flex-start; padding: 4px 9px; border-radius: 9px; background: rgba(124,245,210,.16); color: var(--aurore); font-size: 12px; font-weight: 700; }
.pick .t { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -.3px; }
.pick .m { font-size: 13px; color: var(--t5); }
.pick .why { font-size: 13px; line-height: 17px; gap: 6px; }
.pick-acts { display: flex; gap: 8px; padding: 0 18px; }
.pick-acts .btn { height: 46px; border-radius: 23px; padding: 0 14px; }
.pick-acts .grow { flex: 1; }
.shelf { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.shelf .h { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px; gap: 10px; }
.shelf .h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rail { display: flex; gap: 12px; padding: 0 18px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 14px 10px; }
.pcard { flex: none; width: 118px; text-align: left; display: flex; flex-direction: column; gap: 7px; scroll-snap-align: start; color: var(--t1); }
.rail.grid .pcard { width: auto; }
.pcard .poster { width: 100%; aspect-ratio: 2 / 3; height: auto; }
.pcard .t { font-size: 14px; line-height: 18px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .m { font-size: 12px; color: var(--t2); margin-top: -4px; }

/* ---------------------------------------------------------------- Ajouter */
.search { position: relative; }
.search svg.mag { position: absolute; left: 16px; top: 17px; color: var(--t2); }
.search input { width: 100%; height: 54px; padding: 0 54px 0 46px; border-radius: 18px; border: 0; background: rgba(234,244,247,.09); color: var(--t1); font-size: 17px; box-shadow: inset 0 0 0 1.5px rgba(234,244,247,.12); }
.search input:focus { box-shadow: inset 0 0 0 1.5px rgba(124,245,210,.6); outline: none; }
.search input::placeholder { color: var(--t4); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search .clear { position: absolute; right: 5px; top: 5px; }
.info-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(124,245,210,.07); font-size: 13px; line-height: 18px; color: var(--t5); }
.info-box svg { flex: none; margin-top: 1px; color: var(--aurore); }
.result { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.result .open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; color: var(--t1); }
.result .poster { width: 54px; height: 78px; border-radius: 12px; }
.result .poster .ini { font-size: 66px; right: -5px; }
.result .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result .t { font-size: 16px; line-height: 20px; font-weight: 600; }
.result .m { font-size: 13px; color: var(--t2); }
.result .on { font-size: 12px; font-weight: 700; color: var(--aurore); }
.addbtn { flex: none; height: 44px; padding: 0 14px; border-radius: 22px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; background: var(--aurore); color: var(--abysse); }
.addbtn.done { background: rgba(124,245,210,.16); color: var(--aurore); }
.addbtn.watch { background: var(--glass3); color: var(--t1); }

/* ---------------------------------------------------------------- Bibliothèque */
.resume { flex: none; width: 236px; height: 84px; padding: 8px; border-radius: 20px; background: rgba(234,244,247,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; text-align: left; color: var(--t1); scroll-snap-align: start; }
.resume .poster { width: 46px; height: 66px; border-radius: 10px; }
.resume .poster .ini { font-size: 52px; right: -4px; }
.resume .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.resume .t { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume .m { font-size: 12px; color: var(--t2); }
.resume .track { height: 4px; border-radius: 2px; background: rgba(234,244,247,.12); overflow: hidden; margin-top: 3px; }
.resume .go { width: 36px; height: 36px; flex: none; border-radius: 18px; background: var(--aurore); color: var(--abysse); display: flex; align-items: center; justify-content: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 0 18px; }
.gitem { text-align: left; display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--t1); }
.gitem .poster { width: 100%; aspect-ratio: 2 / 3; border-radius: 14px; }
.gitem .poster .ini { font-size: 100px; right: -6px; }
.gitem .t { font-size: 13px; line-height: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) { .grid3, .rail.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Suivi */
.sums { display: flex; gap: 8px; flex-wrap: wrap; }
.sum { padding: 7px 11px; border-radius: 12px; font-size: 13px; font-weight: 700; background: rgba(124,245,210,.12); color: var(--aurore); }
.sum.warn { background: rgba(255,184,107,.14); color: var(--warn-t); }
.sum.plain { background: var(--glass2); color: var(--t5); font-weight: 600; }
.dl { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.dl.blocked { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1.5px rgba(255,184,107,.45); }
.dl .top { display: flex; gap: 12px; align-items: flex-start; }
.dl .poster { width: 44px; height: 64px; border-radius: 10px; }
.dl .poster .ini { font-size: 52px; right: -4px; }
.dl .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl .tt { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dl .t { font-size: 16px; line-height: 20px; font-weight: 600; }
.owner { flex: none; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(156,140,255,.18); color: var(--violet-t); }
.owner.mine { background: rgba(124,245,210,.14); color: var(--aurore); }
.dl .st { font-size: 13px; line-height: 18px; font-weight: 600; margin-top: 2px; color: var(--t5); }
.dl .st.warn { color: var(--warn-t); }
.dl .st.ok { color: var(--aurore); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.steps div { display: flex; flex-direction: column; gap: 5px; }
.steps i { height: 4px; border-radius: 2px; background: rgba(234,244,247,.12); }
.steps i.done { background: var(--aurore); }
.steps i.now { background: rgba(124,245,210,.55); }
.steps i.now.warn { background: var(--warn); }
.steps span { font-size: 10.5px; font-weight: 600; color: var(--t4); }
.steps span.done { color: var(--t2); }
.steps span.now { color: var(--t1); }
.steps span.now.warn { color: var(--warn-t); }
.track8 { height: 8px; border-radius: 4px; background: rgba(234,244,247,.1); overflow: hidden; }
.stripe { height: 100%; border-radius: 4px; background-color: var(--aurore); transition: width .6s var(--ease);
  background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.18) 75%, transparent 75%); background-size: 28px 28px; animation: stripe 1s linear infinite; }
@keyframes stripe { to { background-position: 28px 0; } }
.dl .acts { display: flex; gap: 8px; }
.dl .acts .btn { flex: 1; font-size: 14px; }
.lock { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t3); }

/* ---------------------------------------------------------------- Notifications (grille) */
.matrix { display: flex; flex-direction: column; gap: 4px; transition: opacity .25s; }
.matrix.off { opacity: .35; pointer-events: none; }
.mhead { display: flex; align-items: flex-end; padding: 0 4px 4px 14px; gap: 4px; font-size: 12px; font-weight: 600; color: var(--t2); }
.mhead span:first-child { flex: 1; font-size: 13px; }
.mhead span { width: 46px; text-align: center; }
.mgroup { padding: 12px 14px 4px; font-size: 12px; font-weight: 700; color: var(--aurore); }
.mrow { display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 4px 0 14px; }
.mrow .l { flex: 1; min-width: 0; font-size: 15px; line-height: 19px; }
.cell { width: 46px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.cell span { width: 36px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.5px rgba(234,244,247,.28); transition: background .2s; }
.cell[aria-pressed="true"] span { background: var(--aurore); color: var(--abysse); box-shadow: none; }
.cell:disabled { opacity: .2; }

/* ---------------------------------------------------------------- Connexion, déverrouillage, questionnaire */
.auth { position: fixed; inset: 0; z-index: 50; background: var(--abysse); overflow-y: auto; display: flex; flex-direction: column; padding: calc(var(--safe-top) + 40px) 18px calc(var(--safe-bottom) + 30px); }
.auth .halo { position: absolute; }
.auth .steps3 { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.auth .bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.auth .bars > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.auth .bars i { height: 5px; border-radius: 3px; background: rgba(234,244,247,.15); transition: background .3s; }
.auth .bars i.on { background: var(--aurore); }
.auth .bars span { font-size: 13px; color: var(--t2); }
.auth .stage { position: relative; flex: 1; display: flex; flex-direction: column; gap: 22px; padding-top: 40px; max-width: 480px; width: 100%; margin: 0 auto; animation: stepIn .35s var(--ease) both; }
.auth .stage.center { align-items: center; text-align: center; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.auth h1 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.7px; }
.auth p { margin: 0; font-size: 16px; line-height: 23px; color: var(--t2); }
.auth .foot { display: flex; flex-direction: column; gap: 10px; max-width: 480px; width: 100%; margin: 24px auto 0; position: relative; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--t5); }
.field .in { position: relative; }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 0; background: var(--glass2); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); color: var(--t1); font-size: 17px; }
.field input:focus { box-shadow: inset 0 0 0 1.5px rgba(124,245,210,.6); outline: none; }
.field input.pw { padding-right: 56px; }
.field .eye { position: absolute; right: 5px; top: 5px; }
.err { font-size: 14px; color: var(--danger); line-height: 20px; }
.codecells { display: grid; gap: 8px; position: relative; }
.codecells .c { height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font: 600 26px var(--brand); background: var(--glass2); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.codecells .c.cur { background: rgba(124,245,210,.08); box-shadow: inset 0 0 0 2px var(--aurore); }
.codecells .c.cur::after { content: ''; width: 2px; height: 26px; background: var(--aurore); border-radius: 1px; animation: caret 1s steps(1) infinite; }
.codecells.eight .c { height: 48px; font-size: 20px; border-radius: 12px; }
.codecells input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; }
@keyframes caret { 50% { opacity: 0; } }
.logo-box { width: 64px; height: 64px; }
.badge-box { width: 64px; height: 64px; border-radius: 20px; background: var(--maree); color: var(--aurore); display: flex; align-items: center; justify-content: center; }
.faceid { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; color: var(--aurore); }
.faceid .pulse { position: absolute; inset: 0; border-radius: 75px; border: 2px solid var(--aurore); animation: pulse 1.6s ease-out infinite; }
.faceid .disc { position: absolute; inset: 10px; border-radius: 65px; background: var(--glass2); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.faceid svg { position: relative; }
@keyframes pulse { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.done-disc { width: 120px; height: 120px; border-radius: 60px; background: var(--aurore); color: var(--abysse); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(124,245,210,.45); animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } to { transform: none; } }

/* questionnaire */
.quiz .bar5 { height: 5px; border-radius: 3px; background: rgba(234,244,247,.12); overflow: hidden; }
.quiz .bar5 .bar { width: 0; transition: width .35s; }
.quiz .top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.deck { position: relative; height: min(392px, 48vh); margin: 18px auto 0; width: min(300px, 78vw); }
.deck .back1, .deck .back2 { position: absolute; inset: 0; border-radius: 28px; }
.deck .back1 { background: #1C3A4B; transform: translateY(11px) scale(.95); opacity: .8; }
.deck .back2 { background: var(--maree); transform: translateY(22px) scale(.9); opacity: .5; }
.qcard { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18); animation: qIn .38s cubic-bezier(.2,.9,.3,1.05) both; touch-action: pan-y; will-change: transform; }
.qcard.fly { transition: transform .35s ease-in, opacity .35s; }
.qcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.qcard img.ok { opacity: 1; }
.qcard .ini { position: absolute; right: -18px; top: -30px; font: 700 300px/1 var(--brand); opacity: .9; }
.qcard .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: linear-gradient(to top, rgba(13,27,38,.96), rgba(13,27,38,0)); }
.qcard .txt { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.qcard .k { align-self: flex-start; padding: 4px 10px; border-radius: 10px; background: rgba(13,27,38,.6); font-size: 12px; font-weight: 700; color: var(--aurore); }
.qcard .t { font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -.4px; }
.qcard .m { font-size: 14px; color: var(--t5); }
.qcard .stamp { position: absolute; top: 24px; padding: 6px 12px; border-radius: 12px; font-weight: 800; font-size: 18px; opacity: 0; transform: rotate(-10deg); }
.qcard .stamp.love { left: 20px; background: var(--aurore); color: var(--abysse); }
.qcard .stamp.skip { right: 20px; background: var(--glass3); color: var(--t1); transform: rotate(10deg); }
@keyframes qIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.qbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qbtns button { height: 68px; border-radius: 22px; background: var(--glass2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; }
.qbtns button.love { background: var(--aurore); color: var(--abysse); font-weight: 700; }
.outline { height: 54px; border-radius: 27px; box-shadow: inset 0 0 0 1.5px rgba(234,244,247,.22); font-size: 16px; font-weight: 600; width: 100%; }

/* ---------------------------------------------------------------- Administration */
.secbox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(124,245,210,.08); font-size: 14px; line-height: 19px; color: var(--t5); }
.secbox.warn { background: rgba(255,184,107,.1); }
.secbox svg { flex: none; color: var(--aurore); }
.secbox.warn svg { color: var(--warn-t); }
.invite { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: var(--maree); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.invite h2 { margin: 0; font-size: 18px; font-weight: 700; }
.code-show { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 18px; background: rgba(13,27,38,.6); animation: pop .35s cubic-bezier(.2,.9,.3,1.15) both; }
.code-show b { font: 600 34px/1.2 var(--brand); letter-spacing: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.log { display: flex; gap: 12px; padding: 11px 12px; align-items: flex-start; }
.log + .log { border-top: 1px solid rgba(234,244,247,.06); }
.log i { width: 8px; height: 8px; flex: none; margin-top: 7px; border-radius: 4px; background: var(--amethyste); }
.log i.other { background: var(--aurore); }
.log i.warn { background: var(--warn); }
.log span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 20px; }
.log small { font-size: 12px; color: var(--t3); }
.manage { padding: 4px 12px 12px 60px; display: flex; flex-direction: column; gap: 8px; }
.dev { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dev span { flex: 1; }

/* ---------------------------------------------------------------- Donner mon avis */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kinds button { height: 64px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; background: var(--glass2); color: var(--t5); }
.kinds button[aria-pressed="true"] { background: var(--givre); color: var(--abysse); }
textarea.msg { min-height: 116px; padding: 14px; border-radius: 18px; border: 0; resize: none; background: var(--glass2); box-shadow: inset 0 0 0 1.5px rgba(124,245,210,.5); color: var(--t1); font-size: 16px; line-height: 22px; width: 100%; }
textarea.msg::placeholder { color: var(--t4); }
.ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx span { padding: 6px 10px; border-radius: 11px; background: var(--glass2); font-size: 13px; color: var(--t5); }
.optrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px; border-radius: 18px; background: var(--glass); }
.optrow span.l { flex: 1; font-size: 15px; }

/* ---------------------------------------------------------------- ouverture (≈ 2,6 s, jamais bloquante) */
#opening { position: fixed; inset: 0; z-index: 100; background: var(--night); overflow: hidden; }
#opening .zoom { position: absolute; inset: 0; }
#opening svg.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-stars { animation: obStarsIn 2s ease-out both; }
.ob-star { animation: obTw 1.3s ease-in-out infinite alternate; }
.ob-planet { transform-box: fill-box; transform-origin: center; animation: obPlanet .55s cubic-bezier(.2,.9,.3,1.1) .12s both; }
.ob-ringb { stroke-dasharray: 173.4; stroke-dashoffset: 0; animation: obRingDraw 1.05s cubic-bezier(.55,0,.25,1) .45s both; }
.ob-head { stroke-dasharray: .01 173.39; stroke-dashoffset: -182; animation: obHeadIn .25s ease-out .2s both, obHeadRun 1.05s cubic-bezier(.55,0,.25,1) .45s both; }
.ob-wave { transform-box: fill-box; transform-origin: center; opacity: 0; animation: obWave .7s cubic-bezier(.2,.8,.3,1) 1.42s both; }
.ob-bloom { transform-box: fill-box; transform-origin: center; animation: obBloom .8s cubic-bezier(.2,.8,.2,1) 1s both; }
.ob-bloom.b2 { animation-delay: 1.02s; }
.ob-shine { animation: obShine .5s ease-in-out 1.3s both; }
.ob-streak { stroke-dasharray: 70 1200; stroke-dashoffset: 70; opacity: 0; animation: obWarp .55s cubic-bezier(.5,0,.8,.4) 1.82s both; }
#opening .word { position: absolute; left: 0; right: 0; text-align: center; font: 600 36px var(--brand); letter-spacing: 3px; }
.ob-l { display: inline-block; animation: obLetter .5s cubic-bezier(.2,.8,.2,1) both; }
#opening .skip { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 28px); text-align: center; font-size: 13px; color: var(--t4); animation: fadeIn .4s 1.2s both; }
@keyframes obStarsIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(-10px); } }
@keyframes obTw { from { opacity: .25; } to { opacity: 1; } }
@keyframes obPlanet { 0% { opacity: 0; transform: scale(.1); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes obRingDraw { from { stroke-dashoffset: 173.4; } to { stroke-dashoffset: 0; } }
@keyframes obHeadRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -182; } }
@keyframes obHeadIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes obWave { 0% { opacity: 0; transform: scale(1); } 8% { opacity: .9; transform: scale(1.05); } 100% { opacity: 0; transform: scale(2.3); } }
@keyframes obBloom { from { opacity: 0; transform: scale(.2); } to { opacity: .6; transform: scale(1); } }
@keyframes obShine { 0% { transform: translateX(-34px); opacity: 0; } 20% { opacity: .6; } 80% { opacity: .6; } 100% { transform: translateX(34px); opacity: 0; } }
@keyframes obLetter { from { opacity: 0; transform: translateY(20px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes obWarp { 0% { stroke-dashoffset: 70; opacity: 0; } 20% { opacity: .95; } 100% { stroke-dashoffset: -560; opacity: 0; } }
/* entrée des éléments de l'écran après l'ouverture */
.cascade > * { animation: rise .5s var(--ease) both; }

/* ---------------------------------------------------------------- Réduire les animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sk::after { display: none; }
}
