/* ═══════════════════════════════════════════════════════════
   Permasauvage — feuille de style
   Palette nature : vert profond, crème, terre. Aucune
   dépendance externe (pas de polices distantes : RGPD).
   ═══════════════════════════════════════════════════════════ */

:root {
  --vert-fonce: #2c4733;
  --vert: #45684f;
  --vert-pale: #e9efe4;
  --creme: #faf7f0;
  --encre: #2a322c;
  --encre-douce: #55605a;
  --terre: #b3703a;
  --blanc: #ffffff;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background-color: var(--creme);
}

.contenu {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contenu-etroit {
  max-width: 640px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--vert-fonce);
  line-height: 1.25;
}

h2 {
  font-size: 2rem;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.3rem;
  margin: 0.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--vert);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terre);
  outline-offset: 2px;
}

/* ─────────── En-tête et navigation ─────────── */

.entete {
  background-color: var(--creme);
  border-bottom: 1px solid var(--vert-pale);
  padding: 1rem 0;
  /* Le menu reste visible en haut de l'écran pendant tout le défilement. */
  position: sticky;
  top: 0;
  z-index: 100;
}

.entete .contenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.marque {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--vert-fonce);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.marque-logo {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.navigation a {
  color: var(--vert-fonce);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.navigation a:hover {
  border-bottom-color: var(--terre);
}

/* Avec le menu collé en haut, les sections visées par un lien du menu
   s'arrêtent juste en dessous de lui au lieu de se cacher derrière. */
section[id] {
  scroll-margin-top: 6.5rem;
}

/* ─────────── Héros ─────────── */

.heros {
  background: linear-gradient(165deg, var(--creme) 20%, var(--vert-pale) 100%);
  padding: 5rem 0 5.5rem;
  text-align: center;
}

.heros h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}

.heros-texte {
  max-width: 58ch;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: var(--encre-douce);
}

.heros-boutons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ─────────── Boutons ─────────── */

.bouton {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bouton-plein {
  background-color: var(--vert-fonce);
  color: var(--creme);
  border: 2px solid var(--vert-fonce);
}

.bouton-plein:hover {
  background-color: var(--terre);
  border-color: var(--terre);
}

.bouton-contour {
  background-color: transparent;
  color: var(--vert-fonce);
  border: 2px solid var(--vert-fonce);
}

.bouton-contour:hover {
  background-color: var(--vert-fonce);
  color: var(--creme);
}

/* ─────────── Sections ─────────── */

.section {
  padding: 4.5rem 0;
  scroll-margin-top: 1rem;
}

.section-verte {
  background-color: var(--vert-pale);
}

/* ─────────── Repères (cartes valeurs) ─────────── */

.reperes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.repere {
  background-color: var(--blanc);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(44, 71, 51, 0.08);
}

.repere p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.repere-icone {
  width: 42px;
  height: 42px;
  color: var(--terre);
}

/* ─────────── Carte événement ─────────── */

.carte-evenement {
  background-color: var(--blanc);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 2px 10px rgba(44, 71, 51, 0.08);
  max-width: 640px;
}

.carte-evenement h3 {
  font-size: 1.6rem;
  margin-top: 0.25rem;
}

.evenement-etiquette {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terre);
  margin-bottom: 0.25rem;
}

/* ─────────── Formulaires ─────────── */

.formulaire {
  margin-top: 1.5rem;
}

.champ {
  margin-bottom: 1.25rem;
}

.champ label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--vert-fonce);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--encre);
  background-color: var(--blanc);
  border: 1px solid #c8d2c4;
  border-radius: 8px;
}

input:focus,
textarea:focus {
  border-color: var(--vert);
}

.formulaire-statut {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--vert-fonce);
  outline: none;
}

.formulaire-statut:empty {
  display: none;
}

.formulaire-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.formulaire-ligne input[type="email"] {
  flex: 1 1 260px;
}

.formulaire button {
  border: 2px solid var(--vert-fonce);
}

.note-branchement {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--terre);
  margin-top: 0.75rem;
}

/* ─────────── Réseaux sociaux ─────────── */

.reseaux {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
}

.reseau {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--vert-fonce);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.reseau:hover {
  border-bottom-color: var(--terre);
}

.reseau-icone {
  width: 22px;
  height: 22px;
  color: var(--terre);
  flex-shrink: 0;
}

/* ─────────── Pied de page ─────────── */

.pied {
  background-color: var(--vert-fonce);
  color: var(--creme);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.pied p {
  margin: 0 0 0.5rem;
}

.pied a {
  color: var(--creme);
}

.pied .reseaux {
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

.pied .reseau,
.pied .reseau-icone {
  color: var(--creme);
}

/* ─────────── Pages annexes (mentions, merci) ─────────── */

.page-annexe {
  padding: 3.5rem 0 4.5rem;
}

.page-annexe h1 {
  font-size: 2rem;
}

.page-annexe h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.a-completer {
  background-color: #fdf0e3;
  border-left: 4px solid var(--terre);
  padding: 0.15rem 0.5rem;
}

/* ─────────── Accessibilité ─────────── */

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────── Écrans étroits ─────────── */

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

  .heros {
    padding: 3.5rem 0 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .entete .contenu {
    flex-direction: column;
  }
}

/* ═══════════ ILLUSTRATIONS (page Notre histoire) ═══════════ */

.illustration {
  margin: 2rem 0;
}

.illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.illustration figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--vert-fonce);
  opacity: 0.75;
}

.illustrations-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.histoire-soutien {
  margin-top: 2rem;
}

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