/* I will kNOW — "ciel qui bascule du jour à la nuit".
   Fond clair et aéré, hero bleu ciel → indigo avec grain, messages = lettres scellées. */

:root {
  --sky: #38BDF8; --sky-d: #0EA5E9; --sky-l: #BAE6FD; --sky-xl: #E0F2FE;
  --indigo: #4F46E5; --indigo-l: #818CF8; --indigo-xl: #E0E7FF; --deep: #312E81; --night: #1E1B4B;
  --bg: #F2F7FF; --paper: #FFFFFF; --ink: #1E1B4B; --muted: #5D6394; --line: rgba(79, 70, 229, .13);
  --danger: #E11D48; --ok: #059669;
  --grad: linear-gradient(135deg, #38BDF8 0%, #4F46E5 58%, #312E81 100%);
  --shadow: 0 1px 2px rgba(30, 27, 75, .06), 0 14px 32px -16px rgba(49, 46, 129, .32);
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Figtree', ui-rounded, 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
em.now, .now { font-style: normal; color: var(--sky-d); }

/* ───────── Cadre téléphone (desktop) ───────── */
.stage { min-height: 100%; display: grid; place-items: center; }
.phone { position: relative; width: 100%; height: 100dvh; background: var(--bg); overflow: hidden; isolation: isolate; }
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(1200px 600px at 15% -10%, rgba(56, 189, 248, .35), transparent 60%),
      radial-gradient(900px 700px at 100% 110%, rgba(79, 70, 229, .55), transparent 60%),
      linear-gradient(160deg, #1E1B4B, #12103a);
  }
  .stage { padding: 24px; }
  .phone {
    width: 410px; height: min(880px, calc(100dvh - 48px)); border-radius: 46px;
    box-shadow: 0 0 0 10px #0d0b2e, 0 0 0 11px rgba(186, 230, 253, .25), 0 50px 90px -20px rgba(0, 0, 0, .7), 0 0 120px -10px rgba(56, 189, 248, .35);
  }
}

/* ───────── Écran ───────── */
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 116px; scrollbar-width: none; outline: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.no-tabs { padding-bottom: 32px; }
.pad { padding: 0 18px; }
.stack > * + * { margin-top: 14px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }

/* ───────── Hero ───────── */
.hero {
  position: relative; color: #fff; padding: max(22px, env(safe-area-inset-top)) 22px 64px; overflow: hidden;
  background: var(--grad); border-radius: 0 0 34px 34px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background:
    radial-gradient(1.5px 1.5px at 78% 22%, #fff, transparent), radial-gradient(1px 1px at 88% 44%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 12%, #E0F2FE, transparent), radial-gradient(1px 1px at 92% 10%, #fff, transparent),
    radial-gradient(1px 1px at 55% 38%, #BAE6FD, transparent), radial-gradient(180px 140px at 12% 0%, rgba(224, 242, 254, .4), transparent);
}
.hero > * { position: relative; z-index: 1; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: 31px; line-height: 1.08; letter-spacing: -.01em; font-variation-settings: "opsz" 96; }
.hero p { margin-top: 8px; font-size: 15px; opacity: .92; }
.overlap { margin-top: -38px; position: relative; z-index: 2; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: #fff; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px rgba(30, 27, 75, .35); }
.brand .now { color: var(--sky-l); font-weight: 700; }
.brand.dark { color: var(--ink); } .brand.dark .now { color: var(--sky-d); }

.chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .22); }
.chip b { font-family: var(--display); font-size: 15px; }

/* ───────── Avatars ───────── */
.av { --s: 44px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--s) * .5); line-height: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.t0 { background: linear-gradient(135deg, #BAE6FD, #38BDF8); } .t1 { background: linear-gradient(135deg, #A5B4FC, #4F46E5); }
.t2 { background: linear-gradient(135deg, #C4B5FD, #6366F1); } .t3 { background: linear-gradient(135deg, #99F6E4, #0EA5E9); }
.t4 { background: linear-gradient(135deg, #FBCFE8, #818CF8); } .t5 { background: linear-gradient(135deg, #FDE68A, #38BDF8); }

/* ───────── Titres de section ───────── */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.overlap > div:first-child > .sec:first-child { margin-top: 50px; }
.sec h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sec span { font-size: 13px; color: var(--muted); }

/* ───────── Lettres scellées ───────── */
.letter { position: relative; background: var(--paper); border-radius: 22px; padding: 16px 16px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; overflow: hidden; transition: transform .18s ease; display: block; width: 100%; text-align: left; }
.letter:active { transform: scale(.985); }
.letter + .letter { margin-top: 12px; }
.letter-top { display: flex; align-items: center; gap: 11px; }
.letter-who { font-weight: 700; font-size: 15px; line-height: 1.2; }
.letter-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.letter-body { margin-top: 12px; font-family: var(--display); font-size: 17px; line-height: 1.45; max-height: 4.4em; overflow: hidden; overflow-wrap: anywhere; font-variation-settings: "opsz" 24; }
.letter.locked .letter-body { filter: blur(6.5px); opacity: .62; user-select: none; pointer-events: none; }
.letter.locked::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(224, 231, 255, .55)); pointer-events: none; }
.letter-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; position: relative; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px; background: var(--indigo-xl); color: var(--deep); font-weight: 600; font-size: 13px; }
.seal .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.seal .cd { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); }
.letter.ready { border: 2px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box; animation: glow 2.6s ease-in-out infinite; }
.letter.ready .seal { background: var(--grad); color: #fff; }
.letter.ready .seal .dot { background: rgba(255, 255, 255, .25); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .0), var(--shadow); } 50% { box-shadow: 0 0 0 6px rgba(56, 189, 248, .22), var(--shadow); } }
.badge-new { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); background: var(--sky-xl); padding: 4px 9px; border-radius: 999px; }

/* ───────── Carte générique, formulaires ───────── */
.card { background: var(--paper); border-radius: 22px; padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { font-size: 16px; font-weight: 700; }
.card p.sub { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
label.lab { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 2px 8px; }
.field { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: var(--indigo-l); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.field + .field { margin-top: 10px; }
textarea.field { font-family: var(--display); font-size: 18px; line-height: 1.5; min-height: 168px; resize: none; font-variation-settings: "opsz" 24;
  background-image: repeating-linear-gradient(transparent 0 26px, rgba(79, 70, 229, .07) 26px 27px); background-attachment: local; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
a.btn, a.iconbtn, a.tab, a.fab { text-decoration: none; }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .7); }
.btn.soft { background: var(--indigo-xl); color: var(--deep); }
.btn.ghost { color: var(--indigo); padding: 10px 14px; }
.btn.danger { color: var(--danger); background: rgba(225, 29, 72, .08); }
.btn.block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--indigo-xl); border-radius: 999px; }
.seg button { padding: 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--indigo); box-shadow: 0 2px 10px rgba(49, 46, 129, .15); }

/* ───────── Écrire ───────── */
.topbar { display: flex; align-items: center; gap: 8px; padding: max(14px, env(safe-area-inset-top)) 12px 6px; }
.topbar h1 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dest { display: flex; gap: 10px; overflow-x: auto; padding: 2px 18px 8px; margin: 0 -18px; scrollbar-width: none; }
.dest::-webkit-scrollbar { display: none; }
.dest button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; padding: 10px 4px; border-radius: 18px; background: #fff; border: 2px solid transparent; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; transition: border-color .15s, transform .15s; }
.dest button[aria-pressed="true"] { border-color: var(--indigo-l); background: var(--sky-xl); transform: translateY(-2px); }
.dest button span.nm { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest .plus { --s: 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-xl); color: var(--indigo); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { padding: 11px 4px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px; line-height: 1.15; text-align: center; transition: all .15s; }
.presets button small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px; }
.presets button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8); }
.presets button[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.when { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--sky-xl), var(--indigo-xl)); font-size: 14.5px; line-height: 1.45; }
.when b { font-family: var(--display); font-size: 16px; }
.sticky-cta { position: sticky; bottom: 0; padding: 18px 18px 22px; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 38%); z-index: 3; }

/* ───────── Détail d'un message ───────── */
.paper { position: relative; margin: 8px 18px 0; padding: 26px 22px 24px; background: #fff; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.paper .from { display: flex; align-items: center; gap: 12px; }
.paper .from b { display: block; font-size: 16px; }
.paper .from span { font-size: 13px; color: var(--muted); }
.paper .text { margin-top: 20px; font-family: var(--display); font-size: 21px; line-height: 1.55; font-variation-settings: "opsz" 36; white-space: pre-wrap; overflow-wrap: anywhere;
  background-image: repeating-linear-gradient(transparent 0 32px, rgba(79, 70, 229, .07) 32px 33px); background-attachment: local; }
.paper.locked .text { filter: blur(8px); opacity: .55; user-select: none; }
.wax { position: absolute; top: -14px; right: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; transform: rotate(-9deg); box-shadow: 0 10px 22px -8px rgba(49, 46, 129, .7), inset 0 0 0 3px rgba(255, 255, 255, .28); }
.wax .icon { width: 26px; height: 26px; }
.boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 18px 0; }
.boxes div { text-align: center; padding: 14px 4px 10px; border-radius: 18px; background: var(--night); color: #fff; box-shadow: 0 14px 26px -14px rgba(30, 27, 75, .8); }
.boxes .n { display: block; font-family: var(--display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.boxes .l { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-l); }
.patience { margin: 20px 26px 0; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.patience b { color: var(--ink); }

/* ───────── Amis / lignes ───────── */
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.row + .row { margin-top: 10px; }
.row .grow { flex: 1; min-width: 0; }
.row b { display: block; font-size: 15px; }
.row small { color: var(--muted); font-size: 13px; }
.row .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline { display: flex; gap: 8px; }
.inline .field { flex: 1; min-width: 0; }
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--sky-xl); border: 1.5px dashed var(--indigo-l); font-size: 13.5px; color: var(--deep); font-weight: 600; }
.linkbox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 34px 26px; color: var(--muted); }
.empty .big { font-family: var(--display); font-size: 21px; color: var(--ink); margin-bottom: 6px; display: block; font-weight: 600; }
.empty p { font-size: 14.5px; line-height: 1.5; }
.empty .btn { margin-top: 16px; }

/* ───────── Profil ───────── */
.profile-hero { text-align: center; }
.profile-hero .av { --s: 92px; margin: 0 auto 12px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 16px 30px -10px rgba(30, 27, 75, .6); }
.profile-hero h1 { font-size: 28px; }
.profile-hero p { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats div { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 14px 6px; text-align: center; box-shadow: var(--shadow); }
.stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--indigo); line-height: 1; }
.stats span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.picker button { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--indigo-xl); border: 2px solid transparent; }
.picker button[aria-pressed="true"] { border-color: var(--indigo); background: #fff; }
.tints { display: flex; gap: 10px; }
.tints button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.tints button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--indigo); }

/* ───────── Accueil non connecté ───────── */
.welcome .hero { padding-bottom: 88px; border-radius: 0 0 44px 44px; }
.welcome .logo-big { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 18px 36px -12px rgba(30, 27, 75, .7); margin-bottom: 20px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.welcome h1 { font-size: 40px; }
.welcome h1 .now { color: var(--sky-l); }
.tagline { font-family: var(--display); font-style: italic; font-size: 19px; margin-top: 10px; opacity: .95; font-weight: 400; }
.pitch { display: grid; gap: 10px; margin: 6px 0 4px; }
.pitch li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.pitch li b { color: var(--ink); }
.pitch li i { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--indigo-xl); color: var(--indigo); font-style: normal; }
.pitch { padding: 0; }
.invite-banner { position: relative; }
.invite-banner .letter { cursor: default; }

/* ───────── Barre d'onglets ───────── */
.tabbar { position: absolute; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; display: grid; grid-template-columns: 1fr 1fr 74px 1fr 1fr; align-items: center; padding: 8px 6px; border-radius: 30px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 18px 40px -14px rgba(30, 27, 75, .45); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .2s; }
.tab .icon { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--indigo); }
.tab[aria-current="page"]::after { content: ""; position: absolute; top: -8px; width: 22px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad); }
.tab .pip { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.fab { justify-self: center; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 16px 26px -8px rgba(79, 70, 229, .8); transition: transform .2s; }
.fab:active { transform: scale(.92) rotate(-6deg); }
.fab .icon { width: 28px; height: 28px; stroke-width: 2.4; }

/* ───────── Toast ───────── */
.toast { position: absolute; left: 50%; bottom: 112px; z-index: 60; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--night); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.no-tabs-page ~ .toast, .phone.no-tabbar .toast { bottom: 32px; }

/* ───────── Overlays : scellage & ouverture ───────── */
.overlay { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; color: #fff; padding: 30px;
  background: radial-gradient(600px 400px at 50% 30%, rgba(56, 189, 248, .5), transparent 70%), linear-gradient(170deg, #4F46E5, #1E1B4B 75%); animation: fadein .3s both; }
.overlay::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .14; mix-blend-mode: overlay; }
.overlay.out { animation: fadeout .5s both; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
.ov-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.ov-lock { width: 150px; height: 165px; overflow: visible; }
.ov-lock .body { fill: #fff; }
.ov-lock .hole { fill: var(--indigo); }
.ov-lock .shackle { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; transform-box: fill-box; }
.ov-title { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; font-variation-settings: "opsz" 96; }
.ov-sub { font-size: 15.5px; opacity: .88; line-height: 1.5; max-width: 270px; }
.ov-title, .ov-sub { opacity: 0; animation: rise .7s .5s both; }
.ov-sub { animation-delay: .8s; }
.ov-skip { position: absolute; bottom: 26px; left: 0; right: 0; font-size: 13px; opacity: .6; }

/* scellage : l'anse descend et se verrouille */
.seal-fx .shackle { transform-origin: 50% 100%; animation: shut 1s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.seal-fx .body { animation: thud .35s 1.1s both; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes shut { from { transform: translateY(-34px); } to { transform: none; } }
@keyframes thud { 40% { transform: scale(1.06, .94); } }
.ring { position: absolute; left: 50%; top: 82px; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 3px solid var(--sky-l); opacity: 0; }
.seal-fx .ring { animation: ring 1s 1.15s ease-out both; }
.seal-fx .ring.b { animation-delay: 1.3s; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(9); } }

/* ouverture : secousse, l'anse s'ouvre, gerbe d'étincelles */
.open-fx .lockwrap { animation: shake .55s .2s both; }
.open-fx .shackle { transform-origin: 100% 100%; animation: unlatch .7s .85s cubic-bezier(.2, 1.4, .4, 1) both; }
.open-fx .lockwrap { animation-name: shake, fly; animation-duration: .55s, .6s; animation-delay: .2s, 1.55s; animation-fill-mode: both, both; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
@keyframes unlatch { to { transform: translateY(-20px) rotate(-38deg); } }
@keyframes fly { to { transform: translateY(-16px) scale(.6); opacity: 0; } }
.spark { position: absolute; left: 50%; top: 88px; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--sky-l); opacity: 0; animation: burst 1s 1.2s ease-out both; }
.spark:nth-child(3n) { background: #fff; width: 6px; height: 6px; } .spark:nth-child(3n+1) { background: var(--sky); }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--d)) scale(.2); } }
.open-fx .ov-title, .open-fx .ov-sub { animation-delay: 1.5s; } .open-fx .ov-sub { animation-delay: 1.8s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* ───────── V2 : feuilles (menus, signalement, suppression) ───────── */
.sheet { position: absolute; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.sheet-bg { position: absolute; inset: 0; background: rgba(30, 27, 75, .5); backdrop-filter: blur(3px); animation: fadein .25s both; }
.sheet-panel { position: relative; width: 100%; max-height: 92%; overflow-y: auto; background: var(--bg); border-radius: 30px 30px 0 0; padding: 12px 20px max(24px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px -20px rgba(30, 27, 75, .6); animation: sheetup .35s cubic-bezier(.2, .9, .25, 1) both; }
.sheet-panel::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: rgba(79, 70, 229, .25); margin: 0 auto 16px; }
@keyframes sheetup { from { transform: translateY(100%); } }
.sh-title { font-family: var(--display); font-size: 23px; font-weight: 600; margin-bottom: 6px; }
.sh-sub { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; }
.sh-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.menu { display: grid; gap: 8px; margin: 12px 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; text-align: left; text-decoration: none; color: var(--ink); }
.menu-item.danger { color: var(--danger); }
.reasons { display: grid; gap: 8px; margin-bottom: 12px; }
.reasons button { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; text-align: left; }
.reasons button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--indigo-l); flex: none; }
.reasons button[aria-pressed="true"] { border-color: var(--indigo); background: var(--sky-xl); }
.reasons button[aria-pressed="true"]::before { background: var(--indigo); box-shadow: inset 0 0 0 3px var(--sky-xl); }
label.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); }
label.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--indigo); flex: none; }
label.chk a { color: var(--indigo); font-weight: 600; }
.terms { margin-top: 14px; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.switchrow small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: #C7CCF0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(30, 27, 75, .3); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--indigo); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.notice { font-size: 14px; line-height: 1.5; color: var(--muted); padding: 12px 14px; border-radius: 16px; background: var(--indigo-xl); margin-top: 12px; }
.linklist a { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.linklist a:first-of-type { border-top: 0; }
.linklist a span { color: var(--muted); font-weight: 500; }
.danger-card { border-color: rgba(225, 29, 72, .25); background: #fff8fa; }
.danger-card h3 { color: var(--danger); }
.authlinks { text-align: center; font-size: 13.5px; color: var(--muted); padding: 4px 10px 0; }
.authlinks a { color: var(--indigo); font-weight: 600; }
.still .rise > *, .still .ov-title, .still .ov-sub { animation: none !important; }
