/* ============================
   PAGES.CSS — CancéroJeune v5
   Design Pro · Bleu + Jaune
   Applies to ALL sub-pages
============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* ── Palette : bleu ciel + jaune soleil ── */
  --primary:        #0EA5E9;
  --primary-dark:   #0284C7;
  --primary-deep:   #0369A1;
  --primary-light:  #BAE6FD;
  --accent:         #FBBF24;
  --accent-dark:    #D97706;
  --accent-light:   #FEF9C3;
  --teal:           #22D3EE;
  --green:          #10B981;
  --red:            #EF4444;
  --purple:         #8B5CF6;

  /* ── Text aliases ── */
  --text-medium:    #334155; /* alias for --text-secondary */

  /* ── Backgrounds ── */
  --bg:             #F0F8FF;
  --bg-card:        #FFFFFF;
  --bg-subtle:      #F0F9FF;
  --bg-section:     #EFF6FF;

  /* ── Text ── */
  --text:           #0F172A;
  --text-secondary: #334155;
  --text-light:     #64748B;
  --text-xlight:    #94A3B8;

  /* ── Borders ── */
  --border:         #E2EEF9;
  --border-mid:     #BAD6EC;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 3px rgba(14,165,233,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 2px 8px rgba(14,165,233,0.10), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:  0 6px 24px rgba(14,165,233,0.14), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:  0 16px 48px rgba(14,165,233,0.18), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl:  0 28px 72px rgba(14,165,233,0.22), 0 8px 24px rgba(0,0,0,0.10);
  --shadow-accent: 0 6px 24px rgba(251,191,36,0.35);

  /* ── Radius ── */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  30px;

  /* ── Spacing ── */
  --space-xs:   6px;
  --space-sm:   12px;
  --space-md:   20px;
  --space-lg:   32px;
  --space-xl:   52px;
  --space-2xl:  80px;

  /* ── Motion ── */
  --transition: 0.22s cubic-bezier(0.22,1,0.36,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar            { width: 6px; }
::-webkit-scrollbar-track      { background: #f1f5f9; }
::-webkit-scrollbar-thumb      { background: #93C5FD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--primary); }

/* ── SELECTION ── */
::selection { background: #BAE6FD; color: var(--primary-deep); }

/* ────────────────────────────
   TOPBAR
──────────────────────────── */
.page-topbar {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 60%, #0369A1 100%);
  border-bottom: 3px solid var(--accent);
  padding: 13px var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 28px rgba(2,132,199,0.3);
}

.page-topbar .logo-area,
.page-topbar .topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.page-topbar .logo-area img,
.page-topbar .topbar-logo img {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.page-topbar .site-name,
.page-topbar .topbar-logo span {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.page-topbar .back-btn,
.page-topbar .topbar-back {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.page-topbar .back-btn:hover,
.page-topbar .topbar-back:hover {
  background: rgba(255,255,255,0.3);
  transform: translateX(-4px);
}

/* ────────────────────────────
   HERO
──────────────────────────── */
.page-hero {
  padding: 46px var(--space-lg) 54px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 55%, #0369A1 100%);
  box-shadow: 0 8px 40px rgba(2,132,199,0.22);
}
/* Dot mesh */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
}
/* Glow blobs */
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 10% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 80%, rgba(251,191,36,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .hero-icon {
  font-size: 3.6rem;
  margin-bottom: 14px;
  display: block;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.2));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative; z-index: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.page-hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.72;
  position: relative; z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hero-stat {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 13px 22px;
  min-width: 100px;
  transition: all var(--transition);
  cursor: default;
}
.hero-stat:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}
.hero-stat-val, .hero-stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  display: block;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-stat-lbl, .hero-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-top: 4px;
}

/* ────────────────────────────
   BREADCRUMB
──────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); text-decoration: none; transition: color var(--transition); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ────────────────────────────
   PAGE CONTENT
──────────────────────────── */
.page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* ────────────────────────────
   SECTION HEADER
──────────────────────────── */
.content-section { margin-bottom: var(--space-xl); }

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-lg);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-icon { font-size: 1.8rem; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text);
}

/* ── Section label (supratitle, small caps) ── */
.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ── Section intro text ── */
.section-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 680px;
  margin-bottom: var(--space-md);
}

/* ────────────────────────────
   CARDS
──────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleX(1); }

.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.card p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.68; }

/* ────────────────────────────
   ACCORDION
──────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.acc-item:hover { border-color: #93C5FD; transform: translateY(-1px); }
.acc-item.open {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(14,165,233,0.14);
}
.acc-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background var(--transition);
}
.acc-btn:hover { background: #f0f9ff; }
.acc-item.open .acc-btn { background: linear-gradient(90deg, #eff6ff, transparent); color: var(--primary-dark); }
.acc-icon { font-size: 1.2rem; flex-shrink: 0; }
.acc-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  color: var(--text-light);
  transition: transform var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}
.acc-item.open .acc-arrow {
  transform: rotate(180deg);
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1); }
.acc-item.open .acc-body { max-height: 900px; }
.acc-body-inner {
  padding: 16px 20px 20px 52px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.74;
  border-top: 1.5px solid var(--border);
  background: #fafcff;
}

/* ────────────────────────────
   TABS
──────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-lg);
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1;
  min-width: 90px;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--primary); background: rgba(14,165,233,0.08); }
.tab-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1.5px solid var(--border);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ────────────────────────────
   TIMELINE
──────────────────────────── */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: '';
  position: absolute; left: 15px; top: 20px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(14,165,233,0.15) 100%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.timeline-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 4px 20px rgba(14,165,233,0.13);
}
.timeline-item::before {
  content: '';
  position: absolute; left: -33px; top: 17px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px rgba(14,165,233,0.18), 0 0 0 7px rgba(14,165,233,0.07);
  border: 2.5px solid #fff;
}
.timeline-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.timeline-item p  { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ────────────────────────────
   ALERT BOXES
──────────────────────────── */
.alert-box {
  border-radius: var(--radius-md);
  padding: 16px 18px 16px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: var(--space-md) 0;
  border: 1.5px solid;
  border-left-width: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.alert-box:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.alert-box.info    { background: #EFF6FF; border-color: #BFDBFE; border-left-color: #3B82F6; }
.alert-box.warning { background: #FFFBEB; border-color: #FDE68A; border-left-color: #F59E0B; }
.alert-box.danger  { background: #FEF2F2; border-color: #FECACA; border-left-color: #EF4444; }
.alert-box.success { background: #F0FDF4; border-color: #BBF7D0; border-left-color: #10B981; }

.alert-icon {
  font-size: 1.4rem; flex-shrink: 0; margin-top: 1px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.alert-box.info    .alert-icon { background: #DBEAFE; }
.alert-box.warning .alert-icon { background: #FEF3C7; }
.alert-box.danger  .alert-icon { background: #FEE2E2; }
.alert-box.success .alert-icon { background: #DCFCE7; }
.alert-content { flex: 1; font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); }
.alert-content strong { display: block; font-weight: 800; margin-bottom: 4px; font-size: 0.92rem; }
.alert-box.info    .alert-content strong { color: #1D4ED8; }
.alert-box.warning .alert-content strong { color: #92400E; }
.alert-box.danger  .alert-content strong { color: #991B1B; }
.alert-box.success .alert-content strong { color: #065F46; }

/* ────────────────────────────
   STATS ROW
──────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px 18px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px 4px 0 0;
}
.stat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(14,165,233,0.16);
  border-color: #93C5FD;
}
.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.stat-card .stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
  position: relative; z-index: 1;
}

/* ────────────────────────────
   CHECKLIST
──────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: all var(--transition);
  position: relative;
}
.checklist li:hover {
  border-color: var(--primary);
  background: #f0f9ff;
  color: var(--text);
  transform: translateX(5px);
  box-shadow: 0 3px 12px rgba(14,165,233,0.1);
}
.checklist li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0;
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"),
    linear-gradient(135deg, %230EA5E9, %230284C7);
  background-size: 12px 12px, 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}

/* ────────────────────────────
   MYTH / FACT GRID
──────────────────────────── */
/* ── Myth/reality wrapper ── */
.myth-grid-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}
.myth-col-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.myth-col-header {
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.myth-col-red   { background: #EF4444; color: #fff; }
.myth-col-green { background: #10B981; color: #fff; }
@media (max-width: 580px) {
  .myth-col-headers { grid-template-columns: 1fr; }
}

/* ── Paired myth/reality columns ── */
.myth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
}
.myth-grid-wrap .myth-grid {
  border-radius: 0;
  border: none;
  box-shadow: none;
}

/* Each pair of myth+reality shares a row — add divider between rows */
.myth-item {
  background: var(--bg-card);
  border: none;
  border-bottom: 1.5px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.myth-item:nth-last-child(-n+2) { border-bottom: none; }

/* Left column: slight red wash; right column: slight green wash */
.myth-item.myth  { background: #fffafa; border-right: 1.5px solid var(--border); }
.myth-item.fact,
.myth-item.reality { background: #f6fffe; }

.myth-item:hover { z-index: 1; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.07); }

/* Coloured top stripe per column */
.myth-item.myth::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #EF4444, #f87171);
  display: block;
}
.myth-item.fact::before,
.myth-item.reality::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #10B981, #34d399);
  display: block;
}

.myth-header {
  padding: 14px 18px 10px;
  display: flex; align-items: center; gap: 8px;
  padding-top: 16px; /* account for stripe */
}
.myth-item.myth    .myth-header { /* no bg needed, stripe is enough */ }
.myth-item.fact    .myth-header,
.myth-item.reality .myth-header { }

.myth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}
.myth-item.myth .myth-badge    { background: #EF4444; color: #fff; }
.myth-item.fact .myth-badge,
.myth-item.reality .myth-badge { background: #10B981; color: #fff; }

.myth-body { padding: 8px 18px 18px; flex: 1; }
.myth-item h4 { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 7px; line-height: 1.4; }
.myth-item p  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.68; margin: 0; }

@media (max-width: 580px) {
  .myth-grid { grid-template-columns: 1fr; }
  .myth-item.myth { border-right: none; border-bottom: 1.5px solid var(--border); }
}

/* ────────────────────────────
   TAGS
──────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-md) 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  background: #EFF6FF;
  color: var(--primary-dark);
  border: 1.5px solid #BFDBFE;
  transition: all var(--transition);
  cursor: default;
}
.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}

/* ────────────────────────────
   BUTTONS
──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(14,165,233,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.45);
  filter: brightness(1.06);
}
.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid #BFDBFE;
}
.btn-secondary:hover {
  background: #EFF6FF;
  border-color: var(--primary);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { transform: translateY(-3px); filter: brightness(1.06); }
.btn-sm { padding: 8px 16px; font-size: 0.78rem; }

/* ────────────────────────────
   CALLOUT
──────────────────────────── */
.callout {
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 100%);
  border: 1.5px solid #BAE6FD;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(14,165,233,0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.callout h3 { font-size: 1.1rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.callout p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.72; }

/* ────────────────────────────
   CARD IMAGE
──────────────────────────── */
.card-img {
  width: calc(100% + 2 * var(--space-lg));
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
}

/* ────────────────────────────
   ILLUSTRATION BANNER
──────────────────────────── */
.illus-banner {
  background: linear-gradient(135deg, #EFF6FF, #ECFEFF);
  border: 1.5px solid #BAE6FD;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
  transition: all var(--transition);
}
.illus-banner:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.illus-banner .illus-art {
  font-size: 4.5rem;
  flex-shrink: 0;
  animation: heroFloat 4s ease-in-out infinite;
}
.illus-banner .illus-text h3 { font-size: 1.1rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 6px; }
.illus-banner .illus-text p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.68; }

/* ────────────────────────────
   IMAGE GRID
──────────────────────────── */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.img-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}
.img-card:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); }
.img-card .img-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 10px 8px;
  text-align: center;
}

/* ────────────────────────────
   LINKS
──────────────────────────── */
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
.page-content a:not(.btn):not(.breadcrumb a) {
  text-decoration: underline;
  text-decoration-color: #93C5FD;
  text-underline-offset: 3px;
}
.page-content a:not(.btn):not(.breadcrumb a):hover {
  text-decoration-color: var(--primary);
}

/* ────────────────────────────
   FOOTER
──────────────────────────── */
.page-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--text-light);
  font-size: 0.8rem;
  border-top: 1.5px solid var(--border);
  margin-top: var(--space-2xl);
  background: var(--bg-card);
}
.page-footer a { color: var(--primary); font-weight: 600; }

/* ────────────────────────────
   RESPONSIVE
──────────────────────────── */
@media (max-width: 768px) {
  .page-hero    { padding: 52px var(--space-md) 64px; border-radius: 0 0 28px 28px; }
  .page-content { padding: var(--space-lg) var(--space-md); }
  .card-grid    { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: repeat(2, 1fr); }
  .tabs-nav     { flex-direction: column; }
  .illus-banner { flex-direction: column; text-align: center; gap: var(--space-md); padding: var(--space-lg); }
  .hero-stats   { gap: 9px; }
  .page-topbar  { padding: 12px var(--space-md); }
}
@media (max-width: 480px) {
  .page-hero h1         { font-size: 1.9rem; }
  .stats-row            { grid-template-columns: 1fr 1fr; }
  .myth-grid            { grid-template-columns: 1fr; }
  .hero-stat-val, .hero-stat-num { font-size: 1.5rem; }
  .page-hero .hero-icon { font-size: 3rem; }
}

/* ────────────────────────────
   ACCESSIBILITY
──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ────────────────────────────
   PRINT
──────────────────────────── */
@media print {
  body { background: #fff; }
  .page-topbar, .page-footer { display: none; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}

/* ════════════════════════════════════════
   COMPATIBILITY ALIASES & MISSING COMPONENTS
   Supports HTML written with alternate class names
════════════════════════════════════════ */

/* ── Breadcrumb separator ── */
.breadcrumb .sep { color: var(--text-xlight); }

/* ── Section title standalone usage (outside .section-header) ── */
h2.section-title {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* ── Hero stat label aliases (.stat-num / .stat-label inside .hero-stat) ── */
.hero-stat .stat-num {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
  display: block;
}
.hero-stat .stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
  display: block;
}

/* ── Cards grid (alias for .card-grid) ── */
.cards-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: var(--space-md) 0;
}

/* ────────────────────────────
   INFO CARDS (multi-page component)
──────────────────────────── */
.info-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card .card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}
.info-card h3 { font-size: 0.96rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.info-card p  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.64; }
.info-card.green  { border-top-color: var(--green); }
.info-card.orange { border-top-color: #F97316; }
.info-card.purple { border-top-color: var(--purple); }
.info-card.teal   { border-top-color: var(--teal); }
.info-card.red    { border-top-color: var(--red); }
.info-card.yellow { border-top-color: var(--accent); }

/* ────────────────────────────
   INTERACTIVE CHECKLIST (prevention.html etc.)
──────────────────────────── */
.checklist-progress {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-xs);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.progress-bar-track {
  background: #E2EEF9;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}

.checklist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  margin-bottom: 7px;
}
.checklist-item:hover {
  border-color: #93C5FD;
  background: #F0F9FF;
  transform: translateX(4px);
}
.checklist-item.checked {
  background: #F0FDF4;
  border-color: #86EFAC;
}
.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #BFDBFE;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 2px;
  background: #fff;
}
.checklist-item.checked .check-box {
  background: var(--green);
  border-color: var(--green);
}
.checklist-item.checked .check-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}
.checklist-text { flex: 1; }
.checklist-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.checklist-item.checked .checklist-text strong { color: #065F46; }
.checklist-text span {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.58;
}

/* ────────────────────────────
   MYTH CARD ALIASES (prevention.html / symptomes.html)
   HTML uses .myth-card / .myth-label / .reality
   CSS was defining .myth-item / .myth-badge / .fact
──────────────────────────── */
/* myth-card = same paired layout as myth-item */
.myth-card {
  background: var(--bg-card);
  border: none;
  border-bottom: 1.5px solid var(--border);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.myth-card:nth-last-child(-n+2) { border-bottom: none; }
.myth-card.myth     { background: #fffafa; border-right: 1.5px solid var(--border); }
.myth-card.reality,
.myth-card.truth    { background: #f6fffe; }
.myth-card:hover    { z-index: 1; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.07); }

.myth-card.myth::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #EF4444, #f87171);
}
.myth-card.reality::before,
.myth-card.truth::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #10B981, #34d399);
}

.myth-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 18px 8px;
  margin: 0;
  border-radius: 0;
  width: auto;
}
.myth-card.myth     .myth-label { color: #DC2626; }
.myth-card.reality .myth-label,
.myth-card.truth   .myth-label  { color: #059669; }

.myth-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.68;
  padding: 6px 18px 18px;
  margin: 0;
  flex: 1;
}
.myth-card h4 {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text);
  padding: 4px 18px 8px;
  margin: 0;
  line-height: 1.4;
}

/* ────────────────────────────
   ACCORDION ALIASES (all sub-pages)
   HTML uses .accordion-item / .accordion-trigger / .accordion-body
   CSS was defining .acc-item / .acc-btn / .acc-body
──────────────────────────── */
.accordion-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.accordion-item:hover { border-color: #93C5FD; transform: translateY(-1px); }
.accordion-item.open {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(14,165,233,0.14);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: #f0f9ff; }
.accordion-item.open .accordion-trigger { background: linear-gradient(90deg, #eff6ff, transparent); color: var(--primary-dark); }
.accordion-item.open .accordion-trigger .acc-arrow,
.accordion-item.open .accordion-trigger .accordion-arrow { transform: rotate(180deg); color: var(--primary); }
.accordion-arrow {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  color: var(--text-light);
  transition: transform var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.accordion-item.open .accordion-arrow,
.accordion-item.open .accordion-trigger .accordion-arrow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1);
}
.accordion-item.open .accordion-body { max-height: 900px; }
.accordion-body-inner {
  padding: 16px 20px 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.74;
  border-top: 1.5px solid var(--border);
  background: #fafcff;
}

/* ────────────────────────────
   STAT BOX (symptomes.html / chimiotherapie.html)
   Alternative to .stat-card that also uses .stat-num / .stat-label
──────────────────────────── */
.stat-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.stat-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #93C5FD; }
.stat-box .stat-num,
.stat-card .stat-num {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--primary-dark);
  margin-bottom: 7px;
  display: block;
}
.stat-box .stat-label,
.stat-card .stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.065em;
  display: block;
}

/* ────────────────────────────
   BADGES (symptomes.html)
──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1.5px solid;
}
.badge-attention { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.badge-urgent    { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.badge-info      { background: #EFF6FF; color: var(--primary-deep); border-color: #BFDBFE; }
.badge-normal    { background: #F0FDF4; color: #065F46; border-color: #BBF7D0; }
.badge-success   { background: #F0FDF4; color: #065F46; border-color: #BBF7D0; }

/* ────────────────────────────
   STEP LABEL (chirurgie.html / radiotherapie.html timeline)
──────────────────────────── */
.step-label {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 12px;
  background: #EFF6FF;
  color: var(--primary-dark);
  border: 1.5px solid #BFDBFE;
  margin-bottom: 5px;
}

/* ────────────────────────────
   TABS CONTAINER (wrapper)
──────────────────────────── */
.tabs-container { margin: var(--space-md) 0; }

/* ────────────────────────────
   COMPARE TABLE (radiotherapie.html)
──────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md) 0;
}
.compare-table th {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  padding: 13px 16px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table td {
  padding: 11px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.58;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #F8FBFF; }
.compare-table tr:hover td { background: #EFF6FF; }
.compare-table td:first-child { font-weight: 700; color: var(--text); }

/* ────────────────────────────
   PAGE FOOTER NAVIGATION (all sub-pages)
──────────────────────────── */
.page-footer-nav {
  display: flex;
  gap: var(--space-md);
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1.5px solid var(--border);
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(14,165,233,0.3);
}
.nav-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.4);
  filter: brightness(1.06);
}
.nav-btn-secondary {
  background: #fff;
  color: var(--primary-dark) !important;
  border: 2px solid #BFDBFE;
}
.nav-btn-secondary:hover {
  background: #EFF6FF;
  border-color: var(--primary);
  transform: translateY(-3px);
}
@media (max-width: 480px) {
  .page-footer-nav { flex-direction: column; }
  .nav-btn { justify-content: center; }
}
