/* =========================================================
   VACBOTSHOP — Design System 2026
   Font : Poppins | Colors : Indigo/Violet
   ========================================================= */

/* ── Variables ── */
:root {
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --surface-soft: #f1f5f9;
  --border:       rgba(15,23,42,.07);

  --text:   #0f172a;
  --muted:  #64748b;

  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --brand-soft: rgba(79,70,229,.1);
  --brand-glow: rgba(79,70,229,.3);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 4px rgba(15,23,42,.05);
  --shadow-sm: 0 4px 20px rgba(15,23,42,.08);
  --shadow-md: 0 12px 40px rgba(15,23,42,.13);
  --shadow-lg: 0 24px 64px rgba(15,23,42,.17);

  --max: 1180px;
  --pad: 24px;

  --font: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t:   0.28s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand); color: #fff; }

.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-2); }
img { max-width: 100%; height: auto; display: block; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes slideLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.03em;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--brand-glow);
  flex-shrink: 0;
  animation: float 4s ease-in-out infinite;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav a {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}
.nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav a.active,
.nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

/* ══════════════════════════════════════
   HERO — Page d'accueil
══════════════════════════════════════ */
.hero {
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #f0fdf4 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 15% 35%, rgba(79,70,229,.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 85% 65%, rgba(124,58,237,.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeUp .8s var(--ease) both;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(79,70,229,.1);
  border: 1px solid rgba(79,70,229,.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 28px;
  animation: fadeIn .6s .1s both;
}
.hero__badge::before { content: '✦'; font-size: 10px; }

.hero__title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 22px;
}
.hero__title span {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.65;
  animation: fadeUp .7s .15s var(--ease) both;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .25s var(--ease) both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 22px var(--brand-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,70,229,.45);
  color: #fff;
}
.btn--outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { padding: 76px 0; }
.section--gray { background: var(--surface-soft); }

.section-header { margin-bottom: 52px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 12px;
}
.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   CATEGORY CARDS — Accueil
══════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
@media (min-width: 980px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid .cat-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
  }
  .categories-grid .cat-card:nth-last-child(2):nth-child(3n+1),
  .categories-grid .cat-card:nth-last-child(2):nth-child(3n+1) ~ .cat-card {
    grid-column: span 1;
  }
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: all var(--t);
}
.cat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79,70,229,.15);
  color: var(--text);
}
.cat-card:hover::after { transform: scaleX(1); }

.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: transform var(--t);
}
.cat-card:hover .cat-card__icon { transform: scale(1.08) rotate(-3deg); }

.cat-card__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.cat-card__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.cat-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-top: 6px;
  transition: gap var(--t);
}
.cat-card:hover .cat-card__arrow { gap: 10px; }

/* ══════════════════════════════════════
   PAGE HERO — Pages catégories
══════════════════════════════════════ */
.page-hero {
  padding: 60px 0 52px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: fadeIn .5s both;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 5% 50%, rgba(79,70,229,.09) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { opacity: .5; }

.page-hero__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 16px;
  animation: fadeUp .6s .05s var(--ease) both;
}
.page-hero__desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.65;
  animation: fadeUp .6s .12s var(--ease) both;
}

/* ══════════════════════════════════════
   ARTICLE CARDS — Pages catégories
══════════════════════════════════════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t);
  border-radius: 0 2px 2px 0;
}
.article-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(79,70,229,.18);
  color: var(--text);
}
.article-card:hover::before { transform: scaleY(1); }

.article-card__num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--t);
}
.article-card:hover .article-card__num {
  background: var(--brand);
  color: #fff;
}
.article-card__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}
.article-card__icon {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 16px;
  transition: all var(--t);
}
.article-card:hover .article-card__icon {
  color: var(--brand);
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   FAQ — Pages catégories (tablist / card style)
══════════════════════════════════════ */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xs);
}
.faq-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.faq-section > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
  transition: all var(--t);
}
.faq-item:hover {
  border-color: rgba(79,70,229,.18);
  box-shadow: var(--shadow-sm);
}

.faq-item details { }
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  transition: color var(--t);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: all var(--t);
  margin-top: 1px;
}
.faq-item details[open] summary {
  color: var(--brand);
}
.faq-item details[open] summary::after {
  content: '−';
  background: var(--brand);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item details > p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  animation: fadeUp .3s var(--ease) both;
}

/* Old tablist support (category pages) */
[role="tablist"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[role="tablist"] .row { margin: 0; }
[role="tablist"] .col-md-10 { padding: 0; max-width: 100%; flex: 0 0 100%; }

[role="tablist"] .card-plain.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
  transition: all var(--t);
}
[role="tablist"] .card-plain.card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(79,70,229,.18);
}
[role="tablist"] .card-plain.card [role="tab"] {
  padding: 18px 56px 18px 20px;
  position: relative;
}
[role="tablist"] .card-plain.card [role="tab"] .title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
[role="tablist"] .card-plain.card [role="tab"] .description {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
[role="tablist"] .card-plain.card [role="tab"]::after {
  content: '→';
  position: absolute;
  top: 18px; right: 18px;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: all var(--t);
}
[role="tablist"] .card-plain.card:hover [role="tab"]::after {
  background: var(--brand);
  color: #fff;
}

/* ══════════════════════════════════════
   ARTICLE PAGE — body > header/main/footer
══════════════════════════════════════ */
body > header {
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .6s var(--ease) both;
}
body > header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 0% 50%, rgba(79,70,229,.08) 0%, transparent 65%);
  pointer-events: none;
}
body > header > * {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin-bottom: 14px;
}
body > header h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--text);
}
.meta {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.single-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 100px;
  padding: 6px 14px;
  transition: all var(--t);
  text-decoration: none;
}
.single-link::before { content: '←'; }
.single-link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

body > main {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  padding: 44px 0 72px;
  animation: fadeUp .7s .1s var(--ease) both;
}
body > main h2 {
  font-size: clamp(22px, 2.8vw, 29px);
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 44px 0 14px;
  color: var(--text);
}
body > main h2:first-child { margin-top: 0; }
body > main h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 30px 0 11px;
  color: var(--text);
}
body > main p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.8;
}
body > main ul, body > main ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
body > main li { margin: 8px 0; color: var(--muted); }

/* Note box */
.note, section.note {
  background: linear-gradient(135deg, rgba(79,70,229,.06), rgba(124,58,237,.04));
  border: 1px solid rgba(79,70,229,.18);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.note p, section.note p { margin: 0; font-size: 14.5px; color: var(--text); }

/* Divider */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 44px 0;
}

/* KPI blocks */
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.kpi > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--t);
}
.kpi > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kpi strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brand);
  margin-bottom: 6px;
}
.kpi p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* FAQ dans les articles */
section.faq,
section[aria-label*="FAQ"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 44px 0;
  box-shadow: var(--shadow-xs);
}
section.faq h2,
section[aria-label*="FAQ"] h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
section.faq details,
section[aria-label*="FAQ"] details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all var(--t);
}
section.faq details:hover,
section[aria-label*="FAQ"] details:hover {
  border-color: rgba(79,70,229,.18);
  box-shadow: var(--shadow-sm);
}
section.faq summary,
section[aria-label*="FAQ"] summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--t);
}
section.faq summary::-webkit-details-marker,
section[aria-label*="FAQ"] summary::-webkit-details-marker { display: none; }
section.faq summary::after,
section[aria-label*="FAQ"] summary::after {
  content: '+';
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all var(--t);
  margin-top: 1px;
}
section.faq details[open] summary,
section[aria-label*="FAQ"] details[open] summary { color: var(--brand); }
section.faq details[open] summary::after,
section[aria-label*="FAQ"] details[open] summary::after {
  content: '−';
  background: var(--brand);
  color: #fff;
}
section.faq details p,
section[aria-label*="FAQ"] details p {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.75;
  animation: fadeUp .3s var(--ease) both;
}

/* TOC dans les articles */
section.toc,
section[aria-label*="Sommaire"] {
  background: linear-gradient(135deg, rgba(79,70,229,.06), transparent);
  border: 1px solid rgba(79,70,229,.14);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 36px 0;
}
section.toc h3,
section[aria-label*="Sommaire"] h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand);
  margin: 0 0 14px;
}
section.toc ul,
section[aria-label*="Sommaire"] ul { padding: 0; list-style: none; margin: 0; }
section.toc li,
section[aria-label*="Sommaire"] li {
  margin: 7px 0;
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  transition: color var(--t);
}
section.toc li::before,
section[aria-label*="Sommaire"] li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-size: 11px;
  top: 2px;
}
section.toc li:hover,
section[aria-label*="Sommaire"] li:hover { color: var(--brand); }

/* Footer article */
body > footer {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  padding: 24px 0 44px;
  border-top: 1px solid var(--border);
}
body > footer p { font-size: 13px; color: var(--muted); margin: 0; }

/* ══════════════════════════════════════
   RELATED CATEGORIES
══════════════════════════════════════ */
.related-section { padding: 56px 0 72px; }
.related-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.related-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-cat-link {
  padding: 9px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  transition: all var(--t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.related-cat-link:hover {
  background: var(--brand-soft);
  border-color: rgba(79,70,229,.25);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 0 36px;
  margin-top: 0;
}
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer__logo {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  font-size: 15px;
}
.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer__links a {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--t);
}
.site-footer__links a:hover { color: var(--brand); }
.site-footer__copy {
  width: 100%;
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ══════════════════════════════════════
   ABOUT STRIP
══════════════════════════════════════ */
.about-strip {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.about-strip::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.about-strip__inner { position: relative; z-index: 1; }
.about-strip h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  color: #fff;
}
.about-strip p {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   WRAPPER (ancienne structure)
══════════════════════════════════════ */
.wrapper { min-height: 100vh; }
.section-about-us { padding: 0; }
.page-header { display: none !important; }

.container { /* défini plus haut */ }
.row { width: 100%; }
.ml-auto.mr-auto.col-md-10 {
  max-width: 780px;
  margin-inline: auto;
  padding: 0;
}

.wrapper h1.title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 16px;
}
.wrapper h2.title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 38px 0 12px;
}
.wrapper h3.title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 26px 0 10px;
}
.description {
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}

/* Override inline colors */
a[style*="color:black"],
a[style*="color: black"] {
  color: var(--text) !important;
  font-weight: 500;
  text-decoration: none;
}
a[style*="color:black"]:hover,
a[style*="color: black"]:hover {
  color: var(--brand) !important;
  text-decoration: none;
}

.wrapper ul, .wrapper ol { padding-left: 20px; margin: 12px 0; }
.wrapper li { margin: 8px 0; color: var(--muted); }

/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #080d1a;
    --surface:      #0d1526;
    --surface-soft: #111c35;
    --border:       rgba(255,255,255,.07);
    --text:         #e8edf5;
    --muted:        #8898aa;
    --brand-soft:   rgba(99,102,241,.15);
  }
  body { background: var(--bg); }
  .site-header { background: rgba(8,13,26,.88); }
  .hero, .page-hero {
    background: linear-gradient(135deg, rgba(79,70,229,.18) 0%, rgba(124,58,237,.12) 50%, rgba(6,182,212,.06) 100%);
  }
  body > header {
    background: linear-gradient(135deg, rgba(79,70,229,.14) 0%, rgba(124,58,237,.1) 100%);
  }
  .cat-card, .article-card, .faq-section,
  section.faq, section[aria-label*="FAQ"],
  [role="tablist"] .card-plain.card,
  .faq-item, .kpi > div {
    background: var(--surface);
  }
  .faq-item,
  .faq-item details,
  section.faq details,
  section[aria-label*="FAQ"] details,
  [role="tablist"] .card-plain.card { background: var(--surface-soft); }
  .site-footer { background: var(--surface); }
  .about-strip { background: linear-gradient(135deg, #3730a3, #5b21b6); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding: 60px 0 72px; }
  .section { padding: 52px 0; }
  .categories-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; }
  .faq-section { padding: 28px 20px; }
  section.faq, section[aria-label*="FAQ"] { padding: 24px 18px; }
  .about-strip { padding: 36px 28px; }
  .page-hero { padding: 44px 0 38px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 36px; }
  .cat-card { padding: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
