* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
:root {
  --bg:#14110e; --bg2:#1a1613; --card:#211c18; --card2:#28221d; --border:#332c26; --border2:#3f372f;
  --text:#f5f0e8; --muted:#a89e92; --faint:#7c7166;
  --accent:#f0857a; --accent2:#f2a98f; --accent-ink:#2a0f0a; --violet:#a896d4;
  --grad:linear-gradient(135deg,#f0857a 0%,#f2a98f 100%);
  --ok:#4fc48a; --err:#ef6b63;
  --shadow:0 8px 30px rgba(0,0,0,0.35);
  --shadow-lg:0 24px 60px rgba(0,0,0,0.55);
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --serif:'Fraunces','Playfair Display','Iowan Old Style','Palatino Linotype',Georgia,'Times New Roman',serif;
  --nav-h:66px;
}
html,body { height:100%; }
body {
  background:var(--bg); color:var(--text); font-family:var(--font); line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow:hidden;
  overscroll-behavior:none;
}
/* halo chaud très discret, donne de la profondeur sans "flash" */
body::before {
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(240,133,122,0.10), transparent 60%),
    radial-gradient(70% 45% at 100% 110%, rgba(168,150,212,0.06), transparent 60%);
}
.serif { font-family:var(--serif); font-weight:600; letter-spacing:-0.015em; }
.muted { color:var(--muted); }
img { max-width:100%; display:block; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px;
}

/* ---------- SCREENS ---------- */
.screen { display:none; position:fixed; inset:0; }
.screen.active { display:block; }
#screen-app.active { display:flex; flex-direction:column; }

/* ---------- BUTTONS ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:52px; border:none; cursor:pointer; font-family:var(--font);
  font-weight:700; font-size:1rem; padding:13px 26px; border-radius:999px;
  transition:transform .15s, box-shadow .2s, filter .2s, border-color .2s; color:var(--text);
  letter-spacing:0.01em;
}
.btn:active { transform:scale(0.97); }
.btn[disabled] { opacity:0.55; cursor:not-allowed; }
.btn-primary { background:var(--grad); color:var(--accent-ink); box-shadow:0 10px 28px rgba(240,133,122,0.30); }
.btn-primary:hover { filter:brightness(1.05); box-shadow:0 12px 34px rgba(240,133,122,0.38); }
.btn-ghost { background:transparent; border:1px solid var(--border2); color:var(--text); }
.btn-ghost:hover { border-color:var(--accent); }
.btn-block { width:100%; }

.card { background:var(--card); border:1px solid var(--border); border-radius:20px; box-shadow:var(--shadow); }

/* ---------- FIELDS ---------- */
.field { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.field span { font-size:0.8rem; color:var(--muted); font-weight:600; letter-spacing:0.02em; }
.field input, .field select, .field textarea {
  background:var(--bg2); border:1px solid var(--border); border-radius:13px;
  color:var(--text); font-family:var(--font); font-size:1rem; padding:14px 15px;
  width:100%; transition:border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color:var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color:var(--accent); outline:none; box-shadow:0 0 0 3px rgba(240,133,122,0.14);
}
.field textarea { resize:vertical; min-height:100px; line-height:1.5; }
.field select { appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a89e92' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat:no-repeat; background-position:right 15px center; padding-right:38px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hint { font-size:0.8rem; color:var(--muted); text-align:center; margin-top:12px; }

/* ---------- AVATAR ---------- */
.avatar {
  border-radius:50%; background:var(--grad); color:var(--accent-ink);
  display:flex; align-items:center; justify-content:center; font-weight:700;
  font-family:var(--serif); flex-shrink:0; background-size:cover; background-position:center;
  overflow:hidden; letter-spacing:0.01em;
}
.avatar-sm { width:40px; height:40px; font-size:1rem; }
.avatar-md { width:56px; height:56px; font-size:1.35rem; }
.avatar-lg { width:88px; height:88px; font-size:2.1rem; }
.avatar-xl { width:118px; height:118px; font-size:3rem; box-shadow:var(--shadow-lg); }

/* ---------- AUTH (surface Configure) ---------- */
.auth-wrap {
  min-height:100%; display:flex; flex-direction:column; justify-content:center;
  padding:calc(40px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom));
  max-width:430px; margin:0 auto; overflow-y:auto;
}
.auth-brand { text-align:center; margin-bottom:32px; }
.brand-logo { height:60px; width:auto; margin:0 auto 18px; }
.brand-title { font-family:var(--serif); font-size:2.1rem; font-weight:600; letter-spacing:-0.02em; }
.brand-title span { background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.brand-sub { color:var(--muted); margin-top:8px; font-size:0.98rem; }
.auth-card { padding:24px 22px; }
.tabs { display:flex; gap:5px; background:var(--bg2); border-radius:13px; padding:5px; margin-bottom:24px; }
.tab { flex:1; background:transparent; border:none; color:var(--muted); font-family:var(--font); font-weight:600; font-size:0.9rem; padding:11px; border-radius:9px; cursor:pointer; transition:all .2s; }
.tab.active { background:var(--card2); color:var(--text); box-shadow:0 2px 8px rgba(0,0,0,0.3); }
.auth-form { display:block; }
.auth-form[hidden] { display:none; }

/* ---------- BACK BUTTON (réutilisable, cible ≥44px) ---------- */
.back-btn {
  width:44px; height:44px; margin-left:-10px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:none; border-radius:50%; color:var(--text);
  cursor:pointer; transition:background .18s, color .18s;
}
.back-btn:hover { background:var(--card2); color:var(--accent); }
.back-btn:active { transform:scale(0.92); }

/* ---------- ONBOARDING (wizard, surface Configure) ---------- */
.onb-wrap { min-height:100%; max-width:480px; margin:0 auto; padding:calc(20px + env(safe-area-inset-top)) 18px calc(40px + env(safe-area-inset-bottom)); overflow-y:auto; height:100%; }
.onb-top { display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.onb-progress { flex:1; display:flex; gap:6px; }
.onb-progress i { flex:1; height:4px; border-radius:999px; background:var(--border2); transition:background .3s; }
.onb-progress i.on { background:var(--grad); }
.onb-head { text-align:left; margin-bottom:20px; }
.onb-count { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.14em; color:var(--accent2); font-weight:700; }
.onb-head h2 { font-size:1.75rem; margin-top:6px; }
.onb-head p { margin-top:6px; font-size:0.94rem; }
.onb-form { padding:22px 20px; }
.onb-step { border:none; padding:0; margin:0; min-inline-size:0; }
.onb-step:not(.active) { display:none; }
.onb-note { font-size:0.86rem; color:var(--muted); line-height:1.55; margin-top:4px; }
.onb-nav { display:flex; gap:12px; margin-top:24px; }
.onb-nav .btn { flex:1; }
.avatar-row { display:flex; align-items:center; gap:18px; margin-bottom:20px; }
.photo-btn { display:flex; flex-direction:column; gap:2px; cursor:pointer; font-weight:600; color:var(--accent); font-size:0.95rem; }
.photo-btn small { font-weight:400; }

/* ---------- APP LAYOUT ---------- */
.view { display:none; flex:1; flex-direction:column; overflow:hidden; padding-bottom:var(--nav-h); }
.view.active { display:flex; }
.app-head {
  display:flex; align-items:center; gap:12px;
  padding:calc(16px + env(safe-area-inset-top)) 20px 15px;
  border-bottom:1px solid var(--border); background:rgba(20,17,14,0.82);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); flex-shrink:0;
}
.head-logo { height:26px; width:auto; }
.head-title { font-size:1.4rem; }

/* ---------- DISCOVER DECK (surface Explore : le deck EST la composition) ---------- */
.deck { flex:1; position:relative; padding:18px 16px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.profile-card {
  position:absolute; inset:18px 16px; border-radius:26px; overflow:hidden;
  background:var(--card); border:1px solid var(--border2); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; will-change:transform; touch-action:pan-y;
}
.profile-card.dragging { transition:none; }
.pc-photo { flex:1; position:relative; display:flex; align-items:center; justify-content:center; background:linear-gradient(160deg,#2f2720,#1a1613); overflow:hidden; }
.pc-photo img { width:100%; height:100%; object-fit:cover; }
.pc-photo .avatar { width:150px; height:150px; font-size:3.6rem; box-shadow:var(--shadow-lg); }
/* scrim : garantit la profondeur et la lisibilité au bas de la photo */
.pc-photo::after { content:""; position:absolute; left:0; right:0; bottom:0; height:38%; background:linear-gradient(to top, rgba(20,17,14,0.55), transparent); pointer-events:none; }
.pc-badge { position:absolute; top:16px; right:16px; background:rgba(20,17,14,0.62); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); border:1px solid rgba(79,196,138,0.35); color:var(--ok); font-size:0.76rem; font-weight:700; padding:6px 12px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; z-index:2; }
.pc-info { padding:18px 22px calc(20px + 4px); background:var(--card); position:relative; z-index:1; }
.pc-name { font-size:1.7rem; line-height:1.15; display:flex; align-items:baseline; gap:9px; }
.pc-name b { font-weight:400; color:var(--muted); font-size:1.25rem; }
.pc-meta { color:var(--accent2); font-weight:600; margin-top:6px; font-size:0.96rem; }
.pc-city { color:var(--muted); font-size:0.88rem; margin-top:3px; display:flex; align-items:center; gap:5px; }
.pc-bio { color:var(--text); margin-top:12px; font-size:0.94rem; line-height:1.55; opacity:0.88; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pc-stamp { position:absolute; top:28px; font-size:1.7rem; font-weight:800; padding:8px 18px; border-radius:12px; border:3px solid; opacity:0; transform:rotate(-12deg); pointer-events:none; letter-spacing:0.06em; z-index:3; text-shadow:0 2px 12px rgba(0,0,0,0.35); }
.pc-stamp.like { left:22px; color:var(--ok); border-color:var(--ok); transform:rotate(-14deg); }
.pc-stamp.nope { right:22px; color:var(--err); border-color:var(--err); transform:rotate(14deg); }

.deck-empty { text-align:center; color:var(--muted); padding:30px; max-width:300px; }
.deck-empty .big { font-size:2.6rem; margin-bottom:14px; }
.deck-empty h3 { color:var(--text); font-family:var(--serif); font-size:1.35rem; margin-bottom:8px; }

/* contrôles : like = accent, pass = bordure. Cibles ≥64px */
.deck-actions { display:flex; justify-content:center; align-items:center; gap:36px; padding:10px 0 22px; flex-shrink:0; }
.round-btn { width:64px; height:64px; border-radius:50%; font-size:1.55rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .15s, box-shadow .2s, border-color .2s, color .2s; border:2px solid var(--border2); background:var(--card); }
.round-btn:active { transform:scale(0.9); }
.round-btn.pass { color:var(--muted); }
.round-btn.pass:hover { border-color:var(--err); color:var(--err); }
.round-btn.like { width:72px; height:72px; background:var(--grad); color:#fff; border:none; font-size:1.85rem; box-shadow:0 12px 30px rgba(240,133,122,0.42); }
.round-btn.like:hover { filter:brightness(1.05); }
.round-btn[disabled] { opacity:0.4; pointer-events:none; }

/* ---------- LIST / MATCHES (surface Compare : dense et scannable) ---------- */
.list { flex:1; overflow-y:auto; padding:10px 12px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }
.match-item { display:flex; align-items:center; gap:14px; padding:12px 12px; border-radius:16px; cursor:pointer; transition:background .18s; }
.match-item + .match-item { border-top:1px solid var(--border); border-radius:0; }
.match-item:hover, .match-item:active { background:var(--card); border-color:transparent; }
.match-item .mi-body { flex:1; min-width:0; }
.match-item .mi-name { font-weight:700; font-size:1.06rem; display:flex; align-items:center; gap:6px; }
.match-item .mi-sub { color:var(--muted); font-size:0.86rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.match-item .mi-arrow { color:var(--faint); font-size:1.5rem; line-height:1; }
.mi-verified { color:var(--ok); font-size:0.82rem; }
.list-empty { text-align:center; color:var(--muted); padding:60px 30px; }
.list-empty .big { font-size:2.4rem; margin-bottom:12px; }

/* ---------- CHAT (surface Operate : focus flux + input) ---------- */
.chat-head { gap:12px; }
.chat-messages { flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; gap:4px; -webkit-overflow-scrolling:touch; }
.bubble { max-width:78%; padding:10px 14px; border-radius:20px; font-size:0.95rem; line-height:1.4; word-wrap:break-word; animation:pop .2s ease; margin-top:6px; }
@keyframes pop { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.bubble.them { align-self:flex-start; background:var(--card2); border:1px solid var(--border); border-bottom-left-radius:6px; }
.bubble.me { align-self:flex-end; background:var(--grad); color:var(--accent-ink); border-bottom-right-radius:6px; font-weight:500; }
.bubble-text { display:block; }
.bubble-time { display:block; font-size:0.66rem; margin-top:3px; text-align:right; opacity:0.55; letter-spacing:0.02em; }
.bubble.them .bubble-time { color:var(--faint); }
.bubble.me .bubble-time { color:var(--accent-ink); }
.chat-empty { margin:auto; text-align:center; color:var(--muted); padding:30px; }
.chat-bar { display:flex; gap:10px; padding:12px 14px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--bg); flex-shrink:0; }
.chat-bar input { flex:1; background:var(--bg2); border:1px solid var(--border2); border-radius:999px; color:var(--text); font-family:var(--font); font-size:1rem; padding:13px 18px; transition:border-color .2s, box-shadow .2s; }
.chat-bar input::placeholder { color:var(--faint); }
.chat-bar input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(240,133,122,0.14); }
.send-btn { width:50px; height:50px; border-radius:50%; border:none; background:var(--grad); color:var(--accent-ink); font-size:1.15rem; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:transform .15s, filter .2s; box-shadow:0 6px 18px rgba(240,133,122,0.32); }
.send-btn:active { transform:scale(0.9); }

/* ---------- PROFILE (surface Configure) ---------- */
.profile-body { flex:1; overflow-y:auto; padding:24px 18px calc(30px + env(safe-area-inset-bottom)); max-width:480px; margin:0 auto; width:100%; }
.profile-hero { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; margin-bottom:28px; }
.profile-hero h3 { font-family:var(--serif); font-size:1.55rem; letter-spacing:-0.01em; }
.profile-hero > div { display:flex; flex-direction:column; gap:3px; }
.profile-hero .ph-meta { color:var(--accent2); font-weight:600; }
.profile-hero .ph-city { color:var(--muted); font-size:0.9rem; }
.verified-chip { display:inline-flex; align-items:center; gap:5px; color:var(--ok); font-size:0.82rem; font-weight:700; background:rgba(79,196,138,0.10); border:1px solid rgba(79,196,138,0.25); padding:5px 12px; border-radius:999px; }
.profile-section { margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.profile-section .ps-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--faint); font-weight:700; margin-bottom:6px; }
.profile-section .ps-val { color:var(--text); line-height:1.55; }
.profile-actions { display:flex; flex-direction:column; gap:12px; margin-top:28px; }

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position:fixed; bottom:0; left:0; right:0; height:var(--nav-h);
  display:flex; background:rgba(20,17,14,0.90); backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px); border-top:1px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom); z-index:50;
}
.nav-btn { flex:1; background:none; border:none; color:var(--faint); font-family:var(--font); font-size:0.68rem; font-weight:600; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; position:relative; transition:color .2s; letter-spacing:0.01em; }
.nav-btn .ico { font-size:1.3rem; filter:grayscale(0.5) opacity(0.65); transition:filter .2s, transform .2s; }
.nav-btn.active { color:var(--accent); }
.nav-btn.active .ico { filter:none; transform:scale(1.08) translateY(-1px); }
.badge { position:absolute; top:8px; right:calc(50% - 26px); background:var(--grad); color:var(--accent-ink); font-size:0.64rem; font-weight:800; min-width:18px; height:18px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 5px; box-shadow:0 2px 8px rgba(240,133,122,0.4); }

/* ---------- MATCH OVERLAY (le moment magique) ---------- */
.overlay { position:fixed; inset:0; z-index:200; background:rgba(16,13,11,0.92); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); display:flex; align-items:center; justify-content:center; padding:28px; animation:fade .3s ease; }
.overlay::before { content:""; position:absolute; inset:0; background:radial-gradient(60% 45% at 50% 38%, rgba(240,133,122,0.20), transparent 70%); pointer-events:none; }
.overlay[hidden] { display:none; }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
.overlay-inner { position:relative; text-align:center; max-width:360px; width:100%; display:flex; flex-direction:column; align-items:center; gap:14px; animation:rise .45s cubic-bezier(.16,.84,.44,1); }
.overlay-inner h2 { font-size:2.1rem; background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; letter-spacing:-0.02em; }
@keyframes rise { from { opacity:0; transform:translateY(24px) scale(0.95); } to { opacity:1; transform:none; } }
/* halo animé autour de l'avatar : remplace l'emoji 🎉 par une vraie mise en scène */
.match-halo { position:relative; display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.match-halo::before { content:""; position:absolute; width:150px; height:150px; border-radius:50%; background:conic-gradient(from 0deg, var(--accent), var(--violet), var(--accent2), var(--accent)); filter:blur(2px); opacity:0.5; animation:spin 6s linear infinite; }
.match-halo::after { content:""; position:absolute; width:132px; height:132px; border-radius:50%; background:var(--bg); }
.match-halo .avatar { position:relative; z-index:1; }
.overlay-actions { display:flex; flex-direction:column; gap:12px; width:100%; margin-top:12px; }

/* ---------- TOAST ---------- */
.toast {
  position:fixed; left:50%; bottom:calc(var(--nav-h) + 20px); transform:translateX(-50%) translateY(20px);
  background:#2a2420; border:1px solid var(--border2); color:var(--text);
  padding:13px 20px; border-radius:14px; font-size:0.9rem; z-index:300;
  box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:opacity .25s, transform .25s;
  max-width:90%; text-align:center;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast.err { border-color:var(--err); }
.toast .retry { margin-left:10px; color:var(--accent); font-weight:700; text-decoration:underline; cursor:pointer; }

/* ---------- SPINNER ---------- */
.spinner { width:34px; height:34px; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; margin:40px auto; }
@keyframes spin { to { transform:rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.05ms !important; }
  .match-halo::before { animation:none; }
}

/* ---------- ONBOARDING : extras (photos, prompts, infos) ---------- */
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.grid-3 .field span { font-size:0.76rem; }
.photo-preview { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.photo-thumb { position:relative; width:60px; height:60px; border-radius:12px; background-size:cover; background-position:center; border:1px solid var(--border2); }
.photo-thumb .rm { position:absolute; top:-6px; right:-6px; width:20px; height:20px; border-radius:50%; border:none; background:var(--err); color:#fff; font-size:0.8rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.onb-prompts { margin:4px 0 6px; }
.onb-sub { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--faint); font-weight:700; margin-bottom:14px; }
.consent { display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.check { display:flex; gap:13px; align-items:flex-start; font-size:0.88rem; color:var(--text); line-height:1.5; cursor:pointer; background:var(--bg2); border:1px solid var(--border); border-radius:14px; padding:15px 16px; transition:border-color .2s; }
.check:hover { border-color:var(--border2); }
.check input { width:22px; height:22px; flex-shrink:0; margin-top:1px; accent-color:var(--accent); }
.check a { color:var(--accent2); text-decoration:underline; font-weight:600; }

/* ---------- REVIEW SCREEN (validation / refus) ---------- */
.review-wrap { min-height:100%; height:100%; max-width:460px; margin:0 auto; display:flex; flex-direction:column; justify-content:center; padding:calc(40px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom)); overflow-y:auto; }
.review-body { text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; }
.review-body .brand-logo { height:56px; margin-bottom:4px; }
.review-body h2 { font-family:var(--serif); font-size:1.7rem; letter-spacing:-0.015em; }
.review-body p { color:var(--muted); line-height:1.6; }
.review-status { display:inline-flex; align-items:center; gap:9px; font-weight:700; font-size:0.86rem; padding:9px 16px; border-radius:999px; }
.review-status.pending { color:var(--accent2); background:rgba(240,133,122,0.10); border:1px solid rgba(240,133,122,0.30); }
.review-status.rejected { color:var(--err); background:rgba(239,107,99,0.10); border:1px solid rgba(239,107,99,0.30); }
.pulse-dot { width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(240,133,122,0.6); animation:pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(240,133,122,0.55); } 70% { box-shadow:0 0 0 12px rgba(240,133,122,0); } 100% { box-shadow:0 0 0 0 rgba(240,133,122,0); } }

/* Suivi de validation : rangées à état réel (reçu / en cours / à venir) plutôt qu'une liste centrée générique */
.review-steps { width:100%; background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; text-align:left; margin:4px 0; }
.rs-item { display:flex; gap:13px; align-items:center; padding:14px 16px; }
.rs-item + .rs-item { border-top:1px solid var(--border); }
.rs-ic { width:26px; height:26px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:0.82rem; font-weight:800; }
.rs-item.done .rs-ic { background:rgba(79,196,138,0.14); color:var(--ok); }
.rs-item.doing .rs-ic { background:rgba(240,133,122,0.14); color:var(--accent); }
.rs-item.wait .rs-ic { background:var(--card2); border:1px solid var(--border2); }
.rs-item.wait .rs-ic::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--faint); }
.rs-body b { display:block; font-size:0.95rem; font-weight:600; color:var(--text); }
.rs-item.wait .rs-body b { color:var(--muted); }
.rs-body small { color:var(--muted); font-size:0.82rem; }
.mini-spin { width:13px; height:13px; border:2px solid rgba(240,133,122,0.3); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
.review-eta { display:inline-flex; align-items:center; gap:8px; background:var(--bg2); border:1px solid var(--border2); color:var(--accent2); font-weight:600; font-size:0.88rem; padding:9px 16px; border-radius:999px; margin-top:2px; }
.review-hint { font-size:0.86rem; }

.review-notes { width:100%; background:var(--card); border:1px solid var(--border2); border-radius:14px; padding:14px 16px; text-align:left; }
.review-notes .rn-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--faint); font-weight:700; margin-bottom:6px; }
.review-actions { display:flex; flex-direction:column; gap:12px; width:100%; margin-top:12px; }

/* ---------- DISCOVER : carrousel photos + prompt + infos ---------- */
.pc-count { position:absolute; top:16px; left:16px; background:rgba(20,17,14,0.62); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:var(--text); font-size:0.74rem; font-weight:700; padding:5px 11px; border-radius:999px; z-index:2; }
.pc-nav { position:absolute; top:0; bottom:0; width:38%; z-index:2; background:none; border:none; cursor:pointer; color:transparent; }
.pc-nav.prev { left:0; } .pc-nav.next { right:0; }
.pc-dots { position:absolute; top:12px; left:50%; transform:translateX(-50%); display:flex; gap:5px; z-index:2; }
.pc-dots i { width:22px; height:3px; border-radius:2px; background:rgba(245,240,232,0.35); }
.pc-dots i.on { background:var(--text); }
.pc-prompt { margin-top:12px; font-size:0.92rem; color:var(--text); line-height:1.5; background:var(--card2); border:1px solid var(--border); border-radius:12px; padding:10px 13px; }
.pc-prompt b { color:var(--accent2); font-weight:600; }
.pc-extra { color:var(--muted); font-size:0.84rem; margin-top:8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }

/* ---------- PROFILE : galerie photos ---------- */
.profile-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:24px; }
.profile-gallery .pg-item { position:relative; aspect-ratio:1; border-radius:14px; background-size:cover; background-position:center; background-color:var(--card2); border:1px solid var(--border); }
.profile-gallery .pg-item .rm { position:absolute; top:5px; right:5px; width:24px; height:24px; border-radius:50%; border:none; background:rgba(20,17,14,0.75); color:#fff; font-size:0.85rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.profile-gallery .pg-add { display:flex; align-items:center; justify-content:center; color:var(--accent); font-size:1.8rem; cursor:pointer; border:1px dashed var(--border2); }

/* ============================================================
   FIX DESKTOP : tout est contenu dans une colonne centrale
   ============================================================ */
@media (min-width:640px) {
  #screen-app.active { max-width:480px; margin:0 auto; border-left:1px solid var(--border); border-right:1px solid var(--border); }
  .bottom-nav { left:50%; right:auto; transform:translateX(-50%); width:480px; max-width:100%; }
  .deck { max-width:440px; width:100%; margin:0 auto; }
  .profile-card { inset:18px 26px; }
}
