/* ============================================================
   Feuille de style du site — socle (étape 1)
   L'habillage définitif viendra à l'étape 9 ; à l'étape 4, les
   couleurs seront pilotées depuis l'admin.
   ============================================================ */

/* --- Réglages de couleurs et d'espacements, au même endroit ---
   Les « variables » permettront à l'admin de changer les couleurs
   du site en modifiant uniquement ces quelques lignes. */
:root {
  --vert:         #4a6b52;
  --vert-fonce:   #3a5441;
  --vert-clair:   #eef2ee;
  --pierre:       #f7f6f3;
  --texte:        #2d2d2d;
  --texte-doux:   #6b6b6b;
  --bordure:      #e3e1dc;
  --blanc:        #ffffff;

  --rayon:        10px;
  --ombre:        0 2px 14px rgba(0, 0, 0, .06);
  --largeur:      1100px;
  --police:       system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

body {
  margin: 0;
  background: var(--pierre);
  color: var(--texte);
  font: 1rem/1.65 var(--police);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--vert-fonce); }

/* --- Structure ------------------------------------------------ */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Lien d'évitement : invisible, sauf quand on navigue au clavier */
.evitement {
  position: absolute;
  left: -9999px;
  background: var(--vert);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 100;
}
.evitement:focus { left: 0; top: 0; }

/* --- En-tête -------------------------------------------------- */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  position: sticky;
  top: 0;
  z-index: 50;
}
.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo { text-decoration: none; color: inherit; line-height: 1.2; }
.logo__nom  { display: block; font-weight: 700; color: var(--vert-fonce); }
.logo__lieu { display: block; font-size: .8rem; color: var(--texte-doux); }

/* --- Menu ----------------------------------------------------- */
.navigation ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navigation a {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--rayon);
  text-decoration: none;
  color: var(--texte);
  font-size: .94rem;
}
.navigation a:hover            { background: var(--vert-clair); }
.navigation a[aria-current]    { color: var(--vert-fonce); font-weight: 600; }

/* Bouton « hamburger » : masqué sur ordinateur */
.bouton-menu { display: none; }

/* --- Boutons -------------------------------------------------- */
.bouton {
  display: inline-block;
  background: var(--vert);
  color: #fff !important;
  padding: .8rem 1.4rem;
  border: 0;
  border-radius: var(--rayon);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover        { background: var(--vert-fonce); }
.bouton--petit       { padding: .5rem 1rem; font-size: .9rem; }

/* --- Contenu des pages ---------------------------------------- */
.section       { padding-block: 3rem; }
.section--clair{ background: var(--blanc); }

h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.2; margin: 0 0 .75rem; color: var(--vert-fonce); }
h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); line-height: 1.25; margin: 2rem 0 .75rem; }

.chapeau { font-size: 1.1rem; color: var(--texte-doux); max-width: 46rem; }

.carte {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.5rem;
}

/* Bandeau provisoire « page en construction » — retiré à l'étape 9 */
.chantier {
  background: var(--vert-clair);
  border-left: 4px solid var(--vert);
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .95rem;
}
.chantier p:first-child { margin-top: 0; }
.chantier p:last-child  { margin-bottom: 0; }

/* --- Pied de page --------------------------------------------- */
.pied {
  background: var(--vert-fonce);
  color: #e8ece8;
  margin-top: 3rem;
  padding-top: 2.5rem;
  font-size: .94rem;
}
.pied a            { color: #fff; }
.pied__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.pied__titre  { font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.pied__liens  { list-style: none; margin: 0; padding: 0; }
.pied__liens li { margin-bottom: .3rem; }
.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 1rem;
  font-size: .85rem;
  color: #c3ccc4;
}

/* ============================================================
   TÉLÉPHONE — la majorité des visiteurs. Le menu devient
   un panneau dépliant, ouvert par la case à cocher cachée.
   ============================================================ */
@media (max-width: 860px) {

  .bouton-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: .6rem;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    cursor: pointer;
  }
  .bouton-menu span {
    display: block;
    height: 2px;
    background: var(--texte);
    border-radius: 2px;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    padding: .5rem 1rem 1rem;
  }
  /* Quand la case est cochée, le menu apparaît */
  .bascule-menu:checked ~ .navigation { display: block; }

  .navigation ul       { flex-direction: column; align-items: stretch; gap: 0; }
  .navigation a        { padding: .85rem .5rem; border-bottom: 1px solid var(--bordure); border-radius: 0; }
  .navigation li:last-child a { border-bottom: 0; margin-top: .75rem; text-align: center; }
}

/* Respecte le réglage « réduire les animations » du système */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
