/* =========================================================================
   Pépinière de Champagney — feuille de style (v3)
   -------------------------------------------------------------------------
   Sommaire : 1. Polices  2. Variables  3. Base  4. Mise en page
              5. En-tête  6. Boutons  7. Ouverture et formulaire
              8. Réserver en 4 étapes  9. Aperçu des fruitiers
              10. Atouts, services, histoire  11. Page Démarche
              12. Page Fruitiers  13. Fiches fruitiers  14. Pied de page
              15. Bouton « haut de page »  16. Pages légales et courtes
              17. Utilitaires  18. Teintes des fruits (générées)
   Pour changer une couleur partout : modifiez-la dans la partie 2.
   ========================================================================= */

/* 1. Polices (hébergées sur le site, aucun appel à Google) ----------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables ------------------------------------------------------------- */
:root {
  --vert-900: #1b3a1e;
  --vert-700: #2d5e31;
  --vert-600: #3a7540;
  --vert-100: #e4eedf;
  --vert-50: #f2f7f0;
  --brun-800: #5c3a1e;
  --brun-600: #8b5e3c;
  --brun-100: #f5ece3;
  --brun-50: #faf6f1;
  --groseille: #a8302a;
  --noir: #1a1f1a;
  --gris-800: #363d36;
  --gris-600: #566056;
  --gris-300: #b9c2b7;
  --gris-200: #d9ded7;
  --gris-100: #eef1ec;
  --blanc: #fefffe;
  --fleur: #e7a3b5;

  --titres: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --texte: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --rayon: 8px;
  --rayon-grand: 16px;
  --ombre: 0 6px 24px rgba(27, 58, 30, .08);
  --conteneur: 70rem;
  --mesure: 66ch;
  color-scheme: light;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--gris-800);
  background: var(--blanc);
}
h1, h2, h3 {
  font-family: var(--titres);
  font-weight: 600;
  line-height: 1.1;
  color: var(--vert-900);
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 2rem + 3.2vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 1.7rem + 1.8vw, 3rem); letter-spacing: -.005em; }
h3 { font-size: 1.6rem; }
p, ul, ol { margin: 0 0 1em; }
p { max-width: var(--mesure); }
a { color: var(--vert-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brun-600); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--noir); }
svg { flex: none; }

/* 4. Mise en page ---------------------------------------------------------- */
.conteneur { width: min(100% - 2.5rem, var(--conteneur)); margin-inline: auto; }
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section--vert { background: var(--vert-50); }
.section--brun { background: var(--brun-50); }
.centre { text-align: center; }
.centre p { margin-inline: auto; }
.entete-section { max-width: 44rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.entete-section.centre { margin-inline: auto; }
.entete-section p { color: var(--gris-600); font-size: 1.15rem; }
.surtitre {
  display: block; margin-bottom: .7rem; font-family: var(--texte); font-size: .82rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brun-600);
}
.grille { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.deux-colonnes { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.lien-fleche { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.lien-fleche svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.lien-fleche:hover svg { transform: translateX(3px); }

.lien-evitement { position: absolute; left: 1rem; top: -10rem; z-index: 30; padding: .6rem 1rem;
  background: var(--vert-900); color: #fff; font-weight: 600; border-radius: 0 0 var(--rayon) var(--rayon); }
.lien-evitement:focus { top: 0; color: #fff; }

/* 5. En-tête : fixé en haut, il s'allège et prend une ombre au défilement --- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(254, 255, 254, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.defile .entete { border-bottom-color: var(--gris-200); box-shadow: 0 2px 18px rgba(27, 58, 30, .08); }
.entete__barre { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; padding-block: .55rem; }
.marque { order: 1; display: block; margin-right: auto; border-radius: 4px; transition: opacity .3s, visibility .3s, transform .3s; }
.marque img { height: 2.9rem; width: auto; }
/* Page d'accueil : le grand lettrage est déjà dans l'ouverture ; le petit
   n'apparaît dans l'en-tête qu'une fois le grand sorti de l'écran. */
@media (min-width: 48rem) {
  .accueil .marque { opacity: 0; visibility: hidden; transform: translateY(-4px); }
  .logo-visible .accueil .marque { opacity: 1; visibility: visible; transform: none; }
}
.entete__appel {
  order: 2; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .85rem;
  background: var(--vert-700); color: #fff; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.entete__appel:hover { background: var(--vert-900); color: #fff; }
.entete__appel svg { width: 1.15rem; height: 1.15rem; }
.entete__appel-numero { display: none; }
.nav { order: 3; width: 100%; }
.nav ul { display: flex; justify-content: space-between; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: .4rem 0; color: var(--gris-800); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--vert-700); }
.nav a[aria-current="page"] { color: var(--vert-700); border-bottom-color: var(--vert-600); }
@media (min-width: 48rem) {
  .entete__appel-numero { display: inline; }
  .marque img { height: 3.3rem; }
}
@media (min-width: 64rem) {
  .entete__barre { flex-wrap: nowrap; padding-block: .6rem; }
  .nav { width: auto; order: 2; }
  .nav ul { gap: 0 2rem; }
  .entete__appel { order: 3; }
}

/* 6. Boutons --------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.centre .actions { justify-content: center; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem; border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton svg { width: 1.2rem; height: 1.2rem; }
.bouton--principal { background: var(--vert-700); color: #fff; }
.bouton--principal:hover { background: var(--vert-900); color: #fff; }
.bouton--secondaire { background: var(--blanc); color: var(--vert-700); border-color: var(--vert-700); }
.bouton--secondaire:hover { background: var(--vert-50); color: var(--vert-900); }
.bouton:disabled { opacity: .65; cursor: progress; }

/* 7. Ouverture (haut de l'accueil) et formulaire --------------------------- */
.ouverture { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(var(--blanc), var(--vert-50)); }
.ouverture__grille { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .ouverture__grille { grid-template-columns: 1.05fr .95fr; } }
.ouverture__logo { width: min(100%, 17rem); margin: 0 0 1rem -.3rem; }
@media (min-width: 48rem) { .ouverture__logo { width: min(100%, 32rem); margin: 0 0 2rem -.4rem; } }
.ouverture h1 { margin-bottom: .3em; }
.ouverture__intro { font-size: clamp(1.18rem, 1.08rem + .45vw, 1.38rem); color: var(--gris-800); max-width: 34rem; }
.ouverture__faits { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--vert-900); }
.ouverture__faits li { display: flex; align-items: center; gap: .45rem; }
.ouverture__faits svg { width: 1.3rem; height: 1.3rem; color: var(--brun-600); }
.ouverture__appel { margin-top: 1.6rem; }
.ouverture__appel p { margin: .6rem 0 0; font-size: 1rem; color: var(--gris-600); }

.carte {
  padding: 1.5rem; background: var(--blanc); border: 1px solid var(--gris-200);
  border-radius: var(--rayon-grand);
}
.carte p:last-child { margin-bottom: 0; }
.carte--formulaire { padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--ombre); }
.formulaire__titre { margin-bottom: .2rem; font-size: 2.1rem; }
.formulaire__aide { color: var(--gris-600); font-size: 1rem; }
.champ { margin-bottom: 1rem; }
.champs-2 { display: grid; gap: 0 1rem; }
@media (min-width: 36rem) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.champ label { display: block; margin-bottom: .3rem; font-weight: 600; color: var(--noir); font-size: 1.02rem; }
.facultatif { font-weight: 400; color: var(--gris-600); }
.champ input, .champ textarea, .champ select {
  display: block; width: 100%; min-height: 3rem; padding: .65rem .85rem; font: inherit; color: var(--noir);
  background-color: #fff; border: 1.5px solid #97a396; border-radius: var(--rayon);
}
.champ select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("../img/chevron.svg"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 1rem;
}
.champ textarea { min-height: 7.5rem; resize: vertical; }
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { border-color: var(--vert-700); }
.champ-piege { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mention-rgpd { font-size: .95rem; color: var(--gris-600); }
.formulaire .bouton { width: 100%; }

/* 8. Réserver en 4 étapes (infographie) ------------------------------------ */
.etapes { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etape { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 0 1.2rem; align-items: start; counter-increment: etape; }
.etape__picto { position: relative; width: 6rem; height: 6rem; padding: .2rem; background: var(--blanc); border: 1px solid var(--gris-200); border-radius: 50%; }
.etape__picto::after {
  content: counter(etape); position: absolute; top: -.35rem; right: -.35rem; display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; background: var(--vert-700); color: #fff; font-weight: 700; font-size: 1rem; border-radius: 50%;
}
.etape h3 { margin: .3rem 0 .3rem; font-size: 1.55rem; }
.etape p { margin: 0; color: var(--gris-600); }
/* trait fin (non relié) entre deux étapes */
.etape:not(:last-child)::before {
  content: ""; position: absolute; left: 3rem; top: 6.9rem; bottom: -1.6rem; border-left: 1.5px dashed var(--gris-300);
}
@media (min-width: 60rem) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .etape { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .etape__picto { margin-bottom: 1rem; }
  .etape:not(:last-child)::before {
    left: calc(50% + 4.2rem); right: calc(-50% + 4.2rem - 2rem); top: 3rem; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--gris-300);
  }
}

/* 9. Aperçu des fruitiers (accueil) ---------------------------------------- */
.apercu-fruits { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 0 0 2rem; padding: 0; list-style: none; }
@media (min-width: 40rem) { .apercu-fruits { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .apercu-fruits { grid-template-columns: repeat(6, 1fr); } }
.apercu-fruits a {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; padding: 1rem .6rem 1.1rem;
  background: var(--blanc); border: 1px solid var(--gris-200); border-radius: var(--rayon-grand);
  color: var(--vert-900); text-decoration: none; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.apercu-fruits a:hover { border-color: var(--teinte, var(--vert-600)); box-shadow: var(--ombre); transform: translateY(-2px); }
.apercu-fruits img { width: 7rem; height: 7rem; }
.apercu-fruits .nom { font-family: var(--titres); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.pastille { display: inline-block; margin-bottom: .8rem; padding: .15rem .8rem; background: var(--brun-100); color: var(--brun-800);
  font-size: .9rem; font-weight: 600; border-radius: 999px; }

/* 10. Atouts, services, histoire (cartes à pictogramme) -------------------- */
.carte-picto { display: grid; grid-template-columns: 4.5rem 1fr; gap: .2rem 1rem; align-items: start; align-content: start; }
.carte-picto img { width: 4.5rem; height: 4.5rem; grid-row: span 2; }
.carte-picto h3 { margin: .25rem 0 .2rem; font-size: 1.45rem; }
.carte-picto p { margin: 0; color: var(--gris-600); font-size: 1.05rem; }
@media (min-width: 64rem) {
  .grille--4 .carte-picto { grid-template-columns: 1fr; }
  .grille--4 .carte-picto img { width: 5.5rem; height: 5.5rem; grid-row: auto; margin-bottom: .4rem; }
}
.grille--2 { grid-template-columns: 1fr; }
@media (min-width: 52rem) { .grille--2 { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
.grille--2 .carte-picto { grid-template-columns: 5.5rem 1fr; gap: .2rem 1.3rem; padding: 1.6rem; }
.grille--2 .carte-picto img { width: 5.5rem; height: 5.5rem; }
@media (min-width: 56rem) {
  .valeurs .carte-picto { grid-template-columns: 1fr; }
  .valeurs .carte-picto img { width: 5.5rem; height: 5.5rem; grid-row: auto; margin-bottom: .4rem; }
}
.services { margin-top: .4rem; }
.a-valider { display: inline-block; margin-left: .4rem; padding: 0 .45rem; font: 600 .75rem/1.6 var(--texte); letter-spacing: .04em;
  color: #6d4c00; background: #ffe7a3; border-radius: 4px; vertical-align: middle; }
.histoire-apercu { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .histoire-apercu { grid-template-columns: 1fr 1.1fr; } }
.histoire-apercu__frise { display: flex; justify-content: space-between; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.histoire-apercu__frise li { flex: 1; text-align: center; font-size: .95rem; color: var(--gris-600); }
.histoire-apercu__frise img { width: 100%; max-width: 6.5rem; margin: 0 auto .4rem; }

/* 11. Page Démarche -------------------------------------------------------- */
.page-entete { padding-block: clamp(2.4rem, 6vw, 4rem) clamp(1.8rem, 4vw, 2.8rem); background: linear-gradient(var(--blanc), var(--vert-50)); }
.page-entete p { font-size: clamp(1.15rem, 1.06rem + .4vw, 1.35rem); margin-bottom: 0; color: var(--gris-800); }
.frise { position: relative; display: grid; gap: 2.6rem; margin: 0; padding: 0; list-style: none; }
.frise__etape { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 0 1.4rem; }
.frise__etape img { width: 6rem; height: 6rem; padding: .3rem; background: var(--blanc); border: 1px solid var(--gris-200); border-radius: 50%; }
.frise__etape:not(:last-child)::before {
  content: ""; position: absolute; left: 3rem; top: 6.8rem; bottom: -1.9rem; border-left: 1.5px dashed var(--gris-300);
}
.frise__etape h3 { margin: .2rem 0 .35rem; }
.frise__etape p { margin: 0; }
@media (min-width: 64rem) {
  .frise { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .frise__etape { grid-template-columns: 1fr; }
  .frise__etape img { margin-bottom: 1rem; }
  .frise__etape:not(:last-child)::before { left: 7rem; right: -1.2rem; top: 3rem; bottom: auto; border-left: 0; border-top: 1.5px dashed var(--gris-300); }
}
.prose { max-width: 44rem; }
.illustration { margin: 0; }
.illustration img { width: 100%; }
.illustration figcaption { margin-top: .6rem; font-size: .98rem; color: var(--gris-600); }
.valeurs { display: grid; gap: 1.2rem; }
@media (min-width: 56rem) { .valeurs { grid-template-columns: repeat(3, 1fr); } }
.appel { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--vert-900); color: #eef4ec; border-radius: var(--rayon-grand); text-align: center; }
.appel h2 { color: #fff; }
.appel p { margin-inline: auto; }
.appel .actions { justify-content: center; }
.appel .bouton--principal { background: #fff; color: var(--vert-900); }
.appel .bouton--principal:hover { background: var(--vert-100); color: var(--vert-900); }
.appel .bouton--secondaire { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.appel .bouton--secondaire:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* 12. Page Fruitiers ------------------------------------------------------- */
.familles-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.familles-nav a { display: inline-block; padding: .35rem .95rem; background: var(--blanc); border: 1px solid var(--gris-200); border-radius: 999px;
  color: var(--vert-900); font-weight: 600; text-decoration: none; }
.familles-nav a:hover { border-color: var(--vert-600); background: var(--vert-50); }
.famille + .famille { margin-top: clamp(2.8rem, 6vw, 4rem); }
.famille__entete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--gris-200); }
.famille__entete h2 { margin: 0; font-size: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem); }
.famille__entete p { margin: 0; color: var(--gris-600); }
.fruits { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin: 0; padding: 0; list-style: none; }
.fruit {
  position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 0 .9rem; align-items: center; padding: .9rem 1rem .9rem .7rem;
  background: var(--blanc); border: 1px solid var(--gris-200); border-radius: var(--rayon-grand);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fruit:hover, .fruit:focus-within { border-color: var(--teinte); box-shadow: var(--ombre); transform: translateY(-2px); }
.fruit img { width: 6rem; height: 6rem; background: var(--teinte-pale); border-radius: 50%; }
@media (max-width: 39.99rem) {
  .fruits { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .fruit { grid-template-columns: 1fr; justify-items: center; padding: .9rem .6rem 1rem; text-align: center; }
  .fruit img { width: 5.5rem; height: 5.5rem; margin-bottom: .4rem; }
  .fruit h3 { font-size: 1.35rem; }
  .fruit__latin { font-size: 1rem; }
  .fruit__resume { font-size: .85rem; }
}
.fruit h3 { margin: 0; font-size: 1.55rem; }
.fruit__latin { margin: 0 0 .35rem; font-family: var(--titres); font-style: italic; font-size: 1.1rem; color: var(--gris-600); line-height: 1.2; }
.fruit__resume { margin: 0 0 .4rem; font-size: .92rem; line-height: 1.35; color: var(--gris-600); }
.fruit__ouvrir { padding: 0; font: inherit; font-size: .95rem; font-weight: 600; color: var(--vert-700); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
/* toute la carte est cliquable */
.fruit__ouvrir::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon-grand); }
.fruit__ouvrir:focus-visible { outline: none; }
.fruit__ouvrir:focus-visible::after { outline: 3px solid var(--brun-600); outline-offset: 2px; }
.note { font-size: 1rem; color: var(--gris-600); }

/* 13. Fiches fruitiers (fenêtre par-dessus la page) ------------------------ */
.fiche {
  width: min(100% - 1.5rem, 48rem); max-height: min(92dvh, 60rem); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  color: var(--gris-800); background: var(--blanc); border: 0; border-radius: var(--rayon-grand);
  box-shadow: 0 24px 70px rgba(18, 36, 20, .3);
}
.fiche::backdrop { background: rgba(20, 38, 22, .45); }
body:has(.fiche:popover-open) { overflow: hidden; }
.fiche__tete { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; align-items: center; padding: 1.2rem 3.6rem 1.2rem 1rem; background: var(--teinte-pale); }
.fiche__illus { width: 5.5rem; height: auto; }
.fiche__accroche { grid-column: 1 / -1; }
@media (min-width: 40rem) {
  .fiche__tete { grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 0 1.4rem; padding-block: 1.4rem; }
  .fiche__illus { width: 9.5rem; grid-row: span 2; }
  .fiche__accroche { grid-column: 2; align-self: start; }
}
.fiche__famille { margin: 0 0 .1rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brun-800); }
.fiche__nom { margin: 0; font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); }
.fiche__titres { align-self: end; }
.fiche__nom:focus { outline: none; }
.fiche__latin { margin: 0 0 .5rem; font-family: var(--titres); font-style: italic; font-size: 1.3rem; color: var(--gris-600); }
.fiche__accroche { margin: 0; font-size: 1.05rem; }
.fiche__fermer {
  position: absolute; top: .8rem; right: .8rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: var(--vert-900); background: var(--blanc); border: 1px solid var(--gris-200); border-radius: 50%; cursor: pointer;
}
.fiche__fermer:hover { background: var(--vert-50); }
.fiche__fermer svg { width: 1.25rem; height: 1.25rem; }
.fiche__corps { padding: 1.3rem 1.2rem 1.4rem; }
@media (min-width: 40rem) { .fiche__tete, .fiche__corps { padding-left: 1.8rem; } .fiche__corps { padding-right: 1.8rem; } }

.chiffres { display: grid; gap: .7rem; grid-template-columns: repeat(2, 1fr); margin: 0 0 1.4rem; padding: 0; list-style: none; }
@media (min-width: 40rem) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre { display: flex; flex-direction: column; gap: .1rem; padding: .8rem .85rem; border: 1px solid var(--gris-200); border-radius: 12px; }
.chiffre svg { width: 1.6rem; height: 1.6rem; margin-bottom: .2rem; color: var(--teinte); }
.chiffre__titre { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-600); }
.chiffre__valeur { font-family: var(--titres); font-size: 1.75rem; font-weight: 700; line-height: 1.05; color: var(--vert-900); font-variant-numeric: lining-nums; }
.chiffre__precision { font-size: .9rem; line-height: 1.3; color: var(--gris-600); }
/* frise des 10 premières années : vide = attente, demi = premières récoltes possibles, plein = récolte */
.annees { display: flex; gap: 3px; margin: .45rem 0 0; padding: 0; list-style: none; }
.annees li { flex: 1; height: .5rem; border-radius: 3px; background: var(--gris-100); }
.annees .possible { background: var(--teinte); opacity: .45; }
.annees .recolte { background: var(--teinte); }
.annees__legende { display: flex; justify-content: space-between; margin-top: .15rem; font-size: .75rem; color: var(--gris-600); }

.calendrier { margin: 0 0 1.4rem; padding: 1rem 1rem .8rem; background: var(--gris-100); border-radius: 12px; }
.calendrier__titre { margin: 0 0 .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-600); }
.calendrier__mois, .calendrier__ligne ol { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 0; padding: 0; list-style: none; }
.calendrier__mois { margin-left: 6.6rem; margin-bottom: .25rem; font-size: .75rem; font-weight: 600; color: var(--gris-600); text-align: center; }
.calendrier__ligne { display: grid; grid-template-columns: 6.6rem 1fr; align-items: center; row-gap: .1rem; margin-bottom: .55rem; }
.calendrier__nom { font-size: .95rem; font-weight: 600; color: var(--noir); }
.calendrier__ligne ol li { height: .85rem; border-radius: 3px; background: var(--blanc); }
.calendrier__ligne .on { background: var(--couleur-ligne); }
.calendrier__texte { grid-column: 2; font-size: .9rem; color: var(--gris-600); }
.cal-plantation { --couleur-ligne: var(--brun-600); }
.cal-floraison { --couleur-ligne: var(--fleur); }
.cal-recolte { --couleur-ligne: var(--teinte); }

.fiche__infos { display: grid; gap: .8rem; margin: 0 0 1.3rem; }
@media (min-width: 40rem) { .fiche__infos { grid-template-columns: repeat(3, 1fr); } }
.fiche__infos div { align-content: start; }
.fiche__infos dt { display: flex; align-items: center; gap: .45rem; margin-bottom: .2rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-600); }
.fiche__infos svg { width: 1.45rem; height: 1.45rem; color: var(--teinte); }
.fiche__infos dd { margin: 0; font-size: 1rem; line-height: 1.45; }
.fiche__infos dd strong { display: block; }
.fiche__conseil { margin: 0 0 1.2rem; padding: .9rem 1.1rem; border-left: 3px solid var(--teinte); background: var(--teinte-pale); border-radius: 0 10px 10px 0; max-width: none; }
.fiche__conseil strong { display: block; font-family: var(--titres); font-size: 1.3rem; color: var(--vert-900); }
.fiche .actions { margin-top: 0; }
.fiche__note { margin: 1rem 0 0; font-size: .88rem; color: var(--gris-600); max-width: none; }

/* 14. Pied de page --------------------------------------------------------- */
.pied { padding-block: 2.8rem 1.6rem; background: var(--vert-900); color: #e8efe5; }
.pied a { color: #e8efe5; }
.pied a:hover { color: #fff; }
.pied p { margin-bottom: .5rem; }
.pied__grille { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.pied__marque { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.pied__marque img { width: 3.6rem; padding: .3rem; background: var(--blanc); border-radius: 50%; }
.pied__nom { margin: 0 !important; font-family: var(--titres); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.pied__titre { margin-bottom: .5rem; font-size: 1.45rem; color: #fff; }
.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: .35rem; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin-top: 2.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(232, 239, 229, .25); font-size: .95rem; }
.pied__bas p { margin: 0; max-width: none; }

/* 15. Bouton « haut de page » (apparaît après un écran de défilement) ------ */
.haut {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 15;
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; color: var(--vert-900); background: var(--blanc);
  border: 1px solid var(--gris-200); border-radius: 50%; box-shadow: 0 6px 20px rgba(27, 58, 30, .16);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, visibility .25s, transform .25s, background-color .2s;
}
.haut svg { width: 1.35rem; height: 1.35rem; }
.haut:hover { background: var(--vert-50); color: var(--vert-900); }
.loin .haut { opacity: 1; visibility: visible; transform: none; }

/* 16. Pages légales et pages courtes --------------------------------------- */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); }
.legal h2 { margin-top: 1.6em; font-size: 1.9rem; }
.legal address { font-style: normal; margin-bottom: 1em; }
.a-completer { padding: 0 .3rem; background: #ffe7a3; outline: 2px dashed #a27800; outline-offset: 1px; }
.page-courte { padding-block: clamp(2.5rem, 7vw, 4.5rem); text-align: center; }
.page-courte img { width: 8.5rem; margin: 0 auto 1.2rem; }
.page-courte p { margin-inline: auto; }
.page-courte .actions { justify-content: center; }

/* 17. Utilitaires ---------------------------------------------------------- */
.sans-coupure { white-space: nowrap; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .entete, .actions, .formulaire, .lien-evitement, .haut, .fiche { display: none !important; }
  .pied { background: none; color: #000; } .pied a { color: #000; }
}

/* 19. Actualités ------------------------------------------------------------ */
.actus { display: grid; gap: 1.2rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.actu { position: relative; display: grid; overflow: hidden; background: var(--blanc);
  border: 1px solid var(--gris-200); border-radius: var(--rayon-grand); transition: box-shadow .2s, transform .2s; }
.actu:hover, .actu:focus-within { box-shadow: var(--ombre); transform: translateY(-2px); }
.actu__visuel { position: relative; aspect-ratio: 16 / 9; background: var(--brun-50); }
.actu__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (min-width: 52rem) {
  .actu { grid-template-columns: 24rem 1fr; }
  .actu__visuel { aspect-ratio: auto; min-height: 15rem; }
  .actu__corps { align-self: center; padding: 1.6rem 2rem; }
}
.actu__picto { display: grid; place-items: center; height: 100%; }
.actu__picto img { width: 8rem; height: 8rem; }
.actu__date { position: absolute; top: .9rem; left: .9rem; margin: 0; padding: .35rem .7rem .45rem; text-align: center; line-height: 1;
  background: var(--blanc); border-radius: 10px; box-shadow: 0 2px 10px rgba(27, 58, 30, .15); }
.actu__date time { display: grid; }
.actu__jour { font-family: var(--titres); font-size: 2rem; font-weight: 700; color: var(--vert-900); font-variant-numeric: lining-nums; }
.actu__mois { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brun-800); }
.actu__corps { padding: 1.2rem 1.4rem 1.4rem; }
.actu__type { margin: 0 0 .3rem; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brun-800); }
.actu h3 { margin: 0 0 .4rem; font-size: 1.7rem; }
.actu h3 a { color: var(--vert-900); text-decoration: none; }
.actu h3 a::after { content: ""; position: absolute; inset: 0; }
.actu h3 a:hover { text-decoration: underline; }
.actu__infos { font-size: 1rem; font-weight: 600; color: var(--vert-700); }
.actu p:last-child { margin-bottom: 0; }
.actu--passee .actu__visuel img, .actu--passee .actu__picto { filter: saturate(.75); }
.exemple { display: inline-block; font-size: .9rem; }
.evenement__infos { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1rem 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--vert-900); }
.evenement__infos li { display: flex; align-items: center; gap: .45rem; }
.evenement__infos svg { width: 1.3rem; height: 1.3rem; color: var(--brun-600); }
.evenement__grille { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .evenement__grille { grid-template-columns: 1fr 26rem; } }
.evenement__photo { margin: 0; }
.evenement__photo img { width: 100%; border-radius: var(--rayon-grand); }
.evenement__photo figcaption { margin-top: .5rem; font-size: .95rem; color: var(--gris-600); }
.evenement__picto { display: grid; place-items: center; padding: 2rem; background: var(--brun-50); border-radius: var(--rayon-grand); }
.evenement__picto img { width: 10rem; height: 10rem; }
.lien-retour svg { transition: transform .2s; }
.lien-retour:hover svg { transform: translateX(-3px); }
.page-entete .actu__type { margin-top: .8rem; }
/* menu à 5 entrées sur petit écran : « Accueil » est déjà le lien du logo */
@media (max-width: 26rem) { .nav li:first-child { display: none; } }
@media (max-width: 47.99rem) { .nav a { font-size: 1rem; } }

/* 18. Teintes des fruits (cartes et fiches) ------------------------------- */
.teinte-pomme { --teinte: #cf4a35; --teinte-pale: #f9e7e5; }
.teinte-poire { --teinte: #c4b53e; --teinte-pale: #f7f5e6; }
.teinte-coing { --teinte: #dcab2c; --teinte-pale: #faf4e4; }
.teinte-nefle { --teinte: #a3622f; --teinte-pale: #f3ebe4; }
.teinte-cerise { --teinte: #c4213f; --teinte-pale: #f7e2e6; }
.teinte-griotte { --teinte: #8f1f2e; --teinte-pale: #f0e2e4; }
.teinte-prune { --teinte: #6b3079; --teinte-pale: #ece4ee; }
.teinte-mirabelle { --teinte: #e5b53a; --teinte-pale: #fcf5e5; }
.teinte-peche { --teinte: #ee9367; --teinte-pale: #fdf1eb; }
.teinte-abricot { --teinte: #ea952c; --teinte-pale: #fcf1e4; }
.teinte-noix { --teinte: #b98d58; --teinte-pale: #f6f0e9; }
.teinte-noisette { --teinte: #b47e3e; --teinte-pale: #f5eee6; }
.teinte-chataigne { --teinte: #8a4a25; --teinte-pale: #f0e7e3; }
.teinte-groseille { --teinte: #d3302f; --teinte-pale: #f9e4e4; }
.teinte-maquereau { --teinte: #a3bf47; --teinte-pale: #f3f7e7; }
.teinte-cassis { --teinte: #41255a; --teinte-pale: #e6e3ea; }
.teinte-framboise { --teinte: #d3416a; --teinte-pale: #f9e6ec; }
.teinte-myrtille { --teinte: #4f63ad; --teinte-pale: #e8ebf4; }
.teinte-raisin { --teinte: #76386d; --teinte-pale: #ede5ec; }
.teinte-kiwai { --teinte: #83aa3c; --teinte-pale: #eff4e6; }
.teinte-figue { --teinte: #6f3c63; --teinte-pale: #ece6eb; }
.teinte-sureau { --teinte: #35243f; --teinte-pale: #e5e3e6; }
.teinte-amelanche { --teinte: #5c4689; --teinte-pale: #eae7f0; }
.teinte-argousier { --teinte: #f0901f; --teinte-pale: #fdf1e2; }
