/* ============================================================
   Sors ton vocal ! — feuille de style principale
   Couleurs de marque : vert #29644a, texte #1b1b1b, sombre #161616
   Polices : Fjalla One (titres) + Lato (texte) — Google Fonts
   ============================================================ */

:root {
  --green: #29644a;
  --green-dark: #1f4e39;
  --ink: #1b1b1b;
  --dark: #161616;
  --grey: #5e5e5e;
  --light-grey: #a4a4a4;
  --bg: #ffffff;
  --max: 1080px;
  --heading: "Fjalla One", "Arial Narrow", Arial, sans-serif;
  --body: "Lato", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 7vw, 62px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  padding: 12px 40px;
  border-radius: 48px;
  border: 2px solid var(--green);
  transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav .brand { display: flex; align-items: center; gap: 12px; }
.nav .brand img { width: 52px; height: 52px; }
.nav .brand span { font-family: var(--heading); font-size: 20px; color: var(--ink); }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav a.navlink { color: var(--ink); font-weight: 400; padding: 4px 0; }
.nav a.navlink:hover, .nav a.navlink.active { text-decoration: none; border-bottom: 2px solid var(--ink); }

/* menu déroulant « Notre projet » */
.has-dropdown { position: relative; }
.has-dropdown > .navlink::after { content: " ⌄"; font-size: .9em; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown li { width: 100%; list-style: none; }
.dropdown a { display: block; padding: 10px 20px; color: var(--grey); }
.dropdown a:hover { background: #f6f6f6; color: var(--ink); text-decoration: none; }

/* bouton menu mobile */
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ---------- Héro ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #b9b9b9 center/cover no-repeat;
  padding: 80px 24px;
  overflow: hidden;
}
/* voile sombre pour le contraste du titre (comme l'original) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .26);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero .rule { width: min(520px, 70%); height: 2px; background: rgba(255,255,255,.9); margin: 18px auto 0; }

/* héros internes (pages secondaires) */
.page-hero {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); margin: 0; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-tight { padding: 48px 0; }

/* blocs appel à l'action de l'accueil */
.cta-block { text-align: center; border-bottom: 1px solid #eee; }
.cta-block:last-of-type { border-bottom: 0; }
.cta-block h2 { margin-bottom: .3em; }
.cta-block p { color: var(--grey); max-width: 620px; margin: 0 auto 1.6em; }

/* section « à propos » sombre */
.about {
  background: var(--dark);
  color: #fff;
}
.about h2 { color: #fff; }
.about .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about p { color: rgba(255,255,255,.82); }
.about img { border-radius: 12px; }

/* certification / texte simple centré */
.simple { text-align: center; }
.simple .box { max-width: 760px; margin: 0 auto; }
.simple p { color: var(--grey); }

/* ---------- Partenaires ---------- */
.partners { text-align: center; }
.partners h2 { margin-bottom: 2rem; }
.partners .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.partners .logos a { display: block; }
.partners .logos img { max-height: 96px; width: auto; filter: grayscale(0); transition: opacity .2s; }
.partners .logos a:hover img { opacity: .7; }

/* ---------- Actualités ---------- */
.news-list { max-width: 760px; margin: 0 auto; }
.news-item { padding: 28px 0; border-bottom: 1px solid #eee; }
.news-item:first-child { padding-top: 0; }
.news-item .date {
  font-family: var(--heading);
  color: var(--green);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.news-item h3 { margin-bottom: .4em; }
.news-item p { margin-bottom: .6em; }
.news-item a { word-break: break-word; }

/* ---------- FAQ (accordéon) ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--heading);
  font-size: 19px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--green);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 0 22px; color: var(--grey); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- Équipe ---------- */
.team-intro { text-align: center; max-width: 640px; margin: 0 auto 8px; }
.team-intro .affil { color: var(--grey); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.member { text-align: center; }
.member img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: #f0f0f0;
}
.member h3 { margin-bottom: 4px; }
.member .role { color: var(--green); font-weight: 700; margin-bottom: 2px; }
.member .sub { color: var(--grey); font-size: 15px; margin-bottom: 8px; }
.member a { font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--green);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.site-footer a { color: #fff; }
.site-footer .foot-nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.site-footer .foot-nav a:hover { text-decoration: underline; }
.site-footer .copy { color: rgba(255,255,255,.8); font-size: 14px; margin: 0; }

/* ---------- Bannière cookies ---------- */
.cookie {
  position: fixed;
  right: 20px; bottom: 20px;
  max-width: 360px;
  background: var(--green);
  color: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  z-index: 100;
}
.cookie h2 { color: #fff; font-size: 22px; margin-bottom: .4em; }
.cookie p { color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.5; }
.cookie .btn { background: #fff; color: var(--green); border-color: #fff; width: 100%; text-align: center; margin-top: 8px; }
.cookie .btn:hover { background: #f0f0f0; border-color: #f0f0f0; }
.cookie.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about .grid { grid-template-columns: 1fr; gap: 28px; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav > ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 24px 16px;
  }
  .nav > ul.open { display: flex; }
  .nav li { width: 100%; }
  .nav a.navlink { display: block; width: 100%; padding: 12px 0; }
  .has-dropdown .dropdown {
    position: static; display: flex; box-shadow: none; border: 0;
    border-left: 2px solid #eee; border-radius: 0; margin: 4px 0 4px 12px; padding: 0;
  }
  .has-dropdown > .navlink::after { content: ""; }
  .partners .logos { gap: 32px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
