:root {
  --orange: #f2600c;
  --orange-dark: #d0510a;
  --orange-deep: #a33f06;
  --orange-tint: #fff3ea;
  --orange-soft: #ffe3d0;
  --ink: #23201c;
  --muted: #7d746a;
  --faint: #a99f94;
  --line: #efe7de;
  --bg: #ffffff;
  --bg-soft: #fbf7f2;
  --green: #17834a;
  --green-bg: #e9f6ee;
  --green-line: #bfe5cd;
  --red: #d43425;
  --red-bg: #fdeeec;
  --red-line: #f5c8c2;
  --amber: #b45309;
  --amber-bg: #fdf3e1;
  --amber-line: #f2ddb4;
  --green-glow: rgba(23, 131, 74, 0.45);
  --amber-glow: rgba(180, 83, 9, 0.4);
  --red-glow: rgba(212, 52, 37, 0.4);
  --card: #ffffff;
  --field: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --toast-bg: #23201c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 32, 28, 0.05), 0 10px 30px -12px rgba(35, 32, 28, 0.18);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --orange: #f2600c;
  --orange-dark: #ff7a2e;
  --orange-deep: #ffb489;
  --orange-tint: #3a2417;
  --orange-soft: #4a2c1a;
  --ink: #ece7e0;
  --muted: #a89f94;
  --faint: #7d746a;
  --line: #34302b;
  --bg: #16130f;
  --bg-soft: #201c18;
  --green: #4ec27f;
  --green-bg: #16281d;
  --green-line: #2b4636;
  --red: #f2756a;
  --red-bg: #2e1a18;
  --red-line: #512c28;
  --amber: #e0a54a;
  --amber-bg: #2c2113;
  --amber-line: #4a3a1c;
  --green-glow: rgba(78, 194, 127, 0.5);
  --amber-glow: rgba(224, 165, 74, 0.45);
  --red-glow: rgba(242, 117, 106, 0.45);
  --card: #241f1a;
  --field: #2a2521;
  --header-bg: rgba(22, 19, 15, 0.92);
  --toast-bg: #3a342e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body, [dir="rtl"] .btn, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ic { flex: none; vertical-align: -0.18em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .tld { color: var(--orange); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 7px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 0.93rem;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

/* Sélecteur de langue FR / AR / EN */
.lang-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.lang-switch button {
  font: inherit; font-weight: 700; font-size: 0.78rem; cursor: pointer; border: 0;
  background: transparent; color: var(--muted); padding: 5px 9px; border-radius: 8px; line-height: 1;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: var(--card); color: var(--orange-deep); box-shadow: 0 1px 2px rgba(35,32,28,0.12); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 11px; border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.06s;
  white-space: nowrap; text-decoration: none; color: var(--ink); background: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--faint); background: var(--bg-soft); }
.btn-soft { background: var(--orange-tint); color: var(--orange-deep); }
.btn-soft:hover { background: var(--orange-soft); }
.btn-success { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.btn-success:hover { background: #dcefe3; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.btn-danger:hover { background: #fbe2de; }
.btn-danger-solid { background: var(--red); color: #fff; }
.btn-danger-solid:hover { background: #b92b1e; }
.btn-flagnum { width: 100%; margin-top: 9px; font-size: 0.88rem; padding: 9px 12px; }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; border-radius: 13px; width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: wait; }
.btn-icon { padding: 9px; border-radius: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-tint); color: var(--orange-deep);
  border-radius: 999px; padding: 5px 13px; font-size: 0.85rem; font-weight: 700;
}
.pill-neutral { background: var(--bg-soft); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-stack {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 42px 20px 58px;
}
.hero-stack h1 { max-width: 42rem; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-stack .search-card { width: 100%; max-width: 580px; text-align: left; }
.hero-pill { margin-top: 34px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 38rem; margin: 12px auto 0; }
.hero-points {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
}
.hero-points li { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.95rem; }
.hero-points .ic { color: var(--orange); }

/* ---------- Carte de recherche ---------- */
.search-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 26px;
}
.search-card > label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 8px; }
.phone-row {
  display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 13px;
  overflow: hidden; margin-bottom: 12px; transition: border-color 0.15s, box-shadow 0.15s;
}
.phone-row:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
@keyframes glancePulse {
  0%   { box-shadow: 0 0 0 0 var(--glance-glow); border-color: var(--glance-line); }
  55%  { box-shadow: 0 0 0 9px var(--glance-glow); border-color: var(--glance-line); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
.phone-row.glance-green  { --glance-glow: var(--green-glow); --glance-line: var(--green-line); animation: glancePulse 1100ms ease-out; }
.phone-row.glance-yellow { --glance-glow: var(--amber-glow); --glance-line: var(--amber-line); animation: glancePulse 1100ms ease-out; }
.phone-row.glance-red    { --glance-glow: var(--red-glow); --glance-line: var(--red-line); animation: glancePulse 1100ms ease-out; }
.phone-row .prefix {
  display: flex; align-items: center; padding: 0 14px; background: var(--bg-soft);
  color: var(--muted); font-weight: 700; border-right: 1px solid var(--line);
}
.phone-row input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 13px 16px; min-width: 0; color: var(--ink); background: var(--field);
}
.phone-row input::placeholder { color: var(--faint); font-weight: 600; }
.action-row { display: flex; gap: 10px; }
.action-row .btn { flex: 1; }
@media (max-width: 560px) { .action-row { flex-direction: column; } }
.quota-note { color: var(--muted); font-size: 0.86rem; margin: 10px 2px 0; display: flex; gap: 7px; align-items: center; }
.quota-note .ic { color: var(--orange); flex: none; }

/* ---------- Carte résultat ---------- */
.result { border-radius: 16px; border: 1.5px solid var(--line); padding: 18px; margin-top: 16px; background: var(--card); }
.result.res-green { border-color: var(--green-line); background: var(--green-bg); }
.result.res-orange { border-color: var(--amber-line); background: var(--amber-bg); }
.result.res-red { border-color: var(--red-line); background: var(--red-bg); }
.result.res-none { background: var(--bg-soft); }
.result.res-report { border-color: var(--red-line); background: var(--red-bg); }
.res-report .badge-circle { color: var(--red); }
.res-report .result-title { color: var(--red); }
.result-head { display: flex; align-items: center; gap: 13px; }
.badge-circle {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; background: var(--card);
}
.res-green .badge-circle { color: var(--green); }
.res-orange .badge-circle { color: var(--amber); }
.res-red .badge-circle { color: var(--red); }
.res-none .badge-circle { color: var(--muted); }
.result-title { font-weight: 800; font-size: 1.05rem; margin: 0; }
.res-green .result-title { color: var(--green); }
.res-orange .result-title { color: var(--amber); }
.res-red .result-title { color: var(--red); }
.result-meta { color: var(--muted); font-size: 0.88rem; margin: 2px 0 0; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.reason-chips .chip {
  font-size: 0.8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--card);
}
.res-red .chip { color: var(--red); }
.res-orange .chip { color: var(--amber); }
.result-actions { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.result-actions .btn { flex: 1; font-size: 0.88rem; padding: 9px 12px; }

/* ---------- Panneau de signalement ---------- */
.report-panel { margin-top: 13px; border-top: 1px dashed rgba(35,32,28,0.18); padding-top: 13px; }
.report-panel .panel-label { font-size: 0.85rem; font-weight: 700; margin: 0 0 8px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.choice-chips button {
  font: inherit; font-size: 0.83rem; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
}
.choice-chips button:hover { border-color: var(--faint); }
.choice-chips button.on { border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep); }
.report-panel select {
  font: inherit; font-size: 0.9rem; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); margin-bottom: 11px; width: 100%;
}
.report-panel textarea {
  font: inherit; font-size: 0.9rem; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  margin-bottom: 11px; width: 100%; resize: vertical; min-height: 72px;
}
.report-panel textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.note-list { margin-top: 12px; display: grid; gap: 6px; }
.note-item { margin: 0; font-size: 0.85rem; font-style: italic; color: var(--muted); }
.note-item .when { font-style: normal; color: var(--faint); font-size: 0.78rem; margin-inline-start: 8px; white-space: nowrap; }
.geo-note { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 11px; font-size: 0.78rem; color: var(--faint); line-height: 1.4; }
.geo-note .ic { color: var(--orange); flex: none; margin-top: 1px; }

/* Champs du formulaire de signalement (adresse + note) */
.flag-label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin: 14px 0 7px; }
.flag-label .ic { color: var(--orange); flex: none; }
.flag-field, .flag-note {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 0.95rem; font-weight: 400;
  color: var(--ink); background: var(--field); border: 1.5px solid var(--line);
}
.flag-field { padding: 11px 13px; height: 46px; border-radius: 11px; }
.flag-note { padding: 12px 14px; min-height: 104px; line-height: 1.55; border-radius: 12px; resize: vertical; margin-bottom: 11px; }
.flag-field:focus, .flag-note:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.flag-field::placeholder, .flag-note::placeholder { color: var(--faint); }

/* Contact / messages */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.msg-thread { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.msg-body { white-space: pre-wrap; font-size: 0.92rem; margin: 0; }
.msg-out .when, .msg-reply .when { color: var(--faint); font-size: 0.78rem; display: block; margin-top: 4px; }
.msg-reply { margin-top: 10px; padding: 10px 12px; background: var(--green-bg); border-radius: 10px; border: 1px solid var(--green-line); }
.msg-reply-label { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.msg-reply-label .ic { color: var(--green); }
.msg-awaiting { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--amber); margin: 10px 0 0; }
.msg-awaiting .ic { color: var(--amber); }

/* Numéro protégé (non-suivi) */
.result.res-blocked { background: #eef4fb; border-color: #cfe0f2; }
.res-blocked .badge-circle { color: #1e6fb8; }
.res-blocked .result-title { color: #1a5c9c; }

/* Liens « contester » / « c'est mon numéro » */
.manage-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed rgba(35,32,28,0.14); }
.linkish { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 2px 0; display: inline-flex; align-items: center; gap: 6px; }
.linkish:hover { color: var(--ink); text-decoration: underline; }
.linkish .ic { color: var(--faint); }

.panel-sub { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin: 0 0 7px; }
.entry-list { display: grid; gap: 8px; }
.entry-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.entry-info { flex: 1; min-width: 0; font-size: 0.86rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.entry-info .when { color: var(--faint); font-size: 0.78rem; }
.entry-del { font-size: 0.8rem; padding: 6px 10px; flex: none; }
.ut-field { font: inherit; font-size: 0.9rem; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); width: 100%; margin-bottom: 9px; }
.ut-field:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
textarea.ut-field { resize: vertical; min-height: 52px; }
.ut-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.83rem; color: var(--muted); margin-bottom: 11px; cursor: pointer; }
.ut-consent input { margin-top: 3px; flex: none; accent-color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.4rem; }
.section-head p { color: var(--muted); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step-num { font-size: 0.8rem; font-weight: 800; color: var(--orange); letter-spacing: 0.08em; }
.step-card .ic-tile {
  width: 46px; height: 46px; border-radius: 13px; background: var(--orange-tint); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin: 10px 0 14px;
}
.step-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 18px 8px; }
.stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--orange); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.cta-band { background: var(--orange); color: #fff; border-radius: 22px; padding: 44px 40px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { color: #ffd9c0; margin: 0; }
.cta-band .btn { background: var(--card); color: var(--orange-deep); margin-inline-start: auto; }
.cta-band .btn:hover { background: var(--orange-tint); }

/* ---------- Tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--orange); box-shadow: var(--shadow); position: relative; }
.featured-tag { position: absolute; top: -13px; left: 24px; background: var(--orange); color: #fff; font-size: 0.76rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price-card .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.price-card .price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; flex: 1; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.price-card li .ic { color: var(--green); margin-top: 3px; }
.free-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
.free-tile { background: var(--orange-tint); border-radius: 18px; padding: 22px 24px; display: flex; gap: 15px; align-items: center; }
.free-tile .ic-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--card); color: var(--orange); display: flex; align-items: center; justify-content: center; flex: none; }
.free-tile b { display: block; font-size: 1rem; }
.free-tile span { color: var(--orange-deep); font-size: 0.88rem; }

.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { font-weight: 700; padding: 13px 4px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; color: var(--orange); font-size: 1.3rem; font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding: 0 4px 14px; margin: 0; }

/* ---------- Formulaires ---------- */
.auth-wrap { max-width: 460px; margin: 56px auto; padding: 0 20px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1; font: inherit; font-weight: 700; font-size: 0.93rem; padding: 9px; cursor: pointer;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted);
}
.tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(35,32,28,0.12); }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 0.98rem; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.field .hint { font-size: 0.8rem; color: var(--faint); margin-top: 4px; }
.form-error {
  display: none; background: var(--red-bg); color: var(--red); border: 1px solid var(--red-line);
  border-radius: 11px; padding: 10px 14px; font-size: 0.9rem; font-weight: 600; margin-bottom: 15px;
}
.form-error.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Compte ---------- */
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.metric-card { background: var(--bg-soft); border-radius: 16px; padding: 20px 22px; }
.metric-card .label { color: var(--muted); font-size: 0.86rem; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.metric-card .label .ic { color: var(--orange); }
.metric-card b { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.metric-card small { color: var(--muted); font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 20px; }
.panel h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.panel h3 .ic { color: var(--orange); }
.row-list { display: grid; gap: 2px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.row-item:last-child { border-bottom: 0; }
.row-item .mono { font-weight: 700; letter-spacing: 0.04em; direction: ltr; }
.row-item .when { margin-inline-start: auto; color: var(--faint); font-size: 0.82rem; white-space: nowrap; }
.tag { font-size: 0.76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-orange { background: var(--amber-bg); color: var(--amber); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-none { background: var(--bg-soft); color: var(--muted); }
.empty-note { color: var(--faint); font-size: 0.9rem; padding: 8px 4px; }

/* ---------- Divers ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: var(--toast-bg); color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 0.92rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 100; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0 30px; margin-top: 70px; }
.footer-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer p { color: var(--muted); font-size: 0.85rem; max-width: 34rem; }
.site-footer .links { display: grid; gap: 6px; font-size: 0.9rem; }

@media (max-width: 880px) {
  .hero-stack { padding: 18px 14px 40px; }
  .hero-stack h1 { font-size: 1.42rem; margin-bottom: 12px; }
  .hero-stack .search-card { padding: 18px; }
  .hero-points { flex-direction: column; align-items: flex-start; gap: 10px; margin-left: auto; margin-right: auto; }
  .steps-grid, .price-grid, .account-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .free-band { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .cta-band { padding: 30px 24px; }
  .cta-band .btn { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-in { gap: 10px; height: 58px; }
  .header-in .btn { padding: 8px 12px; font-size: 0.86rem; }
  .header-right { gap: 6px; }
  .header-right a[href="/auth"] { display: none; }
  .header-right .pill { display: none; }
  .install-btn { display: none; }
}

/* ---------- Bascule de thème ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }

/* ---------- Bandeau consentement ---------- */
.consent-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px)); z-index: 90;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; font-size: 0.88rem; color: var(--muted);
}
.consent-bar .btn { flex: none; padding: 8px 16px; }
@media (max-width: 560px) { .consent-bar { flex-direction: column; align-items: stretch; text-align: center; } }

/* ---------- Vérifications récentes ---------- */
.recent-checks { width: 100%; max-width: 580px; margin: 14px auto 0; }
.recent-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.recent-head button { font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--orange-dark); background: none; border: 0; cursor: pointer; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-chip {
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 0.85rem;
  cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink);
}
.recent-chip:hover { border-color: var(--faint); }
.recent-chip .mono { font-weight: 700; letter-spacing: 0.03em; direction: ltr; }
.recent-chip .rc-score { color: var(--muted); font-weight: 700; }
.recent-chip .rc-when { color: var(--faint); font-size: 0.76rem; margin-inline-start: 4px; }
.entry-addr { color: var(--muted); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 3px; }
.entry-addr .ic { color: var(--faint); }
.rc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.rc-green { background: var(--green); } .rc-orange { background: var(--amber); }
.rc-red { background: var(--red); } .rc-blocked { background: #1e6fb8; } .rc-none { background: var(--faint); }

/* ---------- Bouton de partage ---------- */
.share-btn {
  flex: none; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
}
.share-btn:hover { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }

/* ---------- Parrainage / clés API ---------- */
.ref-row { display: flex; gap: 8px; }
.ref-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink);
}
.ref-row input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.ref-row .btn { flex: none; }
@media (max-width: 560px) { .ref-row { flex-direction: column; } }

/* ---------- Analyses ---------- */
.an-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.an-title { font-size: 0.86rem; font-weight: 700; color: var(--muted); margin: 16px 0 10px; }
.an-bars { display: grid; gap: 8px; }
.an-bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.an-label { width: 92px; flex: none; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-track { flex: 1; height: 10px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.an-fill { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.an-fill-red { background: var(--red); }
.an-val { flex: none; width: 96px; text-align: right; color: var(--ink); font-weight: 700; }

/* ---------- Document légal ---------- */
.legal-doc { max-width: 760px; }
.legal-doc h1 { margin-bottom: 6px; }
.legal-doc .legal-meta { color: var(--faint); font-size: 0.85rem; margin-bottom: 28px; }
.legal-doc h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--muted); line-height: 1.7; }
.legal-doc .legal-list { padding-left: 20px; }
.legal-doc code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

/* Menus déroulants lisibles en mode sombre */
:root[data-theme="dark"] select option { background: var(--card); color: var(--ink); }
:root[data-theme="dark"] .btn-success:hover { background: #1c3527; }
:root[data-theme="dark"] .btn-danger:hover { background: #3a211e; }
