/* Le potager de Chimel – site vitrine (hors ligne) */

@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --lin: #F3EFE7;
  --surface: #FCFBF6;
  --mousse: #3E6B35;
  --mousse-fonce: #2F5228;
  --sauge: #DFE6D3;
  --terre: #A3502F;
  --brun: #8B6B52;
  --texte: #2A2620;
  --texte-doux: #6B6358;
  --bord: #E3DCCB;
  --case: #EEE7DA;
  --rayon: 28px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--lin);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mousse); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--lin) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.entete.defile { border-bottom-color: var(--bord); }
.entete .conteneur { display: flex; align-items: center; gap: 24px; height: 72px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); font-family: var(--serif); font-weight: 700; font-size: 20px; white-space: nowrap; }
.marque img { width: 40px; height: 40px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--texte-doux); font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--mousse); }
.langues { display: flex; background: var(--surface); border: 1px solid var(--bord); border-radius: 999px; padding: 3px; }
.langues a {
  font: 700 13px var(--sans); letter-spacing: .04em; color: var(--texte-doux); text-decoration: none;
  padding: 6px 11px; border-radius: 999px;
}
.langues a:hover { color: var(--mousse); }
.langues a[aria-current="page"] { background: var(--mousse); color: #F6F1E7; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--mousse); transition: background .15s, color .15s, transform .15s;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-plein { background: var(--mousse); color: #F6F1E7; }
.bouton-plein:hover { background: var(--mousse-fonce); border-color: var(--mousse-fonce); }
.bouton-contour { color: var(--mousse); background: transparent; }
.bouton-contour:hover { background: var(--sauge); }
.bouton svg { width: 20px; height: 20px; }

/* ---------- Accroche ---------- */
.accroche { padding: 64px 0 88px; }
.accroche .conteneur { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pastille {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sauge); color: var(--mousse-fonce);
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--terre); }
.accroche h1 { font-size: clamp(42px, 6vw, 72px); color: var(--mousse-fonce); }
.trait { width: 96px; height: 5px; background: var(--terre); border-radius: 3px; margin: 26px 0; }
.accroche .sous-titre { font-size: 21px; color: var(--texte-doux); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.atouts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--texte-doux); font-size: 15px; font-weight: 600; }
.atouts li { display: flex; align-items: center; gap: 8px; }
.atouts li::before { content: "✓"; color: var(--mousse); font-weight: 700; }

.telephone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16.6; border-radius: 44px; padding: 12px;
  background: #23201B; box-shadow: 0 30px 60px -20px rgba(62, 47, 30, .35), 0 0 0 1px rgba(0,0,0,.05);
  position: relative;
}
.telephone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.accroche .telephone { transform: rotate(2.5deg); }
.feuille { position: absolute; width: 120px; left: -64px; bottom: 40px; transform: rotate(-12deg); opacity: .9; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.titre-section { max-width: 40em; margin-bottom: 48px; }
.titre-section .surtitre { display: block; color: var(--terre); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.titre-section h2 { font-size: clamp(32px, 4.2vw, 46px); }
.titre-section p { margin-top: 16px; color: var(--texte-doux); font-size: 19px; }

/* Histoire */
.histoire { background: var(--surface); border-block: 1px solid var(--bord); }
.histoire .conteneur { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; }
.signature {
  width: 132px; height: 132px; border-radius: 50%; background: var(--sauge); display: grid; place-items: center;
  font-family: var(--serif); font-size: 52px; color: var(--mousse-fonce);
}
.histoire blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.histoire .auteur { margin-top: 20px; color: var(--texte-doux); font-weight: 600; }

/* Fonctionnalités */
.grille-fonctions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 30px;
}
.carte .icone {
  width: 56px; height: 56px; border-radius: 18px; background: var(--sauge); display: grid; place-items: center; margin-bottom: 20px;
}
.carte .icone svg { width: 28px; height: 28px; stroke: var(--mousse-fonce); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 { font-size: 23px; margin-bottom: 14px; }
.carte ul { margin: 0; padding-left: 0; list-style: none; color: var(--texte-doux); font-size: 16.5px; }
.carte li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.carte li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--mousse); opacity: .55; }
.carte.mise-en-avant { background: var(--mousse); border-color: var(--mousse); color: #F6F1E7; }
.carte.mise-en-avant .icone { background: rgba(246, 241, 231, .16); }
.carte.mise-en-avant .icone svg { stroke: #F6F1E7; }
.carte.mise-en-avant ul { color: rgba(246, 241, 231, .86); }
.carte.mise-en-avant li::before { background: #F6F1E7; }

/* Frise */
.frise-section { background: var(--surface); border-block: 1px solid var(--bord); }
.frise-section .conteneur { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.frise-section .conteneur > *, .accroche .conteneur > *, .testeurs .boite > * { min-width: 0; }
.frise { background: var(--lin); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px; overflow-x: auto; }
.frise table { border-collapse: separate; border-spacing: 5px; width: 100%; min-width: 520px; }
.frise th { font-weight: 700; font-size: 13px; color: var(--texte-doux); text-align: center; padding-bottom: 4px; }
.frise th.mois-courant { color: var(--mousse); }
.frise td.nom { font-family: var(--serif); font-weight: 600; font-size: 17px; padding-right: 12px; white-space: nowrap; }
.frise td.case { height: 30px; border-radius: 8px; background: var(--case); }
.frise td.case.semis { background: var(--brun); }
.frise td.case.plantation { background: #4A6B3A; }
.frise td.case.place { background: #9AA86B; }
.frise td.case.recolte { background: var(--terre); }
.frise td.case.courant { outline: 2.5px solid var(--texte); outline-offset: -2.5px; }
.legende { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 15px; color: var(--texte-doux); }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.legende i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.ce-mois { margin-top: 22px; padding: 18px 20px; background: var(--surface); border-radius: 18px; border: 1px solid var(--bord); font-size: 16px; }
.ce-mois strong { font-family: var(--serif); }

/* Captures */
.galerie { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; }
.galerie figure { margin: 0; flex: 0 0 240px; scroll-snap-align: start; }
.galerie .telephone { width: 240px; border-radius: 34px; padding: 9px; }
.galerie .telephone img { border-radius: 26px; }
.galerie figcaption { text-align: center; margin-top: 14px; font-weight: 700; color: var(--texte-doux); font-size: 15px; }

/* Formules */
.grille-formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.formule { display: flex; flex-direction: column; }
.formule .prix { font-family: var(--serif); font-size: 40px; font-weight: 700; margin: 6px 0 4px; color: var(--mousse-fonce); }
.formule .prix small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--texte-doux); }
.formule .detail { color: var(--texte-doux); font-size: 15px; margin-bottom: 20px; }
.formule.mise-en-avant .prix, .formule.mise-en-avant .prix small, .formule.mise-en-avant .detail { color: #F6F1E7; }
.etiquette { align-self: flex-start; background: var(--terre); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }

/* Testeurs */
.testeurs .boite {
  background: var(--mousse); color: #F6F1E7; border-radius: 36px; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.testeurs h2 { font-size: clamp(30px, 4vw, 44px); }
.testeurs p { margin-top: 16px; color: rgba(246, 241, 231, .88); font-size: 18px; }
.etapes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.etapes li { display: flex; gap: 14px; align-items: flex-start; }
.etapes b { flex: 0 0 32px; height: 32px; border-radius: 50%; background: rgba(246, 241, 231, .16); display: grid; place-items: center; font-family: var(--serif); }
.compteur { text-align: center; }
.compteur .nombre { font-family: var(--serif); font-size: 96px; line-height: 1; font-weight: 700; }
.compteur .libelle { margin-top: 8px; font-weight: 600; opacity: .85; }
.testeurs .bouton-plein { background: #F6F1E7; color: var(--mousse-fonce); border-color: #F6F1E7; margin-top: 28px; }
.testeurs .bouton-plein:hover { background: #fff; border-color: #fff; }

/* Confidentialité */
.grille-confidentialite { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.point { background: var(--surface); border: 1px solid var(--bord); border-radius: 22px; padding: 24px; }
.point strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.point span { color: var(--texte-doux); font-size: 15.5px; }
.lien-politique { margin-top: 28px; }

/* Pied de page */
.pied { padding: 40px 0 48px; border-top: 1px solid var(--bord); color: var(--texte-doux); font-size: 15px; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.pied .marque { font-size: 17px; }
.pied .marque img { width: 32px; height: 32px; }

/* Apparition */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .langues { margin-left: auto; }
  .accroche .conteneur, .frise-section .conteneur, .testeurs .boite { grid-template-columns: 1fr; }
  .accroche { padding-top: 32px; }
  .grille-fonctions, .grille-formules { grid-template-columns: 1fr 1fr; }
  .grille-confidentialite { grid-template-columns: 1fr 1fr; }
  .feuille { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .marque span { display: none; }
  .grille-fonctions, .grille-formules, .grille-confidentialite { grid-template-columns: 1fr; }
  .histoire .conteneur { grid-template-columns: 1fr; gap: 24px; }
  .signature { width: 88px; height: 88px; font-size: 36px; }
  .accroche .telephone { width: 260px; }
}
.marque + .langues { margin-left: auto; }
