/* =========================================================================
   Love Story : feuille de style
   Mise en page : application mobile plein écran. Sur ordinateur, l'appli est
   présentée dans un cadre de téléphone, avec un panneau de présentation à gauche.
   ========================================================================= */

:root {
  /* Couleurs */
  --bg: #ffffff;
  --bg-soft: #f4f3f6;
  --bg-softer: #faf9fb;
  --surface: #ffffff;
  --fg: #1f1d24;
  --fg-soft: #6d6a76;
  --fg-faint: #a29fab;
  --line: #e8e6ec;
  --brand-a: #ff2d6f;
  --brand-b: #ff7a3d;
  --brand: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  --brand-ink: #e0245d;
  --nope: #ff4458;
  --like: #12c48b;
  --coeur: #a64dff;
  --boost: #2f9bff;
  --gold-a: #ffd86b;
  --gold-b: #f5b40b;
  --warn: #f5a524;
  --scrim: rgba(14, 12, 20, .55);
  --shadow-1: 0 1px 2px rgba(31, 29, 36, .06), 0 2px 8px rgba(31, 29, 36, .06);
  --shadow-2: 0 8px 28px rgba(31, 29, 36, .14);
  --shadow-card: 0 14px 40px rgba(31, 29, 36, .22);
  /* Typo */
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 17px; --t-xl: 22px; --t-2xl: 28px; --t-3xl: 34px;
  /* Formes */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e13; --bg-soft: #1b1a21; --bg-softer: #151419; --surface: #18171d;
    --fg: #f4f2f7; --fg-soft: #a8a4b3; --fg-faint: #6f6b7a; --line: #2a2830;
    --brand-ink: #ff5a8a; --scrim: rgba(0, 0, 0, .65);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 8px 28px rgba(0, 0, 0, .5); --shadow-card: 0 14px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0f0e13; --bg-soft: #1b1a21; --bg-softer: #151419; --surface: #18171d;
    --fg: #f4f2f7; --fg-soft: #a8a4b3; --fg-faint: #6f6b7a; --line: #2a2830;
    --brand-ink: #ff5a8a; --scrim: rgba(0, 0, 0, .65);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 8px 28px rgba(0, 0, 0, .5); --shadow-card: 0 14px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font); font-size: var(--t-md); line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--brand-ink); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--boost); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cadre de l'application ---------- */
.stage { min-height: 100%; }
.app {
  position: relative; width: 100%; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden;
  display: flex; flex-direction: column; background: var(--bg);
  padding-top: env(safe-area-inset-top, 0px);
}
.aside { display: none; }

@media (min-width: 960px) {
  body { background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 45, 111, .16), transparent 60%),
                     radial-gradient(900px 600px at 90% 90%, rgba(255, 122, 61, .14), transparent 60%), var(--bg-softer); }
  .stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 32px; }
  .aside { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
  .aside .brand-xl { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
  .aside .brand-xl svg { width: 48px; height: 48px; }
  .aside h2 { font-size: 34px; font-weight: 800; }
  .aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .aside li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-soft); }
  .aside li b { color: var(--fg); display: block; }
  .aside li .ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-1); }
  .aside li .ic svg { width: 20px; height: 20px; }
  .aside small { color: var(--fg-faint); }
  .app { width: 412px; height: min(880px, calc(100vh - 64px)); border-radius: 44px; flex: none;
    box-shadow: 0 0 0 12px #111, 0 0 0 13px #2a2a2a, 0 40px 80px rgba(20, 10, 30, .35); padding-top: 14px; }
}

/* Vues internes */
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pad { padding-left: 16px; padding-right: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; align-items: center; justify-content: center; }
.muted { color: var(--fg-soft); }
.faint { color: var(--fg-faint); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Barre du haut ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 8px; min-height: 52px; flex: none; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 24px; letter-spacing: -.04em; }
.logo svg { width: 26px; height: 26px; }
.topbar .actions-r { display: flex; align-items: center; gap: 8px; }
.page-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 54px; flex: none; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.page-head h1 { font-size: var(--t-lg); font-weight: 800; flex: 1; min-width: 0; }
.icon-btn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--fg); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.soft { background: var(--bg-soft); }

/* Jauge de swipes */
.gauge { display: flex; align-items: center; gap: 7px; border: 0; background: var(--bg-soft); border-radius: 999px; padding: 4px 11px 4px 4px; font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.gauge svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.gauge .track { stroke: var(--line); }
.gauge .val { stroke: url(#g-brand); transition: stroke-dashoffset .5s var(--ease); }
.chip-btn { display: flex; align-items: center; gap: 6px; border: 0; background: var(--bg-soft); border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.chip-btn svg { width: 16px; height: 16px; }
.chip-btn.boosted { background: color-mix(in srgb, var(--boost) 16%, transparent); color: var(--boost); }

/* ---------- Barre d'onglets ---------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--bg);
  padding: 4px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; color: var(--fg-faint); position: relative; font-size: 10.5px; font-weight: 700; }
.tab svg { width: 26px; height: 26px; transition: transform .25s var(--spring); }
.tab[aria-selected="true"] { color: var(--brand-ink); }
.tab[aria-selected="true"] svg { transform: scale(1.08); }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand-a); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
@media (min-width: 960px) { .tabbar { padding-bottom: 16px; border-radius: 0 0 44px 44px; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 22px;
  font-weight: 800; font-size: var(--t-md); letter-spacing: .01em; color: #fff; background: var(--brand); transition: transform .15s var(--ease), opacity .2s, filter .2s; text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:disabled { opacity: .45; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--bg-soft); color: var(--fg); }
.btn.outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.white { background: #fff; color: var(--brand-ink); }
.btn.glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn.violet { background: var(--coeur); }
.btn.danger { background: var(--nope); }
.btn.sm { padding: 10px 16px; font-size: var(--t-sm); }
.btn svg { width: 18px; height: 18px; }
.link-btn { border: 0; background: none; color: var(--brand-ink); font-weight: 700; padding: 8px 4px; }
.link-btn:disabled { color: var(--fg-faint); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.loader { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--bg-soft); border-top-color: var(--brand-a); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-weight: 700; font-size: var(--t-sm); color: var(--fg-soft); }
.input, .field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg-soft); border: 1.5px solid transparent; border-radius: var(--r-md);
  padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-a); background: var(--surface); outline: none; }
.counter-line { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--fg-faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > * { min-width: 0; }
.error { color: var(--nope); font-weight: 700; font-size: var(--t-sm); }
.error.on-dark { color: #fff; background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 10px 14px; text-align: center; }
.tel-row { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.tel-row > * { min-width: 0; }

/* Code SMS en cases */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span { height: 58px; border-radius: var(--r-md); background: var(--bg-soft); display: grid; place-items: center; font-size: 26px; font-weight: 800; border: 1.5px solid transparent; transition: border-color .2s; }
.otp span.on { border-color: var(--brand-a); background: var(--surface); }
.otp input { position: absolute; inset: 0; opacity: 0; font-size: 16px; width: 100%; letter-spacing: 3em; }

/* Puces de choix */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: var(--t-sm); transition: all .15s; }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--brand); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: var(--t-sm); background: var(--bg-soft); }
.tag.common { background: color-mix(in srgb, var(--brand-a) 14%, transparent); color: var(--brand-ink); }
.tag svg { width: 15px; height: 15px; }
.pill-se, .tag-se { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #c026d3); color: #fff; font-weight: 800; font-size: var(--t-sm); }
.tag-se { padding: 6px 12px; }

/* Cartes de choix (inscription) */
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 16px; transition: border-color .15s, transform .15s; }
.choice:active { transform: scale(.98); }
.choice[aria-pressed="true"] { border-color: var(--brand-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-a) 18%, transparent); }
.choice .em { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-soft); flex: none; }
.choice b { display: block; font-size: var(--t-lg); }
.choice > span:last-child { min-width: 0; }

/* ---------- Accueil (avant connexion) ---------- */
.landing { flex: 1; display: flex; flex-direction: column; color: #fff; background: var(--brand); position: relative; overflow: hidden; }
.landing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 0%, rgba(255, 255, 255, .25), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(120, 0, 60, .35), transparent 60%); }
.landing > * { position: relative; }
.landing .hero-cards { flex: 1; min-height: 260px; position: relative; display: grid; place-items: center; }
.hc { position: absolute; width: 150px; height: 210px; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 0, 30, .35); border: 3px solid rgba(255, 255, 255, .9); animation: float 6s ease-in-out infinite; }
.hc:nth-child(1) { transform: translate(-95px, 10px) rotate(-12deg); animation-delay: -1s; }
.hc:nth-child(2) { transform: translate(95px, 20px) rotate(10deg); animation-delay: -3s; }
.hc:nth-child(3) { transform: translate(0, -12px) rotate(-2deg); z-index: 1; width: 170px; height: 236px; }
.hc .hc-name { position: absolute; left: 10px; bottom: 8px; font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.hc-heart { position: absolute; z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(60, 0, 30, .35); transform: translate(70px, 100px); animation: pop 2.4s var(--spring) infinite; }
.hc-heart svg { width: 30px; height: 30px; }
@keyframes float { 50% { margin-top: -10px; } }
@keyframes pop { 0%, 70%, 100% { scale: 1; } 80% { scale: 1.18; } }
.landing .hero-text { padding: 0 24px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.landing .brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 38px; font-weight: 800; letter-spacing: -.045em; }
.landing .brand svg { width: 40px; height: 40px; }
.landing h1 { font-size: var(--t-xl); font-weight: 700; opacity: .95; }
.landing .cities { font-size: var(--t-sm); opacity: .85; font-weight: 600; }
.landing .cta { padding: 22px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.landing .legal { font-size: var(--t-xs); text-align: center; opacity: .85; }
.landing .legal a { color: #fff; font-weight: 700; }

/* ---------- Étapes (inscription) ---------- */
.steps-head { padding: 6px 12px 0; display: flex; align-items: center; gap: 8px; flex: none; }
.steps-head .count { flex: 1; text-align: center; font-size: var(--t-sm); font-weight: 700; color: var(--fg-soft); }
.progress { height: 4px; border-radius: 4px; background: var(--bg-soft); margin: 8px 16px 0; overflow: hidden; flex: none; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s var(--ease); }
.step { padding: 22px 20px 16px; display: flex; flex-direction: column; gap: 16px; animation: stepIn .35s var(--ease); }
.step h1 { font-size: var(--t-2xl); font-weight: 800; }
.step .lead { color: var(--fg-soft); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.step-foot { flex: none; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--t-sm); color: var(--fg-soft); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--fg-soft); }
.big-age { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }

/* Grille de photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-md); border: 2px dashed var(--line); background: var(--bg-soft) center / cover no-repeat; display: grid; place-items: center; padding: 0; color: var(--brand-ink); }
.slot .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; box-shadow: var(--shadow-1); }
.slot.filled { border: 0; }
.slot.filled .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.slot .main { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; }
.slot.busy::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .5); }

/* Questions de profil */
.prompt-card { border-radius: var(--r-lg); background: var(--bg-soft); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.prompt-card .q { font-size: var(--t-sm); font-weight: 700; color: var(--fg-soft); }
.prompt-card .r { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.prompt-edit { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; text-align: left; width: 100%; }
.prompt-edit > span { flex: 1; min-width: 0; }
.prompt-edit b { display: block; font-size: var(--t-sm); color: var(--fg-soft); }
.prompt-edit.add { border-style: dashed; color: var(--brand-ink); font-weight: 700; justify-content: center; }

/* ---------- Pile de cartes ---------- */
.deck-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 2px 12px 0; }
.deck { position: relative; flex: 1; min-height: 340px; }
.card { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #222; box-shadow: var(--shadow-card);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; transition: transform .35s var(--ease), opacity .35s; }
.card.next { transform: scale(.94) translateY(12px); filter: brightness(.82); }
.card.dragging { transition: none; }
.photo { position: absolute; inset: 0; background: #2a2a2a center / cover no-repeat; }
video.photo { width: 100%; height: 100%; object-fit: cover; background: transparent; }
video.photo[hidden] { display: none; }
.integre { display: flex; flex-direction: column; gap: 8px; background: rgba(0, 0, 0, .28); color: #fff; border-radius: 16px; padding: 12px 14px; text-align: center; font-size: var(--t-sm); }
.integre b { font-size: 16px; }
.badge-video { position: absolute; top: 26px; left: 14px; z-index: 3; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none; }
.badge-video[hidden] { display: none; }
.fiche-photo .son { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; z-index: 2; }
.video-slot { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; width: min(100%, 240px); margin: 0 auto; background: #111; }
.video-slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-slot .x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; line-height: 1; }
.video-slot .main { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 10px; }
.card .bars { position: absolute; top: 8px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.card .bars span { flex: 1; height: 3.5px; border-radius: 4px; background: rgba(255, 255, 255, .38); }
.card .bars span.on { background: #fff; }
.tapzone { position: absolute; top: 0; bottom: 45%; width: 50%; z-index: 2; border: 0; background: none; padding: 0; }
.tapzone.l { left: 0; } .tapzone.r { right: 0; }
.shade { position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5) 45%, transparent); pointer-events: none; }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 18px; color: #fff; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.card .name { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: center; gap: 8px; }
.card .name small { font-size: 26px; font-weight: 500; }
.card .line { display: flex; align-items: center; gap: 6px; font-size: var(--t-md); opacity: .94; min-width: 0; }
.card .line svg { width: 16px; height: 16px; flex: none; }
.card .line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .glass-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .glass-tags span { font-size: var(--t-sm); font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card .glass-tags span.common { background: #fff; color: #1f1d24; }
.card .more { position: absolute; right: 14px; bottom: 18px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card .more svg { width: 20px; height: 20px; }
.pill-new { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--like); color: #fff; }
.pill-liked { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.stamp { position: absolute; top: 48px; z-index: 5; font-size: 42px; font-weight: 800; letter-spacing: .04em; padding: 2px 12px; border: 5px solid; border-radius: 12px; opacity: 0; pointer-events: none; }
.stamp.like { left: 22px; color: var(--like); transform: rotate(-16deg); }
.stamp.nope { right: 22px; color: var(--nope); transform: rotate(16deg); }
.stamp.coeur { left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-8deg); color: var(--coeur); font-size: 34px; }
.report-btn { position: absolute; top: 20px; right: 12px; z-index: 4; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.verif { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--boost); color: #fff; flex: none; }
.verif svg { width: 15px; height: 15px; }
.verif.sm { width: 17px; height: 17px; } .verif.sm svg { width: 11px; height: 11px; }
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: var(--like); display: inline-block; flex: none; box-shadow: 0 0 0 2px rgba(18, 196, 139, .25); }

.actions { flex: none; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0 12px; }
.rb { position: relative; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-2); display: grid; place-items: center; transition: transform .2s var(--spring); }
.rb:hover { transform: scale(1.06); }
.rb:active { transform: scale(.88); }
.rb svg { width: 48%; height: 48%; }
.rb.s { width: 50px; height: 50px; }
.rb.l { width: 66px; height: 66px; }
.rb .lab { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); background: var(--coeur); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.kbd-hint { text-align: center; font-size: var(--t-xs); color: var(--fg-faint); padding-bottom: 6px; display: none; }
@media (min-width: 960px) and (hover: hover) { .kbd-hint { display: block; } }

/* États vides */
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.empty-state h2 { font-size: var(--t-xl); font-weight: 800; }
.empty-state p { color: var(--fg-soft); max-width: 300px; }
.radar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 14px; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-a); opacity: .3; animation: pulse 2.6s ease-out infinite; }
.radar::after { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(1); opacity: .32; } to { transform: scale(2.3); opacity: 0; } }
.avatar { position: relative; border-radius: 50%; overflow: hidden; background: var(--bg-soft) center / cover no-repeat; flex: none; }
.radar .avatar { width: 112px; height: 112px; z-index: 1; border: 4px solid var(--bg); }
.clock { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* Squelette de chargement */
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--line) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Fiche profil complète ---------- */
.fiche { position: absolute; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; animation: slideUp .35s var(--ease); }
@keyframes slideUp { from { transform: translateY(100%); } }
.fiche .close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fiche .close svg { width: 22px; height: 22px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .ph { flex: none; width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; position: relative; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.carousel-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.carousel-dots i.on { background: var(--brand-a); width: 18px; border-radius: 4px; }
.fiche-body { padding: 16px 18px 120px; display: flex; flex-direction: column; gap: 16px; }
.fiche-body .who { display: flex; align-items: center; gap: 10px; }
.fiche-body .who h2 { font-size: var(--t-3xl); font-weight: 800; }
.fiche-body .who h2 small { font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.section-t { font-size: var(--t-sm); font-weight: 800; color: var(--fg-soft); text-transform: uppercase; letter-spacing: .06em; }
.fiche-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.fiche-actions { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 0 calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 18px; background: linear-gradient(to top, var(--bg) 60%, transparent); }

/* ---------- Listes, cartes d'info ---------- */
.section { padding: 14px 16px 6px; font-weight: 800; font-size: var(--t-md); display: flex; align-items: center; gap: 8px; }
.count-pill { background: var(--coeur); color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.new-match { flex: none; width: 84px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: var(--t-sm); }
.new-match .thumb { width: 84px; height: 112px; border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--brand-a); margin: 5px; }
.new-match .thumb.coeur { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--coeur); }
.new-match .thumb .ico { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--coeur); display: grid; place-items: center; }
.new-match .thumb .ico svg { width: 13px; height: 13px; }
.new-match span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; background: none; text-align: left; width: 100%; }
.convo:hover { background: var(--bg-softer); }
.convo .avatar { width: 58px; height: 58px; }
.convo .mid { flex: 1; min-width: 0; }
.convo .top-line { display: flex; align-items: center; gap: 6px; }
.convo .top-line b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .when { margin-left: auto; font-size: var(--t-xs); color: var(--fg-faint); flex: none; }
.convo .last { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-soft); font-size: var(--t-sm); }
.convo.unread .last { color: var(--fg); font-weight: 700; }
.convo .ub { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-a); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.status { display: inline-block; font-size: var(--t-xs); font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-top: 4px; }
.status.wait { background: var(--bg-soft); color: var(--fg-soft); }
.status.ok { background: color-mix(in srgb, var(--like) 16%, transparent); color: var(--like); }
.status.no { background: var(--bg-soft); color: var(--fg-faint); }
.list-card { margin: 0 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 14px 16px; font-weight: 600; text-decoration: none; color: var(--fg); }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item:hover { background: var(--bg-softer); }
.list-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg-soft); }
.list-item .ic svg { width: 19px; height: 19px; }
.list-item > span:nth-child(2) { flex: 1; min-width: 0; }
.list-item small { display: block; font-weight: 500; color: var(--fg-soft); font-size: var(--t-sm); }
.list-item .chev { width: 18px; height: 18px; color: var(--fg-faint); flex: none; }
.list-item.danger { color: var(--nope); }
.switch { width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--line); position: relative; flex: none; transition: background .2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .25s var(--spring); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--like); }
.switch[aria-checked="true"]::after { left: 23px; }

/* Bannières (porte-monnaie, vérification, installation) */
.promo { margin: 0 16px; border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: center; border: 0; text-align: left; width: calc(100% - 32px); color: inherit; }
.promo .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.promo .ic svg { width: 24px; height: 24px; }
.promo > span:nth-child(2) { flex: 1; min-width: 0; }
.promo b { display: block; font-size: var(--t-md); }
.promo small { display: block; font-size: var(--t-sm); opacity: .85; }
.promo.gold { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: #3b2a00; }
.promo.gold .ic { background: rgba(59, 42, 0, .12); }
.promo.blue { background: linear-gradient(135deg, #7cc6ff, #2f9bff); color: #05223d; }
.promo.blue .ic { background: rgba(5, 34, 61, .12); }
a.promo { text-decoration: none; }
.promo.soft { background: var(--bg-soft); }
.promo.soft .ic { background: var(--surface); }
.promo.brand { background: var(--brand); color: #fff; }
.promo.brand .ic { background: rgba(255, 255, 255, .2); }

/* Profil */
.me-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 8px; text-align: center; }
.ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .avatar { width: 112px; height: 112px; }
.ring .pct { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 3px var(--bg); }
.me-head h1 { font-size: var(--t-xl); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.me-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 16px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.stat { background: var(--bg-soft); border-radius: var(--r-md); padding: 12px 6px; text-align: center; }
.stat b { display: block; font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--t-xs); color: var(--fg-soft); font-weight: 600; }

/* ---------- Discussion ---------- */
.chat-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); flex: none; background: var(--bg); }
.chat-head .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 4px; border-radius: 12px; }
.chat-head .avatar { width: 42px; height: 42px; }
.chat-head .who > span { min-width: 0; }
.chat-head b { display: flex; align-items: center; gap: 5px; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--fg-soft); font-size: var(--t-xs); }
.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 3px; overscroll-behavior: contain; }
.day-sep { align-self: center; font-size: var(--t-xs); font-weight: 700; color: var(--fg-faint); padding: 10px 0 6px; }
.bm { max-width: 78%; padding: 9px 14px; border-radius: 20px; font-size: var(--t-md); overflow-wrap: anywhere; white-space: pre-wrap; animation: bubble .25s var(--ease); }
@keyframes bubble { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.bm.me { align-self: flex-end; color: #fff; background: var(--brand); border-bottom-right-radius: 6px; }
.bm.them { align-self: flex-start; background: var(--bg-soft); border-bottom-left-radius: 6px; }
.bm.first-coeur { border: 2px solid var(--coeur); }
.bm-meta { font-size: 11px; color: var(--fg-faint); padding: 1px 6px 6px; }
.bm-meta.me { align-self: flex-end; }
.typing { align-self: flex-start; background: var(--bg-soft); border-radius: 20px; padding: 12px 14px; display: flex; gap: 4px; margin-top: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 30% { opacity: .25; transform: translateY(-3px); } }
.match-intro { text-align: center; padding: 22px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match-intro .avatar { width: 92px; height: 92px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brand-a); }
.ideas { display: flex; flex-direction: column; gap: 8px; width: 100%; padding-top: 6px; }
.idea { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--t-sm); font-weight: 600; }
.idea b { display: block; font-size: var(--t-xs); color: var(--fg-faint); }
.composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg-soft); border: 0; border-radius: 22px; padding: 11px 16px; resize: none; max-height: 120px; line-height: 1.35; }
.composer textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand-a) 40%, transparent); }
.send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; background: var(--brand); display: grid; place-items: center; transition: transform .2s var(--spring), opacity .2s; }
.send:disabled { opacity: .35; }
.send svg { width: 20px; height: 20px; }
.safety-banner { margin: 0 12px 8px; background: color-mix(in srgb, var(--boost) 12%, transparent); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--t-sm); display: flex; gap: 10px; align-items: flex-start; }
.safety-banner svg { width: 18px; height: 18px; flex: none; color: var(--boost); margin-top: 1px; }
.safety-banner > span { flex: 1; }
.safety-banner button { border: 0; background: none; color: var(--fg-soft); padding: 0 2px; font-size: 18px; line-height: 1; }
.warn { margin: 0 10px 8px; border: 2px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: var(--t-sm); }

/* ---------- Fenêtres du bas, écrans par-dessus ---------- */
.backdrop { position: absolute; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; animation: sheetUp .32s var(--ease); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); align-self: center; flex: none; }
.sheet h2 { font-size: var(--t-xl); font-weight: 800; }
.sheet .center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.check-big { width: 76px; height: 76px; border-radius: 50%; background: var(--like); color: #fff; display: grid; place-items: center; animation: popIn .5s var(--spring); }
.check-big svg { width: 40px; height: 40px; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
.offers { display: flex; flex-direction: column; gap: 10px; }
.offer { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; transition: border-color .15s; }
.offer[aria-pressed="true"] { border-color: var(--brand-a); background: color-mix(in srgb, var(--brand-a) 5%, var(--surface)); }
.offer .oic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.offer .oic svg { width: 22px; height: 22px; }
.offer > span:nth-child(2) { flex: 1; min-width: 0; }
.offer b { display: block; }
.offer small { color: var(--fg-soft); font-size: var(--t-sm); }
.offer .price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ribbon { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; margin-bottom: 3px; letter-spacing: .04em; }
.pay-logos { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pay-logos span { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 4px 8px; }
.reasons { display: flex; flex-direction: column; gap: 8px; }
.reason { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 13px 14px; font-weight: 600; }
.reason[aria-pressed="true"] { border-color: var(--nope); color: var(--nope); }

/* Match ! */
.match-overlay { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; color: #fff; text-align: center;
  background: radial-gradient(500px 400px at 50% 30%, rgba(255, 122, 61, .55), transparent 70%), linear-gradient(160deg, rgba(255, 45, 111, .97), rgba(30, 8, 30, .97)); animation: fade .3s; overflow: hidden; }
.match-overlay h2 { font-size: 52px; font-weight: 800; font-style: italic; letter-spacing: -.04em; line-height: .95; animation: popIn .6s var(--spring); }
.match-overlay .duo { display: flex; }
.match-overlay .duo .avatar { width: 124px; height: 124px; border: 4px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.match-overlay .duo .avatar:first-child { transform: rotate(-8deg); animation: inL .6s var(--spring); }
.match-overlay .duo .avatar:last-child { margin-left: -20px; transform: rotate(8deg); animation: inR .6s var(--spring); }
@keyframes inL { from { transform: translateX(-120px) rotate(-30deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(120px) rotate(30deg); opacity: 0; } }
.match-overlay .btn { min-width: 260px; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 45%; font-style: normal; font-size: 22px; animation: fly 1.6s var(--ease) forwards; opacity: 0; }
@keyframes fly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2) rotate(var(--r)); } }

/* Notifications dans l'appli */
.toast { position: absolute; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: #1f1d24; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: var(--t-sm); font-weight: 700; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow-2); animation: toastIn .3s var(--spring); }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } }
.notif { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 0; border-radius: 24px; text-align: left; color: var(--fg);
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 12px 32px rgba(40, 10, 25, .22), 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
  animation: notifIn .45s var(--spring); transition: transform .25s, opacity .25s; touch-action: none; }
.install-tete { display: flex; gap: 14px; align-items: center; }
.install-tete img { border-radius: 16px; box-shadow: var(--shadow-1); flex: none; }
.install-tete h2 { margin: 0; }
.notif.sort { transform: translateY(-130%); opacity: 0; }
@keyframes notifIn { from { transform: translateY(-130%); } }
.notif-av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft) center / cover no-repeat;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-a, #ff2d6f); }
.notif-coeur { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, #ff2d6f, #ff7a3d);
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.notif-coeur svg { width: 12px; height: 12px; }
.notif-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notif-haut b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-haut span { flex: none; font-size: 12px; color: var(--fg-soft); }
.notif-msg { font-size: 14px; line-height: 1.35; color: var(--fg-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offline { position: absolute; top: 0; left: 0; right: 0; z-index: 70; background: #1f1d24; color: #fff; text-align: center; font-size: var(--t-xs); font-weight: 700; padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px; }
.demo-bar { flex: none; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--fg-soft); background: var(--bg-soft); padding: 4px 10px; }

/* Pages de texte (aide, règles) */
.prose { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: var(--t-lg); font-weight: 800; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--fg-soft); }
.rule { display: flex; gap: 12px; align-items: flex-start; }
.rule .ic { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--brand-a) 12%, transparent); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.rule .ic svg { width: 20px; height: 20px; }
.rule b { display: block; }
.rule p { font-size: var(--t-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Icônes de fin de ligne (chevrons, crayons) : taille fixe */
.promo > svg, .prompt-edit > svg { width: 20px; height: 20px; flex: none; opacity: .55; }
.list-item > svg.chev { width: 18px; height: 18px; }
@media (min-width: 960px) {
  .app { padding-top: 0; }
  .app > .demo-bar:first-of-type, .app > .view:first-child > :first-child:not(.landing), .app > .view:first-child .steps-head { padding-top: 18px; }
}

/* Case « J'accepte les conditions » */
.accept { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 14px; font-size: var(--t-sm); line-height: 1.5; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.accept input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.accept .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--fg-faint); display: grid; place-items: center; color: transparent; transition: all .15s; margin-top: 1px; }
.accept .box svg { width: 15px; height: 15px; }
.accept:has(input:checked) { border-color: var(--brand-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-a) 15%, transparent); }
.accept input:checked + .box { background: var(--brand); border-color: transparent; color: #fff; }
.accept input:focus-visible + .box { outline: 3px solid var(--boost); outline-offset: 2px; }

/* Parrainage */
.invite-banner { position: relative; z-index: 2; margin: 12px 14px 0; background: rgba(255, 255, 255, .95); color: #1f1d24; border-radius: 16px; padding: 10px 14px; font-size: var(--t-sm); box-shadow: 0 8px 24px rgba(60, 0, 30, .25); animation: notifIn .5s var(--spring); }
.parrain-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px; border-radius: var(--r-lg); color: #fff; background: var(--brand); }
.parrain-hero h2 { font-size: var(--t-xl); font-weight: 800; }
.parrain-hero p { opacity: .95; }
.lien-box { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border-radius: var(--r-md); padding: 8px 8px 8px 14px; }
.lien-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: var(--t-sm); user-select: all; }
