/* ============================================================
   Portfolio Noël Koutohou Jahways — CSS Principal
   Swiss Design × Afrique Verte
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  --terre:       #0F4C5C;
  --vert-foret:  #0E7C86;
  --vert-clair:  #2AA7B3;
  --or-sahel:    #D7A24B;
  --creme:       #F2FBFC;
  --text:        #10272C;
  --text-light:  #4A686F;
  --white:       #FFFFFF;
  --semence:     #66C7B6;
  --eau:         #2F93A1;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-1: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-2: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-3: 0 8px 32px rgba(0,0,0,0.1);

  /* Espacements */
  --xs: 8px; --sm: 16px; --md: 24px; --lg: 32px;
  --xl: 48px; --2xl: 64px; --3xl: 96px;

  /* Transitions */
  --tr: 0.3s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Accessibilité : focus clavier */
:focus-visible {
  outline: 3px solid var(--vert-clair);
  outline-offset: 2px;
  border-radius: 2px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: none; }

/* Ancres : marge pour le header sticky */
section[id], article[id], main div[id] { scroll-margin-top: 84px; }

/* Lien d'évitement */
.skip-link {
  position: fixed;
  left: var(--sm);
  top: -60px;
  z-index: 10000;
  background: var(--vert-foret);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: top var(--tr);
}
.skip-link:focus { top: 12px; }

/* ─── Typographie ────────────────────────────────────────────── */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  color: var(--terre);
  letter-spacing: -1px;
  line-height: 1.1;
}
h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
p { font-size: 16px; line-height: 1.75; color: var(--text-light); }
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  border-left: 4px solid var(--or-sahel);
  padding: var(--md) var(--lg);
  color: var(--terre);
  font-style: italic;
  background: var(--creme);
  margin: var(--xl) 0;
}
blockquote cite {
  display: block;
  margin-top: var(--sm);
  font-size: 14px;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lg);
}
main { min-height: 60vh; }
section { padding: var(--3xl) 0; }
.section-creme { background: var(--creme); }
.section-dark  { background: var(--vert-foret); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,0.8); }

/* Variantes de sections */
.section-tight { padding-top: 0; }
.section-quote { padding: var(--3xl) 0 0; }
.section-quote-bottom { padding: 0 0 var(--3xl); }
.center-cta { text-align: center; margin-top: var(--xl); }
.empty-state { text-align: center; color: var(--text-light); padding: var(--3xl) 0; }

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--2xl);
}
.section-header h2 { color: var(--terre); }
.section-header p  { max-width: 640px; margin: var(--sm) auto 0; font-size: 18px; }
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,0.85); }

/* ─── Scroll Progress Bar ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--vert-clair);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── Header / Navigation ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--vert-foret);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow var(--tr);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon svg { width: 34px; height: 34px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-initials {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--terre);
  letter-spacing: -0.5px;
  transition: color var(--tr);
}
.logo:hover .logo-initials { color: var(--vert-foret); }
.logo-subtitle {
  font-size: 9px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Nav */
.main-nav { flex: 1; min-width: 0; overflow: visible; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav-link {
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--vert-foret);
  background: rgba(14,124,134,0.12);
}
.nav-link--contact {
  background: var(--vert-foret);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}
.nav-link--contact:hover {
  background: var(--terre);
  color: var(--white) !important;
}

/* Lang switcher */
.lang-switcher { flex-shrink: 0; }
.lang-btn {
  display: inline-block;
  padding: 5px 11px;
  border: 2px solid var(--vert-foret);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--vert-foret);
  letter-spacing: 1px;
  transition: background var(--tr), color var(--tr);
}
.lang-btn:hover {
  background: var(--vert-foret);
  color: var(--white);
}

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Overlay mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,25,30,0.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
}
.nav-overlay.visible { opacity: 1; visibility: visible; }

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  padding: clamp(38px, 7vh, 72px) 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FCFD 100%);
}
.hero::after {
  content: '';
  position: absolute;
  width: 58%;
  height: 125%;
  right: -16%;
  top: -18%;
  border-radius: 55% 0 0 55%;
  background: linear-gradient(145deg, #1395A5 0%, #1AA9BA 45%, #33BFD0 100%);
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}
.hero-content {
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #7A9095;
  margin-bottom: 14px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 900;
  color: #103A47;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin-bottom: 8px;
}
.hero-role {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--vert-foret);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hero-bio {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}
.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-social {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16,58,71,0.2);
  color: #5E7A82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}
.hero-social:hover {
  background: var(--vert-foret);
  color: var(--white);
  border-color: var(--vert-foret);
  transform: translateY(-2px);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-main-cta {
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 14px;
  letter-spacing: 0.2px;
}
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stat {
  min-width: 150px;
  background: rgba(16,58,71,0.04);
  border: 1px solid rgba(16,58,71,0.12);
  border-radius: 10px;
  padding: 12px 14px;
}
.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--vert-foret);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob {
  position: relative;
  width: min(520px, 100%);
  height: 560px;
  border-radius: 54% 46% 42% 58% / 56% 42% 58% 44%;
  background: linear-gradient(160deg, #0E7C86 0%, #1FA7B8 50%, #3BC5D6 100%);
  box-shadow: 0 30px 60px rgba(15,76,92,0.24);
  overflow: hidden;
}
.hero-blob::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 240px;
  height: 240px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0));
}
.hero-figure {
  position: absolute;
  inset: 0;
  background: url('../images/portrait.png') center 18%/cover no-repeat;
  mix-blend-mode: normal;
  opacity: 1;
}

/* ─── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--vert-foret);
  color: var(--white);
  border-color: var(--vert-foret);
}
.btn-primary:hover { background: var(--terre); border-color: var(--terre); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Axes d'Engagement ──────────────────────────────────────── */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
  margin-top: var(--lg);
}
.axe-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--lg);
  border-left: 4px solid var(--or-sahel);
  box-shadow: var(--shadow-1);
  transition: transform var(--tr), box-shadow var(--tr);
}
.axe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.axe-icon {
  width: 48px; height: 48px;
  background: var(--creme);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--md);
  color: var(--vert-foret);
  font-size: 22px;
}
.axe-card h3 { color: var(--terre); margin-bottom: var(--xs); font-size: 20px; }
.axe-card p  { font-size: 15px; }

/* Variantes (partenaires ONG) */
.axe-card--center { border-left-color: var(--vert-foret); text-align: center; }
.axe-icon--centered { margin: 0 auto var(--md); }
.partner-name { color: var(--terre); margin-bottom: 4px; }
.partner-desc { font-size: 13px; }

/* ─── Stats / Chiffres Clés ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 14px;
  color: var(--semence);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  display: block;
}

/* ─── Projets Cards ──────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform var(--tr), box-shadow var(--tr);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(14,124,134,0.22);
}

/* Zone image */
.project-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--vert-foret) 0%, #168A96 52%, var(--vert-clair) 100%);
  flex-shrink: 0;
}
.project-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card-media img { transform: scale(1.07); }

/* Placeholder SVG décoratif */
.project-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0A5A63 0%, #0E7C86 42%, #1999A6 72%, #2AA7B3 100%);
}
.project-card-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(102,199,182,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(215,162,75,0.16) 0%, transparent 50%);
}

/* Badges thèmes flottants */
.project-card-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pcard-badge {
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Badge statut */
.pcard-statut {
  position: absolute;
  bottom: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pcard-statut--en_cours {
  background: rgba(102,199,182,0.22);
  border: 1px solid rgba(102,199,182,0.5);
  color: #D9FFF6;
}
.pcard-statut--termine {
  background: rgba(215,162,75,0.24);
  border: 1px solid rgba(215,162,75,0.48);
  color: #FFE1A9;
}
.pcard-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pcard-statut--en_cours .pcard-dot {
  background: #66C7B6;
  box-shadow: 0 0 0 3px rgba(102,199,182,0.35);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.pcard-statut--termine .pcard-dot {
  background: var(--or-sahel);
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(102,199,182,0.35); }
  50%       { box-shadow: 0 0 0 5px rgba(102,199,182,0.1); }
}

/* Zone texte */
.project-card-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card-lieu {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--vert-clair);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-card-lieu i { font-size: 10px; }
.project-card-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--terre);
  line-height: 1.35;
  margin-bottom: 10px;
}
.project-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 18px;
}
.pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--vert-foret);
  text-decoration: none;
  border-top: 1px solid rgba(14,124,134,0.15);
  padding-top: 14px;
  transition: gap var(--tr), color var(--tr);
}
.pcard-cta:hover { color: var(--terre); gap: 11px; }
.pcard-cta i { font-size: 11px; transition: transform var(--tr); }
.pcard-cta:hover i { transform: translateX(3px); }

/* Impact highlight (page projets) */
.pcard-impact {
  font-size: 12px;
  font-weight: 600;
  color: var(--vert-clair);
  background: rgba(14,124,134,0.08);
  border-left: 3px solid var(--semence);
  padding: 7px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
  line-height: 1.4;
}
.pcard-impact i { margin-right: 5px; font-size: 11px; }

/* Filtre projets */
.projects-filter {
  display: flex;
  gap: var(--sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--xl);
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--vert-foret);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--vert-foret);
  background: transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--vert-foret);
  color: var(--white);
}

/* ─── ONG Blocs ──────────────────────────────────────────────── */
.ong-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xl);
}
.ong-bloc {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--xl);
  box-shadow: var(--shadow-2);
  border-top: 4px solid var(--vert-foret);
}
.ong-logo {
  width: 64px; height: 64px;
  background: var(--vert-foret);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin-bottom: var(--md);
}
.ong-logo-img { height: 64px; width: auto; margin-bottom: var(--md); display: block; }
.ong-bloc h3 { color: var(--terre); margin-bottom: 4px; font-size: 22px; }
.ong-fullname { font-size: 13px; color: var(--text-light); margin-bottom: var(--sm); font-style: italic; }
.ong-role    { font-size: 13px; color: var(--vert-clair); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: var(--md); }
.ong-bloc p  { margin-bottom: var(--lg); }
.ong-site-link, .ong-email-link { color: var(--vert-foret); font-weight: 700; }
.ong-cta { margin-top: var(--lg); }

/* Partenaires */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
}

/* ─── Blog Cards ──────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--tr), border-color var(--tr);
  border: 2px solid transparent;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--vert-clair);
}
.blog-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: var(--md); }
.blog-card-meta {
  display: flex;
  gap: var(--sm);
  align-items: center;
  margin-bottom: var(--sm);
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.blog-card h3 { font-size: 18px; color: var(--terre); margin-bottom: 8px; line-height: 1.3; }
.blog-card p  { font-size: 14px; margin-bottom: var(--md); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-link { font-size: 13px; font-weight: 700; color: var(--vert-foret); }
.blog-card-link:hover { color: var(--terre); }

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-seeds { background: rgba(14,124,134,0.12); color: var(--vert-foret); }
.tag-community { background: rgba(215,162,75,0.18); color: #a3772a; }

/* ─── Galerie Masonry ────────────────────────────────────────── */
.gallery-grid {
  columns: 3;
  column-gap: var(--md);
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--md);
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,124,134,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--tr);
  display: flex;
  align-items: flex-end;
  padding: var(--md);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28,28,28,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img-wrap { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img  { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: var(--md); right: var(--md);
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.lightbox-nav:hover { background: var(--vert-foret); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }
.lightbox-caption {
  margin-top: var(--sm);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-align: center;
}

/* ─── Timeline (About) ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--xl);
  border-left: 3px solid var(--vert-foret);
  margin-top: var(--lg);
}
.timeline-wrap { max-width: 640px; margin: 0 auto; }
.timeline-item {
  position: relative;
  padding-bottom: var(--xl);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--xl) - 7px);
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--or-sahel);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--or-sahel);
}
.timeline-year {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--or-sahel);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-item h4 { color: var(--terre); margin-bottom: 4px; }
.timeline-item p  { font-size: 14px; }

/* ─── Biographie (About) ─────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--2xl);
  align-items: start;
}
.bio-photo {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.bio-photo-placeholder {
  width: 100%;
  padding-bottom: 120%;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--vert-foret), var(--vert-clair));
  display: flex; align-items: center; justify-content: center;
}
.bio-cv { margin-top: var(--lg); }
.bio-heading { color: var(--terre); margin-bottom: var(--lg); }
.bio-role { font-size: 16px; font-weight: 700; color: var(--vert-foret); margin-bottom: var(--lg); }
.bio-p { color: var(--text); margin-bottom: var(--md); }
.bio-p-last { margin-bottom: var(--xl); }
.bio-networks { display: flex; flex-wrap: wrap; gap: var(--sm); }
.network-chip {
  padding: 4px 12px;
  border: 1.5px solid var(--vert-foret);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--vert-foret);
}

/* ─── Zones d'action ─────────────────────────────────────────── */
.zones-row {
  display: flex;
  gap: var(--md);
  flex-wrap: wrap;
  justify-content: center;
}
.zone-card {
  padding: var(--md) var(--xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background var(--tr), transform var(--tr);
}
.zone-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.zone-icon { color: var(--or-sahel); font-size: 24px; margin-bottom: 8px; }
.zone-name { font-weight: 700; color: var(--white); }
.zone-country { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ─── Carte interactive ──────────────────────────────────────── */
.map-container {
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--2xl);
  align-items: start;
}
.contact-form { background: var(--white); border-radius: var(--radius-md); padding: var(--xl); box-shadow: var(--shadow-2); }
.contact-form-title { margin-bottom: var(--lg); color: var(--terre); font-size: 24px; }
.form-group { margin-bottom: var(--md); }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--creme);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--creme);
  transition: border-color var(--tr), background var(--tr);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vert-foret);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-checkbox { display: flex; gap: var(--sm); align-items: flex-start; }
.form-checkbox input { width: auto; flex-shrink: 0; margin-top: 3px; }
.form-checkbox label { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; }

.contact-info { padding: var(--lg) 0; }
.contact-info h3 { color: var(--terre); margin-bottom: var(--md); }
.contact-info-item { display: flex; gap: var(--md); align-items: flex-start; margin-bottom: var(--lg); }
.contact-info-icon { width: 40px; height: 40px; background: var(--vert-foret); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; flex-shrink: 0; }
.contact-info-text h4 { color: var(--text); font-size: 14px; margin-bottom: 2px; }
.contact-info-text p  { font-size: 14px; color: var(--text-light); }
.contact-info-text a  { color: var(--vert-foret); font-weight: 600; }
.contact-socials { margin-top: var(--xl); }
.contact-socials h4 { margin-bottom: var(--sm); }

/* ─── Social Links ───────────────────────────────────────────── */
.social-links { display: flex; gap: var(--sm); flex-wrap: wrap; margin-top: var(--md); }
.social-link {
  width: 40px; height: 40px;
  background: var(--vert-foret);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: background var(--tr), transform var(--tr);
}
.social-link:hover { background: var(--or-sahel); transform: translateY(-2px); }

/* ─── Alert / Flash Messages ─────────────────────────────────── */
.alert {
  padding: var(--md) var(--lg);
  border-radius: var(--radius-sm);
  margin-bottom: var(--md);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sm);
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--terre);
  color: var(--creme);
  padding: var(--3xl) 0 var(--xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--2xl);
  padding-bottom: var(--2xl);
  border-bottom: 1px solid rgba(245,240,232,0.15);
}
.footer-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--or-sahel);
  margin-bottom: var(--md);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(245,240,232,0.8); transition: color var(--tr); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--white); }
.footer-networks { font-size: 13px; color: rgba(245,240,232,0.6); margin-top: var(--sm); }
.footer-networks-label { font-weight: 700; color: rgba(245,240,232,0.8); }
.footer-social { display: flex; gap: var(--sm); margin-top: var(--md); }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(245,240,232,0.1); display: flex; align-items: center; justify-content: center; color: var(--creme); font-size: 14px; transition: background var(--tr); }
.social-btn:hover { background: var(--or-sahel); }
.footer-bottom {
  padding-top: var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(245,240,232,0.6);
}

/* ─── Fade-in Animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--vert-foret);
  padding: var(--3xl) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--or-sahel);
}
.page-hero h1 { color: var(--creme); font-size: clamp(32px, 5vw, 56px); }
.page-hero p  { color: rgba(245,240,232,0.85); font-size: 18px; margin-top: var(--sm); max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(245,240,232,0.6); margin-bottom: var(--md); }
.breadcrumb a { color: var(--semence); }
.breadcrumb-sep { color: rgba(245,240,232,0.3); }

/* ─── Missions Grid ──────────────────────────────────────────── */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
}
.mission-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--lg);
  border-top: 4px solid var(--vert-foret);
  box-shadow: var(--shadow-1);
  transition: transform var(--tr);
}
.mission-card:hover { transform: translateY(-4px); }
.mission-icon { font-size: 28px; margin-bottom: var(--sm); color: var(--vert-foret); }
.mission-card h3 { color: var(--terre); font-size: 17px; margin-bottom: 8px; }
.mission-card p  { font-size: 14px; }

/* ─── Cookie Banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--creme);
  border-top: 3px solid var(--or-sahel);
  padding: var(--sm) var(--lg);
  z-index: 9000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  font-size: 14px;
  color: var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 14px; color: var(--text); }
.btn-cookie-accept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--vert-foret);
  color: var(--white);
  border: 2px solid var(--vert-foret);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
  white-space: nowrap;
}
.btn-cookie-accept:hover { background: var(--terre); border-color: var(--terre); }

/* ─── Placeholder image ──────────────────────────────────────── */
.img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--vert-foret) 0%, var(--vert-clair) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 40px;
}

/* ─── Dark Mode (préférence système) ─────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --text: #E6F0F1;
    --text-light: #9FB8BD;
    --surface: #12262B;
    --surface-2: #0F1F24;
    --line: rgba(230,240,241,0.12);
  }

  body { background: #0C1B1F; color: var(--text); }

  h1, h2, h3, h4 { color: #EAF4F5; }
  p { color: var(--text-light); }
  .section-header h2 { color: #EAF4F5; }
  .section-header p { color: var(--text-light); }

  .site-header {
    background: #10242A;
    border-bottom-color: #1A3A41;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
  .logo-initials { color: #EAF4F5; }
  .logo:hover .logo-initials { color: var(--vert-clair); }
  .logo-subtitle { color: var(--text-light); }
  .nav-link { color: var(--text); }
  .nav-link:hover, .nav-link.active { color: var(--vert-clair); background: rgba(42,167,179,0.15); }
  .hamburger-line { background: var(--text); }
  .main-nav.open { background: #10242A; border-bottom-color: #1A3A41; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

  .hero { background: linear-gradient(180deg, #0C1B1F 0%, #0F2329 100%); }
  .hero-eyebrow { color: #8FA8AD; }
  .hero-title { color: #EAF4F5; }
  .hero-role { color: var(--vert-clair); }
  .hero-bio { color: var(--text-light); }
  .hero-social { border-color: rgba(230,240,241,0.25); color: #A9C2C6; }
  .hero-stat { background: rgba(230,240,241,0.05); border-color: rgba(230,240,241,0.14); }
  .hero-stat span { color: var(--text-light); }

  .section-creme { background: #12272B; }
  blockquote { background: var(--surface); color: #EAF4F5; }

  .axe-card, .project-card, .blog-card, .ong-bloc, .mission-card, .contact-form {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
  }
  .axe-card { border-left-color: var(--or-sahel); }
  .axe-card--center { border-left-color: var(--vert-clair); }
  .axe-card h3, .project-card-info h3, .blog-card h3, .ong-bloc h3, .mission-card h3,
  .contact-form-title, .contact-info h3, .bio-heading, .partner-name, .timeline-item h4 {
    color: #EAF4F5;
  }
  .axe-card p, .project-card-desc, .blog-card p, .ong-bloc p, .mission-card p,
  .contact-info-text p, .contact-info-text h4, .ong-fullname, .blog-card-meta {
    color: var(--text-light);
  }
  .contact-info-text h4 { color: var(--text); }
  .bio-p { color: var(--text); }
  .bio-role, .pcard-cta, .ong-site-link, .ong-email-link, .contact-info-text a, .blog-card-link { color: var(--vert-clair); }
  .pcard-cta:hover, .blog-card-link:hover { color: #EAF4F5; }
  .pcard-cta { border-top-color: var(--line); }
  .pcard-impact { background: rgba(42,167,179,0.14); color: var(--vert-clair); }
  .project-card-lieu { color: var(--semence); }

  .filter-btn { border-color: var(--vert-clair); color: var(--vert-clair); }
  .filter-btn.active, .filter-btn:hover { background: var(--vert-clair); color: #062A30; }

  .form-group label { color: var(--text); }
  .form-group input, .form-group select, .form-group textarea {
    background: var(--surface-2);
    border-color: rgba(230,240,241,0.15);
    color: var(--text);
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: var(--surface);
    border-color: var(--vert-clair);
  }

  .timeline { border-left-color: var(--vert-clair); }
  .network-chip { border-color: var(--vert-clair); color: var(--vert-clair); }
  .cookie-banner { background: #12262B; border-top-color: var(--or-sahel); color: var(--text); }
  .cookie-inner p { color: var(--text); }
  .skip-link { background: var(--vert-clair); color: #062A30; }
}
