/* Aux Mille Feuilles — feuille unique, sans dépendance ni JS.
   Montserrat (variable, sous-ensemble latin) pour les titres, pile système pour
   le texte courant : un fichier de police au lieu des quatre familles du thème
   Elementor d'origine. */

@font-face {
  font-family: Montserrat;
  src: url(montserrat-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vert: #3f6b24;            /* vert profond : titres, boutons, liens */
  --vert-fonce: #2b4a17;      /* pied de page */
  --vert-vif: #6c9948;        /* vert du logo : décors, filets */
  --vert-pale: #f2f7ea;       /* fonds de section */
  --ocre: #c2521f;            /* accent chaud : puces, numéros */
  --encre: #1f2418;
  --gris: #56604c;
  --bord: #dde5d0;
  --titre: Montserrat, system-ui, sans-serif;
  --texte: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --large: 68rem;
  --etroit: 44rem;
  --rayon: 14px;
  --ombre: 0 1px 2px rgb(43 74 23 / .06), 0 8px 24px -12px rgb(43 74 23 / .22);
}

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

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .marque, .bouton, .sur-titre { font-family: var(--titre); }
h1, h2, h3 { color: var(--vert); font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2.1vw, 2.7rem); margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem); margin: 0 0 .75rem; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; font-weight: 600; }
p { margin: 0 0 1.05rem; max-width: 64ch; }
:where(a) { color: var(--vert); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- accessibilité ---------- */
:focus-visible { outline: 3px solid var(--vert-vif); outline-offset: 3px; border-radius: 4px; }
.evitement {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--vert); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--rayon) 0;
}
.evitement:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- structure ---------- */
.contenu { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.contenu--etroit { width: min(100% - 2.5rem, var(--etroit)); margin-inline: auto; }
section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--pale { background: var(--vert-pale); }
.section--verte { background: var(--vert); color: #fff; }
.section--verte :where(h2, h3) { color: #fff; }
.section--verte p { color: #dfeacf; }

/* ---------- en-tête ----------
   Le menu déroulant mobile est un <details> : c'est le seul élément natif qui
   ouvre et ferme un panneau, avec l'état annoncé aux lecteurs d'écran et la
   touche Entrée qui marche, sans une ligne de JavaScript. Au-dessus de 52rem le
   <details> sort de la mise en page (display: contents) et la barre redevient
   une navigation horizontale classique. */
.entete {
  position: sticky; top: 0; z-index: 30;
  background: rgb(255 255 255 / .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.entete__inner { display: flex; align-items: center; gap: .6rem 1.5rem; padding-block: .55rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--vert); margin-right: auto; }
.marque img { width: 56px; height: 44px; object-fit: contain; }
.marque span { font-size: 1.18rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.1; }


.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a:not(.bouton) {
  color: var(--gris); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.nav a:not(.bouton):hover { color: var(--vert); background: var(--vert-pale); }
.nav a[aria-current='page']:not(.bouton) { color: var(--vert); font-weight: 600; background: var(--vert-pale); }

/* raccourci téléphone, toujours visible sur mobile */
.entete__appel {
  display: none; align-items: center; gap: .4rem;
  padding: .5rem .9rem; min-height: 44px; border-radius: 999px;
  background: var(--vert); color: #fff; text-decoration: none;
  font-family: var(--titre); font-weight: 600; font-size: .9rem;
}
.entete__appel:hover { background: var(--vert-vif); }
.entete__appel svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* bouton du menu */
.menu__declencheur {
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .85rem;
  border: 1.5px solid var(--bord); border-radius: 999px;
  background: #fff; color: var(--vert);
  font-family: var(--titre); font-weight: 600; font-size: .9rem;
  cursor: pointer; list-style: none;
}
.menu__declencheur::-webkit-details-marker { display: none; }
.menu__declencheur:hover { border-color: var(--vert-vif); background: var(--vert-pale); }
.menu__barres { position: relative; width: 18px; height: 12px; flex: none; }
.menu__barres::before, .menu__barres::after, .menu__barres span {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu__barres::before { top: 0; }
.menu__barres span { top: 5px; }
.menu__barres::after { bottom: 0; }
.menu[open] .menu__barres::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu__barres span { opacity: 0; }
.menu[open] .menu__barres::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 51.99rem) {
  .entete__appel { display: inline-flex; }
  .menu__declencheur { display: inline-flex; }
  .menu { position: relative; }
  .menu .nav {
    position: absolute; right: 0; top: calc(100% + .7rem); z-index: 40;
    flex-direction: column; align-items: stretch; gap: .4rem;
    width: max(16rem, 68vw); max-width: calc(100vw - 2rem); padding: .4rem;
    background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon);
    box-shadow: var(--ombre);
  }
  .menu .nav a:not(.bouton) {
    padding: .8rem .9rem; border-radius: 10px;
    font-size: 1rem; font-weight: 500; display: block; color: var(--encre);
  }
  .menu .nav a:not(.bouton):hover { background: var(--vert-pale); }
  .menu .nav a[aria-current='page']:not(.bouton) { background: var(--vert-pale); }
  /* le libellé du bouton ne doit jamais se couper en deux : on lui laisse toute
     la largeur du panneau et on resserre son rembourrage latéral */
  .menu .nav .bouton {
    justify-content: center; margin: .4rem .25rem .25rem;
    padding-inline: 1rem; white-space: nowrap;
  }
}

@media (min-width: 52rem) {
  .nav .bouton { margin-left: .8rem; }
  /* le <details> disparaît de la mise en page, la navigation redevient un
     simple enfant flex de la barre */
  .menu { display: contents; }
  .menu__declencheur { display: none; }
  .menu::details-content { content-visibility: visible; block-size: auto; opacity: 1; }
}

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--vert); color: #fff; text-decoration: none;
  padding: .85rem 1.5rem; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: .97rem;
  transition: background .18s ease, transform .18s ease;
}
.bouton:hover { background: var(--vert-vif); transform: translateY(-1px); }
.bouton--clair { background: #fff; color: var(--vert); }
.bouton--clair:hover { background: var(--vert-pale); }
.bouton--fantome { background: transparent; color: var(--vert); border: 1.5px solid var(--bord); }
.bouton--fantome:hover { background: var(--vert-pale); border-color: var(--vert-vif); }
.bouton svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- héros ---------- */
.heros { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); background: linear-gradient(170deg, var(--vert-pale) 0%, #fff 72%); }
.heros__grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
.sur-titre { color: var(--ocre); font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; }
.heros__accroche { font-size: 1.15rem; color: var(--gris); }
.heros__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.heros__media { position: relative; }
.heros__media img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; object-fit: cover; aspect-ratio: 16/9; }
.heros__media img.portrait { aspect-ratio: 3/4; max-width: 24rem; margin-inline: auto; }
.medaillon {
  position: absolute; left: -1.1rem; bottom: -1.3rem;
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: .65rem .95rem; box-shadow: var(--ombre); max-width: 16rem;
}
.medaillon img { width: 38px; height: 46px; object-fit: contain; }
.medaillon strong { display: block; font-family: var(--titre); color: var(--vert); font-size: .92rem; }
.medaillon span { font-size: .8rem; color: var(--gris); }

/* ---------- pastilles ---------- */
.pastilles { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.pastilles li { background: #fff; border: 1px solid var(--bord); color: var(--gris); border-radius: 999px; padding: .32rem .85rem; font-size: .88rem; }

/* ---------- cartes ---------- */
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1.5rem; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; }
.carte { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.7rem; }
.carte p:last-child { margin-bottom: 0; }
.carte__icone {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1rem;
  background: var(--vert-pale); color: var(--vert); border: 1px solid var(--bord); border-radius: 12px;
}
.carte__icone svg { width: 1.5rem; height: 1.5rem; }

/* ---------- marchés ---------- */
/* sélecteur doublé : sinon `.marche p` l'emporte et repeint le texte en gris */
.marche .marche__jour {
  display: inline-flex; align-items: baseline; gap: .45rem;
  margin-bottom: .9rem; padding: .35rem .85rem; border-radius: 999px;
  background: var(--vert); color: #fff; font-family: var(--titre); line-height: 1.2;
}
.marche .marche__jour b { font-size: .95rem; font-weight: 700; }
.marche .marche__jour span { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.marche h3 { margin: 0 0 .3rem; }
.marche p { margin: 0 0 .5rem; color: var(--gris); font-size: .97rem; }
.marche p:last-child { margin-bottom: 0; }
.marche__heures { font-weight: 600; color: var(--ocre); }

/* ---------- étapes de commande ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; counter-reset: etape; list-style: none; padding: 0; margin: 0; }
.etapes li { position: relative; padding-top: 3.1rem; }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--ocre); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 1rem;
}
.etapes h3 { margin-bottom: .35rem; }
.etapes p { margin: 0; color: var(--gris); font-size: .97rem; }

/* ---------- légumes de saison ---------- */
/* 2 colonnes fixes : les 4 saisons tombent en carré, auto-fit en faisait 3 + 1 */
.saisons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.saison { border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; overflow: hidden; }
.saison__illu { width: 100%; aspect-ratio: 5/2; object-fit: cover; }
.saison__corps { padding: 1.4rem 1.6rem 1.6rem; }
.saison h3 { display: flex; align-items: baseline; gap: .6rem; color: var(--vert); }
.saison h3 small { font-family: var(--texte); font-size: .82rem; font-weight: 400; color: var(--gris); }
.saison ul { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.saison li { background: var(--vert-pale); border-radius: 999px; padding: .28rem .8rem; font-size: .9rem; color: var(--encre); }

/* ---------- galerie ---------- */
/* colonnes fixes plutôt qu'auto-fill : 6 ou 4 vignettes tombent en lignes pleines,
   auto-fill laissait une orpheline sur la dernière ligne */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.galerie--quatre { grid-template-columns: repeat(4, 1fr); }
/* les originaux du client plafonnent à 300 px : on borne la largeur de la bande
   pour que les vignettes restent nettes, y compris sur un écran Retina */
.galerie--vignettes { grid-template-columns: repeat(4, 1fr); max-width: 40rem; }
.galerie img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.galerie figure { margin: 0; }
.galerie figcaption { font-size: .84rem; color: var(--gris); margin-top: .4rem; }
.mention { font-size: .84rem; color: var(--gris); margin-top: .9rem; font-style: italic; }

/* ---------- avant / après ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.5rem; }
.duo figure { margin: 0; }
.duo img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.duo figcaption { font-size: .9rem; color: var(--gris); margin-top: .6rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; margin-top: 2rem; }
.faq details { border: 1px solid var(--bord); border-radius: var(--rayon); background: #fff; }
.faq summary {
  cursor: pointer; padding: 1rem 1.3rem; font-family: var(--titre); font-weight: 600;
  color: var(--vert); list-style-position: inside;
}
.faq summary::marker { color: var(--vert-vif); }
.faq details[open] summary { border-bottom: 1px solid var(--bord); }
.faq details > *:not(summary) { padding-inline: 1.3rem; }
.faq details > p:first-of-type { padding-top: 1rem; }
.faq details > p:last-child { padding-bottom: 1rem; margin-bottom: 0; }

/* ---------- appel final ---------- */
.appel { text-align: center; }
.appel p { margin-inline: auto; }
.appel .heros__actions { justify-content: center; }
.numero { font-family: var(--titre); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; text-decoration: none; display: inline-block; }

/* ---------- coordonnées ---------- */
.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.coordonnees dt { font-family: var(--titre); font-weight: 700; color: var(--vert); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.coordonnees dd { margin: 0; color: var(--gris); }

/* ---------- listes de contenu ---------- */
.liste-puces { padding-left: 0; list-style: none; display: grid; gap: .6rem; margin: 0; }
.liste-puces li { position: relative; padding-left: 1.6rem; color: var(--gris); }
.liste-puces li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--vert-vif);
}

/* ---------- pied de page ---------- */
.pied { background: var(--vert-fonce); color: #cfdcbe; padding-block: 2.5rem 1.8rem; font-size: .93rem; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.8rem; }
.pied strong { display: block; color: #fff; font-family: var(--titre); margin-bottom: .5rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pied__bas { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / .16); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .86rem; }

/* ---------- contenu éditorial (mentions, CGV, confidentialité) ---------- */
.prose > * { max-width: var(--etroit); }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--gris); }

/* ---------- petits écrans ---------- */
@media (max-width: 56rem) {
  .heros__grille { grid-template-columns: 1fr; }
  .medaillon { left: auto; right: .8rem; bottom: -1.2rem; }
}
@media (max-width: 46rem) {
  .galerie, .galerie--quatre, .galerie--vignettes { grid-template-columns: repeat(2, 1fr); }
  .saisons { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .marque img { width: 44px; height: 34px; }
  .marque span { font-size: 1.02rem; white-space: nowrap; }
  /* sous 34rem le libellé « Appeler » ne tient plus, l'icône suffit */
  .entete__appel span { display: none; }
  .entete__appel { padding-inline: .7rem; }
  .menu__declencheur { padding-inline: .7rem; gap: .4rem; }
  .entete__inner { gap: .45rem; }
  /* la barre déborde du conteneur avant de déborder de l'écran : on laisse la
     marque se compresser plutôt que pousser les boutons hors cadre */
  .marque { min-width: 0; }
  .marque span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* les plus petits téléphones : le libellé du bouton saute, l'icône parle d'elle-même */
@media (max-width: 22rem) {
  .menu__declencheur { font-size: 0; gap: 0; padding-inline: .8rem; }
  .menu__barres { font-size: 1rem; }
  .sur-titre { font-size: .78rem; letter-spacing: .08em; }
  .medaillon { position: static; margin-top: 1rem; max-width: none; }
}

/* ---------- utilitaires (remplacent les style="" que la CSP bloque) ---------- */
.espace-haut { margin-top: 2rem; }
.espace-haut-court { margin-top: 1.2rem; }
.centre { text-align: center; }
.centre p { margin-inline: auto; }
/* pied réduit des pages légales : pas de colonnes au-dessus, donc pas de filet */
.pied__bas--seul { margin-top: 0; border-top: 0; padding-top: 0; }
