/* ══════════════════════════════════════════
   DESIGN TOKENS - LIGHT (défaut système)
══════════════════════════════════════════ */
:root {
  --bg:           #FAFAFA;
  --bg-2:         #F4F3FF;
  --bg-3:         #EDE9FE;
  --surface:      #FFFFFF;
  --surface-2:    rgba(255,255,255,0.85);
  --text:         #0F0A1E;
  --text-2:       #4B4570;
  --text-3:       #5F557A;
  --violet:       #7C3AED;
  --violet-2:     #6D28D9;
  --violet-3:     #5B21B6;
  --violet-soft:  #A78BFA;
  --violet-pale:  #EDE9FE;
  --accent:       #7C3AED;
  --border:       rgba(124,58,237,0.12);
  --border-2:     rgba(124,58,237,0.2);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.05);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.1), 0 24px 64px rgba(0,0,0,0.06);
  --shadow-violet:0 8px 32px rgba(124,58,237,0.25);
  --header-bg:    rgba(250,250,250,0.88);
  --glow-1:       rgba(124,58,237,0.08);
  --glow-2:       rgba(167,139,250,0.05);
  --img-shadow:   0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(124,58,237,0.1);
  --img-shadow-lg:0 40px 100px rgba(0,0,0,0.16), 0 0 0 1px rgba(124,58,237,0.15);
  --img-border:   rgba(124,58,237,0.15);
  --card-hover:   0 16px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(124,58,237,0.2);
}

/* ══════════════════════════════════════════
   DESIGN TOKENS - DARK (détection système)
══════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0D0F1A;
    --bg-2:         #12152A;
    --bg-3:         #1A1D35;
    --surface:      rgba(26,29,53,0.75);
    --surface-2:    rgba(18,21,42,0.9);
    --text:         #F1F0FF;
    --text-2:       #C4B8F0;
    --text-3:       #B8ADD8;
    --violet:       #7C3AED;
    --violet-2:     #8B5CF6;
    --violet-3:     #A78BFA;
    --violet-soft:  #A78BFA;
    --violet-pale:  rgba(124,58,237,0.15);
    --accent:       #C4B5FD;
    --border:       rgba(167,139,250,0.12);
    --border-2:     rgba(167,139,250,0.22);
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
    --shadow-violet:0 8px 32px rgba(124,58,237,0.4);
    --header-bg:    rgba(13,15,26,0.82);
    --glow-1:       rgba(124,58,237,0.22);
    --glow-2:       rgba(167,139,250,0.1);
    --img-shadow:   0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.12);
    --img-shadow-lg:0 40px 100px rgba(0,0,0,0.65), 0 0 0 1px rgba(124,58,237,0.2), 0 0 80px rgba(124,58,237,0.1);
    --img-border:   rgba(167,139,250,0.18);
    --card-hover:   0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,58,237,0.3);
  }
}

/* Surcharge manuelle via data-theme */
[data-theme="dark"] {
  --bg:#0D0F1A; --bg-2:#12152A; --bg-3:#1A1D35;
  --surface:rgba(26,29,53,0.75); --surface-2:rgba(18,21,42,0.9);
  --text:#F1F0FF; --text-2:#C4B8F0; --text-3:#B8ADD8;
  --violet:#7C3AED; --violet-2:#8B5CF6; --violet-3:#A78BFA;
  --violet-soft:#A78BFA; --violet-pale:rgba(124,58,237,0.15);
  --accent:#C4B5FD; --border:rgba(167,139,250,0.12); --border-2:rgba(167,139,250,0.22);
  --shadow-sm:0 1px 4px rgba(0,0,0,0.3); --shadow-md:0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.5); --shadow-violet:0 8px 32px rgba(124,58,237,0.4);
  --header-bg:rgba(13,15,26,0.82); --glow-1:rgba(124,58,237,0.22); --glow-2:rgba(167,139,250,0.1);
  --img-shadow:0 24px 64px rgba(0,0,0,0.5),0 0 0 1px rgba(167,139,250,0.12);
  --img-shadow-lg:0 40px 100px rgba(0,0,0,0.65),0 0 0 1px rgba(124,58,237,0.2),0 0 80px rgba(124,58,237,0.1);
  --img-border:rgba(167,139,250,0.18); --card-hover:0 20px 50px rgba(0,0,0,0.4),0 0 0 1px rgba(124,58,237,0.3);
}
[data-theme="light"] {
  --bg:#FAFAFA; --bg-2:#F4F3FF; --bg-3:#EDE9FE;
  --surface:#FFFFFF; --surface-2:rgba(255,255,255,0.85);
  --text:#0F0A1E; --text-2:#4B4570; --text-3:#5F557A;
  --violet:#7C3AED; --violet-2:#6D28D9; --violet-3:#5B21B6;
  --violet-soft:#A78BFA; --violet-pale:#EDE9FE; --accent:#7C3AED;
  --border:rgba(124,58,237,0.12); --border-2:rgba(124,58,237,0.2);
  --shadow-sm:0 1px 4px rgba(0,0,0,0.06),0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:0 4px 20px rgba(0,0,0,0.08),0 12px 40px rgba(0,0,0,0.05);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.1),0 24px 64px rgba(0,0,0,0.06);
  --shadow-violet:0 8px 32px rgba(124,58,237,0.25);
  --header-bg:rgba(250,250,250,0.88); --glow-1:rgba(124,58,237,0.08); --glow-2:rgba(167,139,250,0.05);
  --img-shadow:0 24px 64px rgba(0,0,0,0.12),0 0 0 1px rgba(124,58,237,0.1);
  --img-shadow-lg:0 40px 100px rgba(0,0,0,0.16),0 0 0 1px rgba(124,58,237,0.15);
  --img-border:rgba(124,58,237,0.15); --card-hover:0 16px 48px rgba(0,0,0,0.1),0 0 0 1px rgba(124,58,237,0.2);
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
figure { margin: 0; padding: 0; }
html { min-height: 100%; overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 1rem; top: -48px; z-index: 9999;
  background: var(--violet); color: #fff; text-decoration: none;
  padding: .5rem .75rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .18s ease;
}
.skip-link:focus-visible { top: 1rem; }

.container {
  width: min(1280px, calc(100% - 3rem));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}
#main {
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* Fil d’Ariane (aligné sur BreadcrumbList JSON-LD) */
.breadcrumb {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--text-3);
}
.breadcrumb li + li::before {
  content: '/';
  color: var(--text-3);
  font-weight: 500;
  margin-right: 0.4rem;
  text-decoration: none;
  pointer-events: none;
}
.breadcrumb a {
  color: var(--violet);
  font-weight: 500;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current='page'] {
  color: var(--text-2);
  font-weight: 600;
}
.page-hero--center .breadcrumb ol {
  justify-content: center;
}
p.breadcrumb-related,
.breadcrumb-related {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-3);
}
p.breadcrumb-related a,
.breadcrumb-related a {
  color: var(--violet);
  font-weight: 500;
  text-decoration: none;
}
p.breadcrumb-related a:hover,
.breadcrumb-related a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
/* Ancres : cible visible sous la barre sticky */
#fonctionnalites,
#impact,
#methode-retentia,
#comparatif,
#gratuit,
#plans,
#cmp-table-title,
#pour-qui-retentia,
#complementarite-outils,
#seo-queries,
#faq-tarifs,
#demarrage,
#contenu,
#premium,
#faq,
#top {
  scroll-margin-top: 5.5rem;
}

.header {
  position: sticky; top: 0; z-index: 200;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: .82rem 1.75rem;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  backdrop-filter: blur(28px) saturate(1.15);
  -webkit-backdrop-filter: blur(28px) saturate(1.15);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--border) 45%, transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .22s ease, border-color .22s ease;
}
.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.025em;
  text-decoration: none; color: var(--text);
  flex-shrink: 0;
}
.brand picture {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-img {
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(116px, 38vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}
.footer-brand .brand-img {
  max-height: 46px;
  max-width: min(104px, 42vw);
}

/* Logo header/footer : variante claire (thème blanc) vs sombre (texte blanc, fond transparent) */
.brand-img.logo-theme-light,
.auth-logo-img.logo-theme-light,
.logo-brand-img.logo-theme-light {
  display: block;
}
.brand-img.logo-theme-dark,
.auth-logo-img.logo-theme-dark,
.logo-brand-img.logo-theme-dark {
  display: none;
}
[data-theme="dark"] .brand-img.logo-theme-light,
[data-theme="dark"] .auth-logo-img.logo-theme-light,
[data-theme="dark"] .logo-brand-img.logo-theme-light {
  display: none;
}
[data-theme="dark"] .brand-img.logo-theme-dark,
[data-theme="dark"] .auth-logo-img.logo-theme-dark,
[data-theme="dark"] .logo-brand-img.logo-theme-dark {
  display: block;
}
[data-theme="light"] .brand-img.logo-theme-light,
[data-theme="light"] .auth-logo-img.logo-theme-light,
[data-theme="light"] .logo-brand-img.logo-theme-light {
  display: block;
}
[data-theme="light"] .brand-img.logo-theme-dark,
[data-theme="light"] .auth-logo-img.logo-theme-dark,
[data-theme="light"] .logo-brand-img.logo-theme-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-img.logo-theme-light,
  :root:not([data-theme="light"]) .auth-logo-img.logo-theme-light,
  :root:not([data-theme="light"]) .logo-brand-img.logo-theme-light {
    display: none;
  }
  :root:not([data-theme="light"]) .brand-img.logo-theme-dark,
  :root:not([data-theme="light"]) .auth-logo-img.logo-theme-dark,
  :root:not([data-theme="light"]) .logo-brand-img.logo-theme-dark {
    display: block;
  }
}

/* Anti-cache / fallback : une seule variante de logo doit exister visuellement. */
html[data-theme="dark"] :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-light {
  display: none !important;
}
html[data-theme="dark"] :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-dark {
  display: block !important;
}
html[data-theme="light"] :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-light {
  display: block !important;
}
html[data-theme="light"] :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-light {
    display: none !important;
  }
  html:not([data-theme]) :is(.brand-img, .auth-logo-img, .logo-brand-img).logo-theme-dark {
    display: block !important;
  }
}

.brand-dot { color: var(--violet-soft); }
.nav-links {
  display: flex; align-items: center; gap: .15rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: clamp(1rem, 3vw, 2.5rem);
}
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-links a {
  text-decoration: none; color: var(--text-3); font-weight: 500; font-size: .875rem;
  padding: .42rem .72rem; border-radius: 10px; min-height: 36px;
  display: inline-flex; align-items: center;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--violet-pale) 88%, var(--surface));
}
.nav-links > a[href$="/app"]:not(.nav-cta),
.nav-actions > a[href$="/app"]:not(.nav-cta) {
  color: color-mix(in srgb, var(--text-3) 92%, var(--muted));
  font-weight: 600;
}
.nav-links > a[href$="/app"]:not(.nav-cta):hover,
.nav-actions > a[href$="/app"]:not(.nav-cta):hover {
  color: var(--violet-600, #7c3aed);
  background: color-mix(in srgb, var(--violet-pale) 72%, transparent);
}
.nav-cta {
  background: var(--violet) !important; color: #fff !important;
  padding: .42rem 1rem !important; border-radius: 9px !important;
  font-weight: 700 !important; font-size: .875rem !important;
  box-shadow: var(--shadow-violet);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--violet-2) !important; transform: translateY(-1px); }
.theme-toggle {
  background: var(--violet-pale); border: 1px solid var(--border-2);
  border-radius: 8px; color: var(--text-3); cursor: pointer;
  font-size: .95rem; width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, color .15s; font-family: inherit;
}
.theme-toggle:hover { color: var(--violet); background: var(--bg-3); }
.nav-hamburger {
  display: none; background: var(--violet-pale); border: 1px solid var(--border-2);
  border-radius: 8px; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; padding: 0;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .24s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-top: max(clamp(3rem, 7vh, 5rem), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(3rem, 6vh, 4.5rem), env(safe-area-inset-bottom, 0px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  background:
    radial-gradient(circle at 18% 18%, var(--glow-1), transparent 34%),
    radial-gradient(circle at 82% 58%, var(--glow-2), transparent 36%);
}
.hero-glow {
  position: absolute; inset: -200px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, var(--glow-1), transparent),
    radial-gradient(ellipse 40% 40% at 80% 70%, var(--glow-2), transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
  width: 100%;
  max-width: min(1400px, 100%);
  margin: 0 auto;
  min-width: 0;
}
.hero-text {
  min-width: 0;
  max-width: 560px;
}
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-pale);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: .3rem .85rem; margin-bottom: 1.5rem;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
h1 {
  font-size: clamp(2.6rem, 4.75vw, 4rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.04em; color: var(--text);
  margin-bottom: .75rem;
}
.h1-line2 {
  background: linear-gradient(135deg, var(--violet-soft) 0%, var(--violet) 50%, #C4B5FD 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
/* Hero SEO : mot-clé en H1, accroche en H2 (même gabarit visuel que l’ancien H1 unique) */
.hero-text h1.hero-title-kw {
  font-size: clamp(2.6rem, 4.75vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 0;
}
.hero-text h1.hero-title-lead {
  font-size: clamp(2.6rem, 4.75vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--text);
  margin-top: 0;
  margin-bottom: .75rem;
}
.hero-text h2.hero-title-lead {
  font-size: clamp(2.6rem, 4.75vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--text);
  margin-top: 0;
  margin-bottom: .75rem;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-2); line-height: 1.75;
  max-width: 46ch; margin-bottom: 1rem;
}
.hero-body {
  margin-top: 1.65rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}
.hero-body .hero-desc:first-of-type {
  margin-top: 0;
}
.hero-desc--last {
  margin-bottom: 0;
}
.hero-positioning {
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 0 1.35rem;
  padding: 0.65rem 0 0.65rem 0.85rem;
  border-left: 3px solid var(--violet-soft);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 1.15rem;
  max-width: 52ch;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.cta-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.hero-text .hero-title-lead + .cta-group { margin-top: 0.35rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: inherit; font-weight: 700; font-size: .9rem;
  padding: .8rem 1.35rem; border-radius: 11px; border: 0; cursor: pointer;
  min-height: 46px; text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn-primary {
  background: var(--violet); color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { background: var(--violet-2); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,.45); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--violet-pale); color: var(--violet); border-color: var(--border-2); transform: translateY(-1px); }
.btn-light {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-light:hover { border-color: var(--violet); transform: translateY(-1px); }
.cta-note { font-size: .8rem; color: var(--text-3); margin-bottom: 0.35rem; }
.cta-note strong { color: var(--violet); font-weight: 600; }
.hero-stats {
  display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); margin-top: 1.35rem; margin-bottom: 0; flex-wrap: wrap;
}
.hstat { }
.hstat strong { display: block; font-size: 1.45rem; font-weight: 900; color: var(--text); letter-spacing: -.025em; line-height: 1.1; }
.hstat small { font-size: .75rem; color: var(--text-3); font-weight: 500; }

/* Hero image - grande, pleine largeur à droite */
.hero-media {
  position: relative;
  min-width: 0;
}
.hero-img-wrap {
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--img-shadow-lg);
  border: 1px solid var(--img-border);
  animation: float 5s ease-in-out infinite;
  width: 100%;
}
.hero-img-wrap img { width: 100%; height: auto; }
@media (min-width: 1081px) {
  .hero-inner {
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  }

  .hero-media {
    width: min(100%, 780px);
    justify-self: center;
    margin-right: 0;
  }

  .hero-img-wrap {
    border-radius: 18px;
  }

  .hero-img-wrap img {
    min-height: clamp(340px, 29vw, 500px);
    object-fit: cover;
    object-position: center center;
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ══════════════════════════════════════════
   SECTION COMMUNS
══════════════════════════════════════════ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-center { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-pale);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: .25rem .7rem; margin-bottom: .7rem;
}
.sec-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.025em;
  color: var(--text); line-height: 1.2; margin-bottom: .6rem;
}
.sec-sub { font-size: .975rem; color: var(--text-2); max-width: 52ch; }
.sec-sub.center { margin: 0 auto; }

/* ══════════════════════════════════════════
   FEATURES CARDS
══════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 2.5rem;
  min-width: 0;
}
.fcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.fcard::after {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
  opacity: .4;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--card-hover); border-color: var(--border-2); }
.fcard-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--violet-pale); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: .9rem;
}
.fcard h3 { font-size: .975rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.fcard p { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* ══════════════════════════════════════════
   STEPS
══════════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem;
  margin-top: 2.5rem; position: relative;
  min-width: 0;
}
.steps-grid::before {
  content: ''; position: absolute; top: 1.65rem;
  left: calc(16.67% + .75rem); right: calc(16.67% + .75rem); height: 1px;
  background: linear-gradient(90deg, var(--violet), rgba(124,58,237,.15), var(--violet));
  z-index: 0;
}
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--card-hover); border-color: var(--border-2); }
.step-n {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; margin-bottom: .9rem;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.step h3 { font-size: .975rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.step p { font-size: .875rem; color: var(--text-2); line-height: 1.65; }

/* ══════════════════════════════════════════
   SHOWCASE - Blocs alternés PLEIN ÉCRAN
══════════════════════════════════════════ */
.showcase { }
.showcase-block {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 4rem; align-items: center;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.showcase-block.flip { grid-template-columns: 7fr 5fr; }
.showcase-block.flip .showcase-copy { order: 2; }
.showcase-block.flip .showcase-fig  { order: 1; }

.showcase-copy,
.showcase-fig {
  min-width: 0;
}

.showcase-copy .pill { display: inline-flex; }
.showcase-copy h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800;
  color: var(--text); line-height: 1.25; letter-spacing: -.025em;
  margin-bottom: .75rem;
}
.showcase-copy p { font-size: .925rem; color: var(--text-2); line-height: 1.8; margin-bottom: .5rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .9rem; color: var(--text-2); line-height: 1.6; margin-bottom: .45rem;
}
.check-list li::before { content: '✓'; color: var(--violet); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* L'image en showcase - grande et nette */
.showcase-fig {
  position: relative;
}
.showcase-fig-img {
  width: 100%; border-radius: 14px; overflow: hidden;
  box-shadow: var(--img-shadow);
  border: 1px solid var(--img-border);
  transition: transform .3s ease, box-shadow .3s ease;
  background: var(--bg-2);
}
.showcase-fig-img:hover {
  transform: translateY(-4px) scale(1.004);
  box-shadow: var(--img-shadow-lg);
}
.showcase-fig-img img { width: 100%; height: auto; }
.fig-caption {
  margin-top: .75rem; display: flex; align-items: center; gap: .45rem;
  font-size: .75rem; color: var(--text-3);
}
.fig-caption::before { content: '●'; color: var(--violet-soft); font-size: .5rem; }

/* ══════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════ */
.stats-band {
  background: var(--violet);
  background: linear-gradient(135deg, var(--violet) 0%, #5B21B6 100%);
  border-radius: 20px; padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
  box-shadow: var(--shadow-violet);
  max-width: 100%;
  min-width: 0;
}
.stats-band-text h2 { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .2rem; }
.stats-band-text p { font-size: .875rem; color: rgba(255,255,255,.7); }
.stats-band-nums { display: flex; gap: 3rem; flex-wrap: wrap; }
.snum { text-align: center; }
.snum strong { display: block; font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.snum small { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 500; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2.5rem; min-width: 0; }
.tcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--card-hover); border-color: var(--border-2); }
.tcard-stars { color: #F59E0B; font-size: .85rem; letter-spacing: 2px; margin-bottom: .75rem; }
.tcard p { font-size: .9rem; color: var(--text-2); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.tcard footer {
  display: flex; align-items: center; gap: .55rem;
  border-top: 1px solid var(--border); padding-top: .75rem;
  font-size: .82rem; font-weight: 600; color: var(--violet);
}
.tcard-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-3));
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; color: #fff; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SEO CONTENT + SIDEBAR
══════════════════════════════════════════ */
.main-layout {
  display: block;
  width: 100%;
  min-width: 0;
}
.seo-wrap {
  width: 100%;
  min-width: 0;
}
.scard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.75rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm); scroll-margin-top: 5rem;
}
.skicker {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-pale); border: 1px solid var(--border-2);
  border-radius: 999px; padding: .2rem .6rem; margin-bottom: .6rem;
}
.scard h2 { font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: .7rem; }
.scard h3 { font-size: .975rem; font-weight: 700; color: var(--text); margin: 1.2rem 0 .45rem; }
.scard p { font-size: .9rem; color: var(--text-2); line-height: 1.8; margin: .4rem 0; }
.scard ul { padding-left: 1.2rem; margin: .4rem 0; }
.scard ul li { font-size: .9rem; color: var(--text-2); line-height: 1.7; margin-bottom: .2rem; }
.scard .note {
  background: var(--violet-pale); border-left: 3px solid var(--violet);
  border-radius: 0 8px 8px 0; padding: .7rem 1rem;
  font-size: .875rem; color: var(--text-2); margin-top: .75rem;
}

/* SEO inline image */
.seo-img {
  margin: 1.1rem 0; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.seo-img img { width: 100%; height: auto; }

.mid-cta { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.mid-cta .btn { flex: 1; min-width: 180px; }

/* Bloc CTA fin de page (home) : une action principale, liens secondaires */
.scard--cta .scard-cta-block {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.scard-cta-primary-wrap {
  display: flex;
  justify-content: center;
}
.scard-cta-primary {
  width: 100%;
  max-width: 17.5rem;
  justify-content: center;
}
.scard-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.scard-cta-links a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.scard-cta-links a:hover {
  border-bottom-color: color-mix(in srgb, var(--violet) 55%, transparent);
}
.scard-cta-sep {
  color: var(--text-3);
  user-select: none;
  font-weight: 400;
}
.scard-cta-pricing {
  margin-top: 1.5rem !important;
  width: 100%;
}
@media (max-width: 520px) {
  .scard-cta-links {
    flex-direction: column;
    gap: 0.45rem;
  }
  .scard-cta-sep {
    display: none;
  }
}

/* Table */
.tbl { overflow-x: auto; margin: .75rem 0; border-radius: 10px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: .875rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
th { background: var(--violet-pale); color: var(--violet); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 500; }
.ok { color: #059669; font-weight: 700; }

/* FAQ */
.faq details {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 11px; padding: .8rem 1rem; margin-top: .55rem;
  transition: border-color .15s;
}
.faq details[open] { border-color: var(--border-2); background: var(--surface); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  font-size: .9rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet); font-size: 1.1rem; font-weight: 700; margin-left: .75rem; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: .6rem 0 0; font-size: .875rem; color: var(--text-2); line-height: 1.7; }
.faq summary h3 {
  margin: 0; font-size: inherit; font-weight: inherit; color: inherit;
  line-height: 1.35; display: block; flex: 1; text-align: left;
}

/* Sidebar */
.snav {
  display: none;
  position: sticky; top: 5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem; box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 6rem); overflow-y: auto;
}
.snav-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: .65rem; }
.snav a {
  display: block; text-decoration: none; font-size: .825rem; color: var(--text-3);
  padding: .35rem .55rem; border-radius: 7px; margin-bottom: .15rem;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.snav a:hover { background: var(--violet-pale); color: var(--violet); }
.snav a.active { background: var(--violet-pale); color: var(--violet); font-weight: 600; border-left-color: var(--violet); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  padding: 4rem 0 2.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--surface) 97%, var(--violet-pale)) 100%
  );
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem) 2.5rem;
  margin-bottom: 2.75rem;
}
.footer-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  margin-bottom: 0;
  max-width: 22ch;
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.footer-brand-slogan {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.45;
}
.footer-col { }
.footer-col h4,
.footer-heading {
  font-size: .7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  font-size: .86rem;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 0.42rem;
  padding: 0.15rem 0;
  transition: color 0.16s ease, transform 0.16s ease;
}
.footer-col a:hover {
  color: var(--violet-600, #7c3aed);
}
@media (prefers-reduced-motion: no-preference) {
  .footer-col a:hover {
    transform: translateX(3px);
  }
}
.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  padding-top: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-bottom a { color: inherit; text-decoration: none; margin-left: .65rem; }
.footer-bottom a:hover { color: var(--violet-600, #7c3aed); }

/* Footer marketing unifié (_partials/site-footer.html) : grille type « marque + 4 colonnes » */
.footer--site .footer-grid--site {
  margin-bottom: 0;
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
.footer--site .footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer--site {
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}
.footer-bottom--solo {
  justify-content: center;
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}
.footer-bottom--solo span { margin-left: 0; }

@media (min-width: 1241px) {
  .footer--site .footer-grid--site {
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .footer--site .footer-grid--site {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer--site .footer-brand {
    grid-column: 1 / -1;
    max-width: 42rem;
  }
}
@media (max-width: 900px) {
  .footer--site .footer-grid--site {
    grid-template-columns: 1fr;
  }
  .footer--site .footer-brand {
    grid-column: auto;
    max-width: none;
  }
}

/* ══════════════════════════════════════════
   FADE-UP ANIMATION
══════════════════════════════════════════ */
.f-up { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.f-up.in { opacity: 1; transform: translateY(0); }
.f-up:nth-child(2) { transition-delay: .08s; }
.f-up:nth-child(3) { transition-delay: .16s; }

/* ══════════════════════════════════════════
   FOCUS
══════════════════════════════════════════ */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablettes (901–1240 px) */
@media (min-width: 901px) and (max-width: 1240px) {
  .features-grid,
  .steps-grid,
  .testi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid::before { display: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
/* Tablettes & petits laptops : pas de grille hero/showcase trop étroite (iPad paysage > 1080 px). */
@media (max-width: 1240px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-text {
    margin-inline: auto;
    text-align: center;
    max-width: min(560px, 100%);
  }
  .hero-text .tag {
    margin-inline: auto;
  }
  .hero-desc { margin: 0 auto 2.25rem; max-width: min(52ch, 92vw); }
  .cta-group { justify-content: center; }
  .hero-stats {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-media {
    max-width: min(700px, 94vw);
    margin: 0 auto;
    width: 100%;
  }
  .hero-img-wrap img {
    min-height: 0 !important;
    max-height: min(58vh, 480px);
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
  .showcase-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.25rem 0;
  }
  .showcase-block.flip .showcase-copy { order: 0; }
  .showcase-block.flip .showcase-fig  { order: 0; }
  .showcase-copy {
    text-align: center;
    max-width: min(52rem, 100%);
    margin-inline: auto;
  }
  .showcase-copy .check-list {
    display: inline-block;
    text-align: left;
    margin: 1rem auto 0;
    padding-left: 0;
    max-width: min(42rem, 100%);
  }
  .showcase-fig-img img {
    max-height: min(58vh, 440px);
    object-fit: contain;
    margin: 0 auto;
  }
  .showcase-fig {
    justify-self: center;
    width: 100%;
  }
  .fcard,
  .step,
  .tcard {
    text-align: center;
  }
  .fcard-icon {
    margin-inline: auto;
  }
  .step-n {
    margin-inline: auto;
  }
  .tcard footer {
    justify-content: center;
  }
  .stats-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .stats-band-text h2,
  .stats-band-text p {
    margin-inline: auto;
    max-width: 52ch;
  }
  .stats-band-nums {
    justify-content: center;
  }
  .mid-cta {
    justify-content: center;
  }
  .section { padding: 4rem 0; }
  .section-sm { padding: 2.75rem 0; }
}

/* Pages étroites mais « tablette » : grilles empilées, sans forcer le menu burger (≥768 px = iPad mini portrait). */
@media (max-width: 900px) {
  .features-grid, .steps-grid, .testi-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .stats-band { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .stats-band-nums { justify-content: center; gap: 2rem; }
  .main-layout { grid-template-columns: 1fr; }
  .snav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .mid-cta { flex-direction: column; }
  .mid-cta .btn { min-width: 0; }
}
@media (max-width: 767px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border); border-top: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: .15rem;
    margin-left: 0;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .28s ease;
  }
  .nav-links.open {
    max-height: 400px;
    padding: .65rem .75rem .95rem;
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.12);
  }
  .nav-links a { font-size: .95rem; min-height: 44px; padding: .65rem .75rem; width: 100%; }
  .nav-actions {
    width: 100%;
    margin-left: 0;
    padding-top: .35rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
  }
  .theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .nav-actions > a[href$="/app"]:not(.nav-cta),
  .nav-actions .nav-cta {
    justify-content: center;
    margin-top: 0;
    text-align: center;
    min-height: 44px;
    padding: .65rem .75rem !important;
    box-sizing: border-box;
  }
}

/* Tablette & petit portable : marges latérales utiles jusqu’aux larges où le hero passe 2 cols. */
@media (min-width: 768px) and (max-width: 1240px) {
  .container {
    width: min(1200px, calc(100% - 2.5rem));
  }
  .header {
    padding: .75rem 1rem;
  }
  .nav-links {
    margin-left: clamp(.5rem, 1.5vw, 1.25rem);
    flex-wrap: wrap;
    row-gap: .35rem;
    justify-content: flex-end;
  }
  .nav-links a {
    font-size: .8125rem;
    padding: .35rem .5rem;
    min-height: 40px;
  }
  .nav-cta {
    padding: .4rem .78rem !important;
    font-size: .8125rem !important;
  }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 2rem); }
  .hero-inner { width: 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
    max-width: none;
  }
  h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .stats-band-nums { flex-direction: column; gap: 1rem; }
  .cta-group .btn { width: 100%; }
}

@supports (padding: max(0px)) {
  .header {
    padding-left: max(1.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.75rem, env(safe-area-inset-right, 0px));
  }
  @media (min-width: 768px) and (max-width: 1240px) {
    .header {
      padding-left: max(1rem, env(safe-area-inset-left, 0px));
      padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }
  }
  @media (max-width: 767px) {
    .nav-links {
      left: calc(-1 * env(safe-area-inset-left, 0px));
      right: calc(-1 * env(safe-area-inset-right, 0px));
      padding-left: env(safe-area-inset-left, 0px);
      padding-right: env(safe-area-inset-right, 0px);
    }
  }
  @media (max-width: 540px) {
    .header {
      padding-left: max(1rem, env(safe-area-inset-left, 0px));
      padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }
  }
}

/* ══════════════════════════════════════════
   PAGES TARIFS & COMPARATIF
══════════════════════════════════════════ */
#main.page-pricing,
#main.page-comparatif {
  padding-bottom: 2.5rem;
}

.page-hero--pricing,
.page-hero--cmp {
  padding: 3rem 0 2rem;
  text-align: center;
}
.page-pricing .page-hero--pricing {
  padding-bottom: 1.35rem;
}
.page-comparatif .page-hero--cmp {
  padding-bottom: 1.35rem;
}
.page-pricing .pricing-intro-section {
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}
.page-comparatif > section.page-hero + .cmp-section {
  margin-top: 0.85rem;
}
.page-hero--pricing .breadcrumb,
.page-hero--cmp .breadcrumb {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: min(56ch, 100%);
}
.page-hero--pricing.page-hero--center .breadcrumb ol,
.page-hero--cmp.page-hero--center .breadcrumb ol {
  justify-content: flex-start;
}
.page-hero--pricing .pill,
.page-hero--cmp .pill {
  margin-bottom: 0.75rem;
}
.page-hero--pricing h1,
.page-hero--cmp h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.15;
}
.page-hero--pricing h1 {
  max-width: min(44ch, 100%);
  margin-left: auto;
  margin-right: auto;
}
.pricing-hero-subtitle {
  max-width: min(52ch, 100%);
  margin: 0.35rem auto 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
}
.pricing-intro-section {
  margin: 0 auto 2rem;
  max-width: min(52ch, 100%);
  padding: 0 0.25rem;
}
.pricing-intro-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.pricing-intro-section p {
  margin: 0 0 1rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.65;
}
.pricing-intro-section p:last-child {
  margin-bottom: 0;
}
.pricing-promo {
  margin: 0 0 2rem;
  padding: 1rem 1.35rem;
  background: linear-gradient(135deg, var(--violet-pale) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.pricing-promo--sticky {
  position: sticky;
  top: 4.75rem;
  z-index: 90;
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.14);
}
.pricing-promo p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

.pricing-compare-section {
  margin: 0 0 2rem;
}
.pricing-compare-title {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pricing-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.pricing-compare-table thead th {
  padding: 0.85rem 0.9rem;
  background: var(--bg-2);
  font-weight: 800;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.pricing-compare-table thead th:first-child {
  width: 38%;
  min-width: 9rem;
}
.pricing-compare-table thead th:last-child {
  background: color-mix(in srgb, var(--violet-pale) 72%, var(--bg-2));
}
.pricing-compare-table tbody th[scope='row'] {
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pricing-compare-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.pricing-compare-table td:last-child {
  background: color-mix(in srgb, var(--violet-pale) 38%, var(--surface));
}
.pricing-compare-table tbody tr:nth-child(even) td:last-child {
  background: color-mix(in srgb, var(--violet-pale) 48%, var(--surface));
}
.pricing-compare-table tbody tr:last-child th,
.pricing-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-compare-table .pricing-compare-cta th,
.pricing-compare-table .pricing-compare-cta td {
  vertical-align: middle;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pricing-compare-table .pricing-compare-cta td {
  background: var(--surface);
}
.pricing-compare-table .pricing-compare-cta td:last-child {
  background: color-mix(in srgb, var(--violet-pale) 55%, var(--surface));
}
.pricing-cell-note {
  font-size: 0.88rem;
  line-height: 1.45;
}
.pricing-muted {
  display: block;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 0.25rem;
}
.featured-badge.featured-badge--inline {
  margin-bottom: 0;
  margin-top: 0;
}
.featured-badge--inline {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0 0.4rem;
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  vertical-align: middle;
}
.pricing-reassurance {
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.pricing-reassurance ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.pricing-reassurance li {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.55;
}

.pricing-keep-section {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.pricing-keep-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.65rem;
}
.pricing-keep-lead {
  margin: 0 0 1rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}
.pricing-keep-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.pricing-keep-section li {
  margin: 0.4rem 0;
}
.pricing-keep-foot {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.98rem;
}

.pricing-retent20-section {
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, var(--violet-pale) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pricing-retent20-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.85rem;
}
.pricing-retent20-section p {
  margin: 0 0 0.85rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
}
.pricing-retent20-section p:last-child {
  margin-bottom: 0;
}

.pricing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .pricing-compare-table thead th:last-child {
    background: var(--violet-pale);
  }
  .pricing-compare-table td:last-child {
    background: var(--violet-pale);
  }
  .pricing-compare-table tbody tr:nth-child(even) td:last-child {
    background: var(--violet-pale);
  }
  .pricing-compare-table .pricing-compare-cta td:last-child {
    background: var(--violet-pale);
  }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 0 0 2.25rem;
  min-width: 0;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
  opacity: 0.45;
}
.pricing-card.featured {
  border-color: var(--violet);
  box-shadow: var(--shadow-violet), 0 0 0 1px var(--violet);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
  border-color: var(--border-2);
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-pale);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 1rem;
}
.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-3);
}
.plan-price-note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.plan-note {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.plan-note--plus {
  margin-top: -0.5rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  color: var(--text);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.feature-list li {
  color: var(--text-2);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}
.feature-list li::before {
  content: '✓';
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.feature-list li.limited::before {
  content: '○';
  color: var(--text-3);
}
.feature-list li.feature-highlight {
  font-weight: 600;
  color: var(--text);
}
.pricing-card .btn-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
}

.faq-section {
  margin: 0.5rem 0 2rem;
}
.faq-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}
.faq-list details {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 0.65rem;
  transition: border-color 0.15s;
}
.faq-list details[open] {
  border-color: var(--border-2);
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.93rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  color: var(--violet);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.faq-list details[open] summary::after {
  content: '−';
}
.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-list summary h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1.4;
  display: block;
  flex: 1;
  text-align: left;
}

/* Comparatif */
.page-hero--cmp .cmp-hero-intro {
  max-width: min(54ch, 100%);
  margin: 0.75rem auto 0;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 1rem;
}
.page-hero--cmp .cmp-hero-intro + .cmp-hero-intro {
  margin-top: 0.65rem;
}
.page-hero--cmp .cmp-hero-intro a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cmp-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}
.cmp-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.cmp-section p,
.cmp-section li {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.7;
}

.cmp-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0;
  align-items: stretch;
}
.cmp-two-col .cmp-section {
  margin-top: 0;
  margin-bottom: 0;
}
.cmp-section--philosophies {
  border-color: var(--border-2);
  background: var(--bg-2);
  box-shadow: none;
}

.tbl-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.cmp-table th,
.cmp-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.cmp-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-2) 65%, transparent);
}
.cmp-table thead th {
  background: var(--bg-2);
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}
.cmp-table th:last-child,
.cmp-table td:last-child {
  background: color-mix(in srgb, var(--violet-pale) 55%, var(--surface));
}
.cmp-table thead th:last-child {
  background: color-mix(in srgb, var(--violet-pale) 70%, var(--bg-2));
}
.cmp-table tbody tr:last-child td {
  border-bottom: none;
}
.cmp-table .cmp-row-summary td {
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--violet-pale) 35%, var(--surface));
}
.cmp-table .cmp-row-summary td:last-child {
  background: color-mix(in srgb, var(--violet-pale) 60%, var(--surface));
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .cmp-table tbody tr:nth-child(even) {
    background: var(--bg-2);
  }
  .cmp-table th:last-child,
  .cmp-table td:last-child {
    background: var(--violet-pale);
  }
  .cmp-table thead th:last-child {
    background: var(--violet-pale);
  }
  .cmp-table .cmp-row-summary td {
    background: var(--bg-2);
  }
  .cmp-table .cmp-row-summary td:last-child {
    background: var(--violet-pale);
  }
}

@media (max-width: 680px) {
  .cmp-table th:first-child,
  .cmp-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 4px 0 12px -4px rgba(0, 0, 0, 0.08);
    background: var(--surface);
  }
  .cmp-table tbody th:first-child {
    font-weight: 600;
  }
  .cmp-table thead th:first-child {
    background: var(--bg-2);
    z-index: 2;
  }
  .cmp-table tbody tr:nth-child(even) td:first-child,
  .cmp-table tbody tr:nth-child(even) th:first-child {
    background: var(--surface);
  }
}

/* Comparatif : ordre des colonnes RetentIA | Quizlet | Anki (accent sur RetentIA) */
.cmp-table.cmp-table--ret-first th:nth-child(2),
.cmp-table.cmp-table--ret-first td:nth-child(2) {
  background: color-mix(in srgb, var(--violet-pale) 55%, var(--surface));
}
.cmp-table.cmp-table--ret-first thead th:nth-child(2) {
  background: color-mix(in srgb, var(--violet-pale) 70%, var(--bg-2));
}
.cmp-table.cmp-table--ret-first th:last-child,
.cmp-table.cmp-table--ret-first td:last-child {
  background: transparent;
}
.cmp-table.cmp-table--ret-first thead th:last-child {
  background: var(--bg-2);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .cmp-table.cmp-table--ret-first th:nth-child(2),
  .cmp-table.cmp-table--ret-first td:nth-child(2) {
    background: var(--violet-pale);
  }
  .cmp-table.cmp-table--ret-first thead th:nth-child(2) {
    background: var(--violet-pale);
  }
}

.cmp-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.65;
}
.cmp-note a {
  color: var(--violet);
  font-weight: 500;
}

.cmp-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.cmp-footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 2.25rem 0 1rem;
}
.cmp-cta-block {
  text-align: center;
  margin: 2.5rem 0 1rem;
}
.cmp-cta-block .cmp-footer-cta {
  margin-top: 0;
  margin-bottom: 0;
}
.cmp-cta-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.cmp-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.5rem;
}
.cmp-section .cmp-lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.65;
}
.cmp-section--philosophies p {
  margin: 0 0 0.85rem;
}
.cmp-section--philosophies p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card .btn-row .btn {
    flex: 1;
    min-width: 140px;
  }
  .cmp-two-col {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   ACCUEIL PREMIUM (index uniquement, .home-premium)
══════════════════════════════════════════ */
.home-premium .hero {
  padding-bottom: max(clamp(4rem, 8vh, 6rem), env(safe-area-inset-bottom, 0px));
}
.home-premium .hero-inner {
  gap: clamp(2.5rem, 5vw, 5.25rem);
  max-width: min(1320px, 100%);
}
.home-premium .hero-img-wrap {
  border-radius: 22px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.06),
    0 28px 56px -16px rgba(124, 58, 237, 0.28),
    0 0 0 1px color-mix(in srgb, var(--violet-soft) 40%, transparent);
}
@media (min-width: 1081px) {
  .home-premium .hero-img-wrap img {
    object-position: center top;
  }
}
.home-premium .hero-stats {
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}
.home-premium .hero-body {
  border-top-color: color-mix(in srgb, var(--border) 70%, var(--violet-soft));
}
.home-premium .hero-stats .hstat {
  background: color-mix(in srgb, var(--surface) 92%, var(--violet-pale));
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--violet-soft));
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  min-width: 6.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-premium .hero-stats .hstat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--violet-soft) 55%, var(--border));
  box-shadow: 0 10px 28px -8px rgba(124, 58, 237, 0.22);
}
.home-premium .tag {
  border-radius: 999px;
  padding: 0.38rem 1rem;
  box-shadow: 0 1px 2px rgba(124, 58, 237, 0.08);
}
.home-premium .sec-title {
  letter-spacing: -0.03em;
}
.home-premium .pill {
  letter-spacing: 0.12em;
  padding: 0.32rem 0.85rem;
}

.home-premium .fcard {
  border-radius: 20px;
  padding: 1.65rem 1.8rem;
  background: linear-gradient(
    165deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 96%, var(--violet-pale)) 100%
  );
  border-color: color-mix(in srgb, var(--border) 75%, var(--violet-soft));
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px -12px rgba(124, 58, 237, 0.12);
}
.home-premium .fcard:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 44px -14px rgba(124, 58, 237, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.05);
}
.home-premium .fcard-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.15);
}
.home-premium .fcard h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.home-premium .fcard p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.home-premium .step {
  border-radius: 20px;
  padding: 1.65rem 1.75rem;
  border-color: color-mix(in srgb, var(--border) 80%, var(--violet-soft));
  box-shadow: 0 8px 28px -10px rgba(124, 58, 237, 0.12);
}
.home-premium .step-n {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.85rem;
}

.home-premium .showcase-block {
  padding: 5rem 0;
  border-top-color: color-mix(in srgb, var(--border) 65%, transparent);
}
.home-premium .showcase-block:first-child {
  border-top: none;
  padding-top: 3.5rem;
}
.home-premium .showcase-fig-img {
  border-radius: 18px;
  box-shadow:
    0 16px 40px -12px rgba(0, 0, 0, 0.12),
    0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
}

.home-premium .stats-band {
  border-radius: 24px;
  padding: 2.85rem 3.25rem;
  box-shadow:
    0 28px 56px -18px rgba(91, 33, 182, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.home-premium .stats-band-text h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.home-premium .tcard {
  border-radius: 20px;
  padding: 1.65rem 1.75rem;
  border-color: color-mix(in srgb, var(--border) 78%, var(--violet-soft));
  box-shadow: 0 10px 36px -14px rgba(124, 58, 237, 0.1);
}
.home-premium .tcard:hover {
  transform: translateY(-5px);
}

.home-premium .scard {
  border-radius: 20px;
  padding: 2rem 2rem 2.1rem;
  border-color: color-mix(in srgb, var(--border) 85%, var(--violet-soft));
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 16px 40px -16px rgba(124, 58, 237, 0.1);
}
.home-premium .scard h2 {
  letter-spacing: -0.025em;
}
.home-premium .tbl table {
  border-radius: 12px;
  overflow: hidden;
}

.home-premium .cta-note {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

@media (max-width: 680px) {
  .home-premium .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }
  .home-premium .hero-stats .hstat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
  }
  .home-premium .hero-stats .hstat strong {
    font-size: 1.35rem;
  }
}

/* --- Blog (hub + articles) --- */
.page-blog .blog-hero-lead {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.blog-index-list {
  padding: 0 0 2.5rem;
}

.blog-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .blog-cards:not(.blog-cards--minimal) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 100%;
  padding: 1.5rem 1.65rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--violet-soft));
  background: linear-gradient(
    165deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 94%, var(--violet-pale)) 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -16px rgba(124, 58, 237, 0.12);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--border) 70%, var(--violet-soft));
  box-shadow:
    0 18px 44px -14px rgba(124, 58, 237, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-card h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  flex: 1;
}

.blog-card-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--violet-600, #7c3aed);
}

.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet-600, #7c3aed);
}

.blog-index-cross {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* Hub blog - DA premium (hero + grille + ressources) */
#main.page-blog--hub {
  padding-bottom: 3rem;
}

.page-hero--blog {
  position: relative;
  padding: 2.65rem 0 2.25rem;
  text-align: center;
}
.page-hero--blog::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 65% at 50% 0%,
    color-mix(in srgb, var(--violet-pale) 55%, transparent) 0%,
    transparent 62%
  );
  opacity: 0.95;
}
.page-hero--blog .breadcrumb {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: min(56ch, 100%);
}
.page-hero--blog.page-hero--center .breadcrumb ol {
  justify-content: flex-start;
}
.page-hero--blog .pill {
  margin-bottom: 0.75rem;
}
.page-hero--blog h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  color: var(--text);
  max-width: min(40ch, 100%);
  margin-left: auto;
  margin-right: auto;
}
.page-blog--hub .blog-hero-lead {
  max-width: min(46ch, 100%);
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.68;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.blog-hub-heading {
  margin: 0 auto 1.65rem;
  max-width: min(42rem, 100%);
  text-align: center;
}
.blog-hub-heading-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.12rem, 2.2vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}
.blog-hub-heading-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-2);
}

.blog-card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.blog-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--violet-pale) 72%, var(--surface));
  color: var(--violet-600, #7c3aed);
  border: 1px solid color-mix(in srgb, var(--border) 55%, var(--violet-soft));
}
.blog-card-date {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.blog-card--guide {
  box-shadow:
    inset 3px 0 0 0 var(--violet-600, #7c3aed),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -16px rgba(124, 58, 237, 0.12);
}
.blog-card--method {
  box-shadow:
    inset 3px 0 0 0 #8b5cf6,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -16px rgba(124, 58, 237, 0.12);
}
.blog-card--formats {
  box-shadow:
    inset 3px 0 0 0 #a78bfa,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -16px rgba(124, 58, 237, 0.12);
}
.blog-card--guide:hover,
.blog-card--method:hover,
.blog-card--formats:hover {
  box-shadow:
    inset 3px 0 0 0 var(--violet-600, #7c3aed),
    0 18px 44px -14px rgba(124, 58, 237, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.05);
}
.blog-card--method:hover {
  box-shadow:
    inset 3px 0 0 0 #8b5cf6,
    0 18px 44px -14px rgba(124, 58, 237, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.05);
}
.blog-card--formats:hover {
  box-shadow:
    inset 3px 0 0 0 #a78bfa,
    0 18px 44px -14px rgba(124, 58, 237, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-card-cta-label::after {
  content: '\2192';
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.18s ease;
  font-weight: 700;
  opacity: 0.85;
}
.blog-card:hover .blog-card-cta-label::after {
  transform: translateX(3px);
}

.blog-card:focus-visible {
  outline: 2px solid var(--violet-600, #7c3aed);
  outline-offset: 3px;
}

.blog-hub-next {
  margin-top: 0.25rem;
}
.blog-hub-next-title {
  text-align: center;
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
}
.blog-hub-next-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: min(46ch, 100%);
}

.blog-hub-resources {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .blog-hub-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .blog-hub-resources {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.blog-hub-resource {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--violet-soft));
  background: linear-gradient(
    165deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 93%, var(--violet-pale)) 100%
  );
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 32px -18px rgba(124, 58, 237, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.blog-hub-resource:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--border) 62%, var(--violet-soft));
  box-shadow:
    0 18px 44px -14px rgba(124, 58, 237, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.05);
}
.blog-hub-resource:focus-visible {
  outline: 2px solid var(--violet-600, #7c3aed);
  outline-offset: 3px;
}
.blog-hub-resource-label {
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}
.blog-hub-resource-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-2);
}

.blog-hub-resource--accent {
  border-color: color-mix(in srgb, var(--violet-600, #7c3aed) 38%, var(--border));
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--violet-pale) 88%, var(--surface)) 0%,
    color-mix(in srgb, var(--surface) 94%, var(--violet-pale)) 100%
  );
  box-shadow:
    0 12px 36px -14px rgba(124, 58, 237, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.05);
}
.blog-hub-resource--accent .blog-hub-resource-label {
  color: var(--violet-600, #7c3aed);
}
.blog-hub-resource--accent .blog-hub-resource-desc {
  color: color-mix(in srgb, var(--text-2) 88%, var(--violet-600, #7c3aed));
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover,
  .blog-hub-resource:hover {
    transform: none;
  }
  .blog-card:hover .blog-card-cta-label::after {
    transform: none;
  }
}

/* Hub blog - liste épurée (sans catégories ni bloc ressources) */
#main.page-blog--hub-minimal {
  padding-bottom: 2rem;
  padding-top: 0.35rem;
}
.page-blog--hub-minimal .page-hero--blog {
  padding: 1.85rem 0 1.4rem;
  text-align: left;
}
.page-blog--hub-minimal .page-hero--blog::before {
  opacity: 0.38;
}
.page-blog--hub-minimal .page-hero--blog .breadcrumb {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.page-blog--hub-minimal .page-hero--blog.page-hero--center .breadcrumb ol {
  justify-content: flex-start;
}
.page-blog--hub-minimal .page-hero--blog h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 750;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.page-blog--hub-minimal .blog-hero-lead {
  margin: 0;
  max-width: min(36rem, 100%);
  font-size: 0.94rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}
.page-blog--hub-minimal .blog-index-list {
  padding: 0.25rem 0 1.5rem;
}
.blog-cards.blog-cards--minimal {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: min(38rem, 100%);
  margin-left: auto;
  margin-right: auto;
}
.page-blog--hub-minimal .blog-card {
  height: auto;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  box-shadow: none;
  background: transparent;
  padding: 1.2rem 0;
  gap: 0.45rem;
  transition: background 0.15s ease;
}
.page-blog--hub-minimal .blog-card:hover {
  transform: none;
  box-shadow: none;
  border-color: color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 96%, var(--violet-pale));
}
.page-blog--hub-minimal .blog-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}
.page-blog--hub-minimal .blog-card-meta {
  margin: 0 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-3);
}
.page-blog--hub-minimal .blog-card-meta time {
  color: inherit;
}
.page-blog--hub-minimal .blog-card p {
  flex: none;
}
.page-blog--hub-minimal .blog-card > p:last-of-type {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 80%, var(--muted));
}

.page-blog--hub-minimal .blog-hub-resources {
  margin: 0;
  padding: 1.35rem 0 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  max-width: min(38rem, 100%);
  margin-left: auto;
  margin-right: auto;
}
.page-blog--hub-minimal .blog-hub-resources p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  text-align: center;
  line-height: 1.55;
}
.page-blog--hub-minimal .blog-hub-resources a {
  color: var(--violet-600, #7c3aed);
  text-decoration: none;
  font-weight: 600;
}
.page-blog--hub-minimal .blog-hub-resources a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Articles blog - gabarit lecture premium (DA RetentIA) */
.blog-article {
  padding: 0 0 3.75rem;
  max-width: min(46rem, 100%);
  margin: 0 auto;
}

.blog-article-hero {
  position: relative;
  padding: 2.35rem 0 2.5rem;
  margin: 0 0 0;
}
.blog-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 88% 70% at 50% 0%,
    color-mix(in srgb, var(--violet-pale) 52%, transparent) 0%,
    transparent 58%
  );
  opacity: 0.98;
}

.blog-article .breadcrumb {
  margin-bottom: 1.1rem;
  max-width: min(56ch, 100%);
}

.blog-article-header {
  max-width: min(42rem, 100%);
}

.blog-article-header h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin: 0.35rem 0 0.6rem;
  color: var(--text);
}

.blog-article-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 58%, var(--muted));
}
.blog-article-meta time {
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.blog-article-body {
  margin-top: 2.35rem;
  padding-top: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.blog-article-lead,
.blog-article-body > .cmp-lead:first-of-type {
  margin: 0 0 1.35rem;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.72;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.blog-article-body h2 {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  font-weight: 750;
  margin: 2.15rem 0 0.7rem;
  letter-spacing: -0.025em;
  color: var(--text);
}

.blog-article-body p {
  margin: 0 0 1.05rem;
  line-height: 1.78;
  color: color-mix(in srgb, var(--text) 94%, var(--muted));
}

.blog-article:not(.blog-article--longform) .blog-article-body {
  padding-bottom: 0.25rem;
}

.blog-article:not(.blog-article--longform) .blog-article-body p:last-child {
  margin-bottom: 0;
}

.blog-article-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1.65rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  font-size: 0.94rem;
  font-weight: 600;
}
.blog-article-links a {
  color: var(--violet-600, #7c3aed);
  text-decoration: none;
}
.blog-article-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article-links .blog-article-links-sep {
  color: color-mix(in srgb, var(--text) 35%, var(--muted));
  font-weight: 500;
  user-select: none;
}

/* Hub blog : trois cartes sur grand écran */
@media (min-width: 1024px) {
  .blog-cards:not(.blog-cards--minimal) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Article long (guide SEO) */
.blog-article--longform {
  max-width: min(48rem, 100%);
}

.blog-article--longform .blog-article-body h2 {
  font-size: clamp(1.14rem, 2.15vw, 1.38rem);
  font-weight: 800;
  margin-top: 2.65rem;
  margin-bottom: 0.75rem;
  padding: 0 0 0 1rem;
  border-left: 4px solid color-mix(in srgb, var(--violet-600, #7c3aed) 92%, var(--border));
  border-top: none;
  padding-top: 0;
  letter-spacing: -0.028em;
  line-height: 1.28;
  color: var(--text);
}

.blog-article--longform .blog-article-body h3 {
  font-size: clamp(1rem, 1.35vw, 1.06rem);
  font-weight: 700;
  margin: 1.55rem 0 0.5rem;
  letter-spacing: -0.018em;
  color: color-mix(in srgb, var(--text) 96%, var(--violet-600, #7c3aed));
}

.blog-article--longform .blog-article-body ul {
  margin: 0 0 1.05rem;
  padding-left: 1.35rem;
}

.blog-article--longform .blog-article-body li {
  margin-bottom: 0.42rem;
  line-height: 1.68;
  padding-left: 0.15rem;
}
.blog-article--longform .blog-article-body li::marker {
  color: color-mix(in srgb, var(--violet-600, #7c3aed) 65%, var(--muted));
}

.blog-article--longform .blog-article-body a {
  color: color-mix(in srgb, var(--violet-600, #7c3aed) 92%, var(--text));
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.blog-article--longform .blog-article-body a:hover {
  color: var(--violet-600, #7c3aed);
}
.blog-article--longform .blog-article-body .blog-toc a {
  font-weight: inherit;
  text-decoration: none;
}
.blog-article--longform .blog-article-body .blog-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article--longform .blog-article-body .blog-cta .blog-cta-actions a {
  font-weight: 600;
  text-decoration: none;
}
/* Les liens « corps d’article » ont une spécificité plus forte que .btn-primary seul : on rétablit les couleurs des CTA. */
.blog-article--longform .blog-article-body .blog-cta .blog-cta-actions a.btn-primary {
  color: #fff;
  background: var(--violet);
  border: 0;
  box-shadow: var(--shadow-violet);
}
.blog-article--longform .blog-article-body .blog-cta .blog-cta-actions a.btn-primary:hover {
  color: #fff;
  background: var(--violet-2);
}
.blog-article--longform .blog-article-body .blog-cta .blog-cta-actions a.btn-ghost {
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  box-shadow: none;
}
.blog-article--longform .blog-article-body .blog-cta .blog-cta-actions a.btn-ghost:hover {
  color: var(--violet);
  background: var(--violet-pale);
  border-color: var(--border-2);
}
.blog-article--longform .blog-article-body .blog-micro-cta a {
  font-weight: 600;
  color: var(--violet-600, #7c3aed);
  text-decoration: none;
}
.blog-article--longform .blog-article-body .blog-micro-cta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-toc {
  margin: 1.75rem 0 2.15rem;
  padding: 1.25rem 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, var(--violet-soft));
  background: linear-gradient(
    152deg,
    color-mix(in srgb, var(--surface) 96%, var(--violet-pale)) 0%,
    var(--surface) 48%,
    color-mix(in srgb, var(--surface) 94%, var(--violet-pale)) 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 40px -18px rgba(124, 58, 237, 0.16);
}

.blog-toc strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet-600, #7c3aed);
  margin-bottom: 0.15rem;
}

.blog-toc ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.blog-toc li {
  margin-bottom: 0.35rem;
  line-height: 1.55;
}

.blog-toc a {
  color: color-mix(in srgb, var(--text) 55%, var(--violet-600, #7c3aed));
  font-weight: 600;
  text-decoration: none;
}

.blog-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-cta {
  margin: 1.45rem 0;
  padding: 1.25rem 1.4rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--violet-soft));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 97%, var(--violet-pale)) 0%,
    var(--surface) 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 36px -16px rgba(124, 58, 237, 0.14);
}

.blog-cta p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.96rem;
}

.blog-cta--primary {
  border-color: color-mix(in srgb, var(--border) 55%, var(--violet-soft));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 88%, var(--violet-pale)) 0%,
    var(--surface) 55%
  );
  box-shadow:
    0 4px 14px rgba(124, 58, 237, 0.12),
    0 18px 44px -18px rgba(124, 58, 237, 0.28);
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.blog-cta-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
  justify-content: center;
  text-align: center;
}

.blog-micro-cta {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem 0.9rem 1rem;
  border-left: 3px solid var(--violet-600, #7c3aed);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--surface) 90%, var(--violet-pale));
  font-size: 0.94rem;
  line-height: 1.65;
}

.blog-micro-cta a {
  font-weight: 600;
  color: var(--violet-600, #7c3aed);
}

.blog-figure {
  margin: 1.55rem 0 1.75rem;
}

.blog-figure--panel {
  padding: 0.55rem 0.55rem 0.65rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--violet-soft));
  background: linear-gradient(
    168deg,
    color-mix(in srgb, var(--surface) 94%, var(--violet-pale)) 0%,
    var(--surface) 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 42px -20px rgba(124, 58, 237, 0.14);
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow: 0 10px 32px -16px rgba(0, 0, 0, 0.14);
  background: color-mix(in srgb, var(--surface) 92%, var(--border));
}

.blog-figure--panel img {
  border-radius: 13px;
}

.blog-figure figcaption {
  margin-top: 0.65rem;
  padding: 0 0.15rem 0 0.65rem;
  border-left: 3px solid color-mix(in srgb, var(--violet-600, #7c3aed) 55%, transparent);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.blog-article--longform .blog-article-body .tbl-wrap {
  margin: 1.15rem 0 1.5rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, var(--violet-soft));
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 36px -22px rgba(124, 58, 237, 0.12);
}
.blog-article--longform .blog-article-body .tbl-wrap .cmp-table {
  margin: 0;
}

.blog-faq {
  margin-top: 3rem;
  padding: 1.85rem 1.25rem 1.5rem;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--violet-soft));
  background: linear-gradient(
    175deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 96%, var(--violet-pale)) 100%
  );
  box-shadow: 0 14px 40px -20px rgba(124, 58, 237, 0.1);
}

.blog-faq > h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.blog-faq-item {
  padding: 1.05rem 0.65rem 1.15rem;
  margin: 0 -0.35rem;
  border-radius: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  transition: background 0.15s ease;
}
.blog-faq-item:hover {
  background: color-mix(in srgb, var(--surface) 88%, var(--violet-pale));
}

.blog-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.blog-faq-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-faq-item p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.68;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

.blog-article-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
}

.blog-article-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--violet-600, #7c3aed);
  text-decoration: none;
  padding: 0.45rem 0.85rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 65%, var(--violet-soft));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface) 94%, var(--violet-pale)),
    var(--surface)
  );
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.blog-article-back a::before {
  content: '\2190';
  font-size: 1rem;
  opacity: 0.85;
}

.blog-article-back a:hover {
  border-color: color-mix(in srgb, var(--border) 48%, var(--violet-soft));
  box-shadow: 0 10px 28px -16px rgba(124, 58, 237, 0.22);
}

#main.page-blog--article {
  overflow-x: visible;
}