/* ===================================================================
   Brand Monitor — landing page (brand-monitor.fr)
   Direction : identité The Black Room — fond noir, trame discrète,
   rouge vif, typographie massive (Funnel Display / DM Sans).
   =================================================================== */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --line: #222222;
  --line-soft: #1a1a1a;
  --text: #cccccc;
  --text-strong: #ffffff;
  --muted: #9a9a9a;
  --faint: #606060;
  --accent: #fb0000;
  --accent-deep: #c50000;
  --accent-soft: rgb(251 0 0 / .12);

  --font-display: "Funnel Display", "DM Sans", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-h2: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem);
  --text-hero: clamp(2.1rem, 1.2rem + 3.8vw, 3.9rem);
  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong); line-height: 1.12; letter-spacing: -0.02em;
}
h2 { font-size: var(--text-h2); margin: 0.5rem 0 2.25rem; font-weight: 800; }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; font-weight: 700; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}

/* Trame discrète (grille) posée sur les sections sombres clés */
.grid-texture {
  background-image:
    linear-gradient(rgb(255 255 255 / .028) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .028) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  border-radius: 7px; padding: .7rem 1.5rem; font-size: .95rem;
  font-family: var(--font-body);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .15s;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 6px 22px rgb(251 0 0 / .3); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 10px 30px rgb(251 0 0 / .4); }
.btn-light { background: #ffffff; color: #000000; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(255 255 255 / .18); }
.btn-ghost-dark {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--text-strong); }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.link-ghost { color: var(--muted); text-decoration: none; font-weight: 500; margin-right: .5rem; }
.link-ghost:hover { color: var(--text-strong); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(0 0 0 / .92);
  border-bottom: 1px solid var(--line-soft);
}
.site-header nav {
  display: flex; align-items: center; gap: 1.1rem; height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.1rem; color: var(--text-strong); text-decoration: none;
  letter-spacing: -0.01em; white-space: nowrap;
}
.logo b { font-weight: 800; color: var(--accent); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto;
  background:
    linear-gradient(transparent 55%, var(--accent) 55%) 3.5px 0 / 3px 100% no-repeat,
    linear-gradient(transparent 30%, var(--accent) 30%) 9.5px 0 / 3px 100% no-repeat,
    linear-gradient(transparent 65%, var(--accent) 65%) 15.5px 0 / 3px 100% no-repeat,
    #1a1a1a;
}
.tbr-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding-left: 1.1rem; border-left: 1px solid var(--line);
  color: var(--muted); text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.tbr-badge b { color: var(--text-strong); font-weight: 800; }
.tbr-badge:hover { color: var(--text); }
.tbr-badge:hover b { color: var(--accent); }
.tbr-logo {
  height: 30px; width: auto; border-radius: 6px; display: block; flex: 0 0 auto;
  transition: transform .2s var(--ease);
}
.tbr-badge:hover .tbr-logo { transform: scale(1.04); }
.tbr-logo-sm { height: 22px; width: auto; border-radius: 5px; display: block; }
.nav-links { display: flex; gap: 1.1rem; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--text-strong); }
.nav-cta { display: flex; align-items: center; flex: 0 0 auto; }
.nav-cta .btn { white-space: nowrap; padding: .6rem 1.1rem; font-size: .88rem; }
.nav-cta .link-ghost { font-size: .88rem; white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 var(--space-section);
  background:
    radial-gradient(900px 480px at 85% -10%, rgb(251 0 0 / .14), transparent 60%),
    radial-gradient(600px 300px at 0% 25%, rgb(251 0 0 / .05), transparent 55%);
  overflow: hidden; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero h1 { font-size: var(--text-hero); font-weight: 800; margin: .9rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.08rem; max-width: 34rem; color: var(--text); }
.hero-sub strong { color: var(--text-strong); }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: .85rem; }
.hero-tbr {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  color: var(--muted); text-decoration: none; font-size: .82rem;
}
.hero-tbr:hover { color: var(--text-strong); }
.hero-tbr .tbr-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.hero-tbr b { color: var(--text); }
.hero-tbr:hover b { color: var(--accent); }

/* Aperçu produit (mock, carte sombre à liseré rouge) */
.hero-visual { position: relative; }
.mock-window {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgb(0 0 0 / .7);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  background: #131313; border-bottom: 1px solid var(--line-soft); padding: .6rem .9rem;
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.mock-bar i:first-child { background: var(--accent); }
.mock-bar span { margin-left: .6rem; font-size: .72rem; color: var(--faint); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: .9rem .9rem .3rem; }
.mock-kpi {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: .6rem .7rem;
  font-size: .68rem; color: var(--muted); background: #101010;
}
.mock-kpi.accent { border-left: 3px solid var(--accent); }
.mock-kpi strong {
  display: block; font-size: 1.35rem; color: var(--text-strong);
  letter-spacing: -0.02em; font-family: var(--font-display); font-weight: 800;
}
.mock-kpi strong small { font-size: .7rem; color: var(--faint); font-weight: 500; }
.mock-kpi em { font-style: normal; font-size: .68rem; font-weight: 700; }
.mock-kpi em.up { color: #4ade80; }
.mock-kpi em.flat { color: var(--faint); }
.mock-chart { padding: .5rem .9rem 0; }
.mock-chart svg { width: 100%; height: 84px; display: block; }
.mock-rows { padding: .5rem .9rem .9rem; }
.mock-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line-soft); padding: .5rem .1rem; font-size: .78rem;
}
.mock-row span { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row b { font-size: .72rem; white-space: nowrap; }
.mock-row b.ok { color: #4ade80; }
.mock-row b.ko { color: var(--accent); }
.mock-mail {
  position: absolute; right: -8px; bottom: -26px;
  display: flex; gap: .7rem; align-items: center;
  background: var(--accent); color: #fff; border-radius: 10px;
  padding: .8rem 1.1rem; box-shadow: 0 16px 40px rgb(251 0 0 / .35);
  transform: rotate(-1.5deg);
  max-width: 320px;
}
.mock-mail-ico { font-size: 1.3rem; }
.mock-mail strong { display: block; font-size: .8rem; }
.mock-mail span { font-size: .7rem; color: rgb(255 255 255 / .75); }

/* ---------- Bandeau chiffres ---------- */

.stats {
  background: var(--bg-soft); padding: 2.5rem 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat strong {
  display: block; color: var(--accent); font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: .25rem;
}
.stat span { color: var(--muted); font-size: .85rem; line-height: 1.45; display: block; }

/* ---------- Sections ---------- */

.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-why {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.75rem; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card-why:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-ico { font-size: 1.6rem; margin-bottom: .75rem; }
.card-why p { margin: 0; font-size: .95rem; color: var(--muted); }
.card-why p strong { color: var(--text); }

/* Étapes */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.75rem; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem;
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }
.steps p strong { color: var(--text); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem;
  background: var(--surface);
  transition: border-color .2s;
}
.feature:hover { border-color: var(--accent); }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Messages flash de la landing ---------- */

.flash {
  padding: .7rem 1rem; border-radius: 8px; font-size: .9rem; font-weight: 500;
  margin: 0 0 1rem; text-align: left;
}
.flash-error { background: rgb(251 0 0 / .12); color: #ff6b6b; border: 1px solid rgb(251 0 0 / .4); }

/* ---------- FAQ ---------- */

#faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.3rem; margin-bottom: .75rem;
}
#faq summary {
  cursor: pointer; font-weight: 700; color: var(--text-strong); font-size: 1rem;
  list-style: none; position: relative; padding-right: 2rem;
  font-family: var(--font-body);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%); color: var(--accent); font-weight: 700; font-size: 1.2rem;
  transition: transform .2s var(--ease);
}
#faq details[open] summary::after { content: "–"; }
#faq details p { margin: .8rem 0 .2rem; font-size: .95rem; color: var(--muted); }
#faq details em { color: var(--text); }

/* ---------- CTA final ---------- */

.cta-final {
  background:
    radial-gradient(700px 320px at 50% -40%, rgb(251 0 0 / .28), transparent 70%),
    var(--bg);
  text-align: center; padding: var(--space-section) 0;
  border-top: 1px solid var(--line-soft);
}
.cta-final h2 { color: var(--text-strong); margin-bottom: 2rem; }
.cta-note { color: var(--muted); font-size: .85rem; margin-top: 1.1rem; }

/* ---------- Section The Black Room ---------- */

.tbr {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  padding: 3.5rem 0;
}
.tbr-inner { display: flex; gap: 2.25rem; align-items: center; }
.tbr-mark { flex: 0 0 auto; display: block; }
.tbr-mark img {
  display: block; width: 246px; max-width: 100%; height: auto;
  border-radius: 12px; box-shadow: 0 16px 44px rgb(251 0 0 / .3);
  transition: transform .25s var(--ease);
}
.tbr-mark:hover img { transform: translateY(-3px); }
.tbr h2 { font-size: 1.5rem; margin: 0 0 .6rem; }
.tbr p { margin: 0 0 1.2rem; color: var(--muted); max-width: 44rem; }
.tbr p strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 2rem; background: var(--bg); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .logo { color: var(--text-strong); }
.site-footer p { color: var(--muted); font-size: .88rem; margin: .8rem 0 0; }
.site-footer p a { color: var(--text); text-decoration: none; }
.site-footer p a:hover { color: var(--accent); }
.site-footer nav { display: flex; flex-direction: column; gap: .5rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.site-footer nav a:hover { color: var(--text-strong); }
.footer-legal { color: var(--faint); font-size: .78rem; margin-top: 2rem; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual { max-width: 540px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .steps, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .tbr-badge { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .site-header nav { height: auto; flex-wrap: wrap; padding: .6rem 0; row-gap: .5rem; gap: 1rem; }
  .nav-cta { margin-left: auto; gap: .5rem; }
  .nav-cta .btn { padding: .55rem .9rem; font-size: .85rem; white-space: nowrap; }
  .cards-3, .steps, .features, .stats-grid, .checker-fields { grid-template-columns: 1fr; }
  .mock-mail { position: static; transform: none; margin-top: 1rem; max-width: none; }
  .tbr-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-why, .feature { transition: none; }
}

/* ---------- Contenu de l'audit gratuit ---------- */

.section-sub { color: var(--muted); max-width: 44rem; margin: .9rem 0 0; line-height: 1.65; }

.audit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem;
}
.audit-item {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 12px; padding: 1.15rem 1.25rem;
}
.audit-item strong { display: block; color: var(--text-strong); font-size: .98rem; margin-bottom: .35rem; }
.audit-item span { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.audit-note {
  margin: 2rem auto 0; max-width: 46rem; text-align: center;
  color: var(--muted); font-size: .9rem; line-height: 1.6;
}
.audit-note strong { color: var(--text-strong); }
.audit-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .audit-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   Pages de contenu : contact et informations légales
   Colonne étroite et interlignage large : ces textes se lisent, ils
   ne se survolent pas.
   =================================================================== */

.legal-page { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 var(--space-section); }
.legal-narrow { max-width: 47rem; }
.legal-page h1 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.1;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); margin: .4rem 0 1.1rem;
  color: var(--text-strong);
}
.legal-lede { color: var(--muted); font-size: 1.03rem; line-height: 1.7; margin: 0 0 1.5rem; }
.legal-updated {
  display: inline-block; font-size: .82rem; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; margin-bottom: 2.5rem;
}

.legal-section { margin-top: 2.6rem; scroll-margin-top: 5rem; }
.legal-section h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text-strong); margin: 0 0 .85rem;
}
.legal-section h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-strong); margin: 1.5rem 0 .5rem;
}
.legal-page p, .legal-page li { color: var(--text); line-height: 1.75; font-size: .95rem; }
.legal-page p { margin: 0 0 .9rem; }
.legal-page ul { padding-left: 1.15rem; margin: .7rem 0 1.1rem; }
.legal-page li { margin-bottom: .45rem; }
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
/* Les boutons échappent au style des liens de texte : « .legal-page a » est
   plus spécifique que « .btn-primary », le texte du bouton passait donc en
   rouge sur fond rouge (illisible) et se soulignait au survol. */
.legal-page a.btn, .legal-page a.btn:hover { text-decoration: none; }
.legal-page a.btn-primary, .legal-page a.btn-primary:hover { color: #ffffff; }
.legal-page strong { color: var(--text-strong); font-weight: 600; }

/* Sommaire des pages longues */
.legal-toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.15rem 1.35rem; margin-bottom: 1rem;
}
.legal-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 .7rem; font-family: var(--font-body); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin-bottom: .35rem; font-size: .9rem; }

/* Tableaux : sous-traitants, durées de conservation */
.legal-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0 1.4rem; font-size: .88rem; }
.legal-table th, .legal-table td {
  text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal-table th { color: var(--text-strong); font-weight: 600; background: var(--surface); }
.legal-table td { color: var(--text); line-height: 1.6; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table-wrap { overflow-x: auto; }

/* Encadré d'insistance */
.legal-callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.3rem 0;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ---------- Formulaire de contact ---------- */

.contact-form { margin: 0 0 3rem; }
.contact-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.contact-form label {
  display: block; font-size: .88rem; font-weight: 600; color: var(--text-strong);
  margin: 1.1rem 0 .45rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: .95rem;
  color: var(--text-strong); background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: .7rem .85rem;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }

.contact-form .check {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: 1.4rem 0 1.6rem; font-size: .88rem; font-weight: 400; color: var(--muted); line-height: 1.55;
}
.contact-form .check input { margin-top: .15rem; accent-color: var(--accent); flex-shrink: 0; }
.contact-form .check a { color: var(--accent); }

.contact-form .btn-block {
  display: block; width: 100%; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .98rem; padding: .85rem 1.5rem;
}

/* Champ leurre : hors écran plutôt que display:none, que certains robots
   savent détecter. Retiré du parcours clavier et des lecteurs d'écran. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-alt {
  border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: 1rem;
}
.contact-alt h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-strong); margin: 0 0 .8rem; }
.contact-alt p { color: var(--muted); font-size: .92rem; }
.contact-alt-note { font-size: .87rem; color: var(--faint); }

/* Messages flash (succès / erreur) */
.flash {
  border-radius: 10px; padding: .85rem 1.1rem; margin: 0 0 1.4rem;
  font-size: .92rem; line-height: 1.55; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.flash-success { border-left: 3px solid #21c07a; }
.flash-error { border-left: 3px solid var(--accent); color: var(--text-strong); }

@media (max-width: 620px) {
  .contact-form .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Sections de texte suivi (définition, méthodologie) ---------- */

.prose p { color: var(--text); line-height: 1.75; margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); }

/* Le titre du bloc d'appel final est décoratif : il reprend l'allure d'un
   titre sans en occuper le niveau, réservé aux sections qui portent du fond. */
.cta-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--text-h2); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--text-strong); margin: 0 0 2rem;
}

/* Question de FAQ : le <h3> porte le niveau, le <summary> porte l'interaction.
   On neutralise donc la mise en forme de bloc du titre. */
#faq summary h3 {
  display: inline; font-family: var(--font-body); font-size: 1rem;
  font-weight: 700; color: inherit; margin: 0; letter-spacing: normal;
}

/* Source d'une statistique : obligatoire dès qu'un chiffre de marché est avancé. */
.stat-source { display: block; margin-top: .3rem; font-size: .74rem; color: var(--faint); }
.stat-source a { color: var(--muted); }
.stat-source a:hover { color: var(--accent); }

/* ---------- Guides (hub /guides/ + articles) ---------- */

.guide-breadcrumb {
  font-size: .82rem; color: var(--faint); margin: 0 0 1.6rem;
  display: flex; gap: .45rem; flex-wrap: wrap;
}
.guide-breadcrumb a { color: var(--muted); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--accent); }

.guide-meta { font-size: .84rem; color: var(--faint); margin: -0.6rem 0 1.4rem; }
.guide-meta a { color: var(--muted); text-decoration: none; }
.guide-meta a:hover { color: var(--accent); }

/* « L'essentiel » : la réponse en 3-5 lignes, en tête d'article — la section
   que les moteurs de réponse citent. */
.guide-essential {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 1.15rem 1.3rem; margin: 0 0 2.2rem;
}
.guide-essential p { margin: 0; font-size: .95rem; line-height: 1.7; }
.guide-essential strong { color: var(--text-strong); }

/* À lire ensuite */
.guide-related { margin-top: 3rem; }
.guide-related h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); margin: 0 0 1rem; font-family: var(--font-body);
}
.guide-related-links { display: grid; gap: .7rem; }
.guide-related-links a {
  display: block; padding: .9rem 1.1rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--text-strong);
  font-weight: 600; font-size: .94rem; text-decoration: none;
  transition: border-color .18s var(--ease);
}
.guide-related-links a:hover { border-color: var(--accent); }
.guide-related-cat {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .25rem;
}

/* Encart d'appel en fin d'article */
.guide-cta {
  margin: 3rem 0 0; padding: 1.8rem; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); text-align: center;
}
.guide-cta h2 {
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--text-strong); margin: 0 0 .7rem;
}
.guide-cta p { color: var(--muted); font-size: .93rem; max-width: 36rem; margin: 0 auto 1.3rem; }

/* Hub /guides/ : cartes par catégorie */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin: 0 0 1rem; }
.guide-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.3rem 1.35rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; color: var(--text-strong); }
.guide-card p { margin: 0; font-size: .87rem; line-height: 1.55; color: var(--muted); }
.guide-card .guide-card-min { font-size: .76rem; color: var(--faint); margin-top: auto; padding-top: .4rem; }

/* Extraits de code / configuration dans les guides */
.guide-code {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82rem; line-height: 1.6; color: var(--text);
}
.guide-code .c { color: var(--faint); }

/* Bloc guides de la page d'accueil */
.guides-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.guides-home-more { text-align: center; margin: 2.2rem 0 0; }

@media (max-width: 900px) {
  .guide-cards, .guides-home-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .guide-cards, .guides-home-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Vidéo
   Façade cliquable : la miniature locale tient lieu de lecteur tant qu'on ne
   clique pas — aucune requête YouTube au chargement. L'iframe qui la remplace
   hérite du même cadre. */
.video-shell { max-width: 860px; margin: 2.2rem auto 0; }
.video-facade {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 18px 50px rgb(0 0 0 / .35);
}
.video-facade img { display: block; width: 100%; height: auto; transition: transform .35s ease, opacity .3s; }
.video-facade:hover img, .video-facade:focus-visible img { transform: scale(1.02); opacity: .88; }
.video-facade:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Le bouton play : rond plein, à la fois repère et cible de clic évidente. */
.video-play {
  position: absolute; top: 50%; left: 50%; width: 74px; height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 8px 30px rgb(251 0 0 / .45);
  transition: transform .25s ease;
}
.video-play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-play, .video-facade:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-badge {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgb(0 0 0 / .72); color: #fff; border-radius: 999px;
  padding: .4rem .85rem; font-size: .85rem; font-weight: 600;
}
.video-iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: 14px; box-shadow: 0 18px 50px rgb(0 0 0 / .35);
  max-width: 860px; margin: 0 auto;
}
@media (max-width: 640px) {
  .video-play { width: 58px; height: 58px; }
  .video-play::before { border-width: 10px 0 10px 16px; }
  .video-badge { font-size: .78rem; left: .7rem; bottom: .7rem; }
}
