/* Charo love — direction artistique « Noir Velours » : noir profond, bordeaux, lumières rouges */
:root {
  --night-900: #050304;   /* noir profond */
  --night-700: #12060A;   /* noir bordeaux */
  --cyan: #E11D48;        /* rouge (ancien nom de variable conservé) */
  --cyan-light: #FF8FA3;  /* rose lumineux */

  --card: rgba(24,8,13, 0.72);
  --line: rgba(255,143,163, 0.14);
  --text: #F7EDEF;
  --muted: #A8949A;
  --danger: #FF5A5F;
  --ok: #4ADE80;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(225,29,72, .18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(225,29,72, .08), transparent 60%),
    linear-gradient(180deg, var(--night-700), var(--night-900) 45%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }

.container { max-width: 560px; margin: 0 auto; padding: 16px 18px 40px; min-height: calc(100vh - 130px); }

/* En-tête */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(5,3,4, .75); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -.5px; }
.logo span { color: var(--cyan); margin-left: 3px; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
select#lang {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px; font: inherit; font-size: 13px;
}
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: var(--text); background: rgba(255,255,255,.03);
}

/* Typo */
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -1px; margin: 26px 0 12px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.5px; margin: 8px 0 8px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center { text-align: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px;
  color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  box-shadow: 0 10px 30px rgba(225,29,72, .25);
  transition: transform .12s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.small { width: auto; padding: 10px 16px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; padding: 6px; }

/* Cartes et choix */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 14px 0; backdrop-filter: blur(10px);
}
.options { display: grid; gap: 10px; margin: 18px 0; }
.options.grid2 { grid-template-columns: 1fr 1fr; }
.option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  width: 100%; padding: 16px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: rgba(225,29,72,.5); }
.option.selected { border-color: var(--cyan); background: rgba(225,29,72, .12); }
.option .emoji { font-size: 22px; }
.option small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: 13px; }

input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; font: inherit; font-size: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); outline: none;
}
input:focus, textarea:focus { border-color: var(--cyan); }
textarea { min-height: 150px; resize: vertical; }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }

/* Progression */
.progress { height: 6px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); transition: width .3s; }
.stepbar { display: flex; align-items: center; gap: 12px; }
.stepbar .back { background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; padding: 4px 8px 4px 0; }
.stepbar .progress { flex: 1; margin: 0; }

/* Captures */
.upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px; border: 1.5px dashed rgba(225,29,72, .45); border-radius: 16px;
  cursor: pointer; color: var(--cyan-light); text-align: center;
}
.upload input { display: none; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; width: 74px; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(5,3,4,.85); color: #fff; cursor: pointer; font-size: 12px;
}
.or { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; }

/* Accueil */
.hero { text-align: center; padding-top: 10px; }
.hero .badge {
  display: inline-block; font-size: 12px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid rgba(225,29,72,.4); color: var(--cyan-light); margin-top: 20px;
}
.phone {
  margin: 26px auto 8px; max-width: 320px; text-align: left;
  background: var(--night-900); border: 1px solid var(--line); border-radius: 26px; padding: 16px;
  box-shadow: 0 30px 80px rgba(225,29,72, .12);
}
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; margin: 6px 0; font-size: 14px; line-height: 1.35; }
.bubble.them { background: #1E0B10; border-bottom-left-radius: 6px; }
.bubble.me { background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; font-weight: 600; }
.bubble.tip { background: transparent; border: 1px dashed var(--cyan); color: var(--cyan-light); max-width: 100%; font-size: 13px; }
.features { display: grid; gap: 10px; margin: 24px 0; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature b { display: block; }

/* Verdict */
.score {
  --p: 50;
  width: 150px; height: 150px; border-radius: 50%; margin: 18px auto 6px;
  display: grid; place-items: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
}
.score > div {
  width: 124px; height: 124px; border-radius: 50%; background: var(--night-900);
  display: grid; place-items: center; text-align: center;
}
.score strong { font-size: 40px; line-height: 1; }
.score span { font-size: 11px; color: var(--muted); }
.flags { list-style: none; padding: 0; margin: 0; }
.flags li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.flags li:last-child { border: 0; }
.reply {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); color: #fff;
  padding: 16px 18px; border-radius: 20px 20px 6px 20px; font-weight: 600; font-size: 16px; line-height: 1.4;
  white-space: pre-wrap;
}
.alt { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-top: 8px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* Chargement */
.loader { text-align: center; padding: 60px 0; }
.spinner {
  width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%;
  border: 4px solid rgba(225,29,72,.15); border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Premium */
.plan { position: relative; cursor: pointer; }
.plan.selected { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.plan .price { font-size: 30px; font-weight: 800; }
.plan .tag {
  position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 700;
  background: var(--cyan); color: #fff; padding: 4px 10px; border-radius: 99px;
}
.checklist { list-style: none; padding: 0; margin: 10px 0; }
.checklist li { padding: 6px 0; }
.checklist li::before { content: '✓'; color: var(--cyan); font-weight: 800; margin-right: 10px; }

/* Historique */
.history-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.history-item .sc { font-weight: 800; color: var(--cyan); }

.error { color: var(--danger); font-size: 14px; margin-top: 10px; }
.foot { display: flex; justify-content: center; gap: 18px; padding: 22px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--cyan); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; z-index: 50;
}
.spacer { height: 12px; }

/* ================= ANIMATIONS ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glow { 0%,100% { box-shadow: 0 10px 30px rgba(225,29,72,.25); } 50% { box-shadow: 0 10px 45px rgba(225,29,72,.6); } }
@keyframes shine { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes drift { from { transform: translate(0,0) rotate(0); } to { transform: translate(40px,-60px) rotate(25deg); } }
@keyframes heartUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-110vh) scale(1.2); opacity: 0; } }
@keyframes typing { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes ringIn { from { --p: 0; } }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

.screen { animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both; }
.screen > * { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
.screen > *:nth-child(2) { animation-delay: .05s; } .screen > *:nth-child(3) { animation-delay: .1s; }
.screen > *:nth-child(4) { animation-delay: .15s; } .screen > *:nth-child(5) { animation-delay: .2s; }
.screen > *:nth-child(6) { animation-delay: .25s; } .screen > *:nth-child(7) { animation-delay: .3s; }
.screen > *:nth-child(n+8) { animation-delay: .35s; }

.options .option { animation: pop .4s cubic-bezier(.2,.8,.2,1) both; }
.options .option:nth-child(2) { animation-delay: .05s; } .options .option:nth-child(3) { animation-delay: .1s; }
.options .option:nth-child(4) { animation-delay: .15s; } .options .option:nth-child(5) { animation-delay: .2s; }
.options .option:nth-child(6) { animation-delay: .25s; } .options .option:nth-child(7) { animation-delay: .3s; }
.options .option:nth-child(8) { animation-delay: .35s; }
.option:active { transform: scale(.97); }
.option.selected { animation: pop .3s ease both; }

.btn:not(.ghost) { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--cyan), var(--cyan-light), var(--cyan)); animation: glow 2.6s ease-in-out infinite, shine 4s linear infinite; }

.phone { animation: floatY 5s ease-in-out infinite; }
.phone .bubble { opacity: 0; animation: pop .5s cubic-bezier(.2,.8,.2,1) forwards; }
.phone .bubble:nth-child(1) { animation-delay: .4s; }
.phone .bubble.me.typing { animation: pop .3s ease .9s forwards, fadeOutHide .2s ease 1.9s forwards; opacity: 0; display: inline-flex; gap: 4px; padding: 12px 14px; }
.phone .bubble.me.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--night-900); animation: typing 1s infinite; }
.phone .bubble.me.typing i:nth-child(2) { animation-delay: .15s; } .phone .typing i:nth-child(3) { animation-delay: .3s; }
.phone .bubble.me { animation-delay: 2s; }
.phone .bubble.tip { animation-delay: 2.8s; }
@keyframes fadeOutHide { to { opacity: 0; height: 0; padding: 0; margin: 0; } }

.score { animation: ringIn 1.4s cubic-bezier(.2,.8,.2,1) both, pop .5s ease both; }
.reply { animation: pop .5s cubic-bezier(.2,.8,.2,1) .3s both; }

.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-fx .blob { position: absolute; width: 340px; height: 340px; border-radius: 50%; filter: blur(70px); opacity: .35;
  background: radial-gradient(circle, var(--cyan), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.bg-fx .blob.b2 { left: auto; right: -120px; top: 45%; animation-duration: 18s; opacity: .22; }
.bg-fx .blob.b1 { left: -140px; top: -60px; }
.bg-fx .heart { position: absolute; bottom: -40px; font-size: 18px; animation: heartUp linear infinite; opacity: 0; }

.loader .spinner { animation: spin 1s linear infinite, glow 2s ease-in-out infinite; }
#loadMsg { animation: fadeUp .4s ease both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .phone .bubble { opacity: 1; } .phone .bubble.me.typing { display: none; } }

/* ===== Accueil enrichi ===== */
.small { font-size: 13px; }
.block { margin: 46px 0 10px; }
.block h2 { font-size: 26px; margin-bottom: 4px; }
.chips-row { margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 13px; }
.steps { display: grid; gap: 10px; margin-top: 18px; }
.step { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.step p { margin: 4px 0 0; font-size: 14px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  color: #fff; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); }
.demo-verdict { margin-top: 18px; border-color: rgba(225,29,72,.35); box-shadow: 0 20px 60px rgba(225,29,72,.12); }
.dv-top { display: flex; gap: 14px; align-items: center; }
.mini-score { --p: 50; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cyan) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; animation: ringIn 1.6s ease both; }
.mini-score::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--night-900); }
.mini-score span { position: relative; font-weight: 800; font-size: 15px; }
.dv-flags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.flag { font-size: 13px; padding: 6px 10px; border-radius: 10px; }
.flag.ok { background: rgba(74,222,128,.1); color: #bbf7d0; } .flag.ko { background: rgba(255,90,95,.12); color: #fecdd3; }
.small-reply { font-size: 14px; padding: 12px 14px; }
.modes { display: grid; gap: 10px; margin-top: 18px; }
.mode-card { margin: 0; } .mode-card p { margin: 4px 0 10px; }
.mode-h { display: flex; gap: 10px; align-items: center; } .mode-h .emoji { font-size: 22px; }
.mode-card .bubble { max-width: 100%; margin: 0; font-size: 13px; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.why-card { margin: 0; padding: 14px; } .why-card .emoji { font-size: 22px; display: block; margin-bottom: 6px; } .why-card p { margin: 4px 0 0; }
.prices { display: grid; gap: 10px; margin-top: 18px; }
.price-card { margin: 0; position: relative; } .price-card .price { font-size: 28px; font-weight: 800; } .price-card p { margin: 4px 0 0; }
.price-card.hot { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.price-card .tag { position: absolute; top: -10px; right: 14px; font-size: 11px; font-weight: 700; background: var(--cyan); color: #fff; padding: 4px 10px; border-radius: 99px; }
.faq { margin: 8px 0; padding: 14px 18px; } .faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--cyan); font-weight: 800; } .faq[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; font-size: 14px; }
.final { padding: 20px 0 10px; } .final h2 { margin-bottom: 18px; }
.block .card, .steps .card, .why .card, .modes .card { animation: fadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 640px) { .steps, .modes, .prices { grid-template-columns: repeat(3, 1fr); } .why { grid-template-columns: repeat(3, 1fr); } }

/* Icônes plateformes (couleurs + logo si présent dans /logos) */
.pf-ico { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #1E0B10), var(--c2, #12060A)); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pf-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-ico img + span { visibility: hidden; }
.pf-tinder { --c1: #ff6b6b; --c2: #ff3d7f; } .pf-hinge { --c1: #3b3b4f; --c2: #1d1d29; } .pf-bumble { --c1: #ffd95a; --c2: #f5b400; }
.pf-instagram { --c1: #f9a23b; --c2: #c13584; } .pf-snapchat { --c1: #fff36b; --c2: #ffd60a; } .pf-whatsapp { --c1: #4be07a; --c2: #1aa34a; }
.pf-sms { --c1: #5ac8fa; --c2: #2f80ed; } .pf-autre { --c1: #E11D48; --c2: #5A0F1F; }
.option:hover .pf-ico { transform: rotate(-6deg) scale(1.06); transition: transform .2s; }

/* ---------- Fond avec photos (mosaïque floutée, façon toxique.eu) ---------- */
/* Les photos viennent du dossier /fond (1.jpg, 2.jpg, …). Sans photo, rien ne s'affiche. */
.bg-photos {
  position: fixed; inset: -8% -12%; z-index: -2; pointer-events: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  transform: rotate(-6deg); opacity: 0; transition: opacity 1.2s ease;
}
.bg-photos.on { opacity: 1; }
.bg-photos .ph {
  border-radius: 22px; background-size: cover; background-position: center;
  min-height: 34vh; filter: blur(1.5px) saturate(.85) brightness(.55);
  animation: bgDrift 40s linear infinite alternate;
}
.bg-photos .ph:nth-child(3n+2) { margin-top: -12vh; animation-duration: 52s; }
.bg-photos .ph:nth-child(3n) { margin-top: 6vh; animation-duration: 46s; }
@keyframes bgDrift { from { transform: translateY(0); } to { transform: translateY(-6vh); } }
/* voile bleu nuit par-dessus les photos pour garder le texte lisible */
.bg-photos::after {
  content: ''; position: fixed; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,3,4,.55) 0%, rgba(5,3,4,.72) 45%, rgba(5,3,4,.92) 100%),
    radial-gradient(800px 500px at 80% 0%, rgba(225,29,72,.18), transparent 60%);
}
@media (min-width: 900px) { .bg-photos { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { .bg-photos .ph { animation: none; } }

/* ---------- Radar d'analyse ---------- */
.scanner { text-align: center; padding: 24px 0 40px; }
.scan-brand { font-weight: 800; font-size: 22px; margin-bottom: 18px; letter-spacing: -.3px; }
.scan-brand span { color: var(--cyan); }
.scan-brand b { font-weight: 600; color: var(--muted); }
.scan-brand .dots i { font-style: normal; animation: blink 1.2s infinite; color: var(--cyan); }
.scan-brand .dots i:nth-child(2) { animation-delay: .2s; } .scan-brand .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.scan-frame {
  position: relative; margin: 0 auto; max-width: 340px; max-height: 420px; overflow: hidden;
  border-radius: 26px; border: 1.5px solid rgba(225,29,72,.55); background: #0A0305; padding: 10px;
  box-shadow: 0 0 0 6px rgba(225,29,72,.06), 0 0 40px rgba(225,29,72,.25);
}
.scan-frame img { display: block; width: 100%; border-radius: 18px; object-fit: cover; object-position: top; max-height: 400px; filter: brightness(.9); }
.scan-chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 8px; min-height: 260px; }
.scan-bubble { align-self: flex-start; max-width: 80%; text-align: left; font-size: 14px; padding: 9px 14px; border-radius: 18px; background: rgba(255,255,255,.08); }
.scan-bubble.me { align-self: flex-end; background: linear-gradient(90deg, #7A1027, var(--cyan)); color: #FFFFFF; }
.scan-line {
  position: absolute; left: -10%; right: -10%; height: 3px; top: 0;
  background: linear-gradient(90deg, transparent, var(--cyan-light), var(--cyan), var(--cyan-light), transparent);
  box-shadow: 0 0 18px 6px rgba(225,29,72,.55), 0 0 60px 20px rgba(225,29,72,.18);
  animation: scanMove 2.4s ease-in-out infinite alternate;
}
.scan-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,143,163,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,143,163,.25) 1px, transparent 1px);
  background-size: 28px 28px;
}
@keyframes scanMove { from { top: 2%; } to { top: 97%; } }
.scan-progress { max-width: 340px; margin: 22px auto 14px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.scan-progress > div { width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); transition: width .25s; box-shadow: 0 0 12px var(--cyan); }

/* ---------- Recadrage (la morale sur ses propres messages) ---------- */
.card.recadrage { border-color: rgba(255,90,95,.45); background: linear-gradient(180deg, rgba(255,90,95,.10), var(--card)); }
.recadrage .morale { margin: 0 0 12px; font-weight: 600; }
.rec-item { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.rec-item:first-of-type { border-top: 0; margin-top: 0; }
.rec-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--danger); margin-bottom: 6px; }
.rec-label.ok { color: var(--ok); margin-top: 10px; }
.rec-bad { display: inline-block; padding: 8px 14px; border-radius: 16px; background: rgba(255,90,95,.12); text-decoration: line-through; text-decoration-color: var(--danger); opacity: .9; }
.rec-why { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(225,29,72,.10); border: 1px solid rgba(225,29,72,.35); color: var(--cyan-light); }

.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; }
.pf-ico.mini { width: 26px; height: 26px; border-radius: 8px; font-size: 14px; box-shadow: none; }

/* ---------- Mon espace : dossiers + barre du bas ---------- */
.hello { display: flex; align-items: center; gap: 6px; }
.hello .link-btn { font-size: 18px; }
.name-edit { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.name-edit input { flex: 1; }
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.folder {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s;
}
.folder:active { transform: scale(.97); }
.folder:hover { border-color: rgba(225,29,72,.5); }
.folder small { color: var(--muted); font-size: 12px; }
.folder.add { border-style: dashed; border-color: rgba(225,29,72,.5); background: rgba(225,29,72,.06); }
.folder .plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #FFFFFF;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light)); box-shadow: 0 0 20px rgba(225,29,72,.35); }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none;
  color: var(--cyan-light); background: linear-gradient(135deg, var(--night-700), #3A0D18); border: 1.5px solid rgba(225,29,72,.45); }
.avatar.sm { width: 36px; height: 36px; font-size: 16px; }
.avatar.xl { width: 84px; height: 84px; font-size: 36px; margin: 0 auto 8px; }
.folder-head { text-align: center; margin: 10px 0 18px; }
.folder-head h2 { margin: 4px 0; }
.btn.danger { color: var(--danger); border-color: rgba(255,90,95,.35); }
.add-card input { width: 100%; }
.tabbar-space { height: 90px; }
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 99px;
  background: rgba(24,8,13, .88); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.tabbar[hidden] { display: none; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 88px; padding: 8px 14px; border: 0; border-radius: 99px;
  background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.tabbar button span { font-size: 20px; line-height: 1; }
.tabbar button.on { background: rgba(225,29,72,.14); color: var(--text); }
.tabbar .plus-btn { min-width: 0; width: 56px; height: 56px; padding: 0; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light)); color: #FFFFFF; box-shadow: 0 0 22px rgba(225,29,72,.4); }
.tabbar .plus-btn span { font-size: 28px; color: #FFFFFF; }

/* ---------- Page réponse (façon carte à copier) ---------- */
.ans { text-align: center; padding-top: 6px; }
.ans-brand { font-weight: 800; font-size: 26px; letter-spacing: -.5px; margin-bottom: 14px; }
.ans-brand span { color: var(--cyan); }
.ans-brand small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.ans-shot { max-width: 340px; margin: 0 auto; padding: 8px; border-radius: 26px; background: #0A0305;
  border: 1.5px solid rgba(255,143,163,.6); box-shadow: 0 0 0 5px rgba(225,29,72,.07), 0 0 34px rgba(225,29,72,.3); }
.ans-shot img { display: block; width: 100%; max-height: 340px; object-fit: cover; object-position: bottom; border-radius: 19px; }
.ans-label { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0 10px; }
.ans-label span { font-size: 13px; color: var(--muted); }
.ans-label b { font-size: 13px; letter-spacing: 3px; color: var(--cyan-light);
  padding: 0 14px; background: linear-gradient(90deg, transparent, rgba(225,29,72,.18), transparent); }
.ans-reply {
  display: block; width: 100%; padding: 26px 20px; border: 0; border-radius: 24px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 24px; line-height: 1.3; color: #FFFFFF;
  background: radial-gradient(120% 140% at 50% 0%, #ffffff, var(--cyan-light) 55%, var(--cyan));
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 0 40px rgba(225,29,72,.55), 0 14px 40px rgba(0,0,0,.4);
  transition: transform .15s;
}
.ans-reply:active { transform: scale(.98); }
.ans-tip { margin: 16px 6px 22px; color: var(--cyan-light); font-size: 15px; }

/* ---------- Étape « ton style » (grandes cartes photo) ---------- */
.taste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.taste {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; cursor: pointer; padding: 0;
  border: 2px solid var(--line); font: inherit; color: #fff;
  background: linear-gradient(160deg, #3A0D18, var(--night-900));
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.taste img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.taste img + .emo { display: none; }
.taste .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; }
.taste::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,3,4,.85)); }
.taste b { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-size: 16px; }
.taste .tick { position: absolute; right: 10px; bottom: 10px; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8); display: grid; place-items: center; font-style: normal; font-size: 14px; color: #FFFFFF; }
.taste.selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(225,29,72,.25), 0 0 26px rgba(225,29,72,.35); }
.taste.selected .tick { background: var(--cyan); border-color: var(--cyan); }
.taste:active { transform: scale(.97); }
.taste-line { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.taste-line b { color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); text-align: center; }
.stat b { font-size: 30px; font-weight: 800; background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { font-size: 13px; margin-top: 2px; }
.stat small { font-size: 11px; color: var(--muted); }
.stat-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stat-list > div:last-child { border-bottom: 0; }
.stat-list span { color: var(--muted); }
.style-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.style-chips .chip { cursor: pointer; font: inherit; font-size: 13px; }
.style-chips .chip.on { background: var(--cyan); color: #FFFFFF; border-color: var(--cyan); }

/* ---------- Page « nouvelle personne » (collage photo + gros titre) ---------- */
.btn.ghost-new { margin-top: 14px; background: transparent !important; animation: none; color: var(--cyan); border: 2px dashed rgba(225,29,72,.5); box-shadow: none; }
.np-collage { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  height: 340px; margin: 4px -6px 22px; }
.np-collage::after { content: ''; position: absolute; inset: auto 0 -2px 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--night-900) 92%); }
.np-card { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--c1), var(--c2));
  border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: npIn .6s cubic-bezier(.2,.8,.2,1) both; }
.np-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.np-card img + .emo { display: none; }
.np-card .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; opacity: .9; }
.np-card.c1 { grid-column: 1; grid-row: 1; transform: rotate(-3deg); }
.np-card.c2 { grid-column: 3; grid-row: 1; transform: rotate(3deg); animation-delay: .08s; }
.np-card.c3 { grid-column: 2; grid-row: 1 / span 2; margin-top: 18px; animation-delay: .16s; box-shadow: 0 0 40px rgba(225,29,72,.3), 0 12px 30px rgba(0,0,0,.5); }
.np-card.c4 { grid-column: 1; grid-row: 2; animation-delay: .24s; }
.np-card.c5 { grid-column: 3; grid-row: 2; animation-delay: .32s; }
@keyframes npIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.np-title { font-size: 40px; line-height: 1.02; font-weight: 800; letter-spacing: -1px; margin: 0 0 14px; }
.np-title span { display: block; background: linear-gradient(90deg, var(--cyan), var(--cyan-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.np-ask { font-size: 20px; color: var(--muted); margin: 0 0 18px; }
.np-input { font-size: 18px; padding: 18px 20px; border-radius: 22px; }
.np-cta { margin-top: 14px; padding: 20px; font-size: 18px; border-radius: 999px; }

/* Connexion Google */
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f1f1f; box-shadow: none; margin-top: 14px; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; color: var(--muted); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =====================================================================
   REFONTE « NOIR VELOURS » — couche visuelle premium (v2)
   Tout ce qui suit est purement visuel : aucune classe utilisée par la
   logique de l'application n'a été renommée.
   ===================================================================== */
:root {
  --black: #050304;
  --ink: #0B0507;
  --wine-900: #1A060C;
  --wine-700: #3A0D18;
  --wine-500: #7A1027;
  --red: #E11D48;
  --red-hot: #FF2D55;
  --rose: #FF8FA3;
  --gold: #F4C38B;
  --glass: linear-gradient(180deg, rgba(40,10,18,.62), rgba(14,5,8,.72));
  --glass-line: rgba(255,143,163,.12);
  --glow: 0 0 0 1px rgba(255,45,85,.25), 0 18px 60px -12px rgba(225,29,72,.55);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --card: rgba(22,7,11,.72);
}

html { background: var(--black); scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans); font-feature-settings: 'ss01';
  background:
    radial-gradient(1100px 600px at 80% -12%, rgba(225,29,72,.20), transparent 62%),
    radial-gradient(800px 600px at -10% 35%, rgba(122,16,39,.22), transparent 60%),
    linear-gradient(180deg, #0D0408, var(--black) 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}
::selection { background: rgba(225,29,72,.55); color: #fff; }
a { color: var(--rose); }

/* Titres : sans-serif dense + accent serif italique */
h1, h2, .np-title, .scan-brand, .ans-brand { font-family: var(--sans); font-weight: 800; letter-spacing: -.035em; }
h1 { font-size: clamp(36px, 9vw, 64px); line-height: .98; }
h2 { font-size: clamp(24px, 5.4vw, 34px); }
.grad, .np-title span {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 0%, var(--rose) 35%, var(--red-hot) 70%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
h1 .grad { font-size: 1.12em; line-height: .9; }

/* ---------- Couches d'arrière-plan ---------- */
.bg-ambient { position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: 0;
  background-size: cover; background-position: center top; transition: opacity 1.6s var(--ease); filter: saturate(1.1); }
.bg-ambient.on { opacity: .55; }
.bg-ambient::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,3,4,.25), rgba(5,3,4,.75) 55%, rgba(5,3,4,.95)); }
.bg-fx .blob { background: radial-gradient(circle, var(--red), transparent 65%); opacity: .22; mix-blend-mode: screen; }
.bg-fx .blob.b2 { background: radial-gradient(circle, var(--wine-500), transparent 65%); opacity: .35; }
.bg-fx .ember { position: absolute; bottom: -20px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--red-hot); box-shadow: 0 0 10px 2px rgba(255,45,85,.8), 0 0 30px 6px rgba(225,29,72,.35);
  opacity: 0; animation: emberUp linear infinite; }
.bg-fx .ember:nth-child(odd) { width: 3px; height: 3px; background: var(--rose); }
@keyframes emberUp {
  0% { transform: translate3d(0,0,0); opacity: 0; } 12% { opacity: .9; }
  50% { transform: translate3d(18px,-55vh,0); } 100% { transform: translate3d(-12px,-110vh,0); opacity: 0; }
}
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } 100% { transform: translate(0,0); } }
.spotlight { position: fixed; left: 0; top: 0; width: 600px; height: 600px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,.16), transparent 60%); opacity: 0; transition: opacity .6s; will-change: transform; }
.spotlight.on { opacity: 1; }

/* ---------- Intro cinématique ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--black); cursor: pointer;
  transition: opacity .8s var(--ease), visibility .8s; }
.intro::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 340px at 50% 48%, rgba(225,29,72,.35), transparent 70%); animation: introPulse 2.1s var(--ease) both; }
.intro.out { opacity: 0; visibility: hidden; }
.intro.out .intro-core { transform: scale(1.12); filter: blur(6px); }
.intro-core { position: relative; text-align: center; transition: transform .8s var(--ease), filter .8s; }
.intro-heart { width: 96px; height: 96px; display: block; margin: 0 auto 14px; overflow: visible; }
.intro-heart path { fill: none; stroke: var(--red-hot); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px var(--red-hot)) drop-shadow(0 0 22px var(--red));
  animation: drawHeart 1.3s var(--ease) .15s forwards, heartBeat 1s ease 1.4s; transform-origin: 50% 55%; }
.intro-word { font-weight: 800; font-size: 34px; letter-spacing: -.04em; color: #fff; opacity: 0;
  animation: wordIn .9s var(--ease) .75s forwards; }
.intro-word em { font-family: var(--serif); font-weight: 400; margin-left: 4px; color: var(--rose); }
@keyframes drawHeart { to { stroke-dashoffset: 0; } }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.14); } 60% { transform: scale(.97); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(14px); letter-spacing: .2em; filter: blur(8px); } to { opacity: 1; transform: none; letter-spacing: -.04em; filter: none; } }
@keyframes introPulse { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } 100% { opacity: .8; transform: scale(1); } }
html.intro-on body { overflow: hidden; }

/* ---------- Barre du haut ---------- */
.topbar { background: linear-gradient(180deg, rgba(5,3,4,.82), rgba(5,3,4,.55)); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: border-color .3s, background .3s; }
.topbar.scrolled { border-bottom-color: var(--glass-line); background: rgba(5,3,4,.86); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; letter-spacing: -.045em; }
.logo span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--rose); margin-left: 1px; }
.logo-mark { width: 24px; height: 24px; }
.logo-mark path { fill: none; stroke: var(--red-hot); stroke-width: 9; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,45,85,.8)); }
.logo:hover .logo-mark { animation: heartBeat .9s ease; }
select#lang, .pill { border-color: rgba(255,143,163,.18); background: rgba(255,255,255,.03); transition: border-color .2s, background .2s; }
select#lang option { background: var(--ink); }
.pill:hover { border-color: rgba(255,45,85,.6); background: rgba(225,29,72,.12); }

/* ---------- Boutons ---------- */
.btn { border-radius: 999px; font-weight: 800; letter-spacing: -.01em; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, var(--wine-500), var(--red) 45%, var(--red-hot)); box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .3s, filter .2s; }
.btn:not(.ghost) { background-image: linear-gradient(100deg, var(--red) 0%, var(--red-hot) 25%, #ff5c7c 50%, var(--red-hot) 75%, var(--red) 100%);
  background-size: 200% 100%; animation: shine 6s linear infinite, glowRed 3s ease-in-out infinite; }
.btn:not(.ghost)::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
@keyframes glowRed { 0%,100% { box-shadow: 0 0 0 1px rgba(255,45,85,.3), 0 14px 40px -10px rgba(225,29,72,.6); } 50% { box-shadow: 0 0 0 1px rgba(255,45,85,.5), 0 14px 60px -6px rgba(255,45,85,.8); } }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.03); border: 1px solid rgba(255,143,163,.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: rgba(255,45,85,.55); background: rgba(225,29,72,.1); }
.btn.ghost-new { color: var(--rose); border-color: rgba(255,45,85,.45); }
.link-btn { color: var(--rose); }
.social-btn { background: #fff !important; color: #1f1f1f !important; animation: none !important; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6) !important; }
.social-btn::after { display: none; }

/* ---------- Cartes en verre ---------- */
.card, .folder, .stat, .option, .alt {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 50px -30px rgba(0,0,0,.9);
}
.card { border-radius: 22px; position: relative; }
.tilt { transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; transform-style: preserve-3d; will-change: transform; }
.tilt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,45,85,.16), transparent 45%); }
.tilt:hover { border-color: rgba(255,45,85,.35); }
.tilt:hover::before { opacity: 1; }

.option { border-radius: 18px; padding: 17px 16px; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.option:hover { border-color: rgba(255,45,85,.5); transform: translateY(-1px); }
.option.selected { border-color: var(--red-hot); background: linear-gradient(180deg, rgba(225,29,72,.22), rgba(122,16,39,.18));
  box-shadow: 0 0 0 1px rgba(255,45,85,.4), 0 14px 40px -14px rgba(225,29,72,.7); }

input[type=text], input[type=email], input[type=password], textarea {
  background: rgba(255,255,255,.035); border-color: rgba(255,143,163,.16); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, textarea:focus { border-color: var(--red-hot); background: rgba(225,29,72,.06); box-shadow: 0 0 0 4px rgba(225,29,72,.18); }
::placeholder { color: rgba(168,148,154,.7); }

.progress { height: 4px; background: rgba(255,255,255,.07); }
.progress > div { background: linear-gradient(90deg, var(--wine-500), var(--red-hot)); box-shadow: 0 0 14px var(--red-hot); transition: width .5s var(--ease); }

/* ---------- Révélations ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.screen.home { animation: none; }
.screen.home > * { animation: none; }
.hero { position: relative; min-height: min(92svh, 860px); display: flex; flex-direction: column; justify-content: flex-end;
  margin: -16px -18px 0; padding: 0 22px 34px; text-align: left; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media video.ready { opacity: 1; }
.hero-media img { filter: brightness(.9); }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,3,4,.55) 0%, rgba(5,3,4,.05) 30%, rgba(5,3,4,.35) 62%, rgba(5,3,4,.96) 100%),
              radial-gradient(120% 60% at 50% 100%, rgba(225,29,72,.25), transparent 60%); }
.hero .badge { align-self: flex-start; margin: 0 0 18px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: rgba(225,29,72,.16); border: 1px solid rgba(255,45,85,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 0 30px -6px rgba(225,29,72,.6); }
.hero h1 { margin: 0 0 14px; text-shadow: 0 10px 50px rgba(0,0,0,.6); }
.hero .muted { color: rgba(247,237,239,.78); font-size: 17px; max-width: 30ch; margin: 0 0 22px; }
.hero .btn { width: auto; align-self: flex-start; padding: 18px 30px; font-size: 17px; }
.hero .hero-free { color: rgba(247,237,239,.6); font-size: 13px; margin: 12px 0 0; }
.hero-scroll { display: none; position: absolute; left: 50%; bottom: 10px; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); }
.hero-scroll::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--rose); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.hero > *:not(.hero-media):not(.hero-scroll) { animation: heroIn 1.1s var(--ease) both; }
.hero > .badge { animation-delay: .2s; } .hero > h1 { animation-delay: .32s; } .hero > p.muted { animation-delay: .46s; }
.hero > .btn { animation: heroIn 1.1s var(--ease) .58s both, shine 5s linear infinite, glowRed 3s ease-in-out infinite; }
.hero > .hero-free { animation-delay: .7s; }
html.intro-on .hero > * { animation-play-state: paused; }
@keyframes heroIn { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* Démo téléphone flottante */
.showcase { position: relative; margin: 34px 0 0; display: grid; place-items: center; }
.showcase-art { position: absolute; inset: -30px -40px; z-index: -1; border-radius: 40px; overflow: hidden; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.showcase-art img { width: 100%; height: 100%; object-fit: cover; }
.phone { position: relative; width: 100%; max-width: 330px; margin: 0; border-radius: 34px; padding: 18px 16px 20px;
  background: linear-gradient(180deg, rgba(20,7,11,.92), rgba(8,3,5,.96)); border: 1px solid rgba(255,143,163,.18);
  box-shadow: 0 0 0 6px rgba(255,255,255,.02), 0 40px 90px -30px rgba(225,29,72,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.phone::before { content: ''; display: block; width: 90px; height: 6px; margin: 0 auto 14px; border-radius: 9px; background: rgba(255,255,255,.08); }
.bubble.them { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.05); }
.bubble.me { background: linear-gradient(100deg, var(--red), var(--red-hot)); color: #fff; box-shadow: 0 8px 24px -10px rgba(255,45,85,.8); }
.bubble.tip { border-color: rgba(255,45,85,.55); color: var(--rose); background: rgba(225,29,72,.06); }
.phone .bubble.me.typing i { background: #fff; }

/* Bandeau défilant (plateformes) */
.chips-row { margin: 40px -18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.chips-row p { margin: 0 0 12px; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.chips.marquee { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 26s linear infinite; }
.chips-row:hover .chips.marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { background: rgba(255,255,255,.04); border: 1px solid rgba(255,143,163,.16); color: var(--text); }
.pf-chip { white-space: nowrap; }

/* Sections */
.block { margin: 84px 0 10px; }
.kicker { display: block; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hot); margin-bottom: 10px; }
.block h2 { font-size: clamp(28px, 7vw, 44px); line-height: 1.02; margin-bottom: 10px; }
.block > p.muted { max-width: 38ch; margin-left: auto; margin-right: auto; }
.num { background: linear-gradient(135deg, var(--red-hot), var(--wine-500)); box-shadow: 0 0 20px -4px rgba(255,45,85,.7); color: #fff; }
.step { padding: 20px; }
.step b { font-size: 16px; }

.demo-verdict { border-color: rgba(255,45,85,.3); box-shadow: 0 30px 80px -30px rgba(225,29,72,.6); }
.mini-score { background: conic-gradient(var(--red-hot) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.mini-score::before { background: var(--ink); }
.small-reply { border-radius: 18px 18px 6px 18px; }

/* Cartes des modes avec visuels Higgsfield */
.mode-card { padding: 0; overflow: hidden; }
.mode-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.mode-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mode-card:hover .mode-art img { transform: scale(1.06); }
.mode-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,5,7,.95)); }
.mode-body { padding: 0 18px 18px; margin-top: -26px; position: relative; }
.mode-h b { font-size: 19px; letter-spacing: -.02em; }

.why-card .emoji { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(225,29,72,.25), rgba(122,16,39,.15)); border: 1px solid rgba(255,45,85,.25); margin-bottom: 10px; }

/* Styles (portraits) sur l'accueil */
.styles-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.styles-strip figure { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 1px solid var(--glass-line); }
.styles-strip figure:nth-child(even) { transform: translateY(18px); }
.styles-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transition: transform 1s var(--ease); }
.styles-strip figure:hover img { transform: scale(1.06); }
.styles-strip figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; z-index: 1; }
.styles-strip figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,3,4,.85)); }

/* Prix */
.price-card .price, .plan .price { font-size: 34px; letter-spacing: -.04em; }
.price-card.hot, .plan.selected { border-color: rgba(255,45,85,.7); box-shadow: 0 0 0 1px rgba(255,45,85,.45) inset, 0 30px 70px -30px rgba(225,29,72,.8); }
.price-card .tag, .plan .tag { background: linear-gradient(100deg, var(--red), var(--red-hot)); color: #fff; box-shadow: 0 6px 18px -4px rgba(255,45,85,.8); }

.faq summary::after { color: var(--red-hot); }
.faq[open] { border-color: rgba(255,45,85,.3); }

.final { position: relative; padding: 60px 18px 40px; margin-left: -18px; margin-right: -18px; overflow: hidden; border-radius: 30px; }
.final-art { position: absolute; inset: 0; z-index: -1; }
.final-art img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.final-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(5,3,4,.35), rgba(5,3,4,.95)); }
.final h2 { font-size: clamp(30px, 7vw, 48px); }

/* =====================================================================
   PARCOURS D'ANALYSE (générateur de réponses / phrases d'accroche)
   ===================================================================== */
.stepbar .back { width: 40px; height: 40px; border-radius: 50%; padding: 0; display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); transition: background .2s, border-color .2s; }
.stepbar .back:hover { border-color: rgba(255,45,85,.5); background: rgba(225,29,72,.12); }
.screen > h2 { margin-top: 26px; }
.pf-autre { --c1: #E11D48; --c2: #5A0F1F; }
.upload { border-color: rgba(255,45,85,.45); color: var(--rose); background: radial-gradient(120% 120% at 50% 0%, rgba(225,29,72,.12), transparent 70%);
  border-radius: 22px; padding: 30px 20px; transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--red-hot); background: radial-gradient(120% 120% at 50% 0%, rgba(225,29,72,.2), transparent 70%); }
.upload b::before { content: ''; display: block; width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0-4 4m4-4 4 4'/%3E%3Cpath d='M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / 52% no-repeat,
    linear-gradient(135deg, var(--red-hot), var(--wine-500));
  box-shadow: 0 0 24px rgba(255,45,85,.5); }
.taste { border-color: rgba(255,143,163,.15); background: linear-gradient(160deg, var(--wine-700), var(--black)); }
.taste img { transition: transform .8s var(--ease); }
.taste:hover img { transform: scale(1.05); }
.taste.selected { border-color: var(--red-hot); box-shadow: 0 0 0 3px rgba(255,45,85,.25), 0 0 40px rgba(225,29,72,.55); }
.taste.selected .tick { background: var(--red-hot); border-color: var(--red-hot); color: #fff; }
.np-card.c3 { box-shadow: 0 0 50px rgba(225,29,72,.4), 0 12px 30px rgba(0,0,0,.6); }
.np-collage::after { background: linear-gradient(180deg, transparent, var(--black) 92%); }
.np-title { font-size: clamp(40px, 11vw, 60px); }

/* Analyse en cours : scanner + vidéo Higgsfield */
.scanner { position: relative; isolation: isolate; }
.scan-bg { position: absolute; left: 50%; top: 40px; width: 520px; max-width: 140%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1;
  border-radius: 50%; overflow: hidden; opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.scan-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.scan-bg video.ready { opacity: 1; }
.scan-brand span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rose); }
.scan-frame { border-color: rgba(255,45,85,.6); background: #0A0305; box-shadow: 0 0 0 6px rgba(225,29,72,.07), 0 0 60px rgba(225,29,72,.35); }
.scan-line { background: linear-gradient(90deg, transparent, var(--rose), var(--red-hot), var(--rose), transparent); box-shadow: 0 0 18px 6px rgba(255,45,85,.6), 0 0 60px 20px rgba(225,29,72,.22); }
.scan-progress > div { background: linear-gradient(90deg, var(--wine-500), var(--red-hot)); box-shadow: 0 0 14px var(--red-hot); }
.scan-bubble.me { background: linear-gradient(100deg, var(--red), var(--red-hot)); color: #fff; }

/* Résultat */
.ans-brand span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rose); }
.ans-shot { background: #0A0305; border-color: rgba(255,143,163,.4); box-shadow: 0 0 0 5px rgba(225,29,72,.07), 0 0 44px rgba(225,29,72,.35); }
.ans-label b { color: var(--rose); background: linear-gradient(90deg, transparent, rgba(225,29,72,.25), transparent); }
.ans-reply { color: #fff; border-radius: 26px;
  background: radial-gradient(130% 150% at 50% 0%, var(--red-hot), var(--red) 45%, var(--wine-500) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 0 60px rgba(225,29,72,.55), 0 24px 50px -20px rgba(0,0,0,.8);
  text-shadow: 0 2px 12px rgba(0,0,0,.25); position: relative; overflow: hidden; }
.ans-reply::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 3.5s var(--ease) 1s infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.ans-tip { color: var(--rose); }
.ans > .btn { margin-top: 16px; }
.score { background: conic-gradient(var(--red-hot) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
  filter: drop-shadow(0 0 24px rgba(225,29,72,.5)); width: 170px; height: 170px; }
.score > div { background: radial-gradient(circle at 50% 30%, #1A060C, var(--black)); width: 142px; height: 142px; }
.score strong { font-size: 46px; letter-spacing: -.04em; }
.reply { background: linear-gradient(100deg, var(--red), var(--red-hot)); color: #fff; box-shadow: 0 14px 40px -16px rgba(255,45,85,.8); }
.card.recadrage { border-color: rgba(255,90,95,.4); background: linear-gradient(180deg, rgba(255,90,95,.12), rgba(14,5,8,.75)); }

/* Abonnements */
.premium-art { position: relative; width: 220px; height: 220px; margin: 6px auto -10px; }
.premium-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent);
  animation: floatY 6s ease-in-out infinite; }
.premium-art::before { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: rgba(225,29,72,.45); filter: blur(50px); z-index: -1; animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.checklist li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin: 0; font-size: 13px;
  color: #fff; background: linear-gradient(135deg, var(--red-hot), var(--wine-500)); box-shadow: 0 0 14px rgba(255,45,85,.5); }

/* Connexion / inscription */
.auth-art { position: relative; height: 200px; margin: 0 -18px 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: kenBurns 18s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, 2%); } }
.or-sep::before, .or-sep::after { background: linear-gradient(90deg, transparent, rgba(255,143,163,.25), transparent); }

/* Merci */
.thanks-heart { width: 120px; height: 120px; margin: 0 auto 6px; }
.thanks-heart path { fill: rgba(225,29,72,.25); stroke: var(--red-hot); stroke-width: 3; filter: drop-shadow(0 0 16px var(--red-hot)); animation: heartBeat 1.4s ease infinite; transform-origin: 50% 55%; }

/* =====================================================================
   MON ESPACE (dashboard, profil, paramètres, dossiers)
   ===================================================================== */
.dash-hero { position: relative; margin: 0 -18px 18px; padding: 26px 18px 22px; overflow: hidden; border-radius: 0 0 30px 30px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(225,29,72,.35), transparent 55%), linear-gradient(180deg, rgba(58,13,24,.6), rgba(5,3,4,0));
  border-bottom: 1px solid var(--glass-line); }
.dash-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,85,.35), transparent 65%); filter: blur(20px); animation: pulseGlow 5s ease-in-out infinite; }
.hello { font-size: clamp(26px, 6vw, 36px); margin: 0; position: relative; z-index: 1; }
.dash-hero .muted, .dash-hero .taste-line { position: relative; z-index: 1; }
.stat { border-radius: 20px; padding: 16px 6px; }
.stat b { background: linear-gradient(180deg, #fff, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 34px; }
.folder { border-radius: 22px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.folder:hover { border-color: rgba(255,45,85,.5); box-shadow: 0 20px 50px -24px rgba(225,29,72,.7); transform: translateY(-2px); }
.folder.add { border-color: rgba(255,45,85,.45); background: radial-gradient(100% 100% at 50% 0%, rgba(225,29,72,.16), rgba(14,5,8,.6)); }
.folder .plus, .tabbar .plus-btn { background: linear-gradient(135deg, var(--red-hot), var(--wine-500)); box-shadow: 0 0 26px rgba(255,45,85,.55); color: #fff; }
.avatar { color: #fff; background: radial-gradient(circle at 30% 25%, var(--red), var(--wine-700) 70%); border-color: rgba(255,143,163,.45);
  box-shadow: 0 0 22px -4px rgba(225,29,72,.6); }
.history-item { transition: border-color .2s, transform .2s var(--ease); }
.history-item:hover { border-color: rgba(255,45,85,.45); transform: translateX(2px); }
.history-item .sc { color: var(--rose); font-size: 18px; }
.style-chips .chip.on { background: linear-gradient(100deg, var(--red), var(--red-hot)); border-color: var(--red-hot); color: #fff; }
.tabbar { background: rgba(14,5,8,.82); border-color: rgba(255,143,163,.16); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; }
.tabbar button.on { background: rgba(225,29,72,.18); }
.toast { background: linear-gradient(100deg, var(--red), var(--red-hot)); color: #fff; box-shadow: 0 10px 30px -6px rgba(225,29,72,.8); }

.foot { border-top-color: var(--glass-line); }
.foot a { color: var(--rose); }
.error { color: #FF8A8F; }

/* ---------- Ordinateur ---------- */
@media (min-width: 900px) {
  .container { max-width: 1080px; padding-left: 32px; padding-right: 32px; }
  .screen:not(.home) { max-width: 600px; margin: 0 auto; }
  .hero { margin: -16px calc(50% - 50vw) 0; padding: 0 max(32px, calc(50vw - 508px)) 80px; min-height: 92vh; }
  .hero h1 { max-width: 13ch; }
  .hero-scroll { display: block; }
  .hero .muted { font-size: 19px; }
  .home-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
  .home-split .block { margin-top: 0; }
  .chips-row { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(3, 1fr); }
  .styles-strip { gap: 16px; }
  .final { margin-left: 0; margin-right: 0; padding: 90px 40px 70px; }
  .final .btn { width: auto; padding: 18px 40px; }
  .dash-hero { margin-left: 0; margin-right: 0; border-radius: 30px; border: 1px solid var(--glass-line); }
  .auth-art { margin: 0 0 4px; border-radius: 26px; height: 240px; }
}
@media (min-width: 640px) and (max-width: 899px) { .container { max-width: 640px; } }

/* iPhone : zones sûres + pas de zoom sur les champs */
@supports (padding: max(0px)) { .foot { padding-bottom: max(22px, env(safe-area-inset-bottom)); } }
@media (hover: none) { .tilt:hover { transform: none; } .option:hover, .btn:hover, .folder:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  .grain, .bg-fx .ember, .chips.marquee { animation: none !important; }
  .hero-media video { display: none; }
}

.forgot-row { text-align: right; margin: 6px 0 0; }
.forgot-row .link-btn { font-size: 14px; padding: 4px 0; }

/* ---------- Fluidité sur téléphone (corrige l'animation qui saccade sur iPhone) ----------
   Sur mobile, plusieurs effets lourds se recalculaient à chaque image par-dessus la vidéo :
   grain animé en mode « overlay » sur tout l'écran, halos flous animés en mode « screen »,
   flou d'arrière-plan sur le badge et titres qui arrivent avec un flou animé.
   On garde le même rendu visuel mais avec des effets que le téléphone sait animer sans ramer. */
.hero-media video { will-change: opacity; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@keyframes heroInLite { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@media (hover: none), (max-width: 899px) {
  .grain { animation: none; mix-blend-mode: normal; opacity: .03; inset: 0; }
  .bg-fx .blob { animation: none; mix-blend-mode: normal; filter: none; }
  .bg-photos .ph { animation: none; }
  .hero .badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(60,8,20,.72); }
  .hero-media { -webkit-mask-image: none; mask-image: none; }
  .hero > *:not(.hero-media):not(.hero-scroll) { animation-name: heroInLite; }
  .hero > .btn { animation: heroInLite 1.1s var(--ease) .58s both; box-shadow: 0 0 0 1px rgba(255,45,85,.4), 0 14px 50px -8px rgba(255,45,85,.7); }
  .intro.out .intro-core { filter: none; }
}

.lang-flags { font-size: 22px; letter-spacing: 4px; margin: 6px 0 2px; }

/* ——— Arabe (lecture de droite à gauche) ——— */
html[lang="ar"] { --sans: 'Cairo', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .np-title, html[lang="ar"] .grad, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] textarea {
  font-family: var(--sans); letter-spacing: 0 !important; font-style: normal;
}
html[dir="rtl"] .hero, html[dir="rtl"] .scan-bubble { text-align: right; }
html[dir="rtl"] .forgot-row { text-align: left; }
/* Le logo, les e-mails et les mots de passe restent de gauche à droite */
html[dir="rtl"] .logo, html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="password"] { direction: ltr; }

/* Arabe : une réponse écrite en lettres latines garde sa ponctuation au bon endroit */
html[dir="rtl"] :is(.ans-reply, .ans-tip, .reply, .alt, .scan-bubble, .rec-bad, .rec-why, .flags li, .flag, .bubble, .history-item, #convText, #context) { unicode-bidi: plaintext; }
