/* ===== Variables ===== */
:root{
  --green: #1f8a3b;
  --green-dark: #0f5c26;
  --green-light: #34c759;
  --yellow: #ffc107;
  --blue: #1976d2;
  --navy: #0d1b2a;
  --ink: #14212e;
  --ink-soft: #4b5b6a;
  --bg: #ffffff;
  --bg-soft: #f4f8f6;
  --border: #e3ebe6;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, 0.18);
  --ff-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul,ol{list-style:none;}
h1,h2,h3,h4{font-family: var(--ff-heading); line-height:1.2; color: var(--navy);}
.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* ===== Topbar ===== */
.topbar{
  background: var(--navy);
  color: #cfe3d8;
  font-size: 0.82rem;
}
.topbar-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-contacts a{
  margin-left: 16px;
  opacity: 0.9;
}
.topbar-contacts a:hover{ color: var(--yellow); }

/* ===== Header ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 24px;
}
.brand-logo{ height: 52px; }

.nav{
  display:flex;
  align-items:center;
  gap: 28px;
}
.nav-link{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active{ color: var(--green-dark); }
.nav-link.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:3px;
  border-radius:3px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}
.nav-cta{
  background: var(--green);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover{ background: var(--green-dark); }
.nav-cta.active::after{ display:none; }

.burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:40px; height:40px;
  background:none;
  border:none;
  cursor:pointer;
}
.burger span{
  height:3px;
  border-radius:3px;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary{
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color:#fff;
  box-shadow: 0 10px 24px -8px rgba(31,138,59,0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(31,138,59,0.6); }
.btn-outline{
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover{ background: var(--navy); color:#fff; }
.btn-block{ width:100%; }

/* ===== Hero ===== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #0f5c26 0%, #1462b0 100%);
}
.hero-shapes{ position:absolute; inset:0; z-index:0; }
.shape{ position:absolute; border-radius:50%; filter: blur(8px); opacity:0.4;}
.shape-1{ width:280px; height:280px; background: radial-gradient(circle, var(--yellow), transparent 70%); top:-60px; right:8%; }
.shape-2{ width:200px; height:200px; background: radial-gradient(circle, var(--blue), transparent 70%); bottom:-40px; left:4%; opacity:0.25;}
.shape-3{ width:160px; height:160px; background: radial-gradient(circle, var(--green-light), transparent 70%); top:40%; right:35%; opacity:0.3;}

.hero-inner{ position:relative; z-index:1; max-width:820px; }
.eyebrow{
  display:inline-block;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight:700;
  font-size:0.8rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:8px 16px;
  border-radius:999px;
  margin-bottom:20px;
}
.hero h1{
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight:800;
  margin-bottom:20px;
  color:#fff;
}
.text-gradient{
  background: linear-gradient(90deg, var(--yellow), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text{
  font-size:1.1rem;
  color: rgba(255,255,255,0.86);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom: 56px;
}
.hero .btn-outline{ border-color:#fff; color:#fff; }
.hero .btn-outline:hover{ background:#fff; color:var(--navy); }
.hero-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:20px;
  max-width: 720px;
}
.stat strong{
  display:block;
  font-family: var(--ff-heading);
  font-size:2rem;
  font-weight:800;
  color: var(--yellow);
}
.stat span{
  font-size:0.85rem;
  color: rgba(255,255,255,0.78);
}

/* ===== Sections ===== */
.section{ padding: 88px 0; }
.section-alt{ background: var(--bg-soft); }
.section-dark{
  background: linear-gradient(160deg, var(--navy), #123321 130%);
  color: #e8f1ec;
}
.section-dark h2, .section-dark h3, .section-dark strong{ color:#fff; }
.section-head{ max-width: 680px; margin-bottom: 48px; }
.tag{
  display:inline-block;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color: var(--green-dark);
  background:#e7f7ec;
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:14px;
}
.tag-light{ background: rgba(255,255,255,0.12); color: var(--yellow); }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight:800; margin-bottom:12px;}
.section-sub{ color: var(--ink-soft); font-size:1.02rem; }
.section-sub-light{ color:#b9c9c0; }

/* ===== About ===== */
.about-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:48px;
  align-items:start;
}
.about-text p{ color: var(--ink-soft); margin-bottom:18px; }
.check-list{ margin-top: 22px; display:flex; flex-direction:column; gap:12px; }
.check-list li{
  position:relative;
  padding-left:30px;
  color: var(--ink);
  font-weight:500;
}
.check-list li::before{
  content:"✓";
  position:absolute; left:0; top:0;
  width:20px; height:20px;
  background: var(--green);
  color:#fff;
  border-radius:50%;
  font-size:0.7rem;
  display:flex; align-items:center; justify-content:center;
}
.about-card{
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-card h3{ margin-bottom:18px; font-size:1.2rem; }
.objectives{ display:flex; flex-direction:column; gap:14px; counter-reset:obj; }
.objectives li{
  position:relative;
  padding-left:36px;
  font-size:0.94rem;
  color: var(--ink-soft);
  counter-increment: obj;
}
.objectives li::before{
  content: counter(obj);
  position:absolute; left:0; top:0;
  width:24px; height:24px;
  background: var(--yellow);
  color: var(--navy);
  font-weight:700;
  font-size:0.78rem;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}

/* ===== Cards / Services ===== */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon{
  width:52px; height:52px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
  color:#fff;
}
.card-icon svg{ width:26px; height:26px; }
.icon-1{ background: linear-gradient(135deg, var(--green), var(--green-light)); }
.icon-2{ background: linear-gradient(135deg, var(--blue), #4dabf7); }
.icon-3{ background: linear-gradient(135deg, var(--yellow), #ffda6a); color: var(--navy); }
.icon-4{ background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.icon-5{ background: linear-gradient(135deg, #4dabf7, var(--blue)); }
.icon-6{ background: linear-gradient(135deg, #ffb020, var(--yellow)); color: var(--navy); }
.card h3{ font-size:1.08rem; margin-bottom:10px; }
.card p{ color: var(--ink-soft); font-size:0.94rem; }

/* ===== Membres ===== */
.subhead{
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color: var(--ink-soft);
  margin: 32px 0 16px;
}
.subhead:first-of-type{ margin-top:0; }
.chip-grid{ display:flex; flex-wrap:wrap; gap:12px; }
.chip{
  background:#fff;
  border:1px solid var(--border);
  padding:10px 18px;
  border-radius:999px;
  font-weight:600;
  font-size:0.9rem;
  color: var(--navy);
  box-shadow: 0 4px 12px -6px rgba(13,27,42,0.12);
}
.partners-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
}
.partner-logo{
  height:64px;
  min-width:110px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  padding:10px 18px;
}
.partner-logo img{ height:100%; width:auto; object-fit:contain; }
.partner-text{ font-weight:700; color: var(--ink-soft); font-family: var(--ff-heading); }
.partners-note{ margin-top:18px; color: var(--ink-soft); font-size:0.92rem; }

/* ===== Gouvernance ===== */
.gov-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:22px;
  margin-bottom: 44px;
}
.gov-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:26px 22px;
  transition: transform .25s, box-shadow .25s;
}
.gov-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.gov-icon{
  width:46px; height:46px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.gov-icon svg{ width:22px; height:22px; }
.gov-card h3{ font-size:1rem; margin-bottom:8px; }
.gov-card p{ font-size:0.88rem; color: var(--ink-soft); }

.docs-row{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:20px;
}
.doc-card{
  display:flex;
  align-items:center;
  gap:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.doc-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.doc-icon{
  flex-shrink:0;
  width:48px; height:48px;
  border-radius:12px;
  background: #e7f7ec;
  color: var(--green-dark);
  display:flex; align-items:center; justify-content:center;
}
.doc-icon svg{ width:24px; height:24px; }
.doc-card h4{ font-size:1rem; color: var(--navy); margin-bottom:4px; }
.doc-card p{ font-size:0.85rem; color: var(--ink-soft); }
.doc-download{
  margin-left:auto;
  flex-shrink:0;
  font-size:0.85rem;
  font-weight:700;
  color: var(--green-dark);
  white-space:nowrap;
}

/* ===== Events ===== */
.events-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:24px;
}
.event-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:26px;
  display:flex;
  gap:20px;
  transition: transform .25s, box-shadow .25s;
}
.event-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.event-date{
  flex-shrink:0;
  width:72px; height:72px;
  border-radius:14px;
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  color:#fff;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-size:0.7rem;
  font-weight:700;
  text-align:center;
  line-height:1.3;
}
.event-date span{ font-size:1.5rem; font-family: var(--ff-heading); }
.event-body h3{ font-size:1.05rem; margin-bottom:6px; }
.event-meta{ font-size:0.85rem; color: var(--green-dark); font-weight:600; margin-bottom:8px; }
.event-body p{ color: var(--ink-soft); font-size:0.92rem; }
.event-card-placeholder{
  align-items:center;
  border-style:dashed;
  background: transparent;
}
.event-card-placeholder h3{ color: var(--ink-soft); }
.event-card-placeholder p{ font-size:0.88rem; }

/* ===== Galerie ===== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
}
.gallery-item{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 4/3;
  cursor:pointer;
  box-shadow: var(--shadow);
}
.gallery-item img{
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .4s;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(13,27,42,0.85), transparent);
  color:#fff;
  font-size:0.82rem;
  font-weight:600;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover figcaption{ opacity:1; transform:translateY(0); }
.gallery-placeholder{ cursor:default; }
.placeholder-fill{
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px;
  background: repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 10px, #eef4f0 10px, #eef4f0 20px);
  border: 2px dashed #c9d8ce;
  color: var(--ink-soft);
  font-size:0.85rem;
  font-weight:600;
}
.placeholder-fill svg{ width:34px; height:34px; opacity:0.6; }

.lightbox{
  position:fixed; inset:0;
  background: rgba(10,16,22,0.92);
  display:none;
  align-items:center; justify-content:center;
  flex-direction:column;
  gap:16px;
  z-index: 1000;
  padding: 40px 20px;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width: min(880px, 90vw); max-height:75vh; border-radius:12px; }
.lightbox p{ color:#e8f1ec; font-size:0.95rem; }
.lightbox-close{
  position:absolute; top:24px; right:28px;
  background:none; border:none;
  color:#fff; font-size:2.2rem;
  cursor:pointer; line-height:1;
}

/* ===== Contact ===== */
.contact-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap:48px;
}
.contact-info{ display:flex; flex-direction:column; gap:26px; }
.info-item{ display:flex; gap:16px; align-items:flex-start; }
.info-icon{ font-size:1.3rem; }
.info-item strong{ display:block; margin-bottom:4px; color:#fff; font-size:0.95rem; }
.info-item p, .info-item a{ color:#b9c9c0; font-size:0.92rem; }
.info-item a:hover{ color: var(--yellow); }

.contact-form{
  background:#fff;
  border-radius: var(--radius);
  padding: 32px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.form-row{ display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-size:0.85rem; font-weight:600; color: var(--navy); }
.form-row input, .form-row textarea{
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px 14px;
  font-family: var(--ff-body);
  font-size:0.95rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline:none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,138,59,0.15);
  background:#fff;
}
.form-status{ font-size:0.88rem; font-weight:600; min-height:1.2em; }
.form-status.success{ color: var(--green-dark); }
.form-status.error{ color:#c0392b; }
.form-status.loading{ color: var(--ink-soft); }

/* ===== Footer ===== */
.footer{ background: var(--navy); color:#c7d6ce; padding-top: 60px; }
.footer-inner{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo{ height:48px; margin-bottom:16px; filter: brightness(0) invert(1); }
.footer-brand p{ font-size:0.88rem; color:#9db3a8; max-width:280px; }
.footer h4{ color:#fff; font-size:0.95rem; margin-bottom:16px; }
.footer-links{ display:flex; flex-direction:column; }
.footer-links a{ padding:6px 0; font-size:0.9rem; color:#c7d6ce; }
.footer-links a:hover{ color: var(--yellow); }
.footer-contact p{ font-size:0.9rem; margin-bottom:8px; color:#c7d6ce; }
.footer-contact a:hover{ color: var(--yellow); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size:0.82rem;
  color:#8ea297;
  text-align:center;
}

/* ===== Back to top ===== */
.back-to-top{
  position:fixed;
  right:24px; bottom:24px;
  width:46px; height:46px;
  border-radius:50%;
  background: var(--green);
  color:#fff;
  border:none;
  font-size:1.2rem;
  cursor:pointer;
  box-shadow: var(--shadow);
  opacity:0;
  visibility:hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 90;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px){
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .gov-grid{ grid-template-columns: repeat(2, 1fr); }
  .docs-row{ grid-template-columns: 1fr; }
  .events-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .topbar-inner{ font-size:0.72rem; justify-content:center; text-align:center; }
  .topbar-contacts a{ margin: 0 8px; }
  .nav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width: min(78vw, 320px);
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    padding: 100px 32px 32px;
    gap: 22px;
    box-shadow: -10px 0 40px rgba(13,27,42,0.15);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav.open{ transform: translateX(0); }
  .nav-cta{ margin-top:8px; }
  .burger{ display:flex; }
  .hero{ padding: 60px 0 50px; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); }
  .cards-grid{ grid-template-columns: 1fr; }
  .gov-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}
