/* =========================================================
   AJAD — Portfolio Institutionnel
   Charte : Bleu #2563EB · Noir #000000 · Blanc #FFFFFF
   ========================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --blue-light: #3B82F6;
  --blue-soft: #EFF6FF;
  --black: #000000;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --grey: #475569;
  --grey-light: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --bg-alt: #F8FAFC;
  --error: #DC2626;
  --success: #059669;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.16);
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle { color: var(--grey); font-size: 1.02rem; }
.highlight { color: var(--blue); }

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px; font-size: 0.95rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: var(--ease);
  text-align: center; line-height: 1;
}

.btn-primary {
  background: var(--blue); color: var(--white); border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--blue-dark); border-color: var(--blue-dark);
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-2px);
}

.btn-link {
  background: none; border: none; color: var(--blue); font-weight: 700;
  font-size: 0.9rem; cursor: pointer; padding: 0; display: inline-flex;
  align-items: center; gap: 4px; transition: var(--ease);
}
.btn-link:hover, .btn-link:focus-visible { color: var(--blue-dark); gap: 8px; }

.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); font-weight: 700; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  transition: var(--ease); margin-bottom: 32px;
}
.btn-back:hover, .btn-back:focus-visible {
  border-color: var(--blue); color: var(--blue); transform: translateX(-2px);
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--blue); color: var(--white);
  padding: 12px 24px; border-radius: var(--radius-sm);
  z-index: 9999; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.logo-img {
  display: block; width: auto; height: 44px; max-width: 110px;
  object-fit: contain; flex-shrink: 0;
}

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  height: 44px; padding: 0 10px; border-radius: 10px;
  background: var(--white); border: 1.5px solid var(--border);
  font-weight: 900; font-size: 1.15rem; letter-spacing: -0.03em;
}
.logo-mark.small { height: 40px; padding: 0 8px; font-size: 1rem; background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.logo-letter.blue { color: var(--blue); }
.logo-letter.black { color: var(--black); }
.logo-mark.small .logo-letter.black { color: var(--white); }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1rem; color: var(--black); letter-spacing: 0.02em; }
.logo-text small { font-size: 0.7rem; color: var(--grey-light); font-weight: 500; }

/* Nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1100; }
.hamburger { display: block; width: 26px; height: 2px; background: var(--black); position: relative; transition: var(--ease); }
.hamburger::before, .hamburger::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--black); transition: var(--ease);
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { top: 0; transform: rotate(-45deg); }

.main-nav ul { display: flex; gap: 4px; }
.nav-link {
  display: block; padding: 8px 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-2); border-radius: var(--radius-sm); transition: var(--ease); white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { color: var(--blue); background: var(--blue-soft); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, #0F172A 0%, #1E3A8A 55%, var(--blue) 100%);
  color: var(--white); overflow: hidden; padding: 130px 0 90px;
}
.hero-decor {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 8% 85%, rgba(59, 130, 246, 0.35) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #BFDBFE; border: 1px solid rgba(191, 219, 254, 0.4);
  background: rgba(255, 255, 255, 0.06); padding: 7px 18px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero h1 .highlight { color: #93C5FD; }
.hero-intro {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, 0.85);
  max-width: 640px; margin-bottom: 36px; line-height: 1.75;
}
.hero-intro strong { color: var(--white); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 44px; padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-hero { font-size: 1.6rem; font-weight: 800; color: #93C5FD; letter-spacing: -0.02em; }
.hero-stat span:last-child {
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* =========================================================
   À PROPOS
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text h3 { font-size: 1.5rem; font-weight: 800; color: var(--black); letter-spacing: -0.01em; margin-bottom: 18px; }
.about-text p { color: var(--grey); margin-bottom: 16px; font-size: 1rem; }
.about-text strong { color: var(--ink); }

.about-cards { display: flex; flex-direction: column; gap: 18px; }
.about-card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--blue); border-radius: var(--radius-md);
  padding: 24px 28px; transition: var(--ease);
}
.about-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-left-color: var(--blue-dark); }
.about-icon { color: var(--blue); margin-bottom: 10px; }
.about-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.about-card p { font-size: 0.92rem; color: var(--grey); line-height: 1.6; }

/* =========================================================
   INITIATIVES
   ========================================================= */
.initiatives-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.initiative-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.initiative-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-image { position: relative; height: 150px; overflow: hidden; }
.card-image svg { width: 100%; height: 100%; }
.card-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-image-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; letter-spacing: 0.04em; color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.32));
}
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--black); letter-spacing: -0.01em; }
.card-body p { font-size: 0.88rem; color: var(--grey); line-height: 1.6; flex: 1; }

/* =========================================================
   IMPACT
   ========================================================= */
.impact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.impact-activities h3, .impact-stats h3 {
  font-size: 1.4rem; font-weight: 800; color: var(--black); margin-bottom: 20px; letter-spacing: -0.01em;
}
.activity-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.activity-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--ink-2); }
.activity-check {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); margin-top: 1px;
}
.impact-note, .stats-note { font-size: 0.82rem; color: var(--grey-light); font-style: italic; margin-top: 14px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 20px; text-align: center; transition: var(--ease);
}
.stat-card:hover { border-color: var(--blue); background: var(--blue-soft); }
.stat-number {
  display: block; font-size: 2.2rem; font-weight: 800; color: var(--blue);
  line-height: 1.2; letter-spacing: -0.02em;
}
.stat-label {
  display: block; font-size: 0.8rem; color: var(--grey); margin-top: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* =========================================================
   GALERIE
   ========================================================= */
.home-gallery-slider { width: 100%; }
.home-gallery-slider .home-banner,
.home-gallery-slider .banner-slider {
  height: clamp(260px, 48vw, 480px);
  margin-bottom: 0;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--ease), box-shadow var(--ease);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-visual {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: 0.02em;
}
.gallery-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.grad-1 { background: linear-gradient(135deg, #1E3A8A, #2563EB); }
.grad-2 { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.grad-3 { background: linear-gradient(135deg, #0F172A, #1E40AF); }
.grad-4 { background: linear-gradient(135deg, #1E40AF, #2563EB); }
.grad-5 { background: linear-gradient(135deg, #0F172A, #2563EB); }
.grad-6 { background: linear-gradient(135deg, #3B82F6, #1E40AF); }
.gallery-item figcaption { padding: 14px 18px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }

/* =========================================================
   PARTENAIRES
   ========================================================= */
.partners-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.partner-category + .partner-category { margin-top: 48px; }
.partner-category h3 { margin-bottom: 18px; color: var(--ink-2); font-size: 1.2rem; font-weight: 700; }
.partner-box {
  display: flex; align-items: center; justify-content: center; height: 108px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: var(--ease); background: var(--white); overflow: hidden;
}
.partner-box img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-box:hover { border-color: var(--blue); background: var(--blue-soft); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info h3, .contact-form-wrap h3 {
  font-size: 1.3rem; font-weight: 800; color: var(--black); margin-bottom: 18px; letter-spacing: -0.01em;
}
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--ink-2); }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex-shrink: 0;
}
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: var(--white); color: var(--ink-2); border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 0.85rem; font-weight: 700; transition: var(--ease);
}
.social-link:hover, .social-link:focus-visible {
  background: var(--blue); color: var(--white); border-color: var(--blue); transform: translateY(-2px);
}
.contact-note { font-size: 0.8rem; color: var(--grey-light); font-style: italic; }

.contact-form-wrap {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.form-note {
  font-size: 0.82rem; color: var(--blue-dark); background: var(--blue-soft);
  border-left: 3px solid var(--blue); padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 22px; line-height: 1.5;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--white); transition: var(--ease); resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group input.invalid, .form-group textarea.invalid { border-color: var(--error); }
.form-group input.invalid:focus, .form-group textarea.invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
.error-msg { display: block; font-size: 0.8rem; color: var(--error); margin-top: 4px; min-height: 18px; }
.form-feedback {
  margin-top: 16px; font-size: 0.9rem; font-weight: 600; padding: 12px 16px;
  border-radius: var(--radius-sm); display: none; line-height: 1.5;
}
.form-feedback.success { display: block; background: rgba(5, 150, 105, 0.1); color: var(--success); }
.form-feedback.error { display: block; background: rgba(220, 38, 38, 0.08); color: var(--error); }

/* =========================================================
   PROJECT DETAIL VIEW
   ========================================================= */
.project-view {
  padding: 110px 0 96px;
  background: var(--white);
  min-height: 100vh;
}
.project-view[hidden] { display: none; }

.project-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 60%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.project-hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 45%);
}
.project-hero .project-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #BFDBFE;
  border: 1px solid rgba(191, 219, 254, 0.4); background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.project-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 16px; position: relative; z-index: 1;
}
.project-hero p {
  font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); max-width: 720px;
  line-height: 1.7; position: relative; z-index: 1;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.project-main section { margin-bottom: 48px; }
.project-main h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--black);
  letter-spacing: -0.01em; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--blue-soft);
  display: flex; align-items: center; gap: 10px;
}
.project-main h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.project-main p { color: var(--grey); font-size: 0.98rem; line-height: 1.75; margin-bottom: 12px; }
.project-main .placeholder {
  display: inline-block; background: #FEF3C7; color: #92400E;
  padding: 1px 6px; border-radius: 4px; font-size: 0.88em;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags .tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.82rem; font-weight: 700;
}

.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-stat {
  background: var(--bg-alt); border-radius: var(--radius-md);
  padding: 20px 16px; text-align: center; border: 1px solid var(--border);
}
.project-stat .val {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue);
  line-height: 1.2; letter-spacing: -0.02em;
}
.project-stat .lbl {
  display: block; font-size: 0.78rem; color: var(--grey);
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}

.project-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.project-gallery .gallery-item { box-shadow: var(--shadow-sm); }
.project-gallery .gallery-visual { height: 130px; font-size: 1rem; }

/* Sidebar */
.project-sidebar {
  position: sticky; top: 100px;
  background: var(--bg-alt); border-radius: var(--radius-md);
  padding: 28px; border: 1px solid var(--border);
}
.project-sidebar h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--black); margin-bottom: 16px;
}
.project-sidebar .side-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.88rem;
}
.project-sidebar .side-item:last-child { border-bottom: none; }
.project-sidebar .side-item span:first-child { color: var(--grey); font-weight: 500; }
.project-sidebar .side-item span:last-child { color: var(--ink); font-weight: 700; text-align: right; }

.project-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}

.project-page { display: block; }
.project-page .btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; font-weight: 700; color: var(--blue);
  transition: var(--ease);
}
.project-page .btn-back:hover { color: var(--blue-dark); gap: 12px; }

.program-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.program-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--white); color: var(--grey);
  transition: var(--ease);
}
.program-nav a:hover { border-color: var(--blue); color: var(--blue); }
.program-nav a.is-active {
  background: var(--blue); border-color: var(--blue); color: var(--white);
}

/* =========================================================
   BANNER SLIDER
   ========================================================= */
.banner-slider {
  position: relative;
  width: 100%;
  height: clamp(220px, 42vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.banner-track { position: absolute; inset: 0; }
.banner-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
  pointer-events: none;
}
.banner-slide.is-active { opacity: 1; pointer-events: auto; }
.banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(15, 23, 42, 0.55); color: var(--white);
  font-size: 1.2rem; cursor: pointer; transition: var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.banner-nav:hover { background: var(--blue); }
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.45); cursor: pointer; padding: 0;
  transition: var(--ease);
}
.banner-dot.is-active { background: var(--white); transform: scale(1.2); }

/* =========================================================
   YOUTUBE (FIIT)
   ========================================================= */
.project-video-section { margin-bottom: 48px; }
.yt-videos {
  display: flex; flex-direction: column; gap: 28px;
  margin-bottom: 28px;
}
.yt-video-card { width: 100%; }
.yt-video-title {
  font-size: 1.15rem; font-weight: 800; color: var(--black);
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.yt-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.yt-player-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.project-cta .btn-ghost {
  background: var(--white); color: var(--ink); border-color: var(--border);
}
.project-cta .btn-ghost:hover {
  background: var(--blue-soft); border-color: var(--blue); color: var(--blue);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black); color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 40px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 0.85rem; margin-top: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }
.footer-brand strong { color: var(--white); font-size: 0.95rem; }
.footer-nav h4, .footer-legal h4 {
  font-size: 0.9rem; color: var(--white); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); transition: var(--ease); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: #93C5FD; }
.footer-legal p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-disclaimer { font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.4) !important; font-style: italic; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.95); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--ease);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 82vw; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-content .lb-visual {
  width: 70vw; max-width: 860px; height: 52vh; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: var(--white);
  letter-spacing: 0.03em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.lightbox-content .lb-image { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.lightbox-content .lb-caption { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 600; }
.lightbox-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: var(--white); font-size: 2.5rem; line-height: 1; cursor: pointer; transition: var(--ease);
}
.lightbox-close:hover, .lightbox-close:focus-visible { color: #93C5FD; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1); border: none; color: var(--white);
  font-size: 1.8rem; padding: 16px 20px; cursor: pointer;
  border-radius: var(--radius-sm); transition: var(--ease);
}
.lightbox-prev:hover, .lightbox-next:hover,
.lightbox-prev:focus-visible, .lightbox-next:focus-visible { background: rgba(37, 99, 235, 0.6); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.initiatives-grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.initiatives-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.initiatives-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.initiatives-grid .reveal:nth-child(4) { transition-delay: 0.22s; }
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .initiatives-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid    { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .impact-layout, .contact-layout { gap: 40px; }
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul { flex-direction: column; padding: 16px 24px; gap: 0; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 0.95rem; }
  .nav-link:last-child { border-bottom: none; }

  .about-grid, .impact-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 28px; }
  .project-hero { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; min-height: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 24px; }
  .initiatives-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .home-gallery-slider .banner-slider { height: 220px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .lightbox-prev { left: 8px;  padding: 12px 14px; }
  .lightbox-next { right: 8px; padding: 12px 14px; }
  .logo-text small { display: none; }
  .project-stats { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-hero { padding: 32px 24px; }
  .banner-slider { height: 200px; margin-bottom: 32px; }
  .banner-nav { width: 36px; height: 36px; font-size: 1rem; }
  .project-cta .btn-ghost {
    border-color: var(--border); color: var(--ink);
  }
  .project-cta .btn-ghost:hover {
    background: var(--blue-soft); border-color: var(--blue); color: var(--blue);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}