/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --vert:       #5a7a5e;
  --vert-clair: #8aaa8e;
  --vert-pale:  #e8f0e9;
  --vert-dark:  #3d5540;
  --gris:       #4a4a4a;
  --gris-clair: #f5f5f3;
  --blanc:      #ffffff;
  --gold:       #c8a96e;
  --radius:     8px;
  --shadow:     0 2px 16px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
  --max-w:      1100px;
  --font:       'Georgia', 'Times New Roman', serif;
  --font-sans:  'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gris); background: var(--blanc); line-height: 1.7; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--blanc);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-logo img { height: 48px; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0.4rem 1rem;
  color: var(--gris); text-decoration: none; font-size: 0.93rem;
  font-weight: 500; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--vert-pale); color: var(--vert-dark);
}

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--gris); transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45);
}
.hero-content { position: relative; color: var(--blanc); padding: 0 1.5rem; }
.hero-content h1 {
  font-family: var(--font); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: normal; margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1.1rem; opacity: 0.9; font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===== SECTIONS ===== */
.section { max-width: var(--max-w); margin: 0 auto; padding: 4rem 2rem; }
.section-title {
  font-family: var(--font); font-size: 1.9rem; color: var(--vert-dark);
  margin-bottom: 2rem; font-weight: normal;
  border-bottom: 2px solid var(--vert-clair); padding-bottom: 0.5rem;
}
.section p { margin-bottom: 1.2rem; }
.bg-pale { background: var(--vert-pale); }

/* ===== HOME: CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,0.15); }
.card-img { height: 150px; background-size: cover; background-position: center; }
.card-body { padding: 1.2rem; }
.card-body h3 { font-size: 1.05rem; color: var(--vert-dark); margin-bottom: 0.4rem; }
.card-body p { font-size: 0.9rem; color: #666; }

/* ===== HOME: STATS ===== */
.stats { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; padding: 3rem 2rem; background: var(--vert-dark); }
.stat { text-align: center; color: var(--blanc); }
.stat-num { font-family: var(--font); font-size: 2.8rem; color: var(--gold); display: block; }
.stat-label { font-size: 0.9rem; opacity: 0.85; }

/* ===== PROJET ===== */
.projet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.projet-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.projet-img img { width: 100%; display: block; }
.ca-list { list-style: none; margin-top: 1rem; }
.ca-list li { padding: 0.3rem 0; border-bottom: 1px solid #eee; font-size: 0.92rem; }
.ca-list li:last-child { border: none; }

/* ===== INFOS PRATIQUES ===== */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.info-card {
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem 1.5rem; text-align: center;
}
.info-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.info-card h3 { color: var(--vert-dark); font-size: 1rem; margin-bottom: 0.5rem; }
.info-card a { color: var(--vert); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.map-wrap { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 350px; border: none; }

/* ===== DON ===== */
.don-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.don-box {
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
}
.don-box h3 { color: var(--vert-dark); font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--vert-pale); }
.iban-box {
  background: var(--vert-dark); color: var(--blanc);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  text-align: center; margin: 2rem 0;
}
.iban-box .label { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.3rem; }
.iban-box .iban { font-size: 1.4rem; font-family: monospace; color: var(--gold); letter-spacing: 0.05em; }
.attn { background: #fff8e1; border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.92rem; }
.fiscal-note { background: var(--vert-pale); border-radius: var(--radius); padding: 1rem 1.5rem; margin-top: 1rem; font-size: 0.92rem; }

/* ===== PRESSE ===== */
.presse-list { list-style: none; }
.presse-list li { border-bottom: 1px solid #eee; }
.presse-list a {
  display: block; padding: 1rem 0.5rem;
  color: var(--vert-dark); text-decoration: none; font-size: 0.97rem;
  transition: color var(--transition), padding-left var(--transition);
}
.presse-list a:hover { color: var(--vert); padding-left: 1rem; }
.presse-list a::before { content: "→ "; }

/* ===== GALERIE ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ===== RAPPORT ===== */
.rapport-section { margin-bottom: 2.5rem; }
.rapport-section h3 { color: var(--vert-dark); font-size: 1.15rem; margin-bottom: 0.8rem; }
.rapport-chiffre { display: inline-block; font-size: 2.5rem; color: var(--vert); font-family: var(--font); }

/* ===== FOOTER ===== */
footer {
  background: var(--vert-dark); color: rgba(255,255,255,0.8);
  text-align: center; padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
}
footer a { color: var(--gold); text-decoration: none; }
footer .footer-logo { margin-bottom: 1rem; }
footer .footer-logo img { height: 36px; opacity: 0.85; filter: brightness(10); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--blanc); box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; border-radius: var(--radius); }
  .projet-grid, .don-grid { grid-template-columns: 1fr; }
  .hero { height: 300px; }
}

/* ===== ACTUALITÉS ===== */
.news-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.news-card-body {
  padding: 1.4rem;
  border-top: 4px solid var(--vert);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-date {
  font-size: 0.78rem;
  color: var(--vert);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.news-title {
  font-size: 1.05rem;
  color: var(--vert-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.news-text {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
}
.news-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--vert);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.news-link:hover { text-decoration: underline; }
