/* ============================================================
   ETIC v2 — Design System (home v2)
   ============================================================ */
:root {
  --etic-green-900: #045c02;
  --etic-green-700: #079a04;
  --etic-green-500: #34c759;
  --etic-green-50:  #e8f8e9;
  --etic-gold:      #f5b800;
  --ink:            #0f1a14;
  --slate-700:      #3a4a42;
  --slate-500:      #6b7d72;
  --slate-300:      #c8d0cc;
  --slate-200:      #e2e7e4;
  --slate-100:      #f4f6f5;
  --white:          #ffffff;

  --shadow-card:    0 4px 16px rgba(15, 26, 20, 0.06);
  --shadow-hover:   0 12px 32px rgba(15, 26, 20, 0.12);
  --shadow-hero:    0 24px 60px rgba(4, 92, 2, 0.18);
  --shadow-header:  0 2px 12px rgba(15, 26, 20, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(7, 154, 4, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(7, 154, 4, 0); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes scrollMarquee { to { transform: translateX(-50%); } }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Top bar */
.topbar { background: var(--ink); color: var(--white); font-size: 13px; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-announce { display: flex; align-items: center; gap: 8px; }
.topbar-announce .badge {
  background: var(--etic-gold); color: var(--ink); font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.topbar-meta { display: flex; gap: 20px; align-items: center; }
.topbar-meta a { display: flex; align-items: center; gap: 6px; opacity: 0.85; transition: opacity 0.2s; }
.topbar-meta a:hover { opacity: 1; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow 0.3s, background 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-header); background: rgba(255, 255, 255, 0.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.logo-mark {
  width: 36px; height: 36px; background: var(--etic-green-700); border-radius: 10px;
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 15px;
  transition: transform 0.4s var(--ease-out); overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-tagline {
  font-size: 9px; color: var(--slate-500); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1;
  margin-top: 4px; display: block; white-space: nowrap;
  max-width: 320px;
}
/* Sur mobile, l'acronyme ETIC suffit — on cache la version longue */
@media (max-width: 640px) {
  .logo-tagline { display: none; }
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--slate-700);
  border-radius: var(--radius-sm); transition: all 0.2s var(--ease-soft); position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--etic-green-700); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s var(--ease-out); border-radius: 2px;
}
.nav a:hover, .nav a.active { color: var(--etic-green-700); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--slate-700); transition: all 0.2s;
}
.icon-btn:hover { background: var(--slate-100); color: var(--etic-green-700); }
.burger {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; color: var(--ink); transition: background 0.2s;
}
.burger:hover { background: var(--slate-100); }
.burger svg { transition: transform 0.3s var(--ease-out); }
.burger.open svg { transform: rotate(90deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-soft); white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--etic-green-700); color: var(--white); box-shadow: 0 4px 14px rgba(7, 154, 4, 0.25); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  background-size: 200% 100%; opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { background: var(--etic-green-900); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(7, 154, 4, 0.35); }
.btn-primary:hover::before { opacity: 1; animation: shimmer 1.2s var(--ease-soft); }
.btn-secondary { background: transparent; color: var(--etic-green-700); border: 2px solid var(--etic-green-700); padding: 12px 22px; }
.btn-secondary:hover { background: var(--etic-green-700); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: var(--slate-100); color: var(--slate-700); }
.btn-ghost:hover { background: var(--slate-300); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; display: flex; }

/* Hero */
.hero {
  position: relative; padding: 80px 0 120px;
  background:
    radial-gradient(circle at 90% 10%, rgba(7, 154, 4, 0.08), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(245, 184, 0, 0.06), transparent 50%),
    linear-gradient(180deg, var(--etic-green-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(7, 154, 4, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 154, 4, 0.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero-content > * { animation: fadeUp 0.7s var(--ease-out) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--white); border: 1px solid var(--etic-green-500); color: var(--etic-green-900);
  font-size: 13px; font-weight: 600; border-radius: var(--radius-pill);
  margin-bottom: 24px; box-shadow: 0 2px 8px rgba(7, 154, 4, 0.1);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--etic-green-500); border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; line-height: 1.05; }
.hero h1 .accent { background: linear-gradient(120deg, var(--etic-green-700), var(--etic-green-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: var(--slate-700); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 14px; color: var(--slate-500); font-size: 14px; }
.stars { color: var(--etic-gold); letter-spacing: 1px; }
.hero-trust strong { color: var(--ink); font-weight: 700; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-hero);
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-900));
  animation: fadeIn 0.8s var(--ease-out) 0.3s backwards;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(4,92,2,0.55), rgba(7,154,4,0.35) 60%, transparent);
  pointer-events: none;
}
.play-overlay {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.95); padding: 10px 16px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  color: var(--ink); backdrop-filter: blur(8px); cursor: pointer;
  transition: all 0.2s; z-index: 2;
}
.play-overlay:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.play-overlay .play-icon {
  width: 28px; height: 28px; background: var(--etic-green-700);
  border-radius: 50%; display: grid; place-items: center; color: white;
}
.hero-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--white); padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 12px; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: float 4s var(--ease-soft) infinite; z-index: 2;
}
.hero-badge strong {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 24px; font-weight: 700; color: var(--etic-green-700); line-height: 1;
}

/* Stats band */
.stats-band { margin-top: -60px; position: relative; z-index: 10; }
.stats-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-hero);
  padding: 40px 32px; display: grid; gap: 24px;
}
.stats-card-4 { grid-template-columns: repeat(4, 1fr); }
.stats-card-3 { grid-template-columns: repeat(3, 1fr); }
.stats-card-2 { grid-template-columns: repeat(2, 1fr); }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 20%; bottom: 20%;
  width: 1px; background: var(--slate-300);
}
.stat-value {
  font-family: 'Poppins', sans-serif; font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: var(--etic-green-700); line-height: 1;
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--slate-500); font-weight: 500; }

/* Sections */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tinted { background: var(--slate-100); }
.section-green { background: var(--etic-green-50); }
.section-dark { background: var(--ink); color: rgba(255,255,255,0.85); }
.section-dark h2 { color: var(--white); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--etic-green-700); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px; position: relative; padding-bottom: 12px;
}
.section-tag::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0); width: 32px; height: 3px;
  background: var(--etic-green-700); border-radius: 2px; transform-origin: center;
  transition: transform 0.6s var(--ease-out);
}
.in .section-tag::after, .section-header.in .section-tag::after { transform: translateX(-50%) scaleX(1); }
.section-header h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.section-header p { color: var(--slate-500); font-size: 17px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.section-header-flex h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 8px; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-action {
  background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius-md); padding: 28px;
  display: flex; align-items: center; gap: 20px;
  transition: all 0.3s var(--ease-out); cursor: pointer; position: relative; overflow: hidden;
}
.quick-action::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--etic-green-700); transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}
.quick-action:hover { border-color: var(--etic-green-500); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.quick-action:hover::before { transform: scaleY(1); }
.quick-action:hover .qa-icon { background: var(--etic-green-700); color: var(--white); }
.qa-icon {
  width: 56px; height: 56px; background: var(--etic-green-50); color: var(--etic-green-700);
  border-radius: var(--radius-md); display: grid; place-items: center; flex-shrink: 0;
  transition: all 0.3s;
}
.qa-text strong { display: block; font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.qa-text span { font-size: 14px; color: var(--slate-500); }
.qa-arrow { margin-left: auto; color: var(--etic-green-700); transition: transform 0.3s var(--ease-out); }
.quick-action:hover .qa-arrow { transform: translateX(4px); }

/* Filieres */
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.pill {
  padding: 10px 18px; background: var(--white); border: 1px solid var(--slate-300);
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  color: var(--slate-700); transition: all 0.2s var(--ease-soft); cursor: pointer;
}
.pill:hover { border-color: var(--etic-green-700); color: var(--etic-green-700); }
.pill.active { background: var(--etic-green-700); border-color: var(--etic-green-700); color: var(--white); }

.formations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.formation-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); transition: all 0.35s var(--ease-out);
  display: flex; flex-direction: column;
}
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.formation-image { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--etic-green-50); }
.formation-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.formation-card:hover .formation-image img { transform: scale(1.08); }
.formation-badge {
  position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--etic-green-900);
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.formation-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.formation-body h3 { font-size: 17px; margin-bottom: 12px; line-height: 1.3; }
.formation-link {
  color: var(--etic-green-700); font-weight: 600; font-size: 14px; margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.formation-card:hover .formation-link { gap: 10px; }

/* Écoles */
.schools-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.schools-list { display: flex; flex-direction: column; gap: 16px; }
.school-row {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 20px; padding: 16px; background: var(--white);
  border-radius: var(--radius-md); border: 1px solid var(--slate-200);
  align-items: center; transition: all 0.25s var(--ease-out); cursor: pointer;
}
.school-row:hover {
  border-color: var(--etic-green-500); transform: translateX(4px); box-shadow: var(--shadow-card);
}
.school-thumb { width: 120px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--etic-green-50); }
.school-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.school-row:hover .school-thumb img { transform: scale(1.08); }
.school-info h4 { font-size: 16px; margin-bottom: 4px; }
.school-info p { font-size: 13px; color: var(--slate-500); line-height: 1.4; }
.school-arrow { color: var(--etic-green-700); transition: transform 0.2s; }
.school-row:hover .school-arrow { transform: translateX(4px); }

.schools-feature {
  position: sticky; top: 96px; background: var(--white);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card);
  text-align: center;
}
.schools-feature-img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 20px; background: var(--etic-green-50);
}
.schools-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.schools-feature h3 { font-size: 22px; margin-bottom: 8px; }
.schools-feature p { font-size: 14px; color: var(--slate-500); margin-bottom: 20px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--etic-green-700) 0%, var(--etic-green-900) 100%);
  color: var(--white); padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}
.cta-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; position: relative; }
.cta-inner h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.85); font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn-cta-primary {
  background: var(--white); color: var(--etic-green-900); padding: 16px 28px;
  font-weight: 700; border-radius: var(--radius-sm); transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-primary:hover { background: var(--etic-gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-cta-whatsapp {
  background: #25d366; color: var(--white); padding: 16px 28px;
  font-weight: 700; border-radius: var(--radius-sm); transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* Actualités + Agenda */
.split-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.actualites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.article-image { aspect-ratio: 4 / 3; background: var(--etic-green-50); position: relative; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.article-card:hover .article-image img { transform: scale(1.08); }
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-date {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--slate-500); margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.article-card h3 { font-size: 17px; line-height: 1.35; }

.agenda-list { display: flex; flex-direction: column; gap: 12px; }
.agenda-item {
  display: flex; gap: 16px; padding: 20px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); transition: all 0.25s; cursor: pointer; align-items: center;
}
.agenda-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.agenda-date {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--etic-green-50); border-radius: var(--radius-sm); padding: 10px 8px;
}
.agenda-date .day {
  font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--etic-green-900); line-height: 1; display: block;
}
.agenda-date .month {
  font-size: 11px; color: var(--etic-green-700);
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em;
}
.agenda-content h4 { font-size: 15px; margin-bottom: 4px; }
.agenda-content p { font-size: 13px; color: var(--slate-500); display: inline-flex; align-items: center; gap: 4px; }

/* Médias (photos + vidéos) */
.medias-tabs { display: flex; gap: 8px; margin-bottom: 32px; justify-content: center; }
.medias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-card {
  position: relative; aspect-ratio: 16/10; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out); cursor: pointer;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.media-card:hover img { transform: scale(1.08); }
.media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; color: white;
}
.media-overlay h4 { color: white; font-size: 15px; line-height: 1.3; }
.media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95); display: grid; place-items: center;
  color: var(--etic-green-700); transition: all 0.3s;
}
.media-card:hover .media-play { background: white; transform: translate(-50%, -50%) scale(1.1); }

/* Témoignages */
.testimonial-block { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.testimonial-block::before {
  content: '"'; position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%); font-family: 'Poppins', sans-serif;
  font-size: 160px; color: var(--etic-green-500); opacity: 0.25;
  line-height: 1; pointer-events: none;
}
.testimonial-slides { position: relative; min-height: 280px; }
.testimonial-slide {
  position: absolute; inset: 0; opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); pointer-events: none;
}
.testimonial-slide.active { position: relative; opacity: 1; transform: translateY(0); pointer-events: auto; }
.testimonial-text {
  font-family: 'Poppins', sans-serif; font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500; line-height: 1.5; color: var(--ink);
  margin-bottom: 32px; letter-spacing: -0.01em;
}
.testimonial-author { display: inline-flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-500));
  display: grid; place-items: center; color: white;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-meta { text-align: left; }
.testimonial-meta strong { display: block; font-family: 'Poppins', sans-serif; color: var(--ink); font-size: 16px; font-weight: 700; }
.testimonial-meta span { font-size: 13px; color: var(--slate-500); }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonial-dots span {
  width: 8px; height: 8px; background: var(--slate-300);
  border-radius: 50%; cursor: pointer; transition: all 0.2s;
}
.testimonial-dots span.active { width: 24px; border-radius: 4px; background: var(--etic-green-700); }

/* Partenaires */
.partners-marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.partners-track {
  display: flex; gap: 56px; animation: scrollMarquee 40s linear infinite;
  width: max-content; align-items: center;
}
.partner-logo {
  flex-shrink: 0; width: 160px; height: 90px;
  display: grid; place-items: center; padding: 0 12px;
  filter: grayscale(1); opacity: 0.55; transition: all 0.3s;
}
.partner-logo img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 80px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { color: white; }
.footer-brand p { margin: 16px 0 20px; font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: rgba(255,255,255,0.08);
  color: white; transition: all 0.2s;
}
.footer-social a:hover { background: var(--etic-green-700); transform: translateY(-2px); }
.footer-col h4 {
  color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px; font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--etic-green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* FAB */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: white; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 50; cursor: pointer; animation: pulse 2.5s infinite; transition: transform 0.2s;
}
.fab:hover { transform: scale(1.08); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,26,20,0.5);
  backdrop-filter: blur(4px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 200;
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 88vw; background: white;
  z-index: 201; transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  padding: 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
  align-self: flex-end; width: 40px; height: 40px;
  border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--ink); transition: background 0.2s;
}
.drawer-close:hover { background: var(--slate-100); }
.drawer-nav { display: flex; flex-direction: column; margin-top: 12px; }
.drawer-nav a {
  padding: 14px 16px; font-size: 16px; font-weight: 500;
  color: var(--ink); border-radius: var(--radius-sm); transition: background 0.2s;
}
.drawer-nav a:hover, .drawer-nav a.active { background: var(--etic-green-50); color: var(--etic-green-900); }
.drawer-footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--slate-200); }

/* ============================================================
   INTERNAL PAGES (detail, listing, content)
   ============================================================ */

/* Breadcrumb */
.breadcrumb { background: var(--slate-100); padding: 14px 0; font-size: 13px; }
.breadcrumb ol {
  list-style: none; display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap; color: var(--slate-500);
}
.breadcrumb a { color: var(--slate-700); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--etic-green-700); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }
.breadcrumb li:last-child { color: var(--ink); font-weight: 600; }

/* Page hero (compact) */
.page-hero {
  position: relative; padding: 64px 0 80px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(4, 92, 2, 0.85), rgba(7, 154, 4, 0.7)),
    linear-gradient(135deg, #045c02 0%, #079a04 100%);
  color: var(--white);
}
.page-hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25; z-index: 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(245, 184, 0, 0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(52, 199, 89, 0.2), transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.page-hero-content > * { animation: fadeUp 0.7s var(--ease-out) backwards; }
.page-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 13px; font-weight: 600;
  border-radius: var(--radius-pill); margin-bottom: 20px; backdrop-filter: blur(8px);
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 800;
  color: var(--white); margin-bottom: 16px; line-height: 1.1;
}
.page-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px; color: rgba(255,255,255,0.9); font-size: 15px;
}
.page-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero-share { align-self: end; }

/* Share card */
.share-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  animation: scaleIn 0.7s var(--ease-out) 0.4s backwards;
}
.share-card-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.7; font-weight: 600;
}
.share-card strong {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1; margin-top: 2px;
}
.share-buttons { display: flex; gap: 6px; }
.share-buttons a {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15); display: grid; place-items: center;
  color: white; transition: all 0.2s;
}
.share-buttons a:hover { background: white; color: var(--etic-green-700); transform: translateY(-2px); }

/* Btn secondary on dark bg */
.page-hero .btn-secondary {
  background: rgba(255,255,255,0.15); color: var(--white);
  border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(8px);
}
.page-hero .btn-secondary:hover { background: var(--white); color: var(--etic-green-900); transform: translateY(-2px); }

/* Main grid (2/3 + sidebar) */
.main-grid {
  padding: 80px 0; display: grid;
  grid-template-columns: 1fr 360px; gap: 48px; align-items: start;
}
.main-content > section { margin-bottom: 56px; }
.main-content > section:last-child { margin-bottom: 0; }

/* Section title (used in detail content) */
.section-title {
  font-size: 26px; margin-bottom: 24px;
  position: relative; padding-bottom: 12px;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; background: var(--etic-green-700); border-radius: 2px;
}

/* Editorial description */
.description { font-size: 16px; line-height: 1.7; color: var(--slate-700); }
.description p { margin-bottom: 16px; }
.description p:first-child::first-letter {
  font-family: 'Poppins', sans-serif; font-size: 56px; font-weight: 700;
  color: var(--etic-green-700); float: left; line-height: 0.9;
  margin-right: 8px; margin-top: 6px;
}
.description img { border-radius: var(--radius-md); margin: 16px 0; }
.description h2 { font-size: 22px; margin: 28px 0 12px; }
.description h3 { font-size: 18px; margin: 24px 0 10px; }
.description ul, .description ol { margin: 12px 0 16px 20px; }
.description blockquote {
  border-left: 4px solid var(--etic-green-500);
  padding: 4px 16px; margin: 20px 0; color: var(--slate-500); font-style: italic;
}

/* Sidebar */
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); padding: 20px;
}
.side-card-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate-500); font-weight: 600; margin-bottom: 14px;
}

/* Contact card */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: var(--radius-sm); transition: background 0.2s;
}
.contact-item:hover { background: var(--etic-green-50); }
.contact-item-icon {
  width: 36px; height: 36px; background: var(--etic-green-50);
  color: var(--etic-green-700); border-radius: var(--radius-sm);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-item-text small {
  display: block; font-size: 11px; text-transform: uppercase;
  color: var(--slate-500); letter-spacing: 0.05em; margin-bottom: 2px;
}
.contact-item-text span { font-weight: 600; color: var(--ink); font-size: 14px; word-break: break-word; }

/* Sticky CTA card (in sidebar) */
.cta-side {
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-900));
  color: white; text-align: center;
}
.cta-side h4 { color: white; font-size: 18px; margin-bottom: 6px; }
.cta-side p { font-size: 13px; opacity: 0.85; margin-bottom: 14px; }
.btn-side {
  background: white; color: var(--etic-green-900);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.btn-side:hover { background: var(--etic-gold); transform: translateY(-2px); }

/* Article meta strip (date, author, share) */
.article-meta-strip {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--slate-200);
  margin-bottom: 32px; color: var(--slate-500); font-size: 14px;
}
.article-meta-strip > span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero image (for article detail) */
.article-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

/* Quick info bar (sous le hero) */
.info-bar { margin-top: -40px; position: relative; z-index: 10; }
.info-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero); padding: 28px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.info-item { display: flex; align-items: center; gap: 14px; position: relative; }
.info-item:not(:last-child)::after {
  content: ''; position: absolute; right: -12px; top: 10%; bottom: 10%;
  width: 1px; background: var(--slate-200);
}
.info-icon {
  width: 44px; height: 44px; background: var(--etic-green-50);
  color: var(--etic-green-700); border-radius: var(--radius-md);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-text strong {
  display: block; font-family: 'Poppins', sans-serif;
  color: var(--ink); font-weight: 700; font-size: 18px;
  line-height: 1; margin-bottom: 4px;
}
.info-text span { font-size: 13px; color: var(--slate-500); }

/* Related items (other articles, other schools) */
.related-section {
  padding: 80px 0; background: var(--etic-green-50);
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   LISTING PAGES (Template B)
   ============================================================ */
.listing-section { padding: 64px 0 96px; }
.listing-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px; gap: 24px; flex-wrap: wrap;
}
.listing-header h2 { font-size: clamp(24px, 3vw, 32px); }
.listing-count { font-size: 14px; color: var(--slate-500); }

.listing-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.listing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--slate-100); border-radius: var(--radius-lg);
  color: var(--slate-500);
}
.empty-state svg { color: var(--etic-green-500); margin: 0 auto 16px; opacity: 0.6; }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; font-size: 20px; }
.empty-state p { font-size: 15px; }

/* Pagination */
.pagination-v2 {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 48px; flex-wrap: wrap;
}
.pagination-v2 a, .pagination-v2 span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  color: var(--slate-700); background: var(--white);
  border: 1px solid var(--slate-200); transition: all 0.2s;
}
.pagination-v2 a:hover { border-color: var(--etic-green-700); color: var(--etic-green-700); }
.pagination-v2 .active, .pagination-v2 .current {
  background: var(--etic-green-700); border-color: var(--etic-green-700); color: white;
}
.pagination-v2 .disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   VIDEO CARD (with play icon)
   ============================================================ */
.video-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-card-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--ink);
}
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-card-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center; color: var(--etic-green-700);
  transition: all 0.3s; z-index: 2;
}
.video-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: white;
}
.video-card-body { padding: 16px 20px; }
.video-card-body h3 { font-size: 15px; line-height: 1.3; }

/* ============================================================
   ANCIEN CARD (testimonial)
   ============================================================ */
.ancien-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ancien-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ancien-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-500));
  display: grid; place-items: center; color: white;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 32px;
  margin-bottom: 16px; flex-shrink: 0;
}
.ancien-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ancien-card h3 { font-size: 17px; margin-bottom: 4px; }
.ancien-card .ancien-role {
  font-size: 13px; color: var(--etic-green-700); font-weight: 600;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.03em;
}
.ancien-card .ancien-quote {
  font-size: 14px; color: var(--slate-500); line-height: 1.5;
  font-style: italic; position: relative; padding-top: 8px;
}

/* ============================================================
   ALBUM / EVENT / CLUB CARDS
   ============================================================ */
.album-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.album-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--etic-green-50);
}
.album-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.album-card:hover .album-card-img img { transform: scale(1.05); }
.album-card-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.7); color: white;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; backdrop-filter: blur(4px);
}
.album-card-body { padding: 16px 20px; }
.album-card-body h3 { font-size: 15px; line-height: 1.3; }

.event-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out); cursor: pointer;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.event-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--etic-green-50);
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.event-card:hover .event-card-img img { transform: scale(1.05); }
.event-card-date-badge {
  position: absolute; bottom: -16px; left: 16px;
  background: var(--etic-green-700); color: white;
  padding: 10px 16px; border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-align: center;
}
.event-card-date-badge .day {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.event-card-date-badge .month {
  font-size: 11px; text-transform: uppercase;
  font-weight: 600; letter-spacing: 0.05em; opacity: 0.9;
}
.event-card-body { padding: 28px 20px 20px; }
.event-card-body h3 { font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
.event-card-body .event-place {
  font-size: 13px; color: var(--slate-500);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============================================================
   FILIERE CARDS (riches, en listing)
   ============================================================ */
.filiere-card-large {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column;
}
.filiere-card-large:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.filiere-card-img {
  aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-500));
}
.filiere-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.filiere-card-large:hover .filiere-card-img img { transform: scale(1.05); }
.filiere-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.filiere-card-body h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.3; }
.filiere-card-body p { font-size: 14px; color: var(--slate-500); line-height: 1.5; margin-bottom: 14px; }
.filiere-card-link {
  margin-top: auto; color: var(--etic-green-700);
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.filiere-card-large:hover .filiere-card-link { gap: 10px; }

/* Category card */
.category-card {
  background: linear-gradient(135deg, var(--etic-green-700), var(--etic-green-900));
  color: white; padding: 32px;
  border-radius: var(--radius-md); position: relative; overflow: hidden;
  transition: all 0.35s var(--ease-out); cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.category-card::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card h3 {
  color: white; font-size: 22px; line-height: 1.2;
  position: relative; z-index: 1;
}
.category-card .category-count {
  font-size: 13px; opacity: 0.8;
  margin-top: 12px; position: relative; z-index: 1;
}
.category-card .category-arrow {
  align-self: flex-end; position: relative; z-index: 1;
  transition: transform 0.3s var(--ease-out);
}
.category-card:hover .category-arrow { transform: translateX(6px); }

/* ============================================================
   FILIERE DETAIL TABS
   ============================================================ */
.filiere-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin-bottom: 32px; flex-wrap: wrap; }
.filiere-tab {
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  color: var(--slate-500); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; margin-bottom: -1px;
}
.filiere-tab:hover { color: var(--etic-green-700); }
.filiere-tab.active { color: var(--etic-green-700); border-bottom-color: var(--etic-green-700); }
.filiere-tab-content { display: none; }
.filiere-tab-content.active { display: block; }

/* ============================================================
   ALBUM GALLERY (detail page)
   ============================================================ */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 32px;
}
.photo-grid a {
  display: block; aspect-ratio: 1; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--slate-100);
  transition: all 0.25s var(--ease-out);
}
.photo-grid a:hover { transform: scale(0.98); box-shadow: var(--shadow-hover); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.photo-grid a:hover img { transform: scale(1.05); }

/* Photo grid items — overlay zoom au survol (GLightbox) */
.photo-grid-item { position: relative; display: block; }
.photo-grid-item .photo-grid-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 154, 4, 0.85));
  color: white; opacity: 0;
  transition: opacity 0.3s var(--ease-soft);
}
.photo-grid-item:hover .photo-grid-zoom { opacity: 1; }
.photo-grid-item .photo-grid-zoom svg {
  background: white; color: var(--etic-green-700);
  padding: 10px; border-radius: 50%; box-sizing: content-box;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transform: scale(0.8); transition: transform 0.3s var(--ease-out);
}
.photo-grid-item:hover .photo-grid-zoom svg { transform: scale(1); }

/* GLightbox — habillage palette ETIC */
.goverlay { background: rgba(15, 26, 20, 0.92) !important; }
.gbtn.gnext, .gbtn.gprev, .gclose {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 50% !important;
  width: 44px !important; height: 44px !important;
  transition: all 0.2s !important;
}
.gbtn.gnext:hover, .gbtn.gprev:hover, .gclose:hover {
  background: var(--etic-green-700) !important;
  transform: scale(1.05) !important;
}
.gslide-description { background: rgba(0,0,0,0.5) !important; backdrop-filter: blur(8px); }
.gdesc-inner h4 { color: white !important; font-family: 'Poppins', sans-serif !important; }
.gdesc-inner .gslide-desc { color: rgba(255,255,255,0.8) !important; }

/* ============================================================
   VIDEO DETAIL (YouTube embed)
   ============================================================ */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-hero); margin-bottom: 32px;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ============================================================
   PARTENAIRES (grille de logos auto-responsive)
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.partner-card {
  aspect-ratio: 4/3; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  display: grid; place-items: center; padding: 18px;
  transition: all 0.25s var(--ease-soft);
  filter: grayscale(0.85); opacity: 0.75;
}
.partner-card:hover {
  border-color: var(--etic-green-500);
  filter: grayscale(0); opacity: 1;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.partner-card img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; width: auto; height: auto;
}

/* ============================================================
   RESULTATS (table)
   ============================================================ */
.resultats-list { display: flex; flex-direction: column; gap: 12px; }
.resultat-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  transition: all 0.2s;
}
.resultat-row:hover { border-color: var(--etic-green-500); box-shadow: var(--shadow-card); }
.resultat-icon {
  width: 48px; height: 48px; background: #fee2e2; color: #dc2626;
  border-radius: var(--radius-sm); display: grid; place-items: center; flex-shrink: 0;
}
.resultat-title { flex: 1; font-weight: 600; color: var(--ink); font-size: 15px; }
.resultat-action {
  background: var(--etic-green-700); color: white;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.resultat-action:hover { background: var(--etic-green-900); transform: translateY(-2px); }

/* ============================================================
   CONTENT PAGE (Template D — editorial)
   ============================================================ */
.content-grid {
  padding: 64px 0 96px;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 64px; align-items: start;
}
.content-body {
  font-size: 17px; line-height: 1.8; color: var(--slate-700);
}
.content-body > * { animation: fadeUp 0.6s var(--ease-out) backwards; }
.content-body p { margin-bottom: 20px; }
.content-body h2 {
  font-size: 28px; margin: 40px 0 16px; line-height: 1.2;
  position: relative; padding-bottom: 12px;
}
.content-body h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px; background: var(--etic-green-700); border-radius: 2px;
}
.content-body h3 { font-size: 22px; margin: 32px 0 12px; }
.content-body h4 { font-size: 18px; margin: 24px 0 10px; color: var(--etic-green-900); }
.content-body img {
  width: 100%; border-radius: var(--radius-md); margin: 24px 0;
  box-shadow: var(--shadow-card);
}
.content-body ul, .content-body ol { margin: 0 0 20px 24px; }
.content-body ul li, .content-body ol li { margin-bottom: 8px; }
.content-body blockquote {
  border-left: 4px solid var(--etic-green-500);
  padding: 8px 20px; margin: 24px 0;
  background: var(--etic-green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--slate-700);
}
.content-body p:first-child::first-letter {
  font-family: 'Poppins', sans-serif; font-size: 72px; font-weight: 700;
  color: var(--etic-green-700); float: left; line-height: 0.85;
  margin-right: 12px; margin-top: 8px;
}

.content-toc {
  position: sticky; top: 96px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); padding: 20px;
}
.content-toc-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--slate-500); font-weight: 600; margin-bottom: 14px;
}
.content-toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.content-toc a {
  display: block; padding: 8px 12px; font-size: 14px;
  color: var(--slate-700); border-radius: var(--radius-sm);
  border-left: 2px solid transparent; transition: all 0.2s;
}
.content-toc a:hover { background: var(--etic-green-50); color: var(--etic-green-700); border-left-color: var(--etic-green-500); }

/* ============================================================
   FORMS (Template C)
   ============================================================ */
.form-page { padding: 48px 0 96px; }

.form-stepper {
  display: flex; gap: 0; margin-bottom: 40px;
  background: var(--white); padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.form-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  position: relative; cursor: pointer; text-align: center;
}
.form-step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--slate-200); color: var(--slate-500);
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
  border: 3px solid transparent;
  transition: all 0.3s var(--ease-out);
  position: relative; z-index: 2;
}
.form-step-label {
  margin-top: 8px; font-size: 12px; font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.form-step:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: 50%; right: -50%;
  height: 2px; background: var(--slate-200);
  z-index: 1; transition: background 0.3s;
}
.form-step.active .form-step-dot {
  background: var(--etic-green-700); color: white;
  border-color: var(--etic-green-50);
  box-shadow: 0 0 0 4px rgba(7, 154, 4, 0.15);
}
.form-step.active .form-step-label { color: var(--etic-green-700); }
.form-step.done .form-step-dot {
  background: var(--etic-green-500); color: white;
}
.form-step.done::after { background: var(--etic-green-500); }
.form-step.done .form-step-label { color: var(--etic-green-700); }

.form-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 100px;
}
.form-section-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--slate-200);
}
.form-section-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--etic-green-50); color: var(--etic-green-700);
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.form-section-head h2 {
  font-size: 20px; margin: 0;
}
.form-section-head p {
  font-size: 13px; color: var(--slate-500); margin-top: 2px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.form-group-v2 { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px; font-weight: 600; color: var(--slate-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.form-label .required { color: #dc2626; }
.form-label .hint {
  font-weight: 400; color: var(--slate-500);
  font-size: 12px; font-style: italic;
}
.form-control-v2 {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease-soft);
}
.form-control-v2:hover { border-color: var(--slate-300); }
.form-control-v2:focus {
  outline: none; border-color: var(--etic-green-500);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}
.form-control-v2::placeholder { color: var(--slate-500); }
textarea.form-control-v2 { min-height: 110px; resize: vertical; font-family: inherit; }
select.form-control-v2 {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7d72' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Radio cards */
.form-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.form-radio-option {
  flex: 1 1 calc(50% - 5px); min-width: 140px;
  position: relative;
}
.form-radio-option input {
  position: absolute; opacity: 0; pointer-events: none;
}
.form-radio-option label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--slate-700);
  cursor: pointer; transition: all 0.2s;
}
.form-radio-option label::before {
  content: ''; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid var(--slate-300);
  flex-shrink: 0; transition: all 0.2s; position: relative;
}
.form-radio-option label:hover { border-color: var(--etic-green-500); }
.form-radio-option input:checked + label {
  border-color: var(--etic-green-700);
  background: var(--etic-green-50);
  color: var(--etic-green-900); font-weight: 600;
}
.form-radio-option input:checked + label::before {
  border-color: var(--etic-green-700);
  background: var(--etic-green-700);
  box-shadow: inset 0 0 0 3px white;
}

/* File upload */
.form-file {
  position: relative;
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: 24px; text-align: center;
  transition: all 0.2s var(--ease-soft);
  cursor: pointer;
}
.form-file:hover { border-color: var(--etic-green-500); background: var(--etic-green-50); }
.form-file input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.form-file-icon {
  width: 48px; height: 48px; margin: 0 auto 10px;
  background: var(--etic-green-50); color: var(--etic-green-700);
  border-radius: 50%; display: grid; place-items: center;
}
.form-file-text {
  font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 2px;
}
.form-file-hint {
  font-size: 12px; color: var(--slate-500);
}
.form-file.has-file { border-style: solid; border-color: var(--etic-green-500); background: var(--etic-green-50); }
.form-file.has-file .form-file-icon { background: var(--etic-green-700); color: white; }

/* Submit area */
.form-submit-area {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 28px 32px;
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.form-submit-area-info { flex: 1; min-width: 200px; }
.form-submit-area-info strong {
  display: block; font-family: 'Poppins', sans-serif;
  color: var(--ink); font-size: 16px; margin-bottom: 4px;
}
.form-submit-area-info p {
  font-size: 13px; color: var(--slate-500); margin: 0;
}
.btn-submit {
  background: var(--etic-green-700); color: var(--white);
  padding: 16px 32px; font-size: 16px; font-weight: 700;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 14px rgba(7, 154, 4, 0.25);
  transition: all 0.25s var(--ease-soft);
}
.btn-submit:hover {
  background: var(--etic-green-900); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 154, 4, 0.35);
}

/* Social pills (page contact) */
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  color: white; font-size: 13px; font-weight: 600;
  transition: all 0.2s var(--ease-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.social-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Info box (Dossiers à fournir, etc.) */
.info-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 24px 28px; margin-top: 32px;
}
.info-box-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.info-box-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--etic-gold); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.info-box h3 { font-size: 17px; color: var(--ink); margin: 0; }
.info-box p { font-size: 14px; color: var(--ink); line-height: 1.6; }
.info-box ul { margin: 8px 0 0 20px; }
.info-box li { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.info-box small { display: block; margin-top: 10px; font-style: italic; opacity: 0.8; }

/* Form layout grid (form + sidebar) */
.form-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 32px; align-items: start;
}

@media (max-width: 1024px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-stepper { padding: 16px; gap: 4px; }
  .form-step-label { font-size: 10px; }
  .form-card { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .form-stepper { padding: 12px 8px; overflow-x: auto; }
  .form-step { min-width: 70px; }
  .form-step-dot { width: 30px; height: 30px; font-size: 12px; }
  .form-submit-area { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; justify-content: center; }
  .form-radio-option { flex: 1 1 100%; }
}

/* Responsive */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-card-4, .stats-card-3 { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-grid { grid-template-columns: 1fr; }
  .schools-feature { position: static; }
  .split-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .medias-grid { grid-template-columns: repeat(2, 1fr); }
  .main-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .info-card { grid-template-columns: repeat(2, 1fr); }
  .info-item:nth-child(2)::after { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-share { align-self: start; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 100px; }
  .section { padding: 64px 0; }
  .topbar-meta { display: none; }
  .stats-card { padding: 28px 20px; gap: 20px; }
  .stats-card-4, .stats-card-3, .stats-card-2 { grid-template-columns: 1fr 1fr; }
  .stat::after { display: none !important; }
  .actualites-grid, .formations-grid, .medias-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 32px; }
  .school-row { grid-template-columns: 80px 1fr auto; }
  .school-thumb { width: 80px; height: 60px; }
  .info-card { grid-template-columns: 1fr; padding: 20px; }
  .info-item::after { display: none !important; }
  .related-grid { grid-template-columns: 1fr; }
  .article-hero-img { aspect-ratio: 4/3; }
  .listing-grid-4, .listing-grid-3, .listing-grid-2 { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-toc { position: static; }
  .resultat-row { flex-wrap: wrap; gap: 12px; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .listing-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .listing-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-toc { position: static; }
}
