/* ═══════════════════════════════════════════════════
   RÉPIT EMERGO — Site Web 2026
   Brand palette from livre de marque Emergo
   ═══════════════════════════════════════════════════ */

/* ═══ BRAND FONTS ═══ */
/* Terfens — via Adobe Fonts (Typekit) : https://use.typekit.net/qie5ffr.css
   Poppins — via Google Fonts */

:root {
  /* ── Couleurs officielles (livre de marque) ── */
  --navy: #001E55;           /* Bleu Roi — exact */
  --navy-dark: #001340;      /* Bleu Roi foncé (hover) */
  --blue: #4A7EB5;           /* dérivé mid-blue pour liens (entre Bleu Roi & Bleu Ciel) */
  --blue-light: #D2E6FF;     /* Bleu Ciel — exact */
  --blue-pale: #EBF3FF;      /* teinte pâle dérivée du Bleu Ciel */
  --sky: #D2E6FF;            /* Bleu Ciel — exact */
  --gold: #D4A843;           /* doré fonctionnel pour CTA */
  --gold-light: #FFEBB4;     /* Jaune — exact */
  --cream: #F0EDE1;          /* Beige — exact */
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-mid: #3D4B6B;
  --text-light: #6B7B9A;
  --green: #6B9F7B;          /* dérivé mid-vert pour icônes (famille Vert) */
  --green-light: #C8E1C8;    /* Vert — exact */
  --red-soft: #C0504D;
  --shadow-sm: 0 1px 3px rgba(0,30,85,.08);
  --shadow-md: 0 4px 16px rgba(0,30,85,.10);
  --shadow-lg: 0 8px 32px rgba(0,30,85,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .25s ease;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 { font-family: "terfens", 'Poppins', sans-serif; font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: .4em; }
p { margin-bottom: 1em; color: var(--text-mid); }
.lead { font-size: 1.15rem; line-height: 1.8; max-width: 680px; }
.section-label {
  display: inline-block; font-size: .94rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--blue);
  margin-bottom: .8rem;
}

/* ═══ LAYOUT ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--blue-pale); }
.section-cream { background: var(--cream); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,30,85,.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand svg { width: 44px; height: 44px; }
.navbar-brand .brand-text { font-size: .95rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
.navbar-brand .brand-sub { font-size: .65rem; color: var(--text-light); font-weight: 400; }
.navbar-logo { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: .875rem; font-weight: 500;
  color: var(--text-mid); transition: all var(--transition);
}
.nav-links a:hover { background: var(--blue-pale); color: var(--navy); }
.nav-links a.active { background: var(--blue-pale); color: var(--navy); }

/* Dropdown submenu */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; margin-left: 2px; transition: transform var(--transition); }
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
/* Pont invisible qui comble l'espace entre le lien et le menu */
.nav-dropdown::before { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,30,85,.08); padding: 6px 0; z-index: 100;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  transition-delay: .08s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-dropdown-menu a {
  display: block; padding: 10px 18px; font-size: .85rem; font-weight: 500;
  color: var(--text-mid); transition: all var(--transition); border-radius: 0;
}
.nav-dropdown-menu a:hover { background: var(--blue-pale); color: var(--navy); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 100px;
  background: var(--navy); color: var(--white) !important;
  font-size: .875rem; font-weight: 600;
  transition: all var(--transition);
}
.nav-cta:hover { background: #0A2E6B; color: var(--white) !important; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.lang-switch {
  padding: 6px 12px; border-radius: 6px; font-size: .8rem; font-weight: 600;
  color: var(--text-light); border: 1px solid rgba(0,30,85,.12);
  transition: all var(--transition); margin-left: 8px;
}
.lang-switch:hover { background: var(--blue-pale); color: var(--navy); border-color: var(--blue); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}

/* ═══ HERO ═══ */
.hero {
  margin-top: var(--nav-h);
  background: linear-gradient(160deg, var(--blue-pale) 0%, var(--sky) 40%, var(--blue-light) 100%);
  padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(0,30,85,.03);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--navy); margin-bottom: .5em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { color: var(--text-mid); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2rem; }

/* ═══ 50th ANNIVERSARY BADGE ═══ */
.anniversary-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #E8C060 100%);
  color: var(--navy); padding: 10px 22px; border-radius: 100px;
  font-size: .9rem; font-weight: 700; margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(212,168,67,.3);
}
.anniversary-badge svg { width: 20px; height: 20px; }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #0A2E6B; color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #E8C060); color: var(--navy); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(212,168,67,.4); color: var(--navy); }

/* ═══ CARDS ═══ */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border: 1px solid rgba(0,30,85,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 1.5rem;
}
.card-icon.blue { background: var(--blue-pale); color: var(--blue); }
.card-icon.gold { background: var(--gold-light); color: var(--gold); }
.card-icon.green { background: var(--green-light); color: var(--green); }
.card h3 { font-size: 1.2rem; }
.card p { font-size: .925rem; color: var(--text-light); }

/* ═══ PROGRAM CARDS ═══ */
.program-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  border: 1px solid rgba(0,30,85,.04);
  display: flex; flex-direction: column;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card-img {
  height: 220px; background-size: cover; background-position: center center;
  position: relative;
}
.program-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,30,85,.45) 0%, transparent 100%);
  pointer-events: none;
}
.program-card-img .program-tag {
  position: absolute; bottom: 12px; left: 12px; z-index: 1;
  background: rgba(0,30,85,.85); color: #FFFFFF;
  padding: 4px 14px; border-radius: 100px; font-size: .75rem; font-weight: 700;
  letter-spacing: .5px; backdrop-filter: blur(4px);
}
.program-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.program-card-body h3 { margin-bottom: .3em; }
.program-card-body p { flex: 1; }
.program-card-body .ratio {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--blue);
  background: var(--blue-pale); padding: 4px 10px; border-radius: 6px;
  margin-bottom: 12px;
}

/* Detail link with arrow animation */
.prog-detail-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 8px 16px;
  font-size: .85rem; font-weight: 600;
  color: #fff; background: #4A7EB5;
  border-radius: 100px; text-decoration: none;
  transition: background .3s ease, gap .3s ease, box-shadow .3s ease;
}
.prog-detail-link:hover {
  color: #fff; background: #0D47A1; gap: 10px;
  box-shadow: 0 4px 12px rgba(0,30,85,.25);
}
[data-theme="dark"] .prog-detail-link { color: #fff; background: #4A7EB5; }
[data-theme="dark"] .prog-detail-link:hover { color: #fff; background: #1976D2; }
.prog-detail-arrow {
  transition: transform .3s ease;
}
.prog-detail-link:hover .prog-detail-arrow {
  transform: translateX(3px);
  animation: nudge .6s ease infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(3px); }
  50% { transform: translateX(6px); }
}

/* ═══ ALBUM PHOTO CTA ═══ */
.album-cta-link {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s ease;
}
.album-cta-link:hover { transform: scale(1.01); }
.album-cta-inner {
  position: relative;
  background: linear-gradient(135deg, #001E55 0%, #4A7EB5 100%);
  border-radius: var(--radius-lg);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.album-polaroids {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.album-pol {
  position: absolute;
  width: 140px; height: 160px;
  background: #fff; border-radius: 4px;
  padding: 8px 8px 28px; box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transform: rotate(var(--rot));
  opacity: 1;
  transition: transform .5s ease;
  animation: pol-float 4s ease-in-out infinite;
  animation-delay: var(--delay);
}
.album-cta-link:hover .album-pol { opacity: 1; }
.album-pol:nth-child(1) { left: 1%; top: 8%; }
.album-pol:nth-child(2) { left: 12%; bottom: 4%; }
.album-pol:nth-child(3) { left: 24%; top: -8%; }
.album-pol:nth-child(4) { right: 12%; bottom: 4%; }
.album-pol:nth-child(5) { right: 1%; top: 8%; }
.album-pol:nth-child(6) { right: 24%; top: -8%; }
.album-pol:nth-child(7) { left: 38%; bottom: -8%; }
.album-pol:nth-child(8) { left: 6%; top: 45%; }
.album-pol:nth-child(9) { right: 6%; top: 45%; }
.album-pol img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 2px;
}
@keyframes pol-float {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50% { transform: rotate(var(--rot)) translateY(-8px); }
}
.album-cta-text {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 40px 24px;
  background: radial-gradient(ellipse at center, rgba(0,30,85,.85) 0%, transparent 70%);
}
.album-cta-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  transition: transform .3s ease, background .3s ease;
}
.album-cta-link:hover .album-cta-icon {
  transform: scale(1.1);
  background: rgba(255,215,0,.25);
}
.album-cta-text h3 {
  font-size: 1.6rem; margin-bottom: 8px; color: #fff;
}
.album-cta-text p {
  font-size: .95rem; color: #fff !important; opacity: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  max-width: 400px; margin: 0 auto 20px;
}
.album-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  background: var(--gold); color: #1A1200;
  border-radius: 100px; font-weight: 700; font-size: .9rem;
  transition: gap .3s ease, box-shadow .3s ease, transform .3s ease;
}
.album-cta-link:hover .album-cta-btn {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,215,0,.4);
}
.album-cta-link:hover .album-cta-btn svg:last-child {
  transform: translateX(4px);
  transition: transform .3s ease;
}
@media (max-width: 768px) {
  .album-pol { width: 90px; height: 105px; padding: 5px 5px 18px; }
  .album-cta-text h3 { font-size: 1.3rem; }
}

/* ═══ STATS ═══ */
.stats-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 40px 0; }
.stat { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy);
  line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: .85rem; color: var(--text-light); font-weight: 500; }

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 80px; top: 0; bottom: 0;
  width: 2px; background: var(--blue-light);
}
.timeline-item {
  display: flex; align-items: flex-start; margin-bottom: 32px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-year {
  flex: 0 0 64px; text-align: right; font-size: 1.1rem; font-weight: 800;
  color: var(--navy); padding-top: 4px; padding-right: 0;
}
.timeline-dot {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue); margin: 4px 16px 0;
  z-index: 1;
}
.timeline-content {
  flex: 1; background: var(--white); padding: 16px 20px;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  font-size: .925rem; color: var(--text-mid);
}

/* ═══ TEAM ═══ */
.team-card {
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  cursor: default;
}
#team .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,30,85,.10), 0 2px 8px rgba(0,30,85,.06);
  border-color: rgba(91,155,213,.25);
  background: rgba(255,255,255,.7);
}
#team .team-card:hover .team-card-photo {
  box-shadow: 0 0 0 5px rgba(91,155,213,.18);
}
#team .team-card:hover .avatar-ring {
  animation-duration: 1.8s;
  border-width: 3px;
}
#team .team-card:hover h4 { color: var(--navy); }
#team .team-card:hover a { color: var(--blue); }
[data-theme="dark"] #team .team-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(91,155,213,.3);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.team-card-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--blue-pale); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; color: var(--blue);
  overflow: hidden; transition: box-shadow .3s ease;
}
.team-card h4 { font-size: 1rem; margin-bottom: 2px; transition: color .3s ease; }
.team-card p { font-size: .85rem; color: var(--text-light); margin: 0; }
.team-card a { transition: color .3s ease; }

/* Board grid: always 2 cols on mobile */
#board .grid-4 { gap: 16px; }
@media (max-width: 600px) {
  #board .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #board .team-card-photo { width: 56px !important; height: 56px !important; margin-bottom: 8px; }
  #board .avatar-initials { font-size: .85rem !important; }
  #board .team-card h4 { font-size: .85rem; }
  #board .team-card p { font-size: .75rem; }
}

/* ═══ CALENDAR SECTION ═══ */
.cal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cal-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,30,85,.08); transition: all .3s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.cal-card-header {
  padding: 20px 24px; display: flex; align-items: center; gap: 14px;
}
.cal-card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.cal-header-blue { border-bottom: 2px solid var(--blue); }
.cal-header-blue .cal-card-icon { background: var(--blue-pale); color: var(--blue); }
.cal-header-green { border-bottom: 2px solid var(--green); }
.cal-header-green .cal-card-icon { background: var(--green-light); color: var(--green); }
.cal-header-gold { border-bottom: 2px solid var(--gold); }
.cal-header-gold .cal-card-icon { background: var(--gold-light); color: var(--gold); }

.cal-card-title { color: var(--navy); font-size: 1.05rem; margin: 0; font-weight: 700; }
.cal-card-location { color: var(--text-mid); font-size: .78rem; margin: 4px 0 0; }

.cal-card-meta {
  padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 6px;
}
.cal-chip {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  background: var(--cream); color: var(--text-mid);
  border: 1px solid rgba(0,30,85,.08);
}
.cal-chip-price { background: var(--gold-light); color: #8B6914; border-color: rgba(212,168,67,.3); }

.cal-card-body { padding: 0 24px 16px; flex: 1; }
.cal-row {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(0,30,85,.06);
  font-size: .82rem;
}
.cal-row-price { color: #8B6914; font-weight: 700; font-size: .78rem; text-align: right; white-space: nowrap; }
.cal-row:last-child { border-bottom: none; }
.cal-num {
  width: 24px; height: 24px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--white);
}
.cal-card-blue .cal-num { background: var(--blue); }
.cal-card-green .cal-num { background: var(--green); }
.cal-card-gold .cal-num { background: var(--gold); }
.cal-dates { color: var(--text); }
.cal-who { color: var(--text-light); font-size: .75rem; text-align: right; }

.cal-card-footer {
  padding: 12px 24px; font-size: .75rem; color: var(--text-mid);
  background: var(--cream); border-top: 1px solid rgba(0,30,85,.06);
  margin-top: auto;
}

/* Demi-séjour detail rows */
.cal-demi-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 6px; align-items: center;
  padding: 5px 0; font-size: .78rem;
  border-bottom: 1px solid rgba(0,30,85,.04);
}
.cal-demi-row:last-child { border-bottom: none; }
.cal-demi-label {
  font-weight: 700; font-size: .7rem; color: var(--text-mid);
  background: var(--cream); padding: 2px 6px; border-radius: 4px; text-align: center;
}
.cal-demi-dates { color: var(--text); }
.cal-demi-price { color: var(--text-mid); font-weight: 600; font-size: .75rem; text-align: right; }

/* School respite grid */
.cal-school-wrap { max-width: 680px; margin: 0 auto; }
.cal-school-legend {
  display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center;
}
.cal-legend-item {
  display: flex; align-items: center; gap: 8px; font-size: .82rem;
  color: var(--text); font-weight: 600;
}
.cal-legend-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

.cal-school-grid { display: flex; flex-direction: column; gap: 4px; }
.cal-school-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center;
  padding: 8px 14px; border-radius: 10px; font-size: .85rem;
  transition: transform .2s ease;
}
.cal-school-row:hover { transform: translateX(4px); }
.cal-school-date { color: var(--text); }
.cal-school-type { color: var(--text-mid); font-size: .78rem; }
.cal-school-price { font-weight: 700; color: var(--navy); font-size: .85rem; min-width: 50px; text-align: right; }

.cal-school-blue { background: var(--blue-pale); border-left: 3px solid var(--blue); }
.cal-school-gold { background: var(--gold-light); border-left: 3px solid var(--gold); }
.cal-school-noel {
  background: var(--green-light); border-left: 3px solid var(--green);
  font-weight: 600;
}
.cal-school-noel .cal-school-date { color: var(--navy); }
.cal-school-noel .cal-school-price { color: var(--green); }

@media (max-width: 992px) {
  .cal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cal-school-row { grid-template-columns: 1fr auto; }
  .cal-school-type { display: none; }
}

/* ═══ TESTIMONIALS ═══ */
.testimonial {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm); position: relative;
  border-left: 4px solid var(--blue);
}
.testimonial::before {
  content: '"'; position: absolute; top: 16px; left: 20px;
  font-size: 3rem; color: var(--blue-light); font-family: Georgia, serif; line-height: 1;
}
.testimonial p { padding-top: 20px; font-style: italic; font-size: .95rem; }
.testimonial .author { font-style: normal; font-weight: 600; color: var(--navy); font-size: .85rem; margin-top: 12px; margin-bottom: 0; }

/* ═══ HERO VIDEO ═══ */
.hero-video-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
}

/* ═══ JOBS SECTION ═══ */
.jobs-list { list-style: none; padding: 0; }
.jobs-list li {
  font-size: .85rem; color: var(--text-mid); padding: 5px 0 5px 18px;
  position: relative; border-bottom: 1px solid rgba(0,30,85,.04);
}
.jobs-list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
/* ═══ JOBS FESTIVE BACKGROUND ═══ */
.jobs-festive { position: relative; overflow: hidden; }
.jobs-festive > .container,
.jobs-festive > .staff-banner { position: relative; z-index: 2; }

/* Animated blurred color blobs */
.jobs-color-blobs {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.jobs-color-blobs::before,
.jobs-color-blobs::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .12; will-change: transform;
}
.jobs-color-blobs::before {
  width: 350px; height: 350px; top: -80px; left: 5%;
  background: radial-gradient(circle, #FF6B6B, #FFE66D, #4ECDC4);
  animation: jobs-blob-1 12s ease-in-out infinite alternate;
}
.jobs-color-blobs::after {
  width: 300px; height: 300px; bottom: -50px; right: 8%;
  background: radial-gradient(circle, #A78BFA, #38BDF8, #F472B6);
  animation: jobs-blob-2 10s ease-in-out infinite alternate-reverse;
}
@keyframes jobs-blob-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-30px, 70px) scale(0.95); }
}
@keyframes jobs-blob-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
  100% { transform: translate(40px, -60px) scale(0.9); }
}
[data-theme="dark"] .jobs-color-blobs::before { opacity: .08; }
[data-theme="dark"] .jobs-color-blobs::after { opacity: .06; }

.jobs-apply {
  background: linear-gradient(135deg, var(--navy) 0%, #0A2E6B 100%);
  border-radius: var(--radius-lg); padding: 48px; text-align: center;
  position: relative; overflow: hidden;
}
.jobs-apply h3 { color: #FFFFFF; margin-bottom: .5em; }
.jobs-apply p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 1.5rem; }
.jobs-apply .btn-primary { background: var(--gold); color: var(--navy); }
.jobs-apply .btn-primary:hover { background: #E8C060; color: var(--navy); }

/* ═══ JOBS-APPLY PARTY BOX ═══ */
.jobs-apply::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,107,107,.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(78,205,196,.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(167,139,250,.08) 0%, transparent 35%);
  animation: partyGlow 8s ease-in-out infinite alternate;
}
.jobs-apply > * { position: relative; z-index: 1; }
@keyframes partyGlow {
  0% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: .7; transform: scale(.98); }
}
.jobs-apply-confetti-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}
.jobs-apply-shimmer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.jobs-apply-shimmer::before {
  content: ''; position: absolute;
  width: 200%; height: 200%; top: -50%; left: -80%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.04) 45%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 55%, transparent 60%);
  animation: shimmerSweep 6s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(80%); }
}

/* ═══ JOBS POSITION CARDS ═══ */
.jobs-position-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--cream); border-radius: 8px;
  font-size: .85rem; color: var(--text-mid);
}
.jobs-position-count {
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* ═══ FIELDS CLOUD ═══ */
.fields-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.field-tag {
  padding: 8px 18px; border-radius: 100px; font-size: .85rem;
  background: var(--white); color: var(--text-mid); box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.field-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.field-tag.highlight { background: var(--navy); color: var(--white); font-weight: 600; }

/* ═══ CTA SECTION ═══ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0A2E6B 70%, #1A4A8C 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(91,155,213,.1);
}
.cta-section h2 { color: #FFFFFF; }
.cta-section p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 2rem; }
.cta-section .btn-primary { background: var(--gold); color: var(--navy); }
.cta-section .btn-primary:hover { background: #E8C060; color: var(--navy); }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,.6); padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #FFFFFF; font-size: .9rem; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer ul li { margin-bottom: 8px; }
.footer-brand p { font-size: .85rem; line-height: 1.6; margin-top: 12px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 1.2rem; color: rgba(255,255,255,.5); }
.footer-social a:hover { color: var(--gold); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 60px 0; }
  .timeline::before { left: 56px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; }
  .timeline-year { flex: 0 0 40px; font-size: .9rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0; background: var(--white);
    padding: 16px; box-shadow: var(--shadow-lg); border-top: 1px solid rgba(0,30,85,.06);
  }
  .nav-toggle { display: block; }
  .nav-dropdown > a::after { display: none; }
  .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none;
    position: static; box-shadow: none; border: none; padding: 0 0 0 16px; margin-top: 0; min-width: 0; background: transparent;
  }
  .nav-dropdown-menu a { padding: 8px 14px; font-size: .85rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .hero-cta { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ═══════════════════════════════════════
   HUMANIZED ANIMATIONS & ICONS
   ═══════════════════════════════════════ */

/* ═══ STATS ORGANIC BACKGROUND (soft blobs) ═══ */
.stats-bg { position: relative; }
.stats-bg::before,
.stats-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  opacity: .12; filter: blur(60px); pointer-events: none;
}
.stats-bg::before {
  width: 300px; height: 300px; top: -80px; left: 10%;
  background: var(--blue);
  animation: blob-drift 15s ease-in-out infinite alternate;
}
.stats-bg::after {
  width: 250px; height: 250px; bottom: -60px; right: 15%;
  background: var(--gold);
  animation: blob-drift 12s ease-in-out infinite alternate-reverse;
}
@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.05); }
}

/* ═══ FOUNDATION DONUT CHART ═══ */
.foundation-chart { display: flex; align-items: center; justify-content: center; }
.foundation-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-segment { transition: stroke-dasharray .8s ease; }
.foundation-chart:hover .donut-segment { opacity: .85; }

/* ═══ FIELD TAGS COLORS (Emergo palette) ═══ */
.field-tag.field-blue { background: var(--blue-pale); color: var(--blue); border: 1px solid rgba(91,155,213,.2); }
.field-tag.field-gold { background: var(--gold-light); color: #9A7A2E; border: 1px solid rgba(212,168,67,.2); }
.field-tag.field-green { background: var(--green-light); color: var(--green); border: 1px solid rgba(74,154,91,.2); }
/* field-red removed — replaced by field-purple */
.field-tag.field-navy { background: #E0E6F0; color: var(--navy); border: 1px solid rgba(0,30,85,.15); }
.field-tag.field-highlight { font-weight: 700; transform: scale(1.05); box-shadow: var(--shadow-sm); }

/* ═══ CARD ICON SVGs ═══ */
.card-icon svg {
  width: 28px; height: 28px;
}

/* ═══ ICON WRAPPERS (Jobs selling points, Perks) ═══ */
.icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.icon-wrap svg { color: inherit; transition: transform .3s ease; }
.icon-wrap:hover svg { transform: scale(1.15); }
.icon-wrap-blue { background: var(--blue-pale); color: var(--blue); }
.icon-wrap-gold { background: var(--gold-light); color: var(--gold); }
.icon-wrap-green { background: var(--green-light); color: var(--green); }

/* ═══ ANIM-ICON (Membership steps) ═══ */
.anim-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: transform .3s ease;
}
.anim-icon svg { width: 32px; height: 32px; }
.anim-icon:hover { transform: scale(1.15) rotate(-5deg); }
.anim-icon-blue { background: var(--blue-pale); color: var(--blue); }
.anim-icon-gold { background: var(--gold-light); color: var(--gold); }
.anim-icon-green { background: var(--green-light); color: var(--green); }

/* ═══ CONTACT ICONS ═══ */
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .3s ease;
}
.contact-icon:hover { background: var(--blue); color: var(--white); }

/* ═══ AVATAR GRADIENTS (Team cards) ═══ */
.avatar-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%) !important;
  position: relative; color: var(--white) !important;
  font-size: inherit;
}
.avatar-initials {
  font-size: 1.6rem; font-weight: 700; color: var(--white);
  letter-spacing: 1px; z-index: 1; position: relative;
}
.avatar-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-rotate 6s linear infinite;
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

/* ═══ SVG ANIMATIONS ═══ */

/* Slow spin (snowflake) */
@keyframes spin-slow { to { transform: rotate(360deg); } }
.anim-spin-slow { animation: spin-slow 12s linear infinite; transform-origin: center; }

/* Eye blink (subtle scale on Y axis) */
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}
.anim-blink { animation: blink 4s ease-in-out infinite; transform-origin: center; }

/* Heartbeat */
@keyframes beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.2); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}
.anim-beat { animation: beat 2s ease-in-out infinite; transform-origin: center; }

/* Wave / wiggle */
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
.anim-wave { animation: wave 3s ease-in-out infinite; transform-origin: center bottom; }

/* Float up/down */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.anim-float { animation: float 3s ease-in-out infinite; }

/* Bounce */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}
.anim-bounce { animation: bounce 2.5s ease-in-out infinite; }

/* Map pin drop */
@keyframes pin-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.anim-pin { animation: pin-drop 2s ease-in-out infinite; }

/* Phone ring */
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(0deg); }
}
.anim-ring { animation: ring 3s ease-in-out infinite; transform-origin: center; }

/* Clock tick */
@keyframes tick {
  0%, 90%, 100% { transform: scale(1); }
  95% { transform: scale(1.05); }
}
.anim-tick { animation: tick 2s ease-in-out infinite; }

/* Tree sway */
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}
.anim-sway { animation: sway 4s ease-in-out infinite; transform-origin: center bottom; }

/* Handshake squeeze */
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(3deg); }
  40% { transform: rotate(-3deg); }
  60% { transform: rotate(2deg); }
  80% { transform: rotate(0deg); }
}
.anim-shake { animation: shake 3s ease-in-out infinite; transform-origin: center; }

/* ═══ ORGANIC BLOB BACKGROUNDS (reusable) ═══ */
.blob-bg { position: relative; overflow: hidden; }
.blob-bg::before,
.blob-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  opacity: .08; filter: blur(70px); pointer-events: none; z-index: 0;
}
/* Variant 1: blue + gold (default) */
.blob-bg::before {
  width: 280px; height: 280px; top: -60px; right: 8%;
  background: var(--blue);
  animation: blob-drift 18s ease-in-out infinite alternate;
}
.blob-bg::after {
  width: 220px; height: 220px; bottom: -40px; left: 12%;
  background: var(--gold);
  animation: blob-drift 14s ease-in-out infinite alternate-reverse;
}
/* Variant 2: green + blue */
.blob-bg-green::before { background: var(--green); }
.blob-bg-green::after { background: var(--blue); }
/* Variant 3: gold + navy */
.blob-bg-warm::before { background: var(--gold); }
.blob-bg-warm::after { background: var(--navy); opacity: .06; }
/* Ensure section content stays above blobs */
.blob-bg > .container { position: relative; z-index: 1; }

/* ═══ TIMELINE ALTERNATING (history) ═══ */
.timeline-alternating::before { left: 50% !important; transform: translateX(-1px); }
.timeline-alternating .timeline-item { justify-content: flex-end; }
.timeline-alternating .timeline-item:nth-child(odd) { flex-direction: row-reverse !important; }
.timeline-alternating .timeline-item:nth-child(odd) .timeline-year { text-align: left; padding-left: 0; padding-right: 0; }
.timeline-alternating .timeline-item:nth-child(even) .timeline-year { text-align: right; }
.timeline-alternating .timeline-year { flex: 0 0 calc(50% - 24px); }
.timeline-alternating .timeline-content { flex: 0 0 calc(50% - 24px); }
@media (max-width: 992px) {
  .timeline-alternating::before { left: 56px !important; transform: none; }
  .timeline-alternating .timeline-item,
  .timeline-alternating .timeline-item:nth-child(odd) { flex-direction: row !important; }
  .timeline-alternating .timeline-year { flex: 0 0 40px !important; text-align: right !important; }
  .timeline-alternating .timeline-content { flex: 1 !important; }
}

/* ═══ FIELD TAG — TEAL (replaces red/purple/pink) ═══ */
.field-tag.field-purple { background: #E0F2F1; color: #00796B; border: 1px solid rgba(0,121,107,.2); }

/* ═══ SHARP DECORATIVE CIRCLES (no blur) ═══ */
.circle-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
  transform: scale(.6);
}
.circle-deco.visible { opacity: 1; transform: scale(1); }
.circle-deco-fill { background: var(--blue); opacity: .06; }
.circle-deco-ring { background: transparent; border: 2px solid var(--blue); opacity: .10; }
.circle-deco-gold { border-color: var(--gold); }
.circle-deco-fill-gold { background: var(--gold); opacity: .06; }
.circle-deco-green { border-color: var(--green); }
.circle-deco-fill-green { background: var(--green); opacity: .06; }
[data-theme="dark"] .circle-deco-fill { opacity: .04; }
[data-theme="dark"] .circle-deco-ring { opacity: .06; }
[data-theme="dark"] .circle-deco-fill-gold { opacity: .04; }
[data-theme="dark"] .circle-deco-fill-green { opacity: .04; }

/* ═══ FLOATING SPHERES (large organic decorations) ═══ */
.sphere-deco {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: 0;
  transition: opacity 2s ease;
}
.sphere-deco.visible { opacity: 1; }
.sphere-deco-1 {
  width: 500px; height: 500px; top: 45%; right: -80px;
  background: rgba(91,155,213,.10);
  animation: sphere-float-1 20s ease-in-out infinite;
}
.sphere-deco-2 {
  width: 450px; height: 450px; top: 65%; left: -60px;
  background: rgba(212,168,67,.08);
  animation: sphere-float-2 25s ease-in-out infinite;
}
.sphere-deco-3 {
  width: 400px; height: 400px; top: 30%; left: 40%;
  background: rgba(74,154,91,.07);
  animation: sphere-float-3 18s ease-in-out infinite;
}
@keyframes sphere-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes sphere-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -25px) scale(1.1); }
  66% { transform: translate(-30px, 35px) scale(0.92); }
}
@keyframes sphere-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 30px) scale(1.12); }
}

/* ═══ DARK MODE TOGGLE ═══ */
.dark-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,30,85,.12);
  background: transparent; cursor: pointer; margin-left: 6px;
  transition: all var(--transition); color: var(--text-mid);
}
.dark-toggle {
  background: linear-gradient(to top, #4A6585 0%, #3A5575 50%, #2E4868 100%);
  color: #E8EDF4; border-color: #4A6585; overflow: hidden;
}
.dark-toggle:hover {
  background: linear-gradient(to top, #4A6585 0%, #345070 50%, #2A4060 100%);
  color: #fff; border-color: #4A6585;
}
.dark-toggle svg { width: 18px; height: 18px; transition: transform .3s ease; position: relative; z-index: 2; }
.dark-toggle:hover svg { transform: scale(1.15); }
/* Lueur d'horizon en bas du bouton */
.dark-toggle .horizon {
  position: absolute; bottom: -2px; left: -15%; right: -15%; height: 85%;
  background: radial-gradient(ellipse 140% 100% at 50% 100%, rgba(255,240,200,.95) 0%, rgba(255,215,150,.6) 25%, rgba(240,180,100,.3) 50%, transparent 80%);
  pointer-events: none; z-index: 1;
}
/* Étoiles scintillantes */
.dark-toggle .stars {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 1;
}
.dark-toggle .star {
  position: absolute; width: 2px; height: 2px; background: rgba(255,255,255,.8); border-radius: 50%;
  animation: twinkle 14s ease-in-out infinite;
}
.dark-toggle .star:nth-child(1) { top: 6px;  left: 7px;  animation-delay: -2s; }
.dark-toggle .star:nth-child(2) { top: 8px;  right: 6px; animation-delay: -7s; }
.dark-toggle .star:nth-child(3) { bottom: 7px; left: 10px; animation-delay: -11s; }
.dark-toggle .star:nth-child(4) { bottom: 9px; right: 9px; animation-delay: -4s; animation-duration: 17s; }
.dark-toggle .star:nth-child(5) { top: 14px; left: 5px;  animation-delay: -9s;  animation-duration: 19s; }
@keyframes twinkle {
  0%, 100% { opacity: .08; }
  50%      { opacity: .5; }
}
/* Cacher les étoiles en mode nuit (soleil affiché) */
[data-theme="dark"] .dark-toggle .stars,
[data-theme="dark"] .dark-toggle .horizon { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dark-toggle .star { animation: none; opacity: .4; }
}

/* View Transitions — expanding sphere for theme toggle */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
/* Disable View Transition for reduced motion */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}
.dark-toggle .icon-moon { display: block; }
.dark-toggle .icon-sun { display: none; }

/* ═══ DARK MODE THEME ═══ */
[data-theme="dark"] {
  --navy: #D2E6FF;           /* Bleu Ciel pour texte en dark */
  --navy-dark: #0A1628;
  --blue: #8BB8E0;           /* mid-blue clair pour liens en dark */
  --blue-light: #1E3A5F;     /* Bleu Ciel inversé */
  --blue-pale: #15253D;
  --sky: #1A3A5A;
  --gold: #E8C060;
  --gold-light: #2A2215;
  --cream: #121A28;
  --white: #0E1726;
  --text: #E8EDF4;
  --text-mid: #B0BDD0;
  --text-light: #7B8FA8;
  --green: #8BC09B;          /* vert clair pour dark mode */
  --green-light: #142A1A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: #0E1726; }
[data-theme="dark"] .navbar {
  background: rgba(14,23,38,.95);
  border-bottom-color: rgba(255,255,255,.06);
}
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 { color: #E8EDF4; }
[data-theme="dark"] .card { background: #152035; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .program-card { background: #152035; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .testimonial { background: #152035; border-left-color: #8BB8E0; }
[data-theme="dark"] .section-alt { background: #121E30; }
[data-theme="dark"] .section-cream { background: #111A28; }
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #0E1726 0%, #152035 40%, #1A3050 100%);
}
[data-theme="dark"] .footer { background: #080E18; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .dark-toggle { background: #0A1220; border-color: rgba(255,255,255,.1); color: #E8C060; }
[data-theme="dark"] .dark-toggle:hover { background: #111D30; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .dark-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-toggle .icon-sun { display: block; }
[data-theme="dark"] .nav-links a { color: #B0BDD0; }
[data-theme="dark"] .nav-links a:hover { background: #1E3A5F; color: #E8EDF4; }
[data-theme="dark"] .nav-dropdown-menu { background: #152035; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .nav-dropdown-menu a { color: #B0BDD0; }
[data-theme="dark"] .nav-dropdown-menu a:hover { background: #1E3A5F; color: #E8EDF4; }
[data-theme="dark"] .nav-cta { background: #8BB8E0; color: #0E1726 !important; }
[data-theme="dark"] .lang-switch { border-color: rgba(255,255,255,.15); color: #B0BDD0; }
[data-theme="dark"] .btn-primary { background: #8BB8E0; color: #0E1726; }
[data-theme="dark"] .btn-secondary { border-color: #8BB8E0; color: #E8EDF4; }
[data-theme="dark"] .btn-secondary:hover { background: #8BB8E0; color: #0E1726; }
[data-theme="dark"] .jobs-apply { background: linear-gradient(135deg, #152035 0%, #1E3A5F 100%); }
[data-theme="dark"] .cta-section { background: linear-gradient(135deg, #0E1726 0%, #152035 70%, #1A3050 100%); }
[data-theme="dark"] .avatar-gradient { background: linear-gradient(135deg, #8BB8E0 0%, #4A7EB5 100%) !important; }
[data-theme="dark"] .stats-bg::before { opacity: .08; }
[data-theme="dark"] .stats-bg::after { opacity: .06; }
[data-theme="dark"] .timeline-content { background: #152035; }
[data-theme="dark"] .contact-icon { background: #1E3A5F; }
[data-theme="dark"] .anniversary-badge { background: linear-gradient(135deg, #B8922E 0%, #D4A843 100%); }
[data-theme="dark"] .field-tag { background: #1E3050; color: #B0BDD0; }
[data-theme="dark"] .field-tag.field-blue { background: #15253D; color: #8BB8E0; border-color: rgba(123,184,232,.2); }
[data-theme="dark"] .field-tag.field-gold { background: #2A2215; color: #E8C060; border-color: rgba(232,192,96,.2); }
[data-theme="dark"] .field-tag.field-green { background: #142A1A; color: #6BC07A; border-color: rgba(107,192,122,.2); }
[data-theme="dark"] .field-tag.field-purple { background: #152A28; color: #4DB6AC; border-color: rgba(77,182,172,.2); }
[data-theme="dark"] .field-tag.field-navy { background: #1A2540; color: #D2E6FF; border-color: rgba(184,212,238,.15); }
[data-theme="dark"] .field-tag.field-highlight { box-shadow: 0 0 0 1px rgba(123,184,232,.3); }
[data-theme="dark"] .jobs-position-card { background: #1E3050; }
[data-theme="dark"] .jobs-position-count { background: #8BB8E0; color: #0E1726; }
[data-theme="dark"] .jobs-apply .btn-secondary { border-color: rgba(255,255,255,.5); color: #E8EDF4; }
[data-theme="dark"] .jobs-apply .btn-secondary:hover { background: rgba(255,255,255,.15); }
[data-theme="dark"] .footer-brand div[style*="font-weight:700"] { color: #E8EDF4 !important; }
[data-theme="dark"] .sphere-deco-1 { background: rgba(123,184,232,.08); }
[data-theme="dark"] .sphere-deco-2 { background: rgba(232,192,96,.06); }
[data-theme="dark"] .sphere-deco-3 { background: rgba(107,192,122,.05); }
/* Gold backgrounds need dark text in dark mode (--navy becomes light) */
[data-theme="dark"] .btn-gold { color: #1A1200; }
[data-theme="dark"] .btn-gold:hover { color: #1A1200; }
[data-theme="dark"] .staff-banner-tag { color: #1A1200; }
[data-theme="dark"] .anniversary-badge { color: #1A1200; }
/* Dark mode logo: icon keeps original colors, text becomes white */
[data-theme="dark"] .navbar-brand { position: relative; }
[data-theme="dark"] .navbar-logo { clip-path: inset(0 57% 0 0); filter: none; }
[data-theme="dark"] .navbar-brand::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../images/logo-repit-emergo.png') no-repeat left center / contain;
  clip-path: inset(0 0 0 43%);
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* ═══ FIELDS CLOUD — ALIVE ANIMATION ═══ */
.fields-cloud-animated .field-tag {
  animation: field-appear .4s ease-out both;
  cursor: default;
}
.fields-cloud-animated .field-tag:nth-child(1)  { animation-delay: .03s; }
.fields-cloud-animated .field-tag:nth-child(2)  { animation-delay: .06s; }
.fields-cloud-animated .field-tag:nth-child(3)  { animation-delay: .09s; }
.fields-cloud-animated .field-tag:nth-child(4)  { animation-delay: .12s; }
.fields-cloud-animated .field-tag:nth-child(5)  { animation-delay: .15s; }
.fields-cloud-animated .field-tag:nth-child(6)  { animation-delay: .18s; }
.fields-cloud-animated .field-tag:nth-child(7)  { animation-delay: .21s; }
.fields-cloud-animated .field-tag:nth-child(8)  { animation-delay: .24s; }
.fields-cloud-animated .field-tag:nth-child(9)  { animation-delay: .27s; }
.fields-cloud-animated .field-tag:nth-child(10) { animation-delay: .30s; }
.fields-cloud-animated .field-tag:nth-child(11) { animation-delay: .33s; }
.fields-cloud-animated .field-tag:nth-child(12) { animation-delay: .36s; }
.fields-cloud-animated .field-tag:nth-child(13) { animation-delay: .39s; }
.fields-cloud-animated .field-tag:nth-child(14) { animation-delay: .42s; }
.fields-cloud-animated .field-tag:nth-child(15) { animation-delay: .45s; }
.fields-cloud-animated .field-tag:nth-child(16) { animation-delay: .48s; }
.fields-cloud-animated .field-tag:nth-child(17) { animation-delay: .51s; }
.fields-cloud-animated .field-tag:nth-child(18) { animation-delay: .54s; }
.fields-cloud-animated .field-tag:nth-child(19) { animation-delay: .57s; }
.fields-cloud-animated .field-tag:nth-child(20) { animation-delay: .60s; }
.fields-cloud-animated .field-tag:nth-child(n+21) { animation-delay: .63s; }

@keyframes field-appear {
  0% { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.fields-cloud .field-tag:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ═══ MOUSE SPARKLE TRAIL ═══ */
.mouse-sparkle {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 9999;
  animation: sparkle-fly .8s ease-out forwards;
}
@keyframes sparkle-fly {
  0% { opacity: .9; transform: scale(1) translateY(0); }
  50% { opacity: .6; }
  100% { opacity: 0; transform: scale(0.2) translateY(-20px); }
}

/* ═══ HERO VIDEO with controls ═══ */
.hero-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,30,85,.5));
}

/* Footer social hover effect */
.footer-social a { transition: all .3s ease; display: inline-flex; align-items: center; }
.footer-social a:hover svg { transform: scale(1.2) translateY(-2px); }
.footer-social svg { transition: transform .3s ease; }

/* ═══ STAFF GROUP PHOTO BANNER ═══ */
.staff-banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  margin-bottom: 56px;
}
.staff-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 6s ease;
}
.staff-banner:hover img { transform: scale(1.03); }

.staff-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,55,.75) 0%, rgba(0,20,55,.25) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 36px 48px;
}
.staff-banner-caption {
  color: #FFFFFF;
  max-width: 600px;
}
.staff-banner-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.staff-banner-text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 16px;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.staff-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.45);
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .2s;
}
.staff-banner-btn:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
  color: #FFFFFF;
}
@media (max-width: 640px) {
  .staff-banner { height: 260px; }
  .staff-banner-overlay { padding: 20px 20px; }
  .staff-banner-text { font-size: 1rem; }
}
[data-theme="dark"] .staff-banner-overlay {
  background: linear-gradient(to top, rgba(5,10,22,.8) 0%, rgba(5,10,22,.3) 50%, transparent 100%);
}

/* ═══ BOÎTE À OUTILS ═══ */
.toolbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.toolbox-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 44px 32px 36px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,30,85,0.06);
  border: 2px solid transparent;
}
.toolbox-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,30,85,0.12);
}
.toolbox-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.toolbox-card:hover .toolbox-card-icon { transform: scale(1.1) rotate(-3deg); }
.toolbox-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.toolbox-card-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.toolbox-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
}

/* ── Activities card: Arts & Crafts ── */
.toolbox-card-activities {
  background: #fffdf7;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(180,160,130,0.04) 28px, rgba(180,160,130,0.04) 29px);
  border: 2px dashed rgba(0,30,85,0.1);
}
.toolbox-card-activities:hover {
  border-color: var(--gold);
  border-style: dashed;
  box-shadow: 3px 4px 0 rgba(212,168,67,0.15), 0 16px 40px rgba(0,30,85,0.1);
}
/* Washi tape accent */
.craft-tape {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 80px;
  height: 22px;
  background: var(--gold-light);
  opacity: 0.7;
  z-index: 2;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
/* Decorative craft elements */
.craft-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.craft-splash {
  position: absolute;
  border-radius: 42% 58% 65% 35% / 55% 40% 60% 45%;
  opacity: 0.07;
}
.craft-s1 { width: 90px; height: 80px; top: -10px; right: -15px; background: #FFEBB4; transform: rotate(15deg); }
.craft-s2 { width: 70px; height: 60px; bottom: 10px; left: -10px; background: #C8E1C8; border-radius: 55% 45% 38% 62% / 45% 60% 40% 55%; transform: rotate(-20deg); }
.craft-s3 { width: 50px; height: 45px; bottom: 40%; right: 5%; background: #D2E6FF; border-radius: 38% 62% 50% 50% / 60% 35% 65% 40%; opacity: 0.08; }
.craft-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.craft-d1 { width: 12px; height: 12px; top: 15%; left: 12%; background: #FFEBB4; }
.craft-d2 { width: 8px;  height: 8px;  top: 60%; right: 15%; background: #C8E1C8; }
.craft-d3 { width: 10px; height: 10px; bottom: 12%; left: 35%; background: #f0d8cc; }
.craft-d4 { width: 6px;  height: 6px;  top: 35%; right: 25%; background: #FFEBB4; }
.craft-star {
  position: absolute;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.09;
}
.craft-st1 { width: 28px; height: 28px; top: 18%; right: 18%; background: #FFEBB4; transform: rotate(12deg); }
.craft-st2 { width: 20px; height: 20px; bottom: 20%; left: 15%; background: #C8E1C8; transform: rotate(-8deg); }
/* Activity tags */
.craft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.craft-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 3px;
  border: 1.5px dashed;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}
.craft-tag:nth-child(2) { transform: rotate(1.5deg); }
.craft-tag:nth-child(3) { transform: rotate(-0.5deg); }
.toolbox-card-activities:hover .craft-tag { transform: rotate(0deg) scale(1.05); }
.craft-tag-yellow { background: #FFF8E1; border-color: rgba(212,168,67,0.3); color: #8B6914; }
.craft-tag-green  { background: #E8F5E9; border-color: rgba(107,159,123,0.3); color: #2E6B3E; }
.craft-tag-blue   { background: #E8F0FE; border-color: rgba(74,126,181,0.3); color: #1a4fa0; }
.toolbox-icon-activities {
  background: #fffdf7;
  color: #8B6914;
  border: 2px dashed rgba(212,168,67,0.35);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(212,168,67,0.1);
}
.toolbox-card-activities:hover .toolbox-card-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 3px 3px 0 rgba(212,168,67,0.2);
}
.toolbox-card-activities .toolbox-card-cta {
  background: #FFF3D0;
  color: #6B4F0A;
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(212,168,67,0.12);
}
.toolbox-card-activities:hover .toolbox-card-cta {
  background: var(--gold);
  color: #1A1200;
  box-shadow: 2px 2px 0 rgba(212,168,67,0.25);
}

/* ── Resources card: Data explorer ── */
.toolbox-card-resources {
  background: var(--white);
  border: 2px solid rgba(74,126,181,0.08);
}
.toolbox-card-resources:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(0,30,85,0.14);
}
/* Subtle glow on hover */
.res-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,126,181,0.06) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.toolbox-card-resources:hover .res-glow { opacity: 1; }
.toolbox-icon-resources {
  background: linear-gradient(135deg, #EBF3FF 0%, #D2E6FF 100%);
  color: #1a4fa0;
}
/* Stats bar */
.res-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: #F5F8FC;
  border-radius: 12px;
  padding: 10px 6px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
  border: 1px solid rgba(74,126,181,0.08);
}
.res-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 16px;
}
.res-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  transition: transform 0.3s ease, color 0.3s ease;
}
.toolbox-card-resources:hover .res-stat-num {
  transform: scale(1.1);
  color: var(--blue);
}
.res-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.res-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(74,126,181,0.15);
  flex-shrink: 0;
}
/* Category dots */
.res-cats {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.res-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toolbox-card-resources:hover .res-cat-dot {
  opacity: 0.85;
  animation: dotPulse 1.5s ease infinite;
}
.toolbox-card-resources:hover .res-cat-dot:nth-child(2) { animation-delay: 0.1s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(3) { animation-delay: 0.2s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(4) { animation-delay: 0.3s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(5) { animation-delay: 0.4s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(6) { animation-delay: 0.5s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(7) { animation-delay: 0.6s; }
.toolbox-card-resources:hover .res-cat-dot:nth-child(8) { animation-delay: 0.7s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); }
}
.toolbox-card-resources .toolbox-card-cta {
  background: var(--blue-pale);
  color: var(--navy);
}
.toolbox-card-resources:hover .toolbox-card-cta {
  background: var(--blue);
  color: var(--white);
}

/* ── Toolbox responsive ── */
@media (max-width: 640px) {
  .toolbox-grid { grid-template-columns: 1fr; gap: 20px; }
  .toolbox-card { padding: 32px 24px 28px; }
  .res-stat { padding: 2px 12px; }
  .res-stat-num { font-size: 1.2rem; }
  .craft-tape { width: 60px; height: 18px; }
}

/* ── Toolbox dark mode ── */
[data-theme="dark"] .toolbox-card {
  background: rgba(15,30,60,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
[data-theme="dark"] .toolbox-card-activities {
  background: rgba(30,25,15,0.6);
  background-image: none;
  border-color: rgba(212,168,67,0.15);
}
[data-theme="dark"] .toolbox-card-resources {
  border-color: rgba(74,126,181,0.12);
}
[data-theme="dark"] .toolbox-card-title { color: #e0e8ff; }
[data-theme="dark"] .toolbox-card-desc { color: #a0b0cc; }
[data-theme="dark"] .craft-tape { background: rgba(212,168,67,0.25); }
[data-theme="dark"] .craft-tag-yellow { background: rgba(212,168,67,0.12); color: #D4A843; border-color: rgba(212,168,67,0.25); }
[data-theme="dark"] .craft-tag-green { background: rgba(107,159,123,0.12); color: #7BC67B; border-color: rgba(107,159,123,0.25); }
[data-theme="dark"] .craft-tag-blue { background: rgba(74,126,181,0.12); color: #7BB8E8; border-color: rgba(74,126,181,0.25); }
[data-theme="dark"] .toolbox-icon-activities { background: rgba(30,25,15,0.8); border-color: rgba(212,168,67,0.25); color: #D4A843; }
[data-theme="dark"] .res-stats { background: rgba(15,25,50,0.5); border-color: rgba(74,126,181,0.12); }
[data-theme="dark"] .res-stat-num { color: #7BB8E8; }
[data-theme="dark"] .res-stat-label { color: #8090aa; }
[data-theme="dark"] .res-stat-divider { background: rgba(74,126,181,0.2); }
[data-theme="dark"] .res-glow { background: radial-gradient(ellipse at 50% 0%, rgba(74,126,181,0.1) 0%, transparent 70%); }
