/* =========================================================
   CardFlex : thème sombre « holographique »
   ========================================================= */
:root {
  --bg: #0c0a1d;
  --bg-2: #141130;
  --surface: #1b1740;
  --surface-2: #241f52;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f2ff;
  --muted: #a9a3d1;
  --pink: #ff5fa2;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --yellow: #fde047;
  --up: #34d399;
  --down: #f87171;
  --holo: linear-gradient(115deg, #ff5fa2 0%, #8b5cf6 25%, #22d3ee 50%, #fde047 75%, #ff5fa2 100%);

  --font-title: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

.holo-text {
  background: var(--holo); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s ease-in-out infinite alternate;
}
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-holo { background: var(--holo); background-size: 200% auto; color: #120d2b; box-shadow: 0 10px 30px -10px rgba(255, 95, 162, .7); animation: shine 6s ease-in-out infinite alternate; }
.btn-holo:hover { box-shadow: 0 14px 40px -10px rgba(139, 92, 246, .9); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Landing : en-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(12, 10, 29, .75); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--font-title); font-weight: 800; font-size: 1.35rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 40px; border-radius: 6px; background: var(--holo); background-size: 200% auto; animation: shine 6s ease-in-out infinite alternate; transform: rotate(-8deg); box-shadow: 0 0 20px rgba(139,92,246,.6); }
.topbar .btn { padding: 10px 20px; font-size: .9rem; }

/* ---------- Landing : hero ---------- */
.hero { position: relative; padding: 64px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 700px; z-index: -1;
  background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent 70%),
              radial-gradient(closest-side at 80% 30%, rgba(255,95,162,.25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.pill b { color: var(--yellow); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--muted); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Téléphone de démo */
.phone {
  width: min(320px, 82vw); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px;
  background: #05040d; border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 80px -20px rgba(139,92,246,.5);
  transform: rotate(3deg);
}
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 14px; }
.phone .total-card { padding: 16px; }
.phone .total-value { font-size: 1.9rem; }
.phone-tabbar { margin-top: auto; height: 46px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.phone-tabbar span { width: 34px; height: 34px; border-radius: 50%; background: var(--holo); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-card { aspect-ratio: 63 / 88; border-radius: 8px; position: relative; overflow: hidden; }
.mini-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); background-size: 250% 100%; animation: glare 3.5s ease-in-out infinite; }
@keyframes glare { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.mini-card span { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; background: rgba(0,0,0,.55); padding: 1px 5px; border-radius: 4px; }

/* ---------- Bloc valeur totale (landing + appli) ---------- */
.total-card { border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.total-card::before { content: ""; position: absolute; inset: 0; background: var(--holo); opacity: .18; }
.total-card > * { position: relative; }
.total-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.total-value { font-family: var(--font-title); font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 800; margin: 4px 0; }
.total-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }

.trend { font-weight: 700; font-size: .85em; white-space: nowrap; }
.trend.up { color: var(--up); }
.trend.down { color: var(--down); }
.trend.flat { color: var(--muted); }

/* ---------- Landing : sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; background: var(--holo); color: #120d2b; margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .emoji { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); gap: 20px; justify-content: center; }
.plan-for { font-size: .7rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; }
.plan .price { font-family: var(--font-title); font-size: 2.4rem; font-weight: 800; margin: 8px 0 16px; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li::before { content: "✦ "; color: var(--pink); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.cta-final { text-align: center; padding: 80px 0 100px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .8rem; color: var(--muted); }
.footer p { margin: 4px 0; }

/* ---------- Page connexion ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.auth-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 10%, rgba(139,92,246,.35), transparent 50%), radial-gradient(circle at 90% 90%, rgba(255,95,162,.25), transparent 50%); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px 24px; }
.auth-card .logo { justify-content: center; width: 100%; margin-bottom: 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); outline: none; transition: border-color .2s; }
.field input:focus { border-color: var(--violet); }
.form-error { color: var(--down); font-size: .88rem; min-height: 1.3em; margin: 4px 0 10px; }
.auth-note { text-align: center; font-size: .8rem; color: var(--muted); margin: 18px 0 0; }

/* =========================================================
   Appli
   ========================================================= */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 14px; }
.app-header .logo { font-size: 1.1rem; }
img.avatar { object-fit: cover; padding: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--holo); color: #120d2b; font-weight: 800; display: grid; place-items: center; text-decoration: none; }
.view-title { font-size: 1.4rem; margin: 8px 0 16px; }

/* Barre d'onglets */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(528px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(27, 23, 64, .92); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; padding: 8px;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: .68rem; color: var(--muted); padding: 6px 0; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar .scan-tab { margin-top: -30px; }
.scan-tab .scan-bubble { width: 62px; height: 62px; border-radius: 50%; background: var(--holo); background-size: 200% auto; animation: shine 6s ease-in-out infinite alternate; display: grid; place-items: center; color: #120d2b; box-shadow: 0 10px 30px -6px rgba(255,95,162,.7); border: 4px solid var(--bg); }
.scan-tab .scan-bubble svg { width: 28px; height: 28px; }

/* Grille de cartes */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; gap: 12px; }
.toolbar h2 { font-size: 1.05rem; margin: 0; }
.sort { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: .82rem; color: var(--text); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 460px) { .card-grid { gap: 14px; } }
.tcg-card { text-decoration: none; display: block; }
.tcg-card .img-wrap { aspect-ratio: 63 / 88; border-radius: 10px; overflow: hidden; background: var(--surface); position: relative; transition: transform .2s; }
.tcg-card:active .img-wrap { transform: scale(.96); }
.tcg-card img { width: 100%; height: 100%; object-fit: cover; }
.tcg-card .img-wrap.noimg { display: grid; place-items: center; padding: 8px; text-align: center; font-size: .75rem; color: var(--muted); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.tcg-card .qty { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.7); font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.tcg-card .name { font-size: .78rem; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcg-card .price { font-size: .76rem; color: var(--muted); display: flex; gap: 6px; justify-content: space-between; }
.tcg-card .price b { color: var(--text); }

.empty { text-align: center; padding: 48px 12px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 8px; }
.empty h3 { color: var(--text); }

/* Recherche */
.search-box { position: relative; margin-bottom: 18px; }
.search-box input { width: 100%; padding: 15px 18px 15px 46px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); outline: none; font-size: 1rem; }
.search-box input:focus { border-color: var(--violet); }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; }
.loader { text-align: center; padding: 40px 0; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--pink); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Fiche carte */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; padding: 4px 0 12px; background: none; border: 0; cursor: pointer; }
.card-hero { perspective: 900px; display: grid; place-items: center; margin: 4px 0 22px; }
.card-3d { width: min(260px, 70vw); aspect-ratio: 63 / 88; border-radius: 14px; overflow: hidden; position: relative; transition: transform .1s; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 60px -10px rgba(139,92,246,.6); }
.card-3d img { width: 100%; height: 100%; object-fit: cover; }
.card-3d::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.35), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
.card-title { text-align: center; }
.card-title h1 { font-size: 1.6rem; margin-bottom: 4px; }
.card-title p { color: var(--muted); margin: 0 0 18px; font-size: .9rem; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.badge.rare { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; border: 1px solid transparent; }
.variant-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.variant-switch button { border: 0; background: none; padding: 9px; border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--muted); }
.variant-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.price-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.price-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-main .value { font-family: var(--font-title); font-size: 2rem; font-weight: 800; }
.price-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.price-rows div { background: var(--bg-2); border-radius: 12px; padding: 10px; text-align: center; }
.price-rows span { display: block; font-size: .7rem; color: var(--muted); }
.price-rows b { font-size: .95rem; }
.price-source { font-size: .72rem; color: var(--muted); margin: 12px 0 0; }
.actions { display: grid; gap: 10px; margin-bottom: 24px; }
.info-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 20px; }
.info-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; gap: 16px; }
.info-list div:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }

/* Scanner */
.scan-zone { border-radius: 28px; aspect-ratio: 3 / 4; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 16px; }
.scan-zone video, .scan-zone img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: 62%; aspect-ratio: 63 / 88; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(12, 10, 29, .55); }
.scan-frame::before { content: ""; position: absolute; inset: -3px; border-radius: 18px; padding: 3px; background: var(--holo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: var(--holo); box-shadow: 0 0 18px var(--pink); animation: scanline 2s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.scan-placeholder { text-align: center; color: var(--muted); padding: 20px; position: relative; }
.scan-placeholder .big { font-size: 3rem; }
.scan-actions { display: grid; gap: 10px; }
.scan-status { text-align: center; color: var(--muted); min-height: 1.5em; margin: 12px 0; }
.choices { display: grid; gap: 10px; margin-top: 10px; }

/* Profil */
.profile-head { text-align: center; padding: 10px 0 20px; }
.profile-head .avatar { width: 80px; height: 80px; font-size: 2rem; margin: 0 auto 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: var(--font-title); font-size: 1.15rem; }
.stat span { font-size: .72rem; color: var(--muted); }
.share-preview { border-radius: 18px; overflow: hidden; margin: 16px auto; max-width: 260px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }

/* Fenêtre modale */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(5, 4, 13, .7); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px 28px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal-sheet h2 { font-size: 1.2rem; }
.copy-field { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; white-space: pre-wrap; font-size: .9rem; }
.copy-field small { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }

/* Toast + jackpot */
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -150%); z-index: 120; background: var(--surface-2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.jackpot { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; pointer-events: none; }
.jackpot-text { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 10vw, 3.4rem); text-align: center; animation: pop 1.6s ease-out forwards; text-shadow: 0 0 30px rgba(255,95,162,.8); }
.jackpot-text small { display: block; font-size: .4em; color: var(--text); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 20% { transform: scale(1.15); opacity: 1; } 35% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 111; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

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

/* ---------- Connexion : Google, séparateur, consentement ---------- */
.btn-google { background: #fff; color: #1f1f1f; font-weight: 600; }
.btn-google:hover { box-shadow: 0 8px 24px -10px rgba(255,255,255,.5); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 4px 0 6px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--violet); width: 16px; height: 16px; flex: none; }
.check a, .auth-note a { color: var(--text); }
.form-ok { color: var(--up); font-size: .88rem; margin: 0 0 10px; }
.form-ok:empty { display: none; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.link-btn[hidden] { display: none; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .88rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; margin: 2em 0 .6em; }
.legal p, .legal li { color: #cfcaf0; }
.legal a { color: var(--cyan); }
.todo { background: rgba(253, 224, 71, .18); color: var(--yellow); padding: 0 5px; border-radius: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Cartes vérifiées (ajoutées par scan) ---------- */
.verif { position: absolute; left: 5px; bottom: 5px; font-size: .58rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(12, 10, 29, .78); color: var(--muted); letter-spacing: .02em; }
.verif.ok { background: rgba(52, 211, 153, .92); color: #05261b; }
.badge.verified { background: rgba(52, 211, 153, .15); border-color: rgba(52, 211, 153, .5); color: var(--up); }
.verif-line { color: var(--up); font-weight: 600; }
.badge-link { text-decoration: none; color: var(--text); border-color: rgba(253, 224, 71, .5); background: rgba(253, 224, 71, .1); }
.btn-vinted { background: #09b1ba; color: #fff; }
.btn-vinted:hover { box-shadow: 0 10px 26px -10px rgba(9, 177, 186, .8); }
.btn-lbc { background: #ec5a13; color: #fff; }
.btn-lbc:hover { box-shadow: 0 10px 26px -10px rgba(236, 90, 19, .8); }

/* ---------- Scan auto ---------- */
.auto-badge {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  background: rgba(12, 10, 29, .82); backdrop-filter: blur(6px); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; white-space: nowrap;
  max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
}
#mode-switch { margin-bottom: 12px; }
.session { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px; margin: 6px 0 16px; }
.session-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.session-head span { color: var(--muted); font-size: .85rem; }
.session-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; animation: up .25s ease-out; }
.session-item:last-child { border-bottom: 0; }
.session-thumb { width: 36px; height: 50px; border-radius: 5px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-2); font-size: 1.1rem; }
.session-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; }
.session-name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.session .link-btn { margin: 0; }
.session-counter {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: var(--holo); background-size: 200% auto; color: #120d2b; font-weight: 800; font-size: .82rem;
  box-shadow: 0 6px 20px -6px rgba(255, 95, 162, .8);
}
.session-counter.bump { animation: bump .45s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Flex+ : badge, anneau holographique, argumentaire ---------- */
.plus-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: var(--holo); background-size: 200% auto; color: #120d2b; animation: shine 6s ease-in-out infinite alternate; }
.avatar-plus { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #ff5fa2, 0 0 18px 4px rgba(139, 92, 246, .7); animation: ring 4s linear infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #ff5fa2, 0 0 18px 4px rgba(255,95,162,.6); } 33% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #22d3ee, 0 0 18px 4px rgba(34,211,238,.6); } 66% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #fde047, 0 0 18px 4px rgba(253,224,71,.6); } 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #ff5fa2, 0 0 18px 4px rgba(255,95,162,.6); } }
.perks-list { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 10px; font-weight: 600; }
.perks-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

/* ---------- Corrections affichage téléphone (scan) ---------- */
.auto-badge {
  white-space: normal; text-align: center; line-height: 1.3;
  width: max-content; max-width: calc(100% - 28px);
  font-size: .8rem; padding: 8px 14px; border-radius: 16px;
}
.variant-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; line-height: 1.2; min-height: 40px; }
.variant-switch .plus-tag { margin-left: 0; font-size: .6rem; padding: 2px 6px; }
@media (max-width: 380px) {
  .variant-switch button { font-size: .78rem; padding: 8px 4px; }
  .session-counter { font-size: .72rem; padding: 5px 10px; top: 10px; right: 10px; }
}
@media (max-width: 360px) {
  .tabbar { padding: 6px 4px; }
  .tabbar a { font-size: .58rem; letter-spacing: -.01em; }
  .tabbar a svg { width: 20px; height: 20px; }
  .scan-tab .scan-bubble { width: 56px; height: 56px; }
}

/* ---------- Analyse de l'état ---------- */
.condition-panel .value small, .grade-big small { font-size: .45em; color: var(--muted); margin-left: 2px; }
.grade-big { font-family: var(--font-title); font-weight: 800; font-size: 3.4rem; text-align: center; line-height: 1; margin: 8px 0 4px; }
.grade-label { text-align: center; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.cond-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cond-cols h3 { font-size: .9rem; margin: 0 0 6px; }
.cond-cols ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .85rem; display: grid; gap: 4px; }
.info-list b { text-align: right; font-weight: 500; }
@media (max-width: 380px) { .cond-cols { grid-template-columns: 1fr; } }

/* ---------- Alertes de prix ---------- */
.alerts-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.alerts-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: rgba(255,255,255,.06); }
.alerts-body { flex: 1; min-width: 0; }
.alerts-body b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .95rem; }
.alerts-body .plus-tag { margin-left: 0; font-size: .6rem; padding: 1px 6px; }
.alerts-card .hint { margin: 3px 0 0; font-size: .82rem; line-height: 1.35; }
.switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.14); transition: background .25s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.switch[aria-checked="true"] { background: var(--up); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.switch:disabled { opacity: .6; cursor: default; }
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- Offre Pro : inventaire, scan de lot ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sell-panel .hint { margin: 6px 0 12px; }
.sell-signal { display: flex; align-items: center; gap: 12px; }
.sell-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: rgba(255,255,255,.06); }
.sell-signal b { display: block; }
.sell-signal small { color: var(--muted); font-size: .82rem; }
.sell-panel.sell { border-color: rgba(52, 211, 153, .45); }
.sell-panel.sell .sell-icon { background: rgba(52, 211, 153, .16); }
.sell-panel.wait .sell-icon { background: rgba(253, 224, 71, .12); }
.sell-panel .price-source { margin-top: 12px; }
.hot-tag { position: absolute; top: 6px; left: 6px; background: rgba(52, 211, 153, .95); color: #05261b; font-size: .6rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }

/* ---------- Bonne affaire ? ---------- */
.deal-card { margin-top: 18px; border-radius: var(--radius); padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.deal-card p { margin: 6px 0 0; }
.deal-title { font-family: var(--font-title); font-size: 1.35rem; font-weight: 800; }
.deal-sub { color: var(--muted); font-size: .82rem; }
.deal-card.good { border-color: rgba(52, 211, 153, .6); background: linear-gradient(160deg, rgba(52, 211, 153, .16), var(--surface) 70%); }
.deal-card.fair { border-color: rgba(34, 211, 238, .45); }
.deal-card.bad { border-color: rgba(248, 113, 113, .55); background: linear-gradient(160deg, rgba(248, 113, 113, .14), var(--surface) 70%); }
.deal-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 600; }
.deal-input { display: flex; align-items: center; gap: 6px; }
.deal-input input { width: 110px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.05rem; font-weight: 700; text-align: right; }
.deal-input input:focus { outline: none; border-color: var(--violet); }
.inv-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.inv-row:last-child { border-bottom: 0; }
.inv-row img { width: 36px; height: 50px; border-radius: 5px; object-fit: cover; flex: none; }
.lot-item { cursor: pointer; }
.lot-item input { accent-color: var(--violet); width: 18px; height: 18px; flex: none; }
.lot-item b { white-space: nowrap; font-size: .9rem; }

/* ---------- Mensuel / Annuel ---------- */
.period-switch { margin: 6px 0 12px; }

/* ---------- Profil : cartes d'offres ---------- */
.upgrade { margin: 6px 0 4px; }
.upgrade-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.upgrade-head h3 { margin: 0; font-family: var(--font-title); font-size: 1.05rem; }
.upgrade-head .period-switch { margin: 0; min-width: 200px; }
.upgrade-head .period-switch button { padding: 7px 12px; font-size: .8rem; white-space: nowrap; }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up-grid.single { grid-template-columns: 1fr; }
@media (max-width: 520px) { .up-grid { grid-template-columns: 1fr; } .upgrade-head .period-switch { width: 100%; } }
.up-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.up-card.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; }
.up-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-name { font-family: var(--font-title); font-size: 1.1rem; }
.up-tag { font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.up-card.featured .up-tag { border: 0; background: var(--holo); background-size: 200% auto; color: #120d2b; }
.up-price { margin-top: 12px; font-family: var(--font-title); font-size: 1.7rem; font-weight: 800; }
.up-price small { margin-left: 3px; font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.up-eq { font-size: .8rem; color: var(--up); font-weight: 600; min-height: 1.2em; }
.up-perks { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 7px; font-size: .86rem; flex: 1; }
.up-btn { padding-top: 11px; padding-bottom: 11px; font-size: .92rem; }
.up-foot { text-align: center; font-size: .76rem; margin: 10px 0 6px; }
.save-tag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: var(--up); color: #05261b; }
.landing-period { max-width: 320px; margin: 0 auto 22px; }
.price-eq { display: block; margin-top: 4px; font-family: Inter, sans-serif; font-size: .82rem; font-weight: 500; color: var(--muted); }

/* ---------- Seuil des alertes ---------- */
.alerts-card.has-threshold { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.threshold { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-top: 1px dashed var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 10px 16px 14px; margin-bottom: 14px; font-size: .82rem; color: var(--muted); }
.threshold-chips { display: flex; gap: 6px; }
.threshold-chips button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 999px; padding: 6px 11px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.threshold-chips button[aria-pressed="true"] { border-color: transparent; background: var(--up); color: #05261b; }

/* ---------- Hors connexion ---------- */
.offline-banner { position: fixed; top: 0; left: 50%; z-index: 60; transform: translate(-50%, -120%); padding: 8px 16px; border-radius: 0 0 14px 14px; background: #fde047; color: #2a2300; font-size: .82rem; font-weight: 700; transition: transform .3s; white-space: nowrap; }
.offline-banner.show { transform: translate(-50%, 0); }
.offline-screen { margin-top: 12vh; }
