/* ============================
   VARIABLES CSS
============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  /* ── Couleurs principales : bleu ciel + jaune ── */
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #BAE6FD;
  --primary-deep: #0369A1;
  --secondary: #FBBF24;
  --secondary-dark: #D97706;

  /* Accents */
  --accent: #FBBF24;
  --accent-teal: #22D3EE;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* Texte */
  --text-dark: #0F172A;
  --text-medium: #334155;
  --text-light: #64748B;

  /* Backgrounds */
  --bg-primary: #F0F8FF;
  --bg-white: #FFFFFF;
  --bg-light: #EFF6FF;

  /* Ombres */
  --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);

  /* Espacements */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.42s cubic-bezier(0.22, 1, 0.36, 1);

  /* Tailles */
  --header-height: 96px;
  --sidebar-width: 72px;
  --sidebar-width-expanded: 228px;
  --max-content-width: 1200px;

  /* Border radius — professionnel/médical */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ============================
   RESET & BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibilité : lien skip */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: var(--space-sm);
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Classe pour masquer visuellement mais garder accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================
   HEADER — style cancer.ca
============================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 28px rgba(2,132,199,0.28);
  transition: transform var(--transition-slow);
}

/* ── Utility bar (top strip) ── */
.topbar-utility {
  height: 36px;
  background: #013a6e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  flex-shrink: 0;
}

.topbar-expo {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.topbar-donate {
  background: #FBBF24;
  color: #1a1200;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(251,191,36,0.35);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.topbar-donate:hover {
  background: #FDE68A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251,191,36,0.5);
}

/* ── Main nav row ── */
.topbar-main {
  height: 60px;
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 60%, #0369A1 100%);
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  height: 100%;
}

.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.site-name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}

/* ── Desktop nav links ── */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.topbar-link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.topbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: #FBBF24;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.topbar-link:hover,
.topbar-link.active {
  color: #fff;
  background: rgba(255,255,255,0.13);
}

.topbar-link:hover::after,
.topbar-link.active::after {
  transform: scaleX(1);
}

/* ── Topbar right actions ── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================
   BARRE DE RECHERCHE
============================ */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 220px;
}

.search-icon {
  position: absolute;
  left: 11px;
  color: rgba(255,255,255,0.52);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1;
  transition: color var(--transition-fast);
}

.search-container:focus-within .search-icon {
  color: rgba(255,255,255,0.9);
}

.search-bar {
  width: 100%;
  padding: 9px 30px 9px 34px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.22);
  font-size: 0.86rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: all var(--transition-normal);
}

.search-bar::-webkit-search-cancel-button { display: none; }

.search-bar:focus {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14);
  outline: none;
}

.search-bar::placeholder {
  color: rgba(255,255,255,0.46);
}

.search-clear {
  position: absolute;
  right: 9px;
  background: rgba(255,255,255,0.22);
  border: none;
  color: rgba(255,255,255,0.75);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-clear:hover {
  background: rgba(255,255,255,0.38);
  color: #fff;
}

/* ── Dropdown suggestions ── */
.suggestions-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2,20,48,0.2), 0 4px 16px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(14,165,233,0.12);
  overflow: hidden;
  display: none;
  z-index: 1100;
  animation: suggSlideDown 0.18s ease both;
}

@keyframes suggSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.sugg-header {
  padding: 8px 14px 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94A3B8;
  background: #F8FAFC;
  border-bottom: 1px solid #F1F5F9;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid #F8FAFC;
  color: var(--text-dark);
}

.suggestion-item:last-of-type { border-bottom: none; }

.suggestion-item:hover,
.suggestion-item.active {
  background: #EFF6FF;
}

.sugg-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sugg-body { flex: 1; min-width: 0; }

.suggestion-title {
  font-weight: 700;
  color: #0F172A;
  font-size: 0.875rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-title mark {
  background: transparent;
  color: #0284C7;
  font-weight: 900;
}

.suggestion-category {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

.sugg-arrow {
  color: #CBD5E1;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.suggestion-item:hover .sugg-arrow,
.suggestion-item.active .sugg-arrow {
  color: #0EA5E9;
  transform: translateX(3px);
}

.sugg-footer {
  padding: 7px 14px;
  background: #F8FAFC;
  border-top: 1.5px solid #F1F5F9;
  font-size: 0.68rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.sugg-footer kbd {
  display: inline-block;
  background: #E2E8F0;
  color: #475569;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.64rem;
  font-family: inherit;
  font-weight: 700;
}

.sugg-no-results { padding: 22px 16px; text-align: center; }
.sugg-no-icon { font-size: 1.8rem; margin-bottom: 8px; }
.sugg-no-title { font-size: 0.88rem; font-weight: 700; color: #334155; margin-bottom: 5px; }
.sugg-no-hint { font-size: 0.76rem; color: #94A3B8; }

.sugg-recent-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.84rem;
  color: #475569;
  border-bottom: 1px solid #F8FAFC;
  transition: background var(--transition-fast);
}

.sugg-recent-item:hover { background: #F8FAFC; }
.sugg-recent-icon { font-size: 0.85rem; opacity: 0.45; }

/* ============================
   OVERLAY DE RECHERCHE
============================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.search-overlay.show {
  display: flex;
  opacity: 1;
}

.search-overlay-content {
  background: #ffffff;
  backdrop-filter: blur(32px);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--text-dark);
  width: 100%;
  max-width: 700px;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.search-overlay.show .search-overlay-content {
  transform: scale(1);
}

.close-overlay {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--bg-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.close-overlay:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

/* ============================
   HAMBURGER
============================ */
.hamburger {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================
   MENU OVERLAY — Dark Premium
============================ */

/* ── Backdrop ── */
.overlay-menu {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(2, 20, 40, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.overlay-menu.open { opacity: 1; pointer-events: auto; }

/* ── Blue panel matching topbar ── */
.nav-inner {
  background: linear-gradient(170deg, #0369A1 0%, #0284C7 40%, #0EA5E9 100%);
  width: 100%;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22,1,0.36,1), opacity 0.26s ease;
  border-top: 2px solid #FBBF24;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  max-height: 100%;
}
.overlay-menu.open .nav-inner { transform: translateY(0); opacity: 1; }

/* Scrollbar dark */
.nav-inner::-webkit-scrollbar       { width: 5px; }
.nav-inner::-webkit-scrollbar-track { background: transparent; }
.nav-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Header ── */
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.nav-logo-area {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo-area img {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1.5px solid rgba(99,179,237,0.4);
  box-shadow: 0 0 16px rgba(99,179,237,0.25);
}
.nav-site-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(99,179,237,0.3);
}
.nav-close-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1;
  flex-shrink: 0;
}
.nav-close-btn:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
  transform: scale(1.1) rotate(90deg);
}

/* ── Search ── */
.nav-search-wrap {
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}
.nav-search-input {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  outline: none;
  transition: all 0.2s ease;
}
.nav-search-input:focus {
  border-color: #FBBF24;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2);
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Featured strip ── */
.nav-featured {
  display: flex;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.nav-feat-tile {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  color: #e2e8f0;
  min-width: 0;
}
.nav-feat-tile:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav-feat-icon {
  font-size: 1.3rem;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.nav-feat-icon--blue   { background: rgba(59,130,246,0.18);  box-shadow: 0 0 12px rgba(59,130,246,0.15); }
.nav-feat-icon--yellow { background: rgba(234,179,8,0.18);   box-shadow: 0 0 12px rgba(234,179,8,0.15); }
.nav-feat-icon--green  { background: rgba(34,197,94,0.18);   box-shadow: 0 0 12px rgba(34,197,94,0.15); }
.nav-feat-icon--pink   { background: rgba(236,72,153,0.18);  box-shadow: 0 0 12px rgba(236,72,153,0.15); }
.nav-feat-icon--purple { background: rgba(139,92,246,0.18);  box-shadow: 0 0 12px rgba(139,92,246,0.15); }
.nav-feat-body  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-feat-title { font-size: 0.8rem; font-weight: 800; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-feat-sub   { font-size: 0.69rem; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ── Category grid ── */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 20px 28px;
  flex: 1;
}

/* ── Category cards ── */
.nav-cat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 14px;
  transition: all 0.22s ease;
}
.nav-cat:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Category top border & hover glow per color */
.nav-cat[data-color="blue"]   { border-top-color: #3B82F6; }
.nav-cat[data-color="purple"] { border-top-color: #8B5CF6; }
.nav-cat[data-color="pink"]   { border-top-color: #EC4899; }
.nav-cat[data-color="teal"]   { border-top-color: #14B8A6; }
.nav-cat[data-color="orange"] { border-top-color: #F97316; }
.nav-cat[data-color="green"]  { border-top-color: #22C55E; }

.nav-cat[data-color="blue"]:hover   { border-color: rgba(59,130,246,0.35);   box-shadow: 0 8px 28px rgba(59,130,246,0.12);  border-top-color: #3B82F6; }
.nav-cat[data-color="purple"]:hover { border-color: rgba(139,92,246,0.35);   box-shadow: 0 8px 28px rgba(139,92,246,0.12);  border-top-color: #8B5CF6; }
.nav-cat[data-color="pink"]:hover   { border-color: rgba(236,72,153,0.35);   box-shadow: 0 8px 28px rgba(236,72,153,0.12);  border-top-color: #EC4899; }
.nav-cat[data-color="teal"]:hover   { border-color: rgba(20,184,166,0.35);   box-shadow: 0 8px 28px rgba(20,184,166,0.12);  border-top-color: #14B8A6; }
.nav-cat[data-color="orange"]:hover { border-color: rgba(249,115,22,0.35);   box-shadow: 0 8px 28px rgba(249,115,22,0.12);  border-top-color: #F97316; }
.nav-cat[data-color="green"]:hover  { border-color: rgba(34,197,94,0.35);    box-shadow: 0 8px 28px rgba(34,197,94,0.12);   border-top-color: #22C55E; }

/* ── Category header ── */
.nav-cat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-cat-head span:first-child { font-size: 0.95rem; }

.nav-cat[data-color="blue"]   .nav-cat-head { color: #60A5FA; }
.nav-cat[data-color="purple"] .nav-cat-head { color: #A78BFA; }
.nav-cat[data-color="pink"]   .nav-cat-head { color: #F472B6; }
.nav-cat[data-color="teal"]   .nav-cat-head { color: #2DD4BF; }
.nav-cat[data-color="orange"] .nav-cat-head { color: #FB923C; }
.nav-cat[data-color="green"]  .nav-cat-head { color: #4ADE80; }

/* ── Links ── */
.nav-cat ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-cat ul li a {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none !important;
  transition: all 0.16s ease;
  gap: 5px;
}
.nav-cat ul li a::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.16s ease;
  flex-shrink: 0;
}
.nav-cat ul li a:hover {
  color: #f1f5f9;
  background: rgba(255,255,255,0.07);
  padding-left: 12px;
}
.nav-cat ul li a:hover::before { opacity: 1; transform: translateX(0); }

.nav-cat[data-color="blue"]   ul li a:hover { color: #93C5FD; background: rgba(59,130,246,0.1); }
.nav-cat[data-color="purple"] ul li a:hover { color: #C4B5FD; background: rgba(139,92,246,0.1); }
.nav-cat[data-color="pink"]   ul li a:hover { color: #F9A8D4; background: rgba(236,72,153,0.1); }
.nav-cat[data-color="teal"]   ul li a:hover { color: #5EEAD4; background: rgba(20,184,166,0.1); }
.nav-cat[data-color="orange"] ul li a:hover { color: #FDBA74; background: rgba(249,115,22,0.1); }
.nav-cat[data-color="green"]  ul li a:hover { color: #86EFAC; background: rgba(34,197,94,0.1); }

.nav-cat[data-color="blue"]   ul li a::before { color: #60A5FA; }
.nav-cat[data-color="purple"] ul li a::before { color: #A78BFA; }
.nav-cat[data-color="pink"]   ul li a::before { color: #F472B6; }
.nav-cat[data-color="teal"]   ul li a::before { color: #2DD4BF; }
.nav-cat[data-color="orange"] ul li a::before { color: #FB923C; }
.nav-cat[data-color="green"]  ul li a::before { color: #4ADE80; }

/* ── Badges ── */
.nav-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1.4;
}
.nav-badge--new  { background: rgba(34,197,94,0.2);  color: #4ADE80; }
.nav-badge--hot  { background: rgba(239,68,68,0.2);  color: #F87171; }
.nav-badge--play { background: rgba(234,179,8,0.2);  color: #FDE047; }

/* ── Footer ── */
.nav-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  color: #1a1200;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(251,191,36,0.35);
  white-space: nowrap;
}
.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251,191,36,0.55);
  filter: brightness(1.07);
}
.nav-footer-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.28);
  font-weight: 500;
}

/* ── Entry animations ── */
@keyframes navCatIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes featTileIn {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.overlay-menu.open .nav-feat-tile {
  animation: featTileIn 0.32s cubic-bezier(0.22,1,0.36,1) both;
}
.overlay-menu.open .nav-feat-tile:nth-child(1) { animation-delay: 0.02s; }
.overlay-menu.open .nav-feat-tile:nth-child(2) { animation-delay: 0.07s; }
.overlay-menu.open .nav-feat-tile:nth-child(3) { animation-delay: 0.12s; }
.overlay-menu.open .nav-feat-tile:nth-child(4) { animation-delay: 0.17s; }
.overlay-menu.open .nav-feat-tile:nth-child(5) { animation-delay: 0.22s; }

.overlay-menu.open .nav-cat {
  animation: navCatIn 0.38s cubic-bezier(0.22,1,0.36,1) both;
}
.overlay-menu.open .nav-cat:nth-child(1) { animation-delay: 0.05s; }
.overlay-menu.open .nav-cat:nth-child(2) { animation-delay: 0.10s; }
.overlay-menu.open .nav-cat:nth-child(3) { animation-delay: 0.15s; }
.overlay-menu.open .nav-cat:nth-child(4) { animation-delay: 0.20s; }
.overlay-menu.open .nav-cat:nth-child(5) { animation-delay: 0.25s; }
.overlay-menu.open .nav-cat:nth-child(6) { animation-delay: 0.30s; }

/* ── Sidebar icon ── */
.icon { font-size: 1.4rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-grid { grid-template-columns: repeat(2,1fr); padding: 16px 20px; }
  .nav-header, .nav-search-wrap, .nav-footer-strip { padding-left: 20px; padding-right: 20px; }
  .nav-featured { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 540px) {
  .nav-grid { grid-template-columns: 1fr; gap: 6px; }
  .nav-header { padding: 12px 16px; }
  .nav-search-wrap, .nav-footer-strip { padding-left: 16px; padding-right: 16px; }
  .nav-footer-text { display: none; }
  .nav-featured { flex-wrap: wrap; }
  .nav-feat-tile { flex: 1 1 calc(50% - 4px); }
}

/* ============================
   SIDEBAR
============================ */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
  border-right: 2px solid rgba(251,191,36,0.25);
  box-shadow: 4px 0 32px rgba(3,105,161,0.3);
  z-index: 900;
  transition: width var(--transition-slow);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.sidebar:hover {
  width: var(--sidebar-width-expanded);
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: var(--space-md) 0;
}

.sidebar li {
  margin-bottom: var(--space-sm);
}

.sidebar a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 14px;
  margin: 2px 8px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  font-weight: 600;
}

.sidebar a:hover,
.sidebar a:focus {
  background: rgba(251,191,36,0.22);
  color: #fff;
  transform: scale(1.05);
}

.sidebar .icon {
  font-size: 1.3rem;
  min-width: 44px;
  text-align: center;
  background: rgba(255,255,255,0.12);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sidebar a:hover .icon {
  background: rgba(251,191,36,0.45);
}

.sidebar .label {
  opacity: 0;
  transition: opacity var(--transition-normal);
  font-weight: 600;
  font-size: .85rem;
  margin-left: 10px;
}

.sidebar:hover .label {
  opacity: 1;
}

/* ============================
   HERO
============================ */
/* Hero — style cancer.ca : layout deux colonnes */
.hero {
  min-height: 78vh;
  background: linear-gradient(130deg, #013f75 0%, #0369A1 42%, #0EA5E9 100%);
  display: flex;
  align-items: center;
  color: white;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-slow);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
}

/* Cercles décoratifs en arrière-plan */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251,191,36,0.09) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Grille interne : texte gauche + stats droite */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Texte (gauche) ── */
.hero-text {
  animation: fadeInUp 0.8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: var(--space-xs);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-text p {
  font-size: 1.08rem;
  margin-bottom: var(--space-lg);
  line-height: 1.72;
  color: rgba(255,255,255,0.84);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

/* CTA buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0F172A;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(251,191,36,0.45);
  letter-spacing: 0.01em;
}

.cta:hover,
.cta:focus {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.5);
  color: #fff;
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
}

.cta-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}

/* Trust badges */
.hero-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 5px 13px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}

.htb-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  font-size: 0.58rem;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Visuel stats (droite) ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeInUp 1s ease 0.18s both;
}

.hv-card {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 24px 28px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
}

.hv-card--yellow {
  border-color: rgba(251,191,36,0.45);
  background: rgba(251,191,36,0.14);
}

.hvc-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.hvc-num span {
  font-size: 2rem;
  color: rgba(255,255,255,0.65);
}

.hv-card--yellow .hvc-num {
  color: #FBBF24;
}

.hv-card--yellow .hvc-num span {
  color: rgba(251,191,36,0.65);
}

.hvc-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 5px;
}

.hvc-source {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.03em;
}

.hv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hv-card--sm .hvc-num {
  font-size: 2.2rem;
}

.hv-card--sm .hvc-num span {
  font-size: 1.4rem;
}

.hv-ribbon {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.36);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 2px;
}

/* Play link special style */
.topbar-link--play {
  background: rgba(251,191,36,0.18);
  border: 1px solid rgba(251,191,36,0.35);
  color: #FBBF24 !important;
}

.topbar-link--play:hover {
  background: rgba(251,191,36,0.28) !important;
  color: #fff !important;
}

/* ── Topbar mega-dropdowns ── */
.tl-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
}
.tl-chevron {
  display: inline-block;
  font-style: normal;
  font-size: 0.6rem;
  margin-left: 4px;
  opacity: 0.65;
  transition: transform 0.22s ease;
  vertical-align: middle;
}
.tl-wrap:hover .tl-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* The dropdown panel */
.topbar-dd {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2,20,48,0.18), 0 2px 8px rgba(0,0,0,0.06);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22,1,0.36,1);
  z-index: 1002;
  border-top: 3px solid #0EA5E9;
  /* caret above dropdown */
}
.topbar-dd::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: #0EA5E9;
  pointer-events: none;
}
.topbar-dd::after {
  /* invisible hover bridge between link and dropdown */
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.tl-wrap:hover .topbar-dd {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.tdd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 9px;
  text-decoration: none !important;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.tdd-item:hover {
  background: #EFF6FF;
  color: #0284C7;
  transform: translateX(3px);
}
.tdd-icon {
  font-size: 1.05rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.tdd-sep {
  height: 1px;
  background: #E2EEF9;
  margin: 4px 8px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   CONTENU PRINCIPAL
============================ */
main {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: var(--space-xl) var(--space-md);
  transition: margin-left var(--transition-slow);
  min-height: calc(100vh - var(--header-height));
}

.section-container {
  max-width: var(--max-content-width);
  margin: 0 auto var(--space-xl);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-bottom: 16px;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

section h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}

/* ── Section label (above h2) ── */
.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
}

/* ── Section intro text ── */
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  color: var(--text-medium);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================
   SECTION PRÉSENTATION
============================ */
#presentation {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #E2EEF9;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

.presentation-content {
  line-height: 1.8;
}

.presentation-content p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  color: var(--text-medium);
}

.presentation-content strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.presentation-content em {
  color: var(--text-medium);
  font-style: italic;
}

.closing-statement {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  border: 1.5px solid #BFDBFE;
  border-left: 4px solid var(--accent);
}

/* Cœurs animés */
.hearts {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hearts span {
  position: absolute;
  font-size: 28px;
  opacity: 0;
}

#presentation:hover .hearts span {
  animation: floatHeart 2.5s ease-out forwards;
}

#presentation:hover .hearts span:nth-child(1) {
  animation-delay: 0s;
}
#presentation:hover .hearts span:nth-child(2) {
  animation-delay: 0.3s;
}
#presentation:hover .hearts span:nth-child(3) {
  animation-delay: 0.6s;
}
#presentation:hover .hearts span:nth-child(4) {
  animation-delay: 0.9s;
}
#presentation:hover .hearts span:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes floatHeart {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx, -80px), var(--ty, -200px)) rotate(var(--r, 180deg)) scale(1.2);
    opacity: 0;
  }
}

.hearts span:nth-child(1) { --tx: -90px; --ty: -180px; --r: 160deg; }
.hearts span:nth-child(2) { --tx: 70px; --ty: -210px; --r: -100deg; }
.hearts span:nth-child(3) { --tx: -50px; --ty: -190px; --r: 340deg; }
.hearts span:nth-child(4) { --tx: 110px; --ty: -230px; --r: 260deg; }
.hearts span:nth-child(5) { --tx: -130px; --ty: -200px; --r: 420deg; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   SECTION SERVICES
============================ */
#services {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #E2EEF9;
  border-top: 3px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.service-description {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(14,165,233,0.35);
  letter-spacing: 0.01em;
}

.menu-button:hover,
.menu-button:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(14,165,233,0.48);
  filter: brightness(1.06);
}

/* ============================
   SECTION DON
============================ */
#don {
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #E2EEF9;
  border-top: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.intro-text {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
}

/* Badges de confiance */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  border: 1.5px solid #BFDBFE;
  box-shadow: var(--shadow-xs);
}

.badge-icon {
  font-size: 1.3rem;
}

.badge-text {
  font-weight: 700;
  color: var(--primary-dark);
}

/* Container des dons */
.don-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.don-left,
.don-right {
  display: flex;
  flex-direction: column;
}

/* Formulaire de don */
.don-form {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-md);
}

.don-form label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.don-form input {
  width: 100%;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-light);
  font-size: 1rem;
  transition: all var(--transition-normal);
  background: white;
}

.don-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.2);
  outline: none;
}

.don-btn {
  width: 100%;
  padding: var(--space-md);
  background: var(--secondary);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-sm);
}

.don-btn:hover,
.don-btn:focus {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.don-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  display: none;
  animation: slideIn 0.4s ease;
}

.don-message:not(:empty) {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Statistiques */
.don-right {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.don-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-box {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box h3 {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: var(--space-xs);
  margin-top: 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Feed des dons */
.don-right > h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.don-live-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

/* Scrollbar personnalisée */
.don-live-feed::-webkit-scrollbar {
  width: 6px;
}

.don-live-feed::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}

.don-live-feed::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 10px;
}

.don-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--secondary);
  animation: cardSlideIn 0.4s ease;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.don-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.don-card-name {
  font-weight: 600;
  color: var(--text-dark);
}

.don-card-amount {
  font-weight: 700;
  color: var(--accent);
}

.don-card-dedication {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 4px;
  font-style: italic;
}

.don-card-time {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ============================
   FOOTER
============================ */
.footer {
  background: var(--primary-deep);
  border-top: 3px solid var(--accent);
  color: rgba(255,255,255,0.8);
  padding: var(--space-xl) var(--space-md);
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-slow);
}

.footer-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.footer-credits {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.footer-don {
  display: inline-block;
  background: var(--secondary);
  color: var(--text-dark);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.footer-don:hover,
.footer-don:focus {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================
   SCROLL PROGRESS INDICATOR
============================ */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(251,191,36,0.5);
}

/* ============================
   STATISTICS SECTION
============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid #E2EEF9;
  border-top: 3px solid var(--primary);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-suffix {
  display: inline;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-medium);
  font-weight: 600;
  line-height: 1.45;
  margin-top: 6px;
}

/* ============================
   QUIZ SECTION
============================ */
#quiz {
  background: var(--bg-white);
  border: 1px solid #E2EEF9;
  border-top: 3px solid var(--accent);
  padding: var(--space-xl);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-content {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
  margin-bottom: var(--space-lg);
}

.quiz-question {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.quiz-options {
  display: grid;
  gap: var(--space-md);
}

.quiz-option {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1.1rem;
  text-align: left;
}

.quiz-option:hover {
  background: var(--bg-primary);
  border-color: var(--primary-light);
  transform: translateX(8px);
}

.quiz-option.correct {
  background: #d4edda;
  border-color: var(--accent);
  animation: correctAnswer 0.5s ease;
}

.quiz-option.incorrect {
  background: #f8d7da;
  border-color: var(--danger);
  animation: shake 0.5s ease;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.6;
}

@keyframes correctAnswer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.quiz-feedback {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: none;
  animation: fadeIn 0.4s ease;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid var(--accent);
}

.quiz-feedback.incorrect {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid var(--danger);
}

.quiz-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.quiz-btn {
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quiz-btn.secondary {
  background: var(--secondary);
  color: var(--text-dark);
}

.quiz-progress {
  text-align: center;
}

.quiz-score {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.quiz-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 20px;
}

/* ============================
   TESTIMONIALS CAROUSEL
============================ */
#temoignages {
  background: var(--bg-white);
  border: 1px solid #E2EEF9;
  border-top: 3px solid var(--primary);
  padding: var(--space-xl);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: var(--space-xl) auto;
  padding: 0 60px;
}

.testimonials-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.testimonial-slide {
  background: var(--bg-light);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: none;
  animation: slideIn 0.5s ease;
}

.testimonial-slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  position: relative;
  padding: var(--space-md);
}

.testimonial-quote::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-light);
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.95rem;
  color: var(--text-medium);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--primary-light);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ============================
   FLOATING ACTION BUTTON
============================ */
.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: scale(0);
}

.fab.show {
  opacity: 1;
  transform: scale(1);
}

.fab:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}


/* ============================
   SOCIAL SHARE BUTTONS
============================ */
.social-share {
  margin: var(--space-lg) 0;
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-sm);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0a66c2;
  color: white;
}

.share-btn.email {
  background: var(--secondary);
  color: var(--text-dark);
}

/* ============================
   INTERACTIVE BODY MAP
============================ */
.body-map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.body-map {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
}

.body-svg {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.body-part {
  cursor: pointer;
  transition: all var(--transition-normal);
  stroke: var(--primary);
  stroke-width: 2;
}

.body-part:hover {
  opacity: 0.8;
  transform: scale(1.05);
  filter: brightness(1.1);
}

.body-part.active {
  stroke-width: 4;
  filter: brightness(1.2) drop-shadow(0 0 10px currentColor);
}

.body-info-panel {
  background: var(--bg-light);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  min-height: 400px;
}

.body-info-panel h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
  font-size: 1.8rem;
}

.body-info-panel p {
  line-height: 1.8;
  color: var(--text-medium);
}

#bodyPartDetails {
  margin-top: var(--space-lg);
}

.body-detail-item {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border-left: 4px solid var(--primary);
}

/* ============================
   RESOURCES LIBRARY
============================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.resource-card-img {
  width: calc(100% + 2 * var(--space-xl));
  height: 140px;
  margin: 0 calc(-1 * var(--space-xl)) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}
.resource-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.resource-card-img span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.resource-card {
  background: white;
  overflow: hidden;
  padding: 0 var(--space-xl) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.resource-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.resource-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.resource-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.resource-card p {
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.resource-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  text-decoration: none;
  display: block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 100%;
}

.resource-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ============================
   NEWS SECTION
============================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.news-card {
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #E2EEF9;
  transition: all var(--transition-normal);
  position: relative;
}

.news-card.featured {
  grid-column: span 2;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--secondary);
  color: var(--text-dark);
  padding: 6px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
}

.news-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.news-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.news-image > *:not(img) { position: relative; z-index: 1; }

.news-content {
  padding: var(--space-lg);
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.news-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.news-card p {
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.news-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
  display: inline-block;
}

/* ============================
   FAQ SECTION
============================ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-search {
  margin-bottom: var(--space-lg);
}

.faq-search-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.faq-search-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.1);
}

.faq-categories {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.faq-category-btn {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--primary-light);
  background: white;
  color: var(--primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.faq-category-btn:hover,
.faq-category-btn.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-medium);
  line-height: 1.8;
}

/* ============================
   GLOSSARY SECTION
============================ */
.glossary-container {
  max-width: 1000px;
  margin: 0 auto;
}

.glossary-search {
  margin-bottom: var(--space-lg);
}

.glossary-search-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.glossary-search-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.1);
}

.glossary-alphabet {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.alphabet-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-light);
  background: white;
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.alphabet-btn:hover,
.alphabet-btn.active {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.alphabet-btn[data-letter="all"] {
  width: auto;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
}

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.glossary-item {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all var(--transition-normal);
}

.glossary-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.glossary-term {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.glossary-definition {
  color: var(--text-medium);
  line-height: 1.8;
}

/* ============================
   TOOLS SECTION
============================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tool-card {
  background: linear-gradient(135deg, white 0%, var(--bg-light) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.tool-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-sm);
}

.tool-card p {
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.tool-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 100%;
}

.tool-btn:hover {
  background: #27ae60;
  transform: scale(1.05);
}

/* ============================
   VIDEO LIBRARY
============================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.9);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.video-card:hover .play-button {
  transform: scale(1.1);
  background: white;
}

.video-duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.video-info {
  padding: var(--space-md);
}

.video-info h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

.video-info p {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.video-views {
  color: var(--text-light);
  font-size: 0.85rem;
}

.video-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================
   TOOL MODALS
============================ */
.tool-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.tool-modal.show {
  display: flex;
  opacity: 1;
}

.tool-modal-content {
  background: white;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.tool-modal.show .tool-modal-content {
  transform: scale(1);
}

.tool-modal-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.tool-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tool-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.tool-modal-body {
  padding: var(--space-lg);
  overflow-y: auto;
  flex: 1;
}

/* Calendar Tool */
.calendar-container {
  display: grid;
  gap: var(--space-lg);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.calendar-nav {
  display: flex;
  gap: var(--space-sm);
}

.calendar-nav button {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.calendar-nav button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--primary);
  color: white;
  padding: var(--space-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.calendar-day {
  background: white;
  padding: var(--space-sm);
  min-height: 80px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-primary);
  transform: scale(1.05);
}

.calendar-day.other-month {
  background: var(--bg-light);
  opacity: 0.5;
}

.calendar-day.today {
  background: var(--secondary);
  font-weight: 700;
}

.calendar-day.has-event {
  background: #e8f4f8;
  border: 2px solid var(--primary);
}

.calendar-day-number {
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-event-dot {
  width: 100%;
  padding: 2px 4px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  border-radius: 3px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.event-form {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.1);
}

.form-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--bg-primary);
}

/* Journal Tool */
.journal-container {
  display: grid;
  gap: var(--space-lg);
}

.journal-entry {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-bottom: var(--space-md);
}

.journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.journal-date {
  font-weight: 700;
  color: var(--primary);
}

.journal-delete {
  background: var(--danger);
  color: white;
  border: none;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
}

.symptom-severity {
  display: inline-block;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: var(--space-sm);
}

.severity-low {
  background: #d4edda;
  color: #155724;
}

.severity-medium {
  background: #fff3cd;
  color: #856404;
}

.severity-high {
  background: #f8d7da;
  color: #721c24;
}

/* Risk Assessment Tool */
.risk-assessment {
  display: grid;
  gap: var(--space-lg);
}

.risk-question {
  background: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.risk-question h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.risk-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.risk-option {
  padding: var(--space-sm);
  background: white;
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.risk-option:hover {
  border-color: var(--primary);
  background: var(--bg-primary);
}

.risk-option input[type="radio"] {
  width: 20px;
  height: 20px;
}

.risk-result {
  background: linear-gradient(135deg, var(--bg-primary), white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-lg);
}

.risk-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-md) 0;
}

.risk-level {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: var(--space-md);
}

.risk-low {
  background: #d4edda;
  color: #155724;
}

.risk-moderate {
  background: #fff3cd;
  color: #856404;
}

.risk-high {
  background: #f8d7da;
  color: #721c24;
}

/* Relaxation Tool */
.relaxation-container {
  text-align: center;
}

.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: var(--space-xl) auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 4s ease-in-out;
}

.breathing-circle.breathe-in {
  transform: scale(1.5);
}

.breathing-circle.breathe-out {
  transform: scale(1);
}

.relaxation-controls {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.relaxation-timer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-lg) 0;
}

.relaxation-instructions {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  text-align: left;
}

.relaxation-instructions h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.relaxation-instructions ol {
  padding-left: var(--space-lg);
  line-height: 1.8;
}

/* Video Player Modal */
.video-player-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.video-player-modal.show {
  display: flex;
  opacity: 1;
}

.video-player-content {
  width: 90%;
  max-width: 1200px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-player-header {
  background: rgba(0, 0, 0, 0.9);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.video-player-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.video-player-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  position: relative;
}

.video-info-box {
  background: rgba(0, 0, 0, 0.9);
  padding: var(--space-lg);
  color: white;
}

.video-info-box h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.video-info-box p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ============================
   RESPONSIVE - TABLETTE
============================ */
@media (max-width: 1024px) {
  .topbar-nav {
    display: none;
  }

  .search-container {
    width: 160px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .don-container {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-carousel {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .body-map-container {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .resources-grid,
  .tools-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================
   RESPONSIVE - MOBILE
============================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --sidebar-width: 0;
    --space-lg: 24px;
    --space-xl: 32px;
  }

  /* On mobile: hide utility bar → header is just the main nav row (60px) */
  .topbar-utility {
    display: none;
  }

  .topbar-main {
    padding: 0 var(--space-sm);
  }

  /* Hide search bar on mobile — use hamburger menu search instead */
  .topbar-actions .search-container {
    display: none;
  }

  .sidebar {
    display: none;
  }

  main,
  .hero,
  .footer {
    margin-left: 0;
  }

  .site-name {
    font-size: 1.1rem;
  }

  .logo img {
    height: 40px;
  }

  .search-container {
    margin: 0 var(--space-sm);
  }

  .search-bar {
    font-size: 0.9rem;
    padding: 10px var(--space-sm);
  }

  .hero {
    padding: var(--space-lg) var(--space-sm);
    min-height: 60vh;
  }

  /* Stack to single column on mobile */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  /* Hide stat cards on mobile — they'd be cut off */
  .hero-visual {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  main {
    padding: var(--space-md) var(--space-sm);
  }

  #presentation,
  #services,
  #don {
    padding: var(--space-md);
  }

  section h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.5rem;
  }

  .presentation-content p {
    font-size: 1rem;
  }

  .don-container {
    gap: var(--space-md);
  }

  .don-stats {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .menu-toggle {
    font-size: 1rem;
    padding: var(--space-sm);
  }

  .submenu {
    margin-left: var(--space-md);
  }

  /* Cœurs désactivés sur mobile pour performance */
  .hearts {
    display: none;
  }

  .search-overlay-content {
    padding: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  #quiz,
  #temoignages,
  #statistiques {
    padding: var(--space-md);
  }

  .quiz-content {
    padding: var(--space-md);
    min-height: 250px;
  }

  .quiz-question {
    font-size: 1.2rem;
  }

  .quiz-option {
    font-size: 1rem;
    padding: var(--space-sm);
  }

  .testimonials-carousel {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .testimonial-quote {
    font-size: 1.1rem;
  }

  .fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .body-map {
    padding: var(--space-sm);
  }

  .body-svg {
    max-width: 300px;
  }

  .body-info-panel {
    padding: var(--space-md);
  }

  .resources-grid,
  .tools-grid,
  .video-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .faq-categories,
  .glossary-alphabet {
    gap: 6px;
  }

  .faq-category-btn {
    font-size: 0.9rem;
    padding: 8px var(--space-sm);
  }

  .alphabet-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .resource-icon,
  .tool-icon {
    font-size: 3rem;
  }

  .video-thumbnail {
    height: 150px;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}

/* ============================
   RESPONSIVE - TRÈS PETIT MOBILE
============================ */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .don-form,
  .don-right {
    padding: var(--space-sm);
  }
}

/* ============================
   PRINT STYLES
============================ */
@media print {
  .topbar,
  .sidebar,
  .hamburger,
  .overlay-menu,
  .search-overlay,
  .footer,
  .cta,
  .menu-button,
  .don-btn {
    display: none;
  }

  main {
    margin-left: 0;
    margin-top: 0;
  }

  body {
    background: white;
  }

  #presentation,
  #services,
  #don {
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* ============================
   DARK MODE
============================ */
body.dark-mode {
  --primary: #38BDF8;
  --primary-dark: #7DD3FC;
  --primary-light: #BAE6FD;
  --secondary: #FBBF24;
  --secondary-dark: #FDE68A;

  --text-dark: #e4e4e4;
  --text-medium: #b8b8b8;
  --text-light: #9a9a9a;

  --bg-primary: #1a1a2e;
  --bg-white: #16213e;
  --bg-light: #0f1624;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 6px 20px rgba(0,0,0,0.5);
}

body.dark-mode .hero {
  background: linear-gradient(130deg, #010d1e 0%, #012444 42%, #01386b 100%);
}

body.dark-mode .suggestion-item:hover,
body.dark-mode .suggestion-item:focus {
  background: var(--bg-light);
}

/* Dark mode toggle button */
.dark-mode-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: var(--space-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
  position: absolute;
  transition: all var(--transition-normal);
}

.dark-mode-toggle .sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.dark-mode-toggle .moon-icon {
  opacity: 0;
  transform: scale(0) rotate(180deg);
}

body.dark-mode .dark-mode-toggle .sun-icon {
  opacity: 0;
  transform: scale(0) rotate(-180deg);
}

body.dark-mode .dark-mode-toggle .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Smooth transition for dark mode */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================
   ANIMATIONS DE PERFORMANCE
============================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   STYLES MODALES OUTILS
============================ */

/* -- Commun aux formulaires -- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #d0d0d0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-normal);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 122, 189, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.tool-submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 100%;
  margin-top: var(--space-sm);
}

.tool-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* -- Calendrier -- */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  background: var(--bg-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.calendar-nav h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.calendar-nav-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.calendar-nav-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

#calendarDays {
  display: contents;
}

.calendar-event-indicator {
  color: var(--primary);
  font-size: 1.2rem;
  text-align: center;
}

.calendar-form-section {
  margin-top: var(--space-xl);
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.calendar-form-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.calendar-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.events-list-section {
  margin-top: var(--space-xl);
}

.events-list-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.event-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--primary);
}

.event-date {
  font-weight: 700;
  color: var(--primary);
  min-width: 100px;
  font-size: 0.9rem;
}

.event-details {
  flex: 1;
}

.event-title {
  font-weight: 600;
}

.event-type {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.event-delete {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition-normal);
  flex-shrink: 0;
}

.event-delete:hover {
  background: #c0392b;
}

.no-events,
.no-entries {
  text-align: center;
  color: var(--text-medium);
  padding: var(--space-xl);
  font-style: italic;
}

/* -- Journal -- */
.journal-intro {
  background: #e8f4f8;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border-left: 4px solid var(--primary);
}

.journal-form {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

.journal-entries-section h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.journal-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journal-symptom {
  margin: var(--space-xs) 0;
  font-size: 1.05rem;
}

.journal-notes {
  color: var(--text-medium);
  font-size: 0.9rem;
  margin-top: var(--space-xs);
  line-height: 1.4;
}

.severity-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: var(--space-sm);
}

.severity-low { background: #d4edda; color: #155724; }
.severity-medium { background: #fff3cd; color: #856404; }
.severity-high { background: #f8d7da; color: #721c24; }

.journal-delete-btn {
  background: none;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  transition: all var(--transition-normal);
}

.journal-delete-btn:hover {
  background: #e74c3c;
  color: white;
}

/* -- Évaluateur de risques -- */
.risk-intro {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.risk-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.risk-question {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.risk-question label:first-child {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-md);
}

.risk-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.risk-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.risk-option:hover {
  border-color: var(--primary);
  background: var(--bg-primary);
}

.risk-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.risk-option input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 700;
}

.risk-results {
  margin-top: var(--space-xl);
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.risk-results h3 {
  color: var(--primary);
  margin-bottom: var(--space-lg);
  font-size: 1.4rem;
}

.risk-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.risk-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  flex-direction: column;
}

.risk-score-max {
  font-size: 0.9rem;
  opacity: 0.8;
}

.risk-level {
  font-size: 1.8rem;
  font-weight: 900;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--primary);
}

.risk-recommendations {
  text-align: left;
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.risk-recommendations ul {
  margin: var(--space-sm) 0 0 var(--space-lg);
}

.risk-recommendations li {
  margin-bottom: var(--space-xs);
}

/* -- Relaxation -- */
.relax-intro {
  background: #e8f8f0;
  border-left: 4px solid var(--accent);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.breathing-inner-circle {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.breathing-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.relax-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.relax-btn {
  padding: 14px var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.relax-btn-start {
  background: var(--accent);
  color: white;
}

.relax-btn-start:hover {
  background: #27ae60;
  transform: scale(1.05);
}

.relax-btn-stop {
  background: #e74c3c;
  color: white;
}

.relax-btn-stop:hover {
  background: #c0392b;
  transform: scale(1.05);
}

.relax-timer {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.timer-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.relax-instructions {
  background: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.relax-instructions h3 {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.relax-instructions ol {
  padding-left: var(--space-lg);
}

.relax-instructions li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}
/* ============================
   QUICK NAV STRIP
============================ */
#quick-nav {
  background: #fff;
  border-bottom: 1.5px solid #E2EEF9;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.quick-nav-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.quick-nav-scroll::-webkit-scrollbar { display: none; }
.qn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #F0F8FF;
  border: 1.5px solid #D1E8F8;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.qn-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,165,233,.28);
}
.qn-chip.qn-new {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}
.qn-chip.qn-new::after {
  content: 'NOUVEAU';
  font-size: 0.55rem;
  background: #FBBF24;
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.qn-chip.qn-new:hover {
  background: #D97706;
  border-color: #D97706;
  color: white;
  box-shadow: 0 4px 12px rgba(217,119,6,.3);
}
.qn-chip.qn-new:hover::after { background: rgba(255,255,255,0.25); }
@media (max-width: 768px) {
  #quick-nav { top: 56px; }
}
