/* =========================================================
   MORTALITÉ FRANCE 2024 / MAROC 2021
   Design system: glassmorphism + vibrant gradients
   ========================================================= */

:root {
  /* --- Palette principale --- */
  --c-bg:        #f7f9fc;
  --c-bg-2:      #eef2f9;
  --c-ink:       #0b1220;
  --c-ink-2:     #1f2937;
  --c-muted:     #64748b;
  --c-line:      #e2e8f0;
  --c-line-2:    #cbd5e1;

  --c-blue:      #2563eb;
  --c-blue-d:    #1d4ed8;
  --c-blue-l:    #60a5fa;
  --c-red:       #ef4444;
  --c-red-d:     #dc2626;
  --c-pink:      #ec4899;
  --c-amber:     #f59e0b;
  --c-green:     #10b981;
  --c-green-d:   #047857;
  --c-purple:    #8b5cf6;
  --c-cyan:      #06b6d4;

  /* --- Gradients signatures --- */
  --g-france:    linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  --g-maroc:     linear-gradient(135deg, #064e3b 0%, #047857 40%, #10b981 100%);
  --g-compare:   linear-gradient(135deg, #5b21b6 0%, #8b5cf6 50%, #c084fc 100%);
  --g-trend:     linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
  --g-genre:     linear-gradient(135deg, #9d174d 0%, #ec4899 50%, #f9a8d4 100%);
  --g-comorb:    linear-gradient(135deg, #991b1b 0%, #ef4444 50%, #fb7185 100%);
  --g-takeaway:  linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #67e8f9 100%);
  --g-cancer:    linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #fb923c 100%);

  /* --- Surfaces --- */
  --card-bg:     rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18),
                 0 2px 6px -2px rgba(15, 23, 42, 0.08);

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;

  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:   0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 18px 38px -14px rgba(15, 23, 42, 0.18);

  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, monospace;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  background-image:
    radial-gradient(at 20% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 30%, rgba(236, 72, 153, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--c-blue-d); }

ul { list-style: none; }
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.4); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--c-ink);
  font-weight: 600;
}
.brand__logo {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.brand__txt strong { font-weight: 700; }
.brand__dot { margin: 0 4px; color: var(--c-muted); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--c-blue-d);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

/* Top row : attribution à gauche + bouton copier à droite */
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.1);
  letter-spacing: 0.01em;
}
.hero__author-icon {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.hero__copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-d) 100%);
  color: white;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  min-width: 44px;
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hero__copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.6);
  color: white;
}
.hero__copy-btn:active { transform: translateY(0); }
.hero__copy-btn.is-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.55);
}
.hero__copy-btn.is-error {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 18px -6px rgba(217, 119, 6, 0.55);
}
.hero__copy-icon { font-size: 0.95rem; }
.hero__copy-btn.is-success .hero__copy-icon::before { content: '✓'; }
.hero__copy-btn.is-success .hero__copy-icon { font-size: 0; }
.hero__copy-btn.is-success .hero__copy-icon::before { font-size: 1.05rem; }
.hero__copy-btn.is-error .hero__copy-icon::before { content: '⚠️'; }
.hero__copy-btn.is-error .hero__copy-icon { font-size: 0; }
.hero__copy-btn.is-error .hero__copy-icon::before { font-size: 1rem; }

/* Toast copy (centré haut de l'écran) */
.copy-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 9999;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.copy-toast.is-error {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 16px 40px -10px rgba(217, 119, 6, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.copy-toast::before {
  content: '✓';
  display: inline-block;
  margin-right: 8px;
  font-weight: 800;
}
.copy-toast.is-error::before { content: '⚠️'; }
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.15) 0, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.12) 0, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.1) 0, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

.hero__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-blue-d);
  background: rgba(37, 99, 235, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title .hl {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.flag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
}
.flag--fr { background: rgba(37, 99, 235, 0.1); }
.flag--ma { background: rgba(16, 185, 129, 0.1); }

.hero__lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--c-ink-2);
  max-width: 780px;
  margin-bottom: 44px;
  line-height: 1.65;
}
.hero__lede strong { color: var(--c-ink); font-weight: 600; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.stat-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
  filter: blur(20px);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat--blue::after   { background: var(--c-blue); }
.stat--red::after    { background: var(--c-red); }
.stat--green::after  { background: var(--c-green); }
.stat--amber::after  { background: var(--c-amber); }

.stat-card > * { position: relative; z-index: 1; }

.stat-card__icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.stat-card__num {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat--blue  .stat-card__num { background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-d) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat--red   .stat-card__num { background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-d) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat--green .stat-card__num { background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-d) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat--amber .stat-card__num { background: linear-gradient(135deg, var(--c-amber) 0%, #b45309 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.stat-card__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.stat-card__sub {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.45;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-d) 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.4);
  transition: all 0.3s var(--ease);
}
.hero__cta:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(37, 99, 235, 0.55);
}
.hero__cta .arrow {
  display: inline-block;
  animation: bounce 1.6s var(--ease) infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* =========================================================
   SECTION
   ========================================================= */
.section {
  position: relative;
  padding: 80px 0;
}
.section--fr       { background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.04) 50%, transparent 100%); }
.section--ma       { background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%); }
.section--compare  { background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%); }
.section--trend    { background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.04) 50%, transparent 100%); }
.section--genre    { background: linear-gradient(180deg, transparent 0%, rgba(236, 72, 153, 0.04) 50%, transparent 100%); }
.section--comorb   { background: linear-gradient(180deg, transparent 0%, rgba(239, 68, 68, 0.04) 50%, transparent 100%); }
.section--cancer   { background: linear-gradient(180deg, transparent 0%, rgba(234, 88, 12, 0.05) 50%, transparent 100%); }
.section--takeaway { background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%); }

.section__head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}
.section__pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.1);
  color: var(--c-blue-d);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.pill--green  { background: rgba(16, 185, 129, 0.1); color: var(--c-green-d); border-color: rgba(16, 185, 129, 0.2); }
.pill--purple { background: rgba(139, 92, 246, 0.1); color: #6d28d9; border-color: rgba(139, 92, 246, 0.2); }
.pill--amber  { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.25); }
.pill--pink   { background: rgba(236, 72, 153, 0.1); color: #be185d; border-color: rgba(236, 72, 153, 0.2); }
.pill--red    { background: rgba(239, 68, 68, 0.1); color: var(--c-red-d); border-color: rgba(239, 68, 68, 0.2); }
.pill--orange { background: rgba(234, 88, 12, 0.1); color: #9a3412; border-color: rgba(234, 88, 12, 0.22); }
.pill--teal   { background: rgba(13, 148, 136, 0.1); color: #0f766e; border-color: rgba(13, 148, 136, 0.22); }

.section__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hl-blue   { background: var(--g-france);    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-green  { background: var(--g-maroc);     -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-purple { background: var(--g-compare);   -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-amber  { background: var(--g-trend);     -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-pink   { background: var(--g-genre);     -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-red    { background: var(--g-comorb);    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-orange { background: var(--g-cancer);    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hl-teal   { background: var(--g-takeaway);  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section__lede {
  font-size: 1.05rem;
  color: var(--c-ink-2);
  line-height: 1.65;
}

/* =========================================================
   GRID + CARDS
   ========================================================= */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2   { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid--3   { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4   { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2-1 { grid-template-columns: 1.4fr 1fr; }

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

.mt-lg { margin-top: 32px; }

.card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-pink) 100%);
  opacity: 0.7;
}
.card--info::before { background: linear-gradient(90deg, var(--c-cyan) 0%, var(--c-blue) 100%); }
.card--full { width: 100%; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--c-ink); }
.card p  { color: var(--c-ink-2); line-height: 1.65; margin-bottom: 12px; font-size: 0.96rem; }
.card p:last-child { margin-bottom: 0; }

.card--chart { padding: 22px 22px 18px; }
.card--chart .card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
}
.card--chart h3 { margin-bottom: 0; font-size: 1.05rem; }
.card__hint {
  font-size: 0.78rem;
  color: var(--c-muted);
  font-weight: 500;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
}
.chart-wrap--tall { height: 360px; }

/* =========================================================
   DELTA LIST
   ========================================================= */
.delta-list { margin-bottom: 14px; }
.delta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 0.92rem;
}
.delta-list li:last-child { border-bottom: 0; }
.delta-list li strong { font-weight: 600; color: var(--c-ink); flex: 1 1 auto; min-width: 0; }
.delta-list li em {
  font-style: normal;
  font-weight: 700;
  color: var(--c-ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: right;
}

.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
.dot--green  { background: var(--c-green); }
.dot--red    { background: var(--c-red); }
.dot--blue   { background: var(--c-blue); }
.dot--amber  { background: var(--c-amber); }
.dot--purple { background: var(--c-purple); }

.delta {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--c-bg-2);
  color: var(--c-ink-2);
  white-space: nowrap;
}
.delta--up   { background: rgba(239, 68, 68, 0.12); color: var(--c-red-d); }
.delta--down { background: rgba(16, 185, 129, 0.12); color: var(--c-green-d); }
.delta--orange { background: rgba(234, 88, 12, 0.14); color: #9a3412; }
.dot--orange { background: #ea580c; }
.dot--teal   { background: #14b8a6; }

/* =========================================================
   CALLOUT
   ========================================================= */
.callout {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
  border-left: 4px solid var(--c-blue);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--c-ink-2);
  line-height: 1.55;
}
.callout strong { color: var(--c-ink); display: block; margin-bottom: 4px; }
.callout--green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(6, 182, 212, 0.04) 100%); border-left-color: var(--c-green); }
.callout--green strong { color: var(--c-green-d); }
.callout--pink  { background: linear-gradient(135deg, rgba(236, 72, 153, 0.07) 0%, rgba(244, 114, 182, 0.04) 100%); border-left-color: var(--c-pink); }
.callout--pink strong { color: #be185d; }
.callout--orange { background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(251, 146, 60, 0.04) 100%); border-left-color: #ea580c; }
.callout--orange strong { color: #9a3412; }
.callout--teal { background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(20, 184, 166, 0.04) 100%); border-left-color: #0d9488; }
.callout--teal strong { color: #0f766e; }

/* =========================================================
   MINI STATS
   ========================================================= */
.mini-stat {
  text-align: center;
  padding: 22px 16px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease);
}
.mini-stat:hover { transform: translateY(-3px); }
.mini-stat__num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-d) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.mini-stat--green .mini-stat__num {
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-d) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mini-stat__label {
  font-size: 0.88rem;
  color: var(--c-muted);
  font-weight: 500;
}

/* =========================================================
   KPI ROW
   ========================================================= */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.kpi {
  text-align: center;
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.06) 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease);
}
.kpi:hover { transform: translateY(-3px); }
.kpi__num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.kpi__label {
  font-size: 0.85rem;
  color: var(--c-ink-2);
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================================
   INSIGHT (tendances)
   ========================================================= */
.insight {
  text-align: center;
  padding: 28px 22px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease);
}
.insight:hover { transform: translateY(-3px); }
.insight__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
.insight h3 { font-size: 1.05rem; margin-bottom: 8px; }
.insight p { font-size: 0.92rem; color: var(--c-muted); line-height: 1.55; margin: 0; }

/* =========================================================
   TAKEAWAYS
   ========================================================= */
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.takeaway {
  position: relative;
  padding: 32px 26px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s var(--ease);
  overflow: hidden;
}
.takeaway:hover { transform: translateY(-4px); }
.takeaway::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.takeaway--blue::before   { background: var(--g-france); }
.takeaway--red::before    { background: var(--g-comorb); }
.takeaway--pink::before   { background: var(--g-genre); }
.takeaway--amber::before  { background: var(--g-trend); }
.takeaway--orange::before { background: var(--g-cancer); }
.takeaway--teal::before   { background: var(--g-takeaway); }

.takeaway > * { position: relative; z-index: 1; }
.takeaway__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.16;
  color: var(--c-ink);
  font-family: var(--font-mono);
}
.takeaway h3 { font-size: 1.1rem; margin-bottom: 10px; }
.takeaway p  { font-size: 0.95rem; color: var(--c-ink-2); line-height: 1.6; margin: 0; }

/* =========================================================
   WARN BOX (methodo)
   ========================================================= */
.warn-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 4px solid var(--c-amber);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.warn-box strong {
  color: #b45309;
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.warn-box ul {
  list-style: none;
  padding: 0;
}
.warn-box li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 0.95rem;
  color: var(--c-ink-2);
  line-height: 1.55;
}
.warn-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--c-amber);
  font-weight: 700;
}

/* Liens de sources cliquables (méthodologie) */
.source-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.source-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--c-line);
}
.source-list li:last-child { border-bottom: 0; }
.source-list li::before {
  content: '🔗';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.85rem;
}
.source-list strong { color: var(--c-ink); font-weight: 600; }
.source-list a {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--c-blue-d);
  word-break: break-all;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.source-list a:hover { color: var(--c-blue); text-decoration-style: solid; }

/* Pancreatic "rising" highlight badge */
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(234, 88, 12, 0.12);
  color: #9a3412;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(234, 88, 12, 0.22);
}
.trend-badge--down {
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-green-d);
  border-color: rgba(16, 185, 129, 0.22);
}
.trend-badge--stable {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 60px;
  padding: 36px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.04) 100%);
  border-top: 1px solid var(--c-line);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer strong { color: var(--c-ink); }
.muted { color: var(--c-muted); }
.small { font-size: 0.85rem; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 800px) {
  .container { padding: 0 18px; }
  .hero { padding: 50px 0 60px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 36px; }

  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-line);
    padding: 16px 18px;
    gap: 4px;
  }
  .nav.is-open a {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .hero__top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hero__author { justify-content: center; }
  .hero__copy-btn { justify-content: center; }

  .copy-toast { top: 78px; font-size: 0.88rem; padding: 10px 18px; }

  .chart-wrap { height: 260px; }
  .chart-wrap--tall { height: 320px; }

  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 18px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .topbar, .hero__cta, .nav, .footer { display: none; }
  .hero { padding: 20px 0; }
  .section { padding: 24px 0; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid var(--c-line); }
  body { background: white; }
}
