/* ==========================================================================
   LOCALISIA — Feuille de style principale
   --------------------------------------------------------------------------
   Tous les tokens de marque sont définis ici, en variables CSS.
   - Thème clair : :root
   - Thème sombre : [data-theme="dark"] (thème par défaut du site)
   Pour changer une couleur, modifiez uniquement la variable correspondante.
   ========================================================================== */

/* ---------- 1. TOKENS — thème clair ---------- */
:root {
  /* Marque */
  --brand: #304BFE;
  --brand-hover: #1F4FCC;
  --brand-soft: #F0F4FF;        /* fond clair de section */

  /* Neutres (light) */
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-card: #FFFFFF;
  --border: #D9DDE3;
  --border-strong: #A0A8B8;
  --text: #2C2C2C;
  --text-muted: #6B7280;
  --on-brand: #FFFFFF;

  /* Sémantiques */
  --success: #3ACF91;
  --warning: #FF9F43;
  --error: #FF6B6B;

  /* Rayons */
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-modal: 16px;

  /* Ombres */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 24px rgba(48, 75, 254, 0.12);

  /* Typo */
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- 1b. TOKENS — thème sombre (défaut) ---------- */
[data-theme="dark"] {
  --bg: #0F1117;
  --bg-alt: #1A1D27;
  --bg-card: #21253A;
  --border: #2E3350;
  --border-strong: #4A5270;
  --text: #F1F3F9;
  --text-muted: #9CA3AF;
  --brand-soft: #1A1D27;        /* en sombre, la section "douce" = fond secondaire */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 6px 24px rgba(48, 75, 254, 0.30);
}

/* ---------- 1c. TOKENS — visuels SVG hero (light + dark) ---------- */
:root {
  --sv-bg:#F2F5FB; --sv-s:#FFFFFF; --sv-c:#EDF1FF; --sv-c2:#E6ECFF;
  --sv-i:#DDE2EE; --sv-cht:#E8EFFF; --sv-t:#0D0F1A; --sv-mu:#546080;
  --sv-di:#7B8AAA; --sv-fa:#A5AFCA; --sv-brl:#5466E0;
}
[data-theme="dark"] {
  --sv-bg:#0D0F1A; --sv-s:#151828; --sv-c:#1A1D2E; --sv-c2:#1A2030;
  --sv-i:#1E2236; --sv-cht:#1E2340; --sv-t:#FFFFFF; --sv-mu:#8892B0;
  --sv-di:#5A6480; --sv-fa:#3D4460; --sv-brl:#9FB0FF;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

img, svg { vertical-align: middle; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  z-index: 200;
}
.skip-link:focus { left: 8px; color: var(--on-brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, border-color 0.22s, transform 0.18s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97) !important; }
.btn-primary {
  background: linear-gradient(135deg, #304BFE 0%, #4F6AFF 100%);
  color: var(--on-brand);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1F4FCC 0%, #304BFE 100%);
  color: var(--on-brand);
  box-shadow: 0 8px 28px rgba(48,75,254,0.35), 0 2px 8px rgba(48,75,254,0.2);
  transform: translateY(-2px);
}
.btn-primary:hover::after { left: 160%; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(48,75,254,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(48,75,254,0.10);
}
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- 4. BADGES ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: middle;
}
.badge-new { background: var(--success); color: #07301F; }
.badge-soon { background: var(--warning); color: #4A2A00; }
.badge-brand { background: var(--brand-soft); color: var(--brand); border: 1px solid var(--border); }
[data-theme="dark"] .badge-brand { color: #9FB0FF; }
.badge-example {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  font-style: italic;
}

/* ---------- 5. HEADER & NAVIGATION ---------- */
#site-header { height: 68px; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand); background: var(--brand-soft); }
.nav-link .chevron { transition: transform 0.2s; }
.nav-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Mega-menu déroulant */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hover);
  padding: 16px 10px 10px;
  display: none;
  z-index: 110;
}
.nav-item.open .dropdown { display: block; }
/* Ouverture au survol sur desktop (le clic reste géré en JS pour le clavier/tactile) */
@media (hover: hover) and (min-width: 981px) {
  .nav-item:hover .dropdown { display: block; }
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 0.93rem;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown a .badge { margin-left: auto; }
.menu-link-sub { display: block; font-size: 0.73rem; font-weight: 400; color: var(--text-muted); margin-top: 1px; line-height: 1.3; }
.dropdown a:hover .menu-link-sub { color: color-mix(in srgb, var(--brand) 70%, var(--text-muted)); }

/* Mega-menu en colonnes titrées (menu "Plateforme", "Localisia pour") */
.dropdown.mega {
  width: max-content;
  max-width: min(92vw, 780px);
  padding: 18px 20px;
}
.mega-cols {
  display: grid;
  grid-auto-flow: column;
  gap: 8px 32px;
  align-items: start;
}
.menu-group { min-width: 220px; }
.menu-group .menu-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 4px 12px 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-actions .btn {
  min-width: 148px;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.95rem;
}
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* Burger mobile */
.burger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

/* Largeurs intermédiaires : on compacte pour que tout le header tienne */
@media (min-width: 981px) and (max-width: 1360px) {
  .header-inner { gap: 12px; }
  .nav-link { padding: 10px 9px; font-size: 0.9rem; white-space: nowrap; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 11px 14px; font-size: 0.9rem; white-space: nowrap; }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg);
    overflow-y: auto;
    padding: 16px;
    display: none;
  }
  body.nav-open .main-nav { display: block; }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px; font-size: 1.05rem; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin-left: 14px;
    min-width: 0;
  }
  /* En mobile, les colonnes du mega-menu s'empilent */
  .dropdown.mega { width: auto; max-width: none; padding: 8px 0 8px 4px; }
  .mega-cols { grid-auto-flow: row; grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
  /* On garde l'essentiel sur mobile : toggle, CTA principal, burger */
  .header-actions .btn-secondary { display: none; }
}

/* Très petits écrans : on compacte le header pour que tout tienne */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { padding: 9px 12px; font-size: 0.9rem; }
  .theme-toggle, .burger { width: 38px; height: 38px; }
  .logo { font-size: 1.1rem; gap: 7px; }
  .logo-mark { width: 30px; height: 30px; }
}

/* ---------- 6. SECTIONS ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--brand-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
[data-theme="dark"] .section-head .kicker { color: #9FB0FF; }

/* ---------- 7. HERO ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Mockup de fiche Google (pur CSS) */
.gbp-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  max-width: 420px;
  margin-inline: auto;
}
.gbp-mockup .gbp-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.gbp-mockup .gbp-avatar {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.3rem;
}
.gbp-mockup .gbp-stars { color: var(--warning); letter-spacing: 2px; }
.gbp-mockup .gbp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.gbp-mockup .gbp-rank {
  margin-top: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.gbp-mockup .gbp-rank .up { color: var(--success); font-weight: 600; }

/* ---------- 8. CARTES ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
a.card { color: var(--text); display: block; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--brand); }
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
[data-theme="dark"] .card .card-icon { color: #9FB0FF; }

/* Cartes avant/après (cas d'usage) */
.case-card { display: flex; flex-direction: column; gap: 14px; }
.case-card .case-step { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.case-card .case-step .dot {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  margin-top: 2px;
}
.case-card .dot-before { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.case-card .dot-action { background: var(--brand); color: #fff; }
.case-card .dot-result { background: var(--success); color: #07301F; }
.case-card .case-result { font-weight: 600; }
.case-card footer { margin-top: auto; }

/* ---------- 9. ÉTAPES (Comment ça marche) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.step .step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ---------- 10. BANDEAU CONFIANCE ---------- */
.trust-band {
  border-block: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-alt);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  align-items: center;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-items span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 11. CTA FINAL ---------- */
.cta-banner {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-modal);
  padding: 56px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: #3ACF91;
  opacity: 0.20;
  filter: blur(80px);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: #FF9F43;
  opacity: 0.18;
  filter: blur(70px);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin-inline: auto; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
}
.cta-banner .btn-primary:hover { background: var(--brand-soft); box-shadow: none; }

/* ---------- 12. FORMULAIRES ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-card);
  padding: 36px;
  max-width: 560px;
  margin-inline: auto;
}
.form-group { margin-bottom: 20px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 480px) { .form-two-col { grid-template-columns: 1fr; } }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-group .hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(48, 75, 254, 0.15);
}
.form-group.has-error input, .form-group.has-error select { border-color: var(--error); }
.field-error {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 5px;
}
.form-group.has-error .field-error { display: block; }

.form-compact { padding: 24px 28px; }
.form-compact .form-group { margin-bottom: 13px; }
.form-compact .form-group label { font-size: 0.87rem; margin-bottom: 4px; }
.form-compact input[type="text"],
.form-compact input[type="email"],
.form-compact input[type="tel"],
.form-compact select,
.form-compact textarea { padding: 8px 11px; font-size: 0.92rem; }
.form-compact h2 { font-size: 1.15rem !important; margin-bottom: 4px; }
.form-compact > form > p.muted { font-size: 0.88rem !important; margin-bottom: 16px; }

.form-required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: right;
}
.form-required-note span { color: var(--error); font-weight: 600; }

.form-rgpd {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.form-rgpd a { color: var(--text-muted); text-decoration: underline; }
.form-rgpd a:hover { color: var(--brand); }

/* État de succès du formulaire */
.form-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.form-success .success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #07301F;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-card.submitted form { display: none; }
.form-card.submitted .form-success { display: block; }

/* ---------- 13. TARIFS ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 10px 0 2px;
}
.price-card .price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  flex: 1;
}
.price-card ul li {
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.price-card ul li svg { color: var(--success); flex-shrink: 0; margin-top: 4px; }
.price-card.featured { border-color: var(--brand); border-width: 2px; }
.price-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.price-card-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.price-card-features li:last-child { border-bottom: none; }
.price-card-features li svg { color: var(--success); flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; }

/* ---------- 14. ACCORDÉON (FAQ) ---------- */
.accordion { max-width: 760px; margin-inline: auto; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.accordion-trigger svg { flex-shrink: 0; transition: transform 0.2s; color: var(--brand); }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { display: none; padding: 0 22px 18px; color: var(--text-muted); }
.accordion-item.open .accordion-panel { display: block; }

/* ---------- 15. BLOG / RESSOURCES ---------- */
.post-card .post-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .post-card .post-tag { color: #9FB0FF; }
.post-card .post-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Glossaire */
.glossary-item { margin-bottom: 28px; }
.glossary-item dt { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; color: var(--text); }
.glossary-item dd { margin: 0; color: var(--text-muted); line-height: 1.65; }
.glossary-section { margin-top: 52px; margin-bottom: 8px; }
.glossary-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--brand); border-bottom: 2px solid var(--brand-soft); padding-bottom: 8px; margin-bottom: 28px; }
.glossary-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }

/* ---------- 16. MENTIONS LÉGALES / PAGES LÉGALES ---------- */
.legal-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.legal-block h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.legal-block p { margin-bottom: 10px; color: var(--text-secondary); line-height: 1.7; }
.legal-block a { color: var(--brand); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.95rem;
}
.legal-table th, .legal-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-raised);
}
.legal-table td { color: var(--text); }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
}
.legal-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}
.legal-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- 17. PAGE SECTEUR / SOLUTION ---------- */

.page-hero {
  padding: 72px 0 56px;
  background: var(--brand-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 820px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.checklist li svg { color: var(--success); flex-shrink: 0; margin-top: 5px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Encadré "exemple illustratif" */
.example-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 24px;
}
.example-note svg { flex-shrink: 0; margin-top: 3px; color: var(--warning); }

/* Encadré urgence (immobilier) */
.alert-banner {
  background: var(--bg-card);
  border: 1px solid var(--warning);
  border-left: 5px solid var(--warning);
  border-radius: var(--radius-card);
  padding: 22px 26px;
}
.alert-banner h3 { display: flex; align-items: center; gap: 10px; }
.alert-banner h3 svg { color: var(--warning); }

/* ---------- 17. FOOTER ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 72px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 40px 32px;
  margin-bottom: 40px;
}
.footer-grid > div:first-child {
  grid-row: 1 / 3;
}
.logo--footer { display: flex; font-size: 1rem; }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a { color: var(--text); }
.footer-grid ul a:hover { color: var(--brand); }
/* Lien réseau social (LinkedIn) : pastille au bleu Localisia + libellé */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
}
.social-link svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.social-link:hover { color: var(--brand); }
.social-link:hover svg { background: var(--brand-hover); transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 18. ROTATION DU MOCKUP HERO ---------- */
.gbp-rotator { width: 100%; }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-slide svg { transition: opacity 0.35s ease, transform 0.35s ease; width: 100%; height: auto; }
.hero-slide.fading svg { opacity: 0; transform: translateY(8px); }
.gbp-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.gbp-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.gbp-dots button.active { background: var(--brand); width: 22px; }
@media (prefers-reduced-motion: reduce) { .hero-slide svg { transition: none; } }

/* ---------- 19. WIDGETS "APERÇU PLATEFORME" ---------- */
/* Mini-interfaces illustrant le produit (avis, positions, rapport, IA) */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 720px) { .widgets-grid { grid-template-columns: 1fr; } }
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.widget-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.widget-head .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* Widget avis : un avis client + la réponse prête à publier */
.review-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  font-size: 0.9rem;
}
.review-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 600;
  flex-shrink: 0;
}
.review-author .gbp-stars { font-size: 0.8rem; }
.review-reply {
  border-left: 3px solid var(--brand);
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
}
.reply-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 4px;
}
[data-theme="dark"] .reply-tag { color: #9FB0FF; }

/* Widget positions : grille de classement local point par point */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.rank-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 600;
}
.rank-top { background: var(--success); color: #07301F; }
.rank-mid { background: var(--warning); color: #4A2A00; }
.rank-low { background: var(--error); color: #fff; }
.rank-caption { font-size: 0.88rem; color: var(--text-muted); }
.rank-caption .up { color: var(--success); font-weight: 600; }

/* Widget rapport : lignes de statistiques mensuelles */
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-value { font-weight: 600; font-size: 1.05rem; margin-left: auto; }
.stat-up { color: var(--success); font-size: 0.8rem; font-weight: 600; min-width: 44px; text-align: right; }

/* Widget IA : question posée et réponse citant l'établissement */
.ai-chat { display: flex; flex-direction: column; gap: 10px; }
.ai-q, .ai-a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 90%;
}
.ai-q {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-a {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ai-a strong { color: var(--brand); }
[data-theme="dark"] .ai-a strong { color: #9FB0FF; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--text-muted);
}
.ai-chips .check { color: var(--success); font-weight: 700; }

/* ---------- 20. SHOWCASE FONCTIONNALITÉS (liste numérotée + panneau) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-item button {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s, border-color 0.2s;
}
.feature-item button .num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.7;
}
.feature-item:hover button { color: var(--text); }
.feature-item.active button {
  color: var(--text);
  border-left-color: var(--brand);
  font-weight: 600;
}
.feature-item.active button .num { color: var(--brand); opacity: 1; }
[data-theme="dark"] .feature-item.active button .num { color: #9FB0FF; }
.showcase-panels { position: relative; }
.showcase-panels .panel { display: none; }
.showcase-panels .panel.active { display: block; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .feature-item button { font-size: 1.05rem; padding: 12px 10px; }
}

/* Widget "planning de contenu" */
.widget-subhead {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.planning-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  margin-bottom: 8px;
  font-size: 0.9rem;
  background: var(--bg);
}
.planning-row .dot-mini {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.planning-row .dot-mini.pending { background: var(--warning); }
.planning-row .date { margin-left: auto; font-weight: 600; color: var(--brand); font-size: 0.85rem; white-space: nowrap; }
[data-theme="dark"] .planning-row .date { color: #9FB0FF; }

/* Widget "collecte d'avis" : message envoyé au client */
.sms-bubble {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.sms-bubble .btn-mini {
  display: inline-block;
  margin-top: 10px;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.stars-input {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  color: var(--warning);
  letter-spacing: 3px;
}

/* ---------- 20b. WIDGETS AVANCÉS (rapport, QR codes, score de fiche) ---------- */
/* Tuiles de statistiques (rapport mensuel) */
.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 8px;
  text-align: center;
  background: var(--bg);
}
.tile .tile-num { font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.tile .tile-label { font-size: 0.73rem; color: var(--text-muted); }
.tile.accent { border-color: var(--brand); }
.tile.accent .tile-num { color: var(--brand); }
[data-theme="dark"] .tile.accent .tile-num { color: #9FB0FF; }

/* Barres horizontales (répartition, classement) */
.hbar-row { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; padding: 5px 0; }
.hbar-row .hbar-label { width: 128px; flex-shrink: 0; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-row .hbar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.hbar-row .hbar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.hbar-row .hbar-val { width: 48px; text-align: right; font-weight: 600; font-size: 0.8rem; }

/* Score d'optimisation de fiche (anneau + sous-scores) */
.score-wrap { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.score-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--score) * 1%), var(--bg-alt) 0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.score-ring span {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.05rem;
}
.score-sub { display: flex; gap: 20px; }
.score-sub div { font-size: 0.78rem; color: var(--text-muted); }
.score-sub strong { display: block; font-size: 1.02rem; color: var(--text); }

/* Actions recommandées sur la fiche */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 9px 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  background: var(--bg);
}
.action-row .pill {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.action-row.done { border-color: var(--success); }
.action-row.done .pill { background: var(--success); color: #07301F; }

/* QR code + sparkline */
.qr-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.qr-box {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px;
}
.spark { width: 100%; height: 54px; margin: 4px 0 10px; color: var(--brand); }
[data-theme="dark"] .spark { color: #9FB0FF; }

/* Analyse de sentiment des avis */
.senti { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.senti .group-label { font-size: 0.76rem; color: var(--text-muted); margin: 0 0 6px; }
.chip-pos, .chip-neg {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 6px 6px 0;
}
.chip-pos { background: rgba(58, 207, 145, 0.15); color: var(--success); }
.chip-neg { background: rgba(255, 159, 67, 0.18); color: var(--warning); }

/* Onglets de période (rapport hebdo / mensuel / trimestriel) */
.period-tabs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.period-tabs span {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}
.period-tabs .active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- 21. BANDEAU CHIFFRES CLÉS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat-card { text-align: left; }
.stat-card .stat-big {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
}
[data-theme="dark"] .stat-card .stat-big { color: #9FB0FF; }
.stat-card .stat-label { font-weight: 500; margin: 6px 0 4px; }
.stat-card .stat-src { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- 22. BADGE GOOGLE PARTNER ---------- */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}
.partner-badge svg { color: var(--brand); }
[data-theme="dark"] .partner-badge svg { color: #9FB0FF; }

/* ---------- 22b. BADGE OFFICIEL GOOGLE PARTNER ----------
   Reproduction fidèle du badge : carte blanche (y compris en thème sombre,
   comme l'original), G quadricolore, texte gris Google #5F6368. */
.gpartner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 10px;
  padding: 10px 18px;
}
.gpartner svg { width: 26px; height: 26px; flex-shrink: 0; }
.gpartner .g-text {
  font-weight: 500;
  color: #5F6368;
  font-size: 1rem;
  white-space: nowrap;
}
/* Version grand format (pages de conversion) */
.gpartner.vertical {
  flex-direction: column;
  gap: 12px;
  padding: 24px 36px;
  border-radius: var(--radius-card);
}
.gpartner.vertical svg { width: 52px; height: 52px; }
.gpartner.vertical .g-text { font-size: 1.15rem; }

/* ---------- 23. GROUPE DE BOUTONS CTA (bannière bleue, heros) ---------- */
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cta-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.cta-banner .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- 24. NUAGE DE PROFESSIONS (pages secteurs) ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud .tag {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- 25. ARTICLES DE BLOG ---------- */
.article-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2 { margin-top: 44px; font-size: 1.5rem; }
.article-body h3 { margin-top: 28px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-weight: 500;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.article-stat {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 16px 20px;
  margin: 20px 0;
}
.article-stat .stat-big { font-size: 1.9rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
[data-theme="dark"] .article-stat .stat-big { color: #9FB0FF; }

.article-intro {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.65;
}

.article-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin: 28px 0;
}
.article-callout .callout-icon { font-size: 1.35rem; flex-shrink: 0; line-height: 1.4; }
.article-callout > div { line-height: 1.6; }

.article-cta-box {
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-top: 48px;
}
.article-cta-box h3 { margin: 0 0 10px; font-size: 1.15rem; }
.article-cta-box p  { margin: 0; color: var(--text-muted); }

.article-body figure { margin: 24px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-card); }
.article-body figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; text-align: center; }
.article-body pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 20px; overflow-x: auto; font-size: 0.9rem; }
.article-body code { font-family: ui-monospace, monospace; font-size: 0.9em; }
.article-body pre code { font-size: 0.9rem; }

/* ---------- 26. KPI STRIP ---------- */
.kpi-section {
  background: linear-gradient(135deg, var(--brand) 0%, #4F46E5 100%);
  padding: 42px 0;
}
.kpi-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 40px;
  text-align: center;
}
.kpi-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  max-width: 160px;
  line-height: 1.4;
}
.kpi-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .kpi-strip { gap: 0; }
  .kpi-item { padding: 14px 24px; }
  .kpi-divider { display: none; }
  .kpi-num { font-size: 2rem; }
}

/* ---------- 27. TÉMOIGNAGES ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.review-stars {
  color: #F5A623;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-verified {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.review-quote {
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  flex: 1;
  margin: 0;
}

.review-card .review-author {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
  margin-top: 4px;
}
[data-theme="dark"] .review-card .review-author {
  background: rgba(99,120,255,0.12);
  color: #9FB0FF;
  border-color: rgba(99,120,255,0.35);
}

.review-role {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
}

/* Marquee témoignages */
.reviews-marquee {
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 16px;
  gap: 0;
}
.marquee-inner {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  min-width: 100%;
  padding-right: 16px;
  animation: marquee-left 50s linear infinite;
}
.marquee-row.marquee-reverse .marquee-inner {
  animation: marquee-right 50s linear infinite;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes marquee-right {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.reviews-marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-card {
  width: 290px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}
.marquee-card .review-stars { font-size: 0.88rem; color: #F5A623; letter-spacing: 1px; line-height: 1; }
.marquee-card .review-quote { font-size: 0.875rem; line-height: 1.55; font-style: italic; color: var(--text); margin: 0; }
.marquee-card .review-author { font-size: 0.83rem; font-weight: 700; color: var(--text); margin: 0; }
.marquee-card .review-role { font-size: 0.78rem; color: var(--text-muted); margin: 0; }


/* Grille témoignages cas clients */
.temoignages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .temoignages-grid { grid-template-columns: 1fr; } }

/* Cartes secteurs */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sector-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.sector-card:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateX(4px); }
.sector-card:hover .sector-arrow { color: var(--brand); transform: translateX(3px); }
.sector-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .sector-icon { color: #9FB0FF; }
.sector-content { flex: 1; min-width: 0; }
.sector-content h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.sector-content p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.sector-arrow { color: var(--text-muted); flex-shrink: 0; transition: color 0.2s, transform 0.15s; width: 16px; height: 16px; }
.sector-card-full { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
@media (max-width: 640px) { .sectors-grid { grid-template-columns: 1fr; } .sector-card-full { max-width: 100%; } }

/* Badge Google rating */
.google-rating-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px auto 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 24px;
  width: fit-content;
}

.google-rating-g { flex-shrink: 0; }

.google-rating-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  line-height: 1;
}
.google-rating-stars span { color: #F5A623; letter-spacing: 1px; }
.google-rating-stars strong { font-size: 1.25rem; font-weight: 700; color: var(--text); }

.google-rating-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.google-rating-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 27. CAS CLIENTS ---------- */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .case-studies-grid { grid-template-columns: 1fr; } }

.case-card-rich {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.case-header {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.case-header h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}
.case-context {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.case-steps-list {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.case-steps-list .case-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.55;
}
.case-steps-list .case-step .dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.case-steps-list .dot-before { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.case-steps-list .dot-action { background: var(--brand); color: #fff; }
.case-steps-list .dot-result { background: var(--success); color: #07301F; }
.case-steps-list .case-result { font-weight: 600; }

.case-metric {
  margin: 0 24px 20px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-card);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
[data-theme="dark"] .case-metric { background: rgba(99,120,255,0.08); }

.case-metric-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .case-metric-num { color: #9FB0FF; }

.case-metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- 28. MOCKUPS / VISUELS SAAS ---------- */
.mockup-wrap { margin: 40px 0; }
.mockup-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.mockup-figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 28px rgba(0,0,0,.12);
  margin: 0;
}
.mockup-figure svg { display: block; width: 100%; height: auto; }

/* ---------- 29. DIVERS ---------- */
.lucide { width: 22px; height: 22px; stroke-width: 1.5; }
.breadcrumb { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
