/* =====================================================================
   Feuille de style — AMAP Terre d'ici
   ---------------------------------------------------------------------
   Mise en page sobre et accueillante. Tout est commenté en français.
   Astuce : les couleurs sont regroupées ci-dessous (variables) pour
   pouvoir changer l'ambiance du site en un seul endroit.
   ===================================================================== */

:root {
  /* --- Palette (modifiable en un coup d'œil) --- */
  --vert:        #3d6b3f;   /* vert principal (titres, boutons) */
  --vert-fonce:  #2c4f2e;   /* vert plus sombre (survol) */
  --vert-clair:  #eaf1e8;   /* fond vert très clair (sections alternées) */
  --terre:       #c0703f;   /* touche chaude (terracotta) pour les accents */
  --beige:       #faf8f3;   /* fond général, chaleureux */
  --texte:       #2c2c28;   /* couleur du texte */
  --texte-doux:  #5b5b52;   /* texte secondaire */
  --bordure:     #e3ded2;   /* lignes et contours discrets */
  --blanc:       #ffffff;

  /* --- Réglages globaux --- */
  --largeur-max: 1040px;    /* largeur maxi du contenu */
  --rayon:       14px;      /* arrondi des cartes */
  --ombre:       0 6px 22px rgba(40, 50, 30, 0.07);
}

/* Réinitialisation douce */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Clic sur un lien du menu : on s'arrête pile au-dessus de la section visée
   (petite marge de respiration), au lieu de tomber dans la section. */
section { scroll-margin-top: 16px; }

body {
  margin: 0;
  /* Polices "système" : pas de Google Fonts à charger -> rapide et respectueux
     de la vie privée (aucune requête vers un serveur externe). */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: var(--beige);
  line-height: 1.65;
  font-size: 17px;
}

/* Conteneur centré réutilisé partout */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 22px;
}

/* Titres : une serif douce pour le côté "chaleureux/artisanal" */
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--vert-fonce);
  line-height: 1.25;
  margin: 0 0 .5em;
}

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

/* =====================  EN-TÊTE  ===================== */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  /* en-tête NON persistant : il défile normalement avec la page */
}
.header-inner {
  display: flex;
  flex-direction: column;          /* logo en haut, navigation dessous */
  align-items: center;             /* le tout centré */
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--vert-fonce);
}
.brand-logo { height: 153px; width: auto; display: block; }

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.site-nav a {
  text-decoration: none;
  color: var(--vert-fonce);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--bordure);
  border-radius: 999px;        /* cases distinctes (style pastille) */
  background: var(--beige);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--blanc); background: var(--vert); border-color: var(--vert); }

/* =====================  BANDEAU D'ACCUEIL  ===================== */
.hero {
  /* Dégradé doux + un léger motif de points, sans aucune image à héberger */
  background:
    radial-gradient(circle at 1px 1px, rgba(61,107,63,.08) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--vert-clair), var(--beige));
  border-bottom: 1px solid var(--bordure);
}
.hero-inner { padding: 72px 22px 78px; text-align: center; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--terre);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); margin-bottom: .4em; }
.hero-lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: var(--texte-doux);
}

/* Liens de gestion compacts dans le bandeau (visibles dès le chargement) */
.hero-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-left: 4px solid var(--terre);
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  text-align: left;
  min-width: 200px;
  box-shadow: var(--ombre);
  transition: transform .1s ease, border-color .15s ease;
}
.hero-link:hover { transform: translateY(-2px); border-color: var(--terre); }
.hero-link-title { font-weight: 700; color: var(--vert-fonce); }
.hero-link-sub { font-size: .9rem; color: var(--terre); }

/* Sur l'accueil (fond vert), les cartes de liens passent en accent VERT (raccord avec la
   section) ; dans la section paniers (fond terracotta), elles restent terracotta. */
#accueil .hero-link { border-left-color: var(--vert); }
#accueil .hero-link:hover { border-color: var(--vert); }
#accueil .hero-link-sub { color: var(--vert); }

/* Contenu "L'AMAP" intégré au bandeau d'accueil (issu des panneaux) */
#amap { scroll-margin-top: 16px; }
.hero-cards { max-width: 940px; margin: 40px auto 8px; text-align: left; }
.hero-block { max-width: 760px; margin: 42px auto 0; text-align: left; }
.hero-block h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  text-align: center;
  color: var(--vert-fonce);
  margin: 0 0 .7em;
}
.hero-block ol, .hero-block ul { margin: 0; padding-left: 1.4em; }
.hero-block li { margin: 0 0 .7em; line-height: 1.55; color: var(--texte); }
.principes li::marker { color: var(--terre); font-weight: 700; }
.pour-vous { list-style: none; padding-left: 0; }
.pour-vous li { position: relative; padding-left: 1.7em; }
.pour-vous li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--vert); font-weight: 700;
}

/* =====================  MISE EN AVANT DES PERMANENCES  ===================== */
/* Bloc "Liens utiles" (fin de la section paniers) : bien séparé et aéré. */
.useful-links {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--bordure);
}
.useful-links h2 { margin-bottom: .8em; }

/* Lien "Permanences" mis en évidence (carte terracotta pleine). */
.hero-link--accent {
  position: relative;
  background: var(--terre);
  border-color: var(--terre);
  border-left: 4px solid #8f4d2b;
}
.hero-link--accent .hero-link-title { color: #fff; }
.hero-link--accent .hero-link-sub { color: #ffe3d3; }
.hero-link--accent:hover { background: #a85c33; border-color: #8f4d2b; }
.hero-link-badge {
  align-self: flex-start;
  font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  background: #fff; color: var(--terre);
  padding: 2px 9px; border-radius: 999px; margin-bottom: 4px;
}

/* Bouton d'appel "permanences" (étape 4 + bulle flottante) : charte commune. */
.cta-perm {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--terre); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--ombre);
  transition: background .15s ease, transform .1s ease;
}
.cta-perm:hover { background: #a85c33; transform: translateY(-2px); color: #fff; }
.cta-perm-ico { font-size: 1.15rem; line-height: 1; }

/* Bouton d'appel "contact" (pendant vert de .cta-perm) : étape 1, infos, bulle. */
.cta-contact {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--vert); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--ombre);
  transition: background .15s ease, transform .1s ease;
}
.cta-contact:hover { background: var(--vert-fonce); transform: translateY(-2px); color: #fff; }

/* Horaires de distribution mis en évidence (changement récent : 18 h – 19 h 30). */
.horaire {
  background: #d8ebc6; color: #355a28; font-weight: 700;
  padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}
.horaire-note { color: var(--terre); font-weight: 700; font-size: .85em; }

/* Mention légale (pied de page). */
.footer-legal { color: #9fb59a; font-size: .8rem; margin-top: 12px; }

/* --- Rappel flottant en bas à droite (indicateur discret + bulle) --- */
.perm-widget { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.perm-fab {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--terre); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 8px 20px rgba(40, 50, 30, .22);
  display: grid; place-items: center;
}
.perm-fab::before {
  /* halo très doux qui apparaît brièvement, une seule fois par cycle (discret) */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: perm-pulse 7s ease-out infinite;
}
.perm-fab:hover { background: #a85c33; }
.perm-fab-emoji {
  font-size: 1.6rem; display: inline-block;
  transform-origin: 70% 80%;
  animation: perm-wave 7s ease-in-out infinite;
}
/* Immobile l'essentiel du temps, puis un petit salut discret une fois par cycle. */
@keyframes perm-wave {
  0%, 82%, 100% { transform: rotate(0deg); }
  86% { transform: rotate(8deg); }
  90% { transform: rotate(-5deg); }
  94% { transform: rotate(6deg); }
}
@keyframes perm-pulse {
  0%, 55% { box-shadow: 0 0 0 0 rgba(192, 112, 63, 0); }
  75%     { box-shadow: 0 0 0 9px rgba(192, 112, 63, .28); }
  100%    { box-shadow: 0 0 0 14px rgba(192, 112, 63, 0); }
}
/* Respect des préférences système "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  .perm-fab-emoji, .perm-fab::before { animation: none; }
}
/* Pas d'animation quand la bulle est ouverte (on interagit avec). */
.perm-widget.open .perm-fab-emoji, .perm-widget.open .perm-fab::before { animation: none; }

/* Bulle de rappel : deux sections — contact (vert) au-dessus, permanences (terracotta) en-dessous. */
.perm-pop {
  position: absolute; right: 0; bottom: 72px;
  width: 270px; max-width: 82vw;
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(40, 50, 30, .18);
}
.perm-pop[hidden] { display: none; }
.perm-pop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 4px 12px;
}
.perm-pop-close {
  background: none; border: 0; cursor: pointer; padding: 0 2px;
  font-size: 1.4rem; line-height: 1; color: var(--texte-doux);
}
.perm-pop-close:hover { color: var(--terre); }
.perm-pop-sec { padding: 14px 16px; }
.perm-pop-sec--contact { background: #f1f6ef; border-left: 4px solid var(--vert); }
.perm-pop-sec--perm { background: #fbf1ea; border-left: 4px solid var(--terre); }
.perm-pop-title { font-family: Georgia, serif; color: var(--vert-fonce); font-weight: 700; margin: 0 0 3px; font-size: .98rem; }
.perm-pop-text { margin: 0 0 10px; color: var(--texte-doux); font-size: .85rem; line-height: 1.4; }
.perm-pop .cta-perm, .perm-pop .cta-contact { width: 100%; justify-content: center; font-size: .9rem; padding: 9px 14px; }
.perm-pop-dismiss {
  background: none; border: 0; cursor: pointer;
  color: var(--texte-doux); font-size: .78rem; padding: 2px 0;
}
.perm-pop-dismiss:hover { color: var(--terre); text-decoration: underline; }

/* Grandes sections : fond en dégradé pointillé (comme l'accueil « L'AMAP »),
   couleur ALTERNÉE (vert / terracotta) + barre supérieure épaisse assortie.
   Enchaînement : accueil (vert) · paniers (terracotta) · partenaires (vert) ·
   comment ça marche (terracotta) · vie (vert) · infos pratiques (terracotta). */
#partenaires, #vie {
  border-top: 3px solid var(--vert-fonce);
  background:
    radial-gradient(circle at 1px 1px, rgba(61, 107, 63, .08) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--vert-clair), var(--beige));
}
#fonctionnement, #pratique {
  border-top: 3px solid var(--terre);
  background:
    radial-gradient(circle at 1px 1px, rgba(192, 112, 63, .08) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbf2e6, var(--beige));
}

/* Les trois pôles (accueil) : cartes cliquables. */
.poles-title {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  text-align: center; color: var(--vert-fonce); margin: 42px 0 .5em;
}
.poles-intro { max-width: 720px; margin: 0 auto 24px; color: var(--texte); }
.poles { max-width: 940px; margin: 0 auto; text-align: left; }
.pole {
  display: flex; flex-direction: column;
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); text-decoration: none; color: var(--texte);
  transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease;
}
.pole:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(40, 50, 30, .16); border-color: var(--vert); }
.pole-photo { display: block; height: 160px; background-size: cover; background-position: center; background-color: var(--vert-clair); }
.pole-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 20px 22px; }
.pole h3 { font-size: 1.15rem; margin: 0 0 .3em; }
.pole p { margin: 0 0 14px; color: var(--texte-doux); font-size: .95rem; }
.pole-go { margin-top: auto; font-weight: 700; color: var(--vert); }

/* « Notre histoire » (page événements). */
.histoire { margin: 8px 0 42px; }
.histoire h2 { text-align: center; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.histoire-figure { margin: 8px auto 0; max-width: 520px; }
.histoire-figure img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); display: block; }

/* Image agrandissable (clic pour zoomer) + overlay plein écran. */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20, 22, 18, .9);
  display: grid; place-items: center; padding: 20px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }

/* =====================  PANIER DE LA SEMAINE  ===================== */
/* Bande chaude, bien visible, juste sous l'accueil. */
.week-baskets {
  background:
    radial-gradient(circle at 1px 1px, rgba(192, 112, 63, .08) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbf2e6, var(--beige));
  border-top: 3px solid var(--terre);
}
.basket-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.basket-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-top: 4px solid var(--terre);
  border-radius: var(--rayon);
  padding: 24px 18px;
  text-decoration: none; color: var(--texte);
  box-shadow: var(--ombre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.basket-link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(40, 50, 30, 0.16); }
/* Trois tailles de panier (petit/moyen/grand, via style inline) alignées sur une même base */
.basket-emoji { height: 3.4rem; display: flex; align-items: flex-end; justify-content: center; line-height: 1; }
.basket-link strong { font-family: Georgia, serif; font-size: 1.15rem; color: var(--vert-fonce); }
.basket-go { font-weight: 700; color: var(--terre); margin-top: auto; }
/* Liste des produits (remplie automatiquement) */
.basket-items { list-style: none; padding: 0; margin: 8px 0 12px; color: var(--texte-doux); font-size: .92rem; }
.basket-items:empty { display: none; }
/* Chaque produit = une pastille colorée selon le légume (même légume = même couleur,
   dans tous les paniers) -> on repère d'un coup d'œil les produits en commun.
   La couleur est posée par le script (style inline). */
.basket-items li {
  width: fit-content; max-width: 100%; margin: 4px auto;
  padding: 2px 12px; border-radius: 999px; font-weight: 600;
}

/* Bouton Partager + petit menu */
.share-row { text-align: center; margin-top: 24px; }
.btn-share {
  background: var(--terre); color: #fff; border: 0;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: var(--ombre);
  transition: background .15s ease, transform .1s ease;
}
.btn-share:hover { background: #a85c33; transform: translateY(-2px); }
.share-menu { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button {
  background: var(--blanc); border: 1px solid var(--bordure); color: var(--vert-fonce);
  text-decoration: none; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
}
.share-menu a:hover, .share-menu button:hover { border-color: var(--vert); color: var(--vert); }

/* =====================  CARROUSEL "NOS PARTENAIRES"  ===================== */
/* Zone qui défile horizontalement. On garde un léger retrait à gauche pour
   l'aligner sur le texte, et on laisse les cartes déborder à droite. */
.carousel-scroll {
  /* Le JS fait défiler par scrollLeft (glisser + flèches). overflow caché = pas de barre. */
  overflow: hidden;
  padding: 6px 0 22px;
  /* Pendant le glisser à la souris : pas de sélection de texte ni de glisser d'image. */
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track img { -webkit-user-drag: none; user-drag: none; }
.carousel-track {
  display: flex;
  gap: 22px;
  /* Le carrousel vit dans la colonne centrée (.container) : un simple filet de
     marge suffit pour ne pas rogner l'ombre des cartes. La piste défile à
     l'intérieur de cette colonne -> alignement symétrique, plus de débordement. */
  padding: 2px 2px 0;
  width: max-content;   /* la piste prend la largeur de toutes les cartes */
}
/* Barre de défilement discrète (Chrome / Edge / Safari) */
.carousel-scroll::-webkit-scrollbar { height: 10px; }
.carousel-scroll::-webkit-scrollbar-track { background: var(--vert-clair); border-radius: 999px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: var(--vert); border-radius: 999px; }

/* Conteneur du carrousel : sert de repère pour les flèches et les dégradés */
.carousel { position: relative; }

/* Dégradés sur les bords : indiquent visuellement qu'il y a d'autres cartes */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 16px;   /* on s'arrête au-dessus de la barre de défilement */
  width: 44px;
  z-index: 2;
  pointer-events: none;   /* le dégradé ne bloque pas les clics */
  transition: opacity .2s ease;
}
.carousel::before { left: 0;  background: linear-gradient(90deg, var(--vert-clair), rgba(234,241,232,0)); }
.carousel::after  { right: 0; background: linear-gradient(270deg, var(--vert-clair), rgba(234,241,232,0)); }
.carousel.at-start::before { opacity: 0; }   /* début : rien à gauche */
.carousel.at-end::after    { opacity: 0; }   /* fin : rien à droite */

/* Variante quand le carrousel est sur un fond beige (et non vert clair) :
   les dégradés des bords doivent se fondre dans le beige. */
.carousel--beige::before { background: linear-gradient(90deg,  var(--beige), rgba(250,248,243,0)); }
.carousel--beige::after  { background: linear-gradient(270deg, var(--beige), rgba(250,248,243,0)); }

/* Flèches rondes cliquables */
.carousel-arrow {
  position: absolute;
  top: 92px;              /* à hauteur des photos des cartes */
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bordure);
  background: var(--blanc);
  color: var(--vert-fonce);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40, 50, 30, 0.18);
  display: grid;
  place-items: center;
  transition: opacity .2s ease, color .15s ease, transform .1s ease;
}
.carousel-arrow:hover { color: var(--vert); transform: scale(1.06); }
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel.at-start .carousel-arrow.prev,
.carousel.at-end   .carousel-arrow.next { opacity: 0; pointer-events: none; }

.partner-card {
  position: relative;
  flex: 0 0 270px;        /* largeur fixe de chaque carte */
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: var(--texte);
  box-shadow: var(--ombre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(40, 50, 30, 0.16);
}
/* Carte sans lien (producteur sans site) : pas d'effet "cliquable" au survol */
.partner-card:not(a):hover { transform: none; box-shadow: var(--ombre); }
/* Pastille "Le panier principal" */
.partner-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--terre);
  color: var(--blanc);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
/* Zone photo : hauteur fixe, l'image remplit sans se déformer */
.partner-photo {
  display: block;
  height: 165px;
  background: var(--vert-clair);
}
.partner-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Vignette de remplacement (quand on n'a pas de photo) : dégradé + emoji */
.partner-photo.placeholder {
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--vert-clair), #dfe9da);
}
.partner-body {
  display: flex;
  flex-direction: column;
  flex: 1;            /* le corps remplit la hauteur -> le lien "go" se cale en bas */
  gap: 5px;
  padding: 18px;
}
.partner-body strong { font-family: Georgia, serif; font-size: 1.15rem; color: var(--vert-fonce); }
.partner-body em { font-style: normal; font-size: .85rem; color: var(--terre); font-weight: 600; }
.partner-desc { color: var(--texte-doux); font-size: .92rem; margin: 4px 0 10px; }
.partner-go { margin-top: auto; font-weight: 700; color: var(--vert); }

/* =====================  CARTES "VIE DE L'AMAP" (événements)  ===================== */
/* Tuiles génériques : un bandeau coloré + un emoji (pas de photo), à personnaliser.
   La couleur du bandeau se règle par carte avec la variable --band (style inline). */
.event-card {
  flex: 0 0 260px;          /* largeur fixe dans le carrousel */
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  text-decoration: none;
  color: var(--texte);
  transition: transform .12s ease, box-shadow .12s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(40, 50, 30, 0.16); }
.event-band {
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 2.7rem;
  background: var(--band, var(--vert-clair));
}
.event-body { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px 20px; }
.event-tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--vert-fonce);
  background: var(--vert-clair);
  padding: 3px 9px; border-radius: 999px;
}
.event-date { font-size: .85rem; color: var(--terre); font-weight: 600; }
.event-card strong { font-family: Georgia, serif; font-size: 1.1rem; color: var(--vert-fonce); }
.event-desc { color: var(--texte-doux); font-size: .9rem; }

/* =====================  PASTILLES DE POSITION  ===================== */
/* Créées par le script. Indiquent la tuile courante du carrousel. */
.carousel-dots {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 16px;
}
/* Bouton "voir tout" sous un carrousel : espacé des pastilles */
.carousel-more { text-align: center; margin-top: 30px; }
.carousel-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--bordure); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dot:hover { background: var(--terre); }
.carousel-dot.active { background: var(--vert); transform: scale(1.3); }

/* =====================  PLANS (GOOGLE MAPS) + AGENDA  ===================== */
/* Petit plan (OpenStreetMap) intégré dans une tuile */
.info-map { display: block; width: 100%; height: 200px; border: 0; border-radius: 10px; }

.agenda {
  max-width: 880px;
  margin: 0 auto;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.agenda iframe { display: block; width: 100%; height: 480px; border: 0; }
/* Bouton d'abonnement à l'agenda : bien visible (aussi important que les liens du haut) */
.agenda-sub {
  display: inline-block;
  background: var(--vert);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--ombre);
  transition: background .15s ease, transform .1s ease;
}
.agenda-sub:hover { background: var(--vert-fonce); transform: translateY(-2px); }
/* Espace entre les tuiles (plans) et le bloc agenda en dessous */
.agenda-section { margin-top: 48px; }

/* =====================  SECTIONS  ===================== */
.section { padding: 64px 0; }
.section-alt { background: var(--vert-clair); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 1.2em;
}
.section-intro { text-align: center; color: var(--texte-doux); margin: -.6em auto 2em; }

.prose { max-width: 720px; margin: 0 auto 2.4em; }
.prose p { margin: 0 0 1.1em; }

/* Grilles de cartes */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Cartes "valeurs" */
.value {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px 22px;
  box-shadow: var(--ombre);
}
.value h3 { font-size: 1.15rem; }
.value p { margin: 0; color: var(--texte-doux); }

/* =====================  ÉTAPES  ===================== */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.steps li { display: flex; gap: 18px; padding: 16px 0; align-items: flex-start; }
.steps li + li { border-top: 1px solid var(--bordure); }
.step-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--terre);
  color: var(--blanc);
  border-radius: 50%;
  font-weight: 700;
  font-family: Georgia, serif;
  /* Georgia utilise des chiffres bas-de-casse (3, 4… descendent sous la ligne) :
     on force des chiffres alignés pour un centrage net dans la pastille. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  line-height: 1;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .2em; }
.steps p { margin: 0; color: var(--texte-doux); }

/* =====================  INFOS PRATIQUES  ===================== */
.info-block {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 26px;
  box-shadow: var(--ombre);
}
.info-block h3 { font-size: 1.15rem; }
.info-block p { margin: .3em 0; }
/* Le plan se cale en bas de la tuile -> les deux tuiles restent de même taille,
   plans alignés, quel que soit le volume de texte au-dessus. */
.info-block .info-map-wrap { margin-top: auto; padding-top: 16px; position: relative; }
/* Calque transparent sur la carte : un clic ouvre Google Maps (la carte affichée
   reste OpenStreetMap, sans les libellés de commerces non souhaités). */
.info-map-link {
  position: absolute;
  left: 0; right: 0; top: 16px; bottom: 0;   /* recouvre exactement la carte */
  border-radius: 10px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  text-decoration: none;
}
.info-map-pin {
  margin: 8px;
  width: 36px; height: 36px;
  background: var(--vert-fonce);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background .15s ease, transform .1s ease;
}
.info-map-pin svg { width: 20px; height: 20px; fill: #fff; }
.info-map-link:hover .info-map-pin { background: var(--vert); transform: scale(1.06); }

/* =====================  PIED DE PAGE  ===================== */
.site-footer {
  background: var(--vert-fonce);
  color: #e9efe6;
  padding: 34px 0;
  text-align: center;
}
.footer-inner p { margin: .2em 0; }

/* =====================  RESPONSIVE (mobile / tablette)  ===================== */
@media (max-width: 820px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .maps    { grid-template-columns: 1fr; }
  .basket-links { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav { display: none; }   /* navigation masquée sur petit écran (on défile) */
  .header-inner { justify-content: center; }
  .hero-inner { padding: 52px 18px 56px; }
  .section { padding: 48px 0; }
}
