/* ==========================================================================
   Portail Alzheimer Belgique — Design system
   Typographie : Playfair Display (titres) + Plus Jakarta Sans (corps)
   ========================================================================== */

:root {
  --brand: #4c7d82;
  --brand-light: #6fa8ad;
  --brand-dark: #3b636a;
  --brand-50: #eef5f6;
  --brand-100: #dae9eb;
  --accent: #d4a853;
  --accent-dark: #b8912f;

  --bg: #f8fafa;
  --surface: #ffffff;
  --text: #1a2e35;
  --text-secondary: #4a6670;
  --text-muted: #7a9aa3;
  --line: #e2ecee;

  --success-bg: #f0f9f4;
  --success: #2d7a5f;
  --warning-bg: #fdf6ef;
  --warning: #b8602c;
  --info-bg: #eef4ff;
  --info: #2563b0;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-rest: 0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.03);
  --shadow-hover: 0 8px 32px rgba(15,23,42,.08);
  --shadow-soft: 0 2px 6px rgba(15,23,42,.05);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.3s;

  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 640px) {
  body { font-size: 16px; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 600; }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-secondary); }
strong { font-weight: 600; color: var(--text); }
small { color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ---------- Section ---------- */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header.align-left { text-align: left; margin-left: 0; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header p { font-size: 1.1rem; color: var(--text-secondary); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,250,.85);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid rgba(226,236,238,.6);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand img { width: 38px; height: 38px; }
.brand span { display: block; }
.brand .brand-sub {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--brand); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { transform: scaleX(1); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.header-cta:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.header-cta svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav */
@media (max-width: 960px) {
  .main-nav, .header-cta.desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 auto;
  width: min(360px, 100%);
  background: #fff;
  box-shadow: -10px 0 40px rgba(15,23,42,.15);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  z-index: 99;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a, .mobile-nav details > summary {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
}
.mobile-nav a:hover, .mobile-nav details > summary:hover { background: var(--brand-50); color: var(--brand); }
.mobile-nav details { border: 0; }
.mobile-nav details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after { content: "+"; color: var(--text-muted); font-weight: 400; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details .sub { display: flex; flex-direction: column; padding-left: 14px; }
.mobile-nav details .sub a { font-size: 0.92rem; padding: 8px 14px; color: var(--text-secondary); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-overlay {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(26,46,53,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
  z-index: 98;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Dropdown desktop */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--brand-50); color: var(--brand); }

/* Breadcrumb */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li:last-child { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn.sm { padding: 11px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: scale(1.02); box-shadow: var(--shadow-soft); }
.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: scale(1.02); }
.btn-accent { background: var(--accent); color: var(--text); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: scale(1.02); }
.btn-ghost { background: transparent; color: var(--brand); border-color: transparent; padding: 10px 14px; }
.btn-ghost:hover { color: var(--brand-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { margin: 0 0 22px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-trust .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(212,168,83,.18);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e2ecee 0%, #f8fafa 100%);
  box-shadow: 0 20px 50px rgba(15,23,42,.1);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,46,53,.12));
}

.page-hero {
  padding: 56px 0 40px;
}
.page-hero h1 { margin: 0 0 14px; }
.page-hero .lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 760px; }
.page-hero-image {
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e2ecee 0%, #f8fafa 100%);
  box-shadow: var(--shadow-rest);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-rest);
}
.card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e2ecee 0%, #f8fafa 100%);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card-body p { margin: 0 0 18px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }
.card-body .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}
.card-body .card-link::after {
  content: "→";
  transition: transform var(--dur) var(--ease);
}
.card:hover .card-link::after { transform: translateX(4px); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(76,125,130,.08);
  color: var(--brand);
  margin-bottom: 12px;
}

/* ---------- Pathology cards (home) ---------- */
.pathology-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.pathology-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.pathology-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pathology-icon svg { width: 28px; height: 28px; }
.pathology-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.pathology-card p { color: var(--text-secondary); font-size: 0.96rem; flex: 1; }
.pathology-card .card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.92rem;
}
.pathology-card .card-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.pathology-card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Feature cards (tools) ---------- */
.tool-card {
  position: relative;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.tool-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tool-card .tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}
.tool-card h3 { margin: 0 0 10px; }
.tool-card p { color: var(--text-secondary); font-size: 0.96rem; margin-bottom: 24px; flex: 1; }
.tool-card .btn { align-self: flex-start; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-rest);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 12px; }
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Callouts ---------- */
.callout {
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--text);
}
.callout h4 { margin: 0 0 8px; color: var(--info); font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.callout-success { background: var(--success-bg); border-color: var(--success); }
.callout.callout-success h4 { color: var(--success); }
.callout.callout-warning { background: var(--warning-bg); border-color: var(--warning); }
.callout.callout-warning h4 { color: var(--warning); }
.callout.callout-retain { background: var(--success-bg); border-color: var(--success); }
.callout.callout-retain h4 { color: var(--success); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 36px;
  color: var(--text);
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center;
}

/* Quote */
.pull-quote {
  position: relative;
  margin: 32px 0;
  padding: 28px 28px 28px 72px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.5;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%234c7d82'><path d='M10.5 24c-3 0-5.5-2.2-5.5-6 0-4.5 3.2-9 8-11l1 2c-2.8 1.4-5 3.6-5 6 .5-.2 1-.3 1.5-.3 2.2 0 4 1.8 4 4.2s-1.8 5.1-4 5.1zm11 0c-3 0-5.5-2.2-5.5-6 0-4.5 3.2-9 8-11l1 2c-2.8 1.4-5 3.6-5 6 .5-.2 1-.3 1.5-.3 2.2 0 4 1.8 4 4.2s-1.8 5.1-4 5.1z'/></svg>") no-repeat center;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Table comparative */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 28px 0; }
table.comparative {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.comparative th {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 16px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  font-family: "Plus Jakarta Sans", sans-serif;
}
table.comparative td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.95rem;
  vertical-align: top;
}
table.comparative tr:nth-child(even) td { background: rgba(76,125,130,.025); }

/* ---------- Article layout ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  padding: 40px 0 80px;
}
@media (max-width: 960px) { .article { grid-template-columns: 1fr; gap: 32px; } }
.article-content { max-width: 760px; }
.article-content h2 { margin-top: 48px; }
.article-content h3 { margin-top: 32px; }
.article-content p { font-size: 1.02rem; color: var(--text); line-height: 1.75; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 1em; color: var(--text); }
.article-content ul li, .article-content ol li { margin-bottom: 8px; line-height: 1.7; }
.article-content a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-content a:hover { color: var(--brand-dark); }
.article-content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  width: 100%;
  box-shadow: var(--shadow-rest);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  align-self: start;
  font-size: 0.9rem;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.toc h4 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li + li { margin-top: 6px; }
.toc a {
  display: block;
  padding: 6px 10px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--dur) var(--ease);
  font-weight: 500;
}
.toc a:hover { color: var(--brand); background: var(--brand-50); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); background: var(--brand-50); }

@media (max-width: 960px) {
  .toc { position: static; max-height: none; }
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 101;
  transition: width 0.1s linear;
}

/* ---------- Form ---------- */
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-rest);
}
@media (max-width: 640px) { .lead-form { padding: 24px; } }
.lead-form h2 { margin-top: 0; }
.lead-form p.muted { color: var(--text-secondary); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(76,125,130,.15);
}
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.85rem; color: var(--text-secondary); }
.form-consent input { margin-top: 4px; accent-color: var(--brand); }
.form-actions { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.form-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-message.show { display: block; }
.form-message.success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(45,122,95,.2); }
.form-message.error { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(184,96,44,.2); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--brand-light); }
.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-4px);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(0); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-secondary); line-height: 1.7; }
.faq-item .faq-body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-rest);
}
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }
.cta-band h2 { color: #fff; margin: 0 0 14px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 28px; }
.cta-band .btn-accent:hover { background: #f1cb79; }
.cta-band .btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.cta-band .btn-ghost-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .card-body h3 { font-size: 1.15rem; line-height: 1.4; }
.blog-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.blog-meta .dot-sep { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

/* ---------- Test interactif ---------- */
.quiz-container { max-width: 720px; margin: 0 auto; }
.quiz-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.quiz-progress span {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  transition: background var(--dur) var(--ease);
}
.quiz-progress span.done { background: var(--brand); }
.quiz-progress span.current { background: var(--accent); }

.quiz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-rest);
}
@media (max-width: 640px) { .quiz-card { padding: 28px 24px; } }
.quiz-question {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: 0.98rem;
  color: var(--text);
}
.quiz-option:hover { border-color: var(--brand); background: var(--brand-50); }
.quiz-option input { display: none; }
.quiz-option .radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  position: relative;
}
.quiz-option input:checked + .radio { border-color: var(--brand); }
.quiz-option input:checked + .radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--brand);
  border-radius: 50%;
}
.quiz-option.selected { border-color: var(--brand); background: var(--brand-50); }

.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.quiz-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-rest);
}
.quiz-result .score-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  position: relative;
}
.quiz-result .score-num {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--brand);
  text-align: center;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1a2e35;
  color: rgba(255,255,255,.72);
  padding: 72px 0 32px;
  margin-top: 80px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; color: #fff; font-family: "Playfair Display", serif; font-size: 1.2rem; font-weight: 600; }
.site-footer .footer-brand img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.site-footer p { color: rgba(255,255,255,.65); font-size: 0.93rem; }
.site-footer h4 {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.82); font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.grid.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Utility ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #e2ecee 0%, #f8fafa 100%);
}
.bg-alt { background: #fff; }
.bg-brand-soft { background: var(--brand-50); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
.no-wrap { white-space: nowrap; }
.text-muted { color: var(--text-muted); }

/* Pin icon in tags */
.tag-success { background: rgba(45,122,95,.1); color: var(--success); }
.tag-warning { background: rgba(184,96,44,.1); color: var(--warning); }
.tag-info { background: rgba(37,99,176,.1); color: var(--info); }

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

/* Article feature image */
.article-hero {
  aspect-ratio: 16/7;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 24px 0 40px;
  background: linear-gradient(135deg, #e2ecee 0%, #f8fafa 100%);
  box-shadow: var(--shadow-rest);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Related articles strip */
.related-articles { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-articles h3 { font-size: 1.4rem; margin-bottom: 20px; }

/* Card list (compact) */
.list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
}
.list-card:hover { border-color: var(--brand); box-shadow: var(--shadow-soft); }
.list-card .list-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list-card .list-icon svg { width: 22px; height: 22px; }
.list-card .list-body h4 { margin: 0 0 4px; font-size: 1rem; font-family: "Plus Jakarta Sans", sans-serif; letter-spacing: 0; }
.list-card .list-body p { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }

/* Province list */
.province-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.province-item {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
}
.province-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.province-item strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 1.05rem; }
.province-item span { font-size: 0.85rem; color: var(--text-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; }
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-100);
  color: var(--brand);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.step h3 { margin: 0 0 10px; font-size: 1.15rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .lead-form, .toc, .nav-toggle, .mobile-nav, .nav-overlay, .progress-bar { display: none !important; }
}
