/* BrocScan — site officiel. Mêmes couleurs que l'app : fond sombre, accent vert-jaune.
   Police hébergée sur le site (aucun service tiers, aucun cookie). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Thème : l'univers BrocScan est sombre par choix (comme l'app), sur tous les appareils. */
:root {
  --bg: #0d0f0a;
  --surface: #161912;
  --surface-2: #21251b;
  --border: #2b3024;
  --text: #f5f7ef;
  --muted: #b3b8a6;
  --faint: #7e8473;
  --accent: #c8ff2e;
  --accent-soft: rgba(200, 255, 46, 0.12);
  --on-accent: #0d0f0a;
  --bronze: #d9925a;
  --gold: #f5c542;
  --positive: #4ade80;
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  padding: 0 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding-block: 20px 64px; }
.wrap.narrow { max-width: 760px; }

/* En-tête */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 20px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 21px; }
header.site img { width: 38px; height: 38px; border-radius: 10px; }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 8px 0 18px; letter-spacing: -1.5px; text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.8px; text-wrap: balance; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.updated { color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer;
}
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge-soon { display: inline-block; font-size: 13px; color: var(--muted); margin-top: 10px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section { padding-block: 56px 8px; }
.section-head { max-width: 640px; margin-bottom: 26px; }

/* Héros */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 28px 20px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust span::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* Téléphone : maquette d'un vrai résultat de scan */
.phone {
  width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5; max-width: 100%;
  background: #050604; border: 10px solid #262a20; border-radius: 46px; padding: 18px 14px; position: relative;
  box-shadow: 0 30px 80px rgba(200, 255, 46, 0.12), 0 0 0 1px #33382b;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #000; border-radius: 999px; }
.phone .ph-title { text-align: center; font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 22px; }
.phone .ph-hero { border-radius: 18px; padding: 14px; background: linear-gradient(180deg, #5b3fd9 0%, #2a1f66 100%); }
.phone .ph-chip { display: inline-block; font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.16); }
.phone .ph-name { font-weight: 700; font-size: 17px; margin-top: 6px; line-height: 1.2; }
.phone .ph-price { border: 1px solid var(--accent); border-radius: 18px; padding: 12px 14px; background: var(--surface); }
.phone .ph-price small { color: var(--muted); font-size: 11px; }
.phone .ph-price strong { display: block; font-size: 40px; line-height: 1.05; color: var(--accent); letter-spacing: -1px; }
.phone .ph-pill { display: inline-block; font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-top: 6px; }
.phone .ph-score { border-radius: 18px; padding: 12px; text-align: center; border: 2px solid var(--positive); background: rgba(74, 222, 128, 0.08); }
.phone .ph-score b { font-size: 34px; color: var(--positive); }
.phone .ph-score span { display: block; font-size: 12px; color: var(--positive); font-weight: 600; }
.phone .ph-cta { margin-top: auto; text-align: center; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 999px; padding: 11px; font-size: 14px; }

/* Étapes : une vraie séquence, donc numérotée */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 22px;
  width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

/* Fonctions */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.features .card { display: flex; flex-direction: column; gap: 4px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 8px; }
.icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Offres */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan .name { font-weight: 700; font-size: 18px; }
.plan .name.bronze { color: var(--bronze); }
.plan .name.gold { color: var(--gold); }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .weekly { font-size: 14px; color: var(--accent); }
.plan ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.plan.featured { border-color: var(--bronze); background: linear-gradient(180deg, rgba(217,146,90,0.10), var(--surface) 60%); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bronze); color: var(--on-accent); }
.fine { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding-block: 14px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Bandeau final */
.cta-band { text-align: center; margin-top: 56px; padding: 40px 22px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, rgba(200,255,46,0.16), var(--surface) 60%); border: 1px solid var(--border); }

/* Pages légales */
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -0.3px; }
.legal h3 { margin-top: 20px; }
.legal .card { margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.code { font-size: 34px; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin: 8px 0; }

/* Pied de page */
footer.site { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 22px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  header.site nav { display: none; }
}
