/* ============================================
   BÉNIN DEBOUT — Feuille de style commune
   Palette : Vert forêt & blanc cassé
   Optimisé Mobile / Tablette / Desktop
   ============================================ */

:root {
  --vert: #0f2b1a;
  --vert-clair: #2d5a3d;
  --blanc: #f9f9f7;
  --gris: #e6e6e0;
  --texte: #1a1a1a;
  --texte-secondaire: #5c5c5c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  background: var(--blanc);
  color: var(--texte);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--vert);
  word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 4vw, 2.8rem); line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }

a { color: var(--vert); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
a:hover { border-color: var(--vert); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 6vw; }

/* En-tête de navigation */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(249, 249, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris);
  z-index: 100;
  padding: 1rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--vert); letter-spacing: 0.05em; }

nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }

nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texte-secondaire);
  padding: 0.5rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.2s;
}

nav a:hover, nav a.actif {
  color: var(--vert);
  border-color: var(--vert);
  background: rgba(15, 43, 26, 0.05);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--vert);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 130;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--vert);
  border-radius: 2px;
}

/* Sections */
section { padding: 6rem 0; }
.section-alt { background: var(--gris); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 1rem;
  display: block;
}

p { max-width: 62ch; margin-bottom: 1.2rem; color: var(--texte-secondaire); }

/* Grille de chiffres */
.grille-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; margin: 3rem 0; }
.chiffre { border-left: 2px solid var(--vert); padding-left: 1rem; }
.chiffre strong { display: block; font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--vert); }
.chiffre span { font-size: 0.85rem; color: var(--texte-secondaire); }

/* Cartes */
.grille-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.carte {
  background: var(--blanc);
  border: 1px solid var(--gris);
  padding: 1.8rem;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.carte:hover { border-color: var(--vert); }
.carte h3 { margin-bottom: 0.6rem; }
.carte p { font-size: 0.95rem; margin: 0; }

/* Frise chronologique */
.frise { border-left: 2px solid var(--vert); padding-left: 1.5rem; margin-top: 2rem; }
.frise-item { margin-bottom: 2rem; position: relative; }
.frise-item::before {
  content: ''; position: absolute; left: -1.9rem; top: 0.4rem;
  width: 10px; height: 10px; background: var(--vert); border-radius: 50%;
}
.frise-date { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vert-clair); }

/* Formulaire */
form { display: grid; gap: 1.2rem; max-width: 100%; margin-top: 1.5rem; }
label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vert-clair); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid var(--vert);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-width: 2px; }

button {
  background: var(--vert);
  color: var(--blanc);
  border: none;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  justify-self: start;
  border-radius: 2px;
}
button:hover { background: var(--vert-clair); }

/* Pied de page */
footer {
  border-top: 1px solid var(--gris);
  padding: 2rem 6vw;
  font-size: 0.8rem;
  color: var(--texte-secondaire);
  text-align: center;
}

/* Grille de contact (page Contact) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

/* ============================================
   RESPONSIVE — TABLETTES (max 900px)
   ============================================ */
@media (max-width: 900px) {
  section { padding: 5rem 0; }
  .contact-grid { gap: 2rem; }
}

/* ============================================
   RESPONSIVE — MOBILES (max 720px)
   ============================================ */
@media (max-width: 720px) {
  body { font-size: 15px; }
  
  .menu-toggle { display: flex; position: fixed; right: 4vw; top: 0.8rem; }
  
  header {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 4vw;
  }
  
  .logo { font-size: 1rem; margin-left: 0; }
  
  nav {
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    width: min(78vw, 280px);
    height: 100vh;
    background: var(--vert);
    box-shadow: -12px 0 30px rgba(15, 43, 26, 0.18);
    padding: 5rem 1.2rem 2rem;
    transform: translateX(110%);
    transition: transform 0.25s ease;
    z-index: 130;
  }

  body.nav-open nav {
    transform: translateX(0);
  }

  nav ul {
    gap: 0.7rem;
    justify-content: flex-start;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  nav a {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    padding: 0.75rem 0.8rem;
    color: var(--blanc);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
  }

  nav a:hover, nav a.actif {
    color: var(--blanc);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
  }

  section { padding: 4rem 0; }

  .container { padding: 0 5vw; }

  .grille-chiffres { gap: 1.2rem; margin: 2rem 0; }
  .chiffre strong { font-size: 1.9rem; }
  .chiffre span { font-size: 0.8rem; }

  .grille-actions { grid-template-columns: 1fr; gap: 1rem; }
  .carte { padding: 1.4rem; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  footer { padding: 1.5rem 5vw; font-size: 0.75rem; }
}

/* ============================================
   RESPONSIVE — PETITS MOBILES (max 400px)
   ============================================ */
@media (max-width: 400px) {
  header { padding: 0.6rem 3vw; }
  nav ul { gap: 0.5rem; }
  nav a { font-size: 0.65rem; padding: 0.3rem 0.5rem; }
  
  section { padding: 3rem 0; }
  
  .grille-chiffres { grid-template-columns: 1fr; gap: 1rem; }
  .chiffre { padding-left: 0.8rem; }
  .chiffre strong { font-size: 1.7rem; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
}