:root {
  --primary: #0c6b58;
  --primary-dark: #084d40;
  --secondary: #f5a623;
  --bg: #f7faf8;
  --text: #1c2b27;
  --muted: #64736e;
  --white: #ffffff;
  --border: #d8e3de;
  --shadow: 0 16px 40px rgba(7, 31, 24, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 0.95rem; letter-spacing: 0.04em; }
.brand span { display: block; color: var(--muted); font-size: 0.9rem; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: #33413d; font-weight: 600; }
.site-nav a.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; }
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at top right, rgba(245,166,35,0.18), transparent 25%),
    radial-gradient(circle at left center, rgba(12,107,88,0.16), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f4f9f7 100%);
}
.page-hero { padding: 4rem 0 2rem; background: linear-gradient(180deg, #ffffff 0%, #eef6f3 100%); }
.hero-grid, .two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.hero h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: #485752; max-width: 65ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; color: var(--primary); margin-bottom: 0.8rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.section { padding: 4.5rem 0; }
.section-muted { background: #eef5f2; }
.section-accent { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2, .card h2, .card h3 { line-height: 1.2; }
.grid-3, .grid-4, .gallery-grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card { padding: 2rem; }
.feature-card h3, .icon-card h3, .project-card h2 { margin-top: 0; }
.icon-card .icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 16px; margin-bottom: 1rem;
  background: rgba(12,107,88,0.1); color: var(--primary);
}
.timeline { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.timeline > div {
  padding-left: 1rem; border-left: 4px solid var(--secondary); background: rgba(255,255,255,0.5);
}
.stats-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.stats-list strong { display: block; font-size: 1.15rem; color: var(--primary); }
.check-list, .contact-list, .activity-block ul { padding-left: 1.2rem; }
.check-list li, .contact-list li, .activity-block li { margin-bottom: 0.55rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.3rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 0.72rem 1rem; }
.btn-primary { background: var(--primary); color: var(--white) !important; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--white); border-color: var(--border); }
.btn-light { background: var(--white); color: var(--primary) !important; }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white) !important; }
.cta-box { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.badge {
  display: inline-block; margin-bottom: 1rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(12,107,88,0.08); color: var(--primary); font-size: 0.82rem; font-weight: 700;
}
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.gallery-grid > .gallery-item {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.gallery-grid > .gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #e9f1ee;
}
.gallery-grid > .gallery-item span {
  display: block;
  padding: 1rem 1rem 1.1rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
}
.gallery-grid > .gallery-item:hover {
  transform: translateY(-3px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 42px rgba(7, 31, 24, 0.14);
}
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.45rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 14px;
  padding: 0.95rem 1rem; font: inherit; background: #fcfefd;
}
.note { color: var(--muted); font-size: 0.95rem; }
.stack-large { display: grid; gap: 1.4rem; }
.site-footer { background: #0f1d1a; color: rgba(255,255,255,0.88); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-footer h3, .site-footer h4 { color: white; margin-top: 0; }
.site-footer ul { padding: 0; list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding: 1.2rem 0; font-size: 0.95rem; }

@media (max-width: 980px) {
  .hero-grid, .two-col, .grid-4, .grid-3, .footer-grid, .gallery-grid, .cta-box { grid-template-columns: 1fr; }
  .cta-box { display: grid; }
  .site-nav {
    display: none; position: absolute; top: 82px; right: 1rem; left: 1rem; flex-direction: column;
    background: var(--white); padding: 1rem; border-radius: 18px; box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .hero, .section, .page-hero { padding-top: 3rem; padding-bottom: 3rem; }
  .card { padding: 1.2rem; }
  .hero h1, .page-hero h1 { font-size: 2rem; }
}


.hero-home {
  padding: 4.5rem 0 4rem;
}

.hero-grid-home {
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-highlights {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
}

.hero-highlights li {
  color: #42524d;
  font-weight: 500;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image-frame {
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12,107,88,0.14), rgba(245,166,35,0.16));
  border: 1px dashed rgba(12,107,88,0.28);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.image-note code {
  background: #edf4f1;
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}

.narrow {
  max-width: 820px;
}

.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.stat-box {
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.stat-box span {
  color: #42524d;
  font-weight: 600;
}

.split-emphasis {
  align-items: start;
}

.impact-panel {
  position: sticky;
  top: 110px;
}

.eyebrow.light {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .impact-panel {
    position: static;
  }

  .hero-image,
  .hero-image-frame {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .hero-image-frame {
    min-height: 240px;
  }
}


/* Galerie : ajustements dédiés sans affecter les autres pages */
@media (max-width: 980px) {
  .gallery-grid > .gallery-item img {
    height: 240px;
  }
}

@media (max-width: 640px) {
  .gallery-grid > .gallery-item img {
    height: 220px;
  }

  .gallery-grid > .gallery-item span {
    padding: 0.9rem 0.95rem 1rem;
    font-size: 0.95rem;
  }
}


/* =========================
   GALERIE : VIDEOS
   ========================= */
.gallery-videos-section {
  padding-top: 0;
}

.gallery-videos-section .section-heading {
  margin-bottom: 1.4rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.video-item {
  width: 100%;
  min-width: 0;
}

.video-item iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #000;
}

@media (max-width: 980px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .video-item iframe {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .gallery-videos-section {
    padding-top: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .video-item iframe {
    height: 220px;
    border-radius: 18px;
  }
}
