:root {
  --fond: #fbf7ef;
  --fond-teinte: #f3ecde;
  --surface: #ffffff;
  --encre: #22201a;
  --encre-douce: #6a6152;
  --trait: #e7dfcf;
  --accent: #b5401f;
  --accent-fonce: #922f14;
  --accent-clair: #fbe7df;
  --accent-texte: #fff;
  --vert: #3f5d2a;
  --vert-fonce: #2f3d22;
  --vert-clair: #e6eedb;
  --or: #d9a441;
  --alerte: #b3261e;
  --alerte-fond: #fbe9e7;
  --ombre: 0 1px 2px rgb(50 35 15 / 6%), 0 8px 24px rgb(50 35 15 / 7%);
  --ombre-forte: 0 2px 4px rgb(50 35 15 / 8%), 0 18px 40px rgb(50 35 15 / 14%);
  --rayon: 16px;
  --rayon-petit: 10px;
  --titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 16px/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .6em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }

.contenu { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .contenu { padding: 0 28px; } }
.contenu--etroit { max-width: 760px; }
.centre { text-align: center; }
.insecable { white-space: nowrap; }
.note { color: var(--encre-douce); font-size: .9rem; }
.note--centre { text-align: center; margin-top: 10px; }
.facultatif { color: var(--encre-douce); font-weight: 400; }
.vide { color: var(--encre-douce); font-style: italic; list-style: none; }
.erreur { background: var(--alerte-fond); color: var(--alerte); padding: 10px 14px; border-radius: var(--rayon-petit); }
.lien { font-weight: 600; font-size: .9rem; }

.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--accent); font-weight: 700; margin-bottom: .6em; }
.surtitre--clair { color: #f6d9a8; }
.surtitre--centre { text-align: center; }

/* Boutons ---------------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: var(--accent); color: var(--accent-texte);
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: .7em 1.4em; font: 600 1rem var(--texte); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s;
}
.bouton:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bouton--petit { padding: .45em 1em; font-size: .9rem; }
.bouton--grand { padding: .9em 1.8em; font-size: 1.05rem; box-shadow: 0 8px 24px rgb(181 64 31 / 35%); }
.bouton--large { width: 100%; padding: .95em; font-size: 1.05rem; }
.bouton--discret { background: transparent; color: var(--accent); }
.bouton--discret:hover { background: var(--accent-clair); border-color: var(--accent); }
.bouton--verre { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 55%); color: #fff; backdrop-filter: blur(6px); }
.bouton--verre:hover { background: rgb(255 255 255 / 26%); border-color: #fff; }
.bouton--danger { background: transparent; color: var(--alerte); border-color: var(--alerte); }
.bouton--danger:hover { background: var(--alerte-fond); }
.bouton--ajout { padding: .55em 1.1em; font-size: .92rem; }
.bouton--ajout:disabled { background: var(--fond-teinte); border-color: var(--trait); color: var(--encre-douce); opacity: 1; }

/* En-tête ---------------------------------------------------------------- */

.entete {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: #fff;
  transition: background .25s, box-shadow .25s, color .25s;
}
.entete--defile { background: rgb(251 247 239 / 94%); backdrop-filter: blur(10px); color: var(--encre);
  box-shadow: 0 1px 0 var(--trait); }
.entete__ligne { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font: 600 1.15rem var(--titre); min-width: 0; margin-right: auto; }
.marque span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: inherit; text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .nav { display: none; } }
.bouton-panier { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.bouton-panier:hover { background: var(--accent-fonce); }
.bouton-panier__nb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: var(--accent); font-size: .8rem; font-weight: 800; }

/* Héros ------------------------------------------------------------------ */

.heros { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--vert-fonce); }
.heros__image { position: absolute; inset: 0; background-size: cover; background-position: center 70%; }
.heros::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(20 24 12 / 55%) 0%, rgb(20 24 12 / 10%) 30%, rgb(20 24 12 / 25%) 55%, rgb(20 24 12 / 78%) 100%); }
.heros:not(.heros--photo)::after {
  background: linear-gradient(90deg, rgb(47 61 34 / 92%) 0%, rgb(47 61 34 / 70%) 38%, rgb(47 61 34 / 0%) 70%),
              linear-gradient(180deg, rgb(47 61 34 / 50%) 0%, transparent 25%); }
/* Photo panoramique : affichée en entier, texte dessous sur fond vert. */
.heros--panorama { display: block; min-height: 0; }
.heros--panorama .heros__image { position: relative; inset: auto; width: 100%; aspect-ratio: var(--ratio, 3);
  min-height: 220px; max-height: 72vh; background-position: center; }
.heros--panorama::after { inset: 0 0 auto; height: 150px;
  background: linear-gradient(180deg, rgb(20 24 12 / 60%), transparent); }
.heros--panorama .heros__contenu { padding-top: 40px; padding-bottom: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 0 48px; align-items: start; }
.heros--panorama .heros__contenu > * { grid-column: 1; }
.heros--panorama .heros__contenu > .surtitre, .heros--panorama .heros__contenu > h1 { grid-column: 1 / -1; }
.heros--panorama .prochain { grid-column: 2; grid-row: 3 / span 2; align-self: center; }
.heros--panorama h1 { font-size: clamp(1.6rem, 6.2vw, 3.8rem); }
.heros--panorama .heros__actions { margin-bottom: 0; }
@media (max-width: 860px) {
  .heros--panorama .heros__contenu { display: block; padding-top: 28px; }
  .heros--panorama .heros__actions { margin-bottom: 28px; }
}
.heros__contenu { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 56px; }
/* Le nom de la ferme tient sur une ligne ; un nom trop long pour l'écran
   repasse sur deux lignes (classe posée par app.js). */
.heros h1 { white-space: nowrap; font-size: clamp(1.6rem, 6.6vw, 4.4rem); text-shadow: 0 2px 30px rgb(0 0 0 / 25%); }
.heros h1.titre--long { white-space: normal; }
.heros__accroche { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 32em; opacity: .95; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.prochain { display: inline-flex; gap: 14px; align-items: flex-start; background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 28%); backdrop-filter: blur(10px); border-radius: var(--rayon);
  padding: 14px 20px; max-width: 100%; }
.prochain p { margin: 0; }
.prochain__pastille { width: 10px; height: 10px; border-radius: 50%; background: #7ddc6a; margin-top: 7px; flex: none;
  box-shadow: 0 0 0 4px rgb(125 220 106 / 25%); animation: pouls 2s infinite; }
@keyframes pouls { 50% { box-shadow: 0 0 0 8px rgb(125 220 106 / 0%); } }
@media (prefers-reduced-motion: reduce) { .prochain__pastille { animation: none; } html { scroll-behavior: auto; } }
.prochain__titre { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; font-weight: 700; }
.prochain__date { font-weight: 600; font-size: 1.05rem; }
.prochain__limite { font-size: .88rem; opacity: .85; }

/* Atouts ----------------------------------------------------------------- */

.atouts { background: var(--surface); border-bottom: 1px solid var(--trait); }
.atouts__liste { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px;
  padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 900px) { .atouts__liste { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .atouts__liste { grid-template-columns: 1fr; } }
.atout { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.atout p { margin: 0; }
.atout__picto { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--vert-clair); color: var(--vert);
  display: grid; place-items: center; }
.atout__picto svg { width: 24px; height: 24px; }
.atout__titre { font-weight: 700; }
.atout__texte { color: var(--encre-douce); font-size: .9rem; line-height: 1.45; }

/* Blocs ------------------------------------------------------------------ */

.bloc { padding: 80px 0; }
@media (max-width: 700px) { .bloc { padding: 56px 0; } }
.bloc--teinte { background: var(--fond-teinte); }
.bloc--sombre { background: var(--vert-fonce); color: #f3efe4; }
.bloc__tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; margin-bottom: 32px; }
.bloc__tete h2 { margin: 0; }
.bloc__intro { max-width: 34em; color: var(--encre-douce); margin: 0; }

/* Choix du retrait ------------------------------------------------------- */

.choix-retrait { margin-bottom: 36px; }
.choix-retrait__titre { font: 600 1.15rem var(--titre); margin-bottom: 14px; }
.retraits { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.retrait { flex: 0 0 auto; width: 270px; scroll-snap-align: start; text-align: left; display: flex; gap: 14px;
  background: var(--surface); border: 2px solid var(--trait); border-radius: var(--rayon); padding: 14px;
  cursor: pointer; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.retrait:hover:not(:disabled) { border-color: color-mix(in srgb, var(--vert) 45%, var(--trait)); transform: translateY(-2px); }
.retrait--choisi { border-color: var(--vert); box-shadow: 0 0 0 4px var(--vert-clair), var(--ombre); }
.retrait:disabled { cursor: not-allowed; opacity: .55; }
.retrait__cal { flex: none; align-self: flex-start; min-height: 84px; width: 58px; border-radius: var(--rayon-petit); background: var(--fond-teinte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; line-height: 1.1;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-douce); }
.retrait__cal strong { font: 700 1.6rem var(--titre); color: var(--encre); letter-spacing: 0; }
.retrait--choisi .retrait__cal { background: var(--vert); color: #dfe9d3; }
.retrait--choisi .retrait__cal strong { color: #fff; }
.retrait__info { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.retrait__date { font-weight: 700; font-size: .98rem; }
.retrait__lieu { color: var(--encre); }
.retrait__heure, .retrait__note { color: var(--encre-douce); }
.retrait__note { font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.retrait__etat { margin-top: 6px; font-size: .78rem; color: var(--vert); font-weight: 700; }
.retrait__etat--ferme { color: var(--encre-douce); }

/* Produits --------------------------------------------------------------- */

.produits { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.produit { background: var(--surface); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; border: 2px solid transparent; }
.produit:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); }
.produit--panier { border-color: var(--vert); }
.produit__visuel { position: relative; aspect-ratio: 4 / 3; background: var(--fond-teinte); overflow: hidden; }
.produit__visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.produit:hover .produit__visuel img { transform: scale(1.04); }
.produit__zoom { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.produit__zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.produit__badge { position: absolute; top: 12px; left: 12px; background: var(--or); color: #2a1d05; font-size: .75rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.produit__dispo { position: absolute; top: 12px; right: 12px; }
.pastille { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.pastille--peu { color: var(--accent); }
.pastille--epuise { background: var(--encre); color: #fff; }
.pastille--neutre { color: var(--encre-douce); }
.produit__corps { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.produit__cat { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--vert); font-weight: 800; margin-bottom: .4em; }
.produit h3 { margin-bottom: .35em; font-size: 1.3rem; }
.produit__desc { color: var(--encre-douce); font-size: .93rem; line-height: 1.5; }
.produit__pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.produit__prix { font: 700 1.35rem var(--titre); color: var(--encre); margin: 0; white-space: nowrap; }
.produit__estim { font-size: .8rem; color: var(--encre-douce); margin: 0; }

.compteur { display: inline-flex; align-items: center; background: var(--vert); color: #fff; border-radius: 999px; flex: none; }
.compteur button { width: 38px; height: 38px; border: 0; background: none; color: inherit; font-size: 1.25rem; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center; }
.compteur button:hover:not(:disabled) { background: rgb(255 255 255 / 16%); }
.compteur button:disabled { opacity: .4; cursor: not-allowed; }
.compteur span { min-width: 22px; text-align: center; font-weight: 800; }

/* Panier ----------------------------------------------------------------- */

.commande { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .commande { grid-template-columns: 1fr; } }
.recap-panier, .coordonnees { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px; }
.panier-retrait__carte { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: var(--vert-clair); border-radius: var(--rayon-petit); padding: 12px 16px; margin-bottom: 8px; }
.panier-retrait__carte p { margin: 0; }
.panier-retrait__titre { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 800; color: var(--vert); }
.panier-retrait__date { font-weight: 700; }
.panier { list-style: none; padding: 0; margin: 0; }
.panier__vide { text-align: center; padding: 28px 0; color: var(--encre-douce); }
.ligne { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px; padding: 14px 0; }
.ligne + .ligne { border-top: 1px solid var(--trait); }
.ligne p { margin: 0; }
.ligne__vignette { width: 56px; height: 56px; border-radius: var(--rayon-petit); object-fit: cover; background: var(--fond-teinte); }
.ligne__nom { font-weight: 700; line-height: 1.3; }
.ligne__prix { font-weight: 700; min-width: 70px; text-align: right; }
.ligne .compteur button { width: 32px; height: 32px; font-size: 1.1rem; }
@media (max-width: 520px) {
  .ligne { grid-template-columns: 48px 1fr auto; }
  .ligne__vignette { width: 48px; height: 48px; }
  .ligne__prix { grid-column: 2 / -1; text-align: left; font-size: .9rem; }
}
.panier-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--encre); margin-top: 6px; padding-top: 14px; font-size: 1.05rem; }
.panier-total:empty { display: none; }
.panier-total strong { font: 700 1.6rem var(--titre); }
.panier-total .note { flex-basis: 100%; margin: 4px 0 0; }

.coordonnees fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.coordonnees legend { font: 600 1.3rem var(--titre); padding: 0; margin-bottom: 16px; }
.coordonnees fieldset:disabled { opacity: .5; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 600px) { .champs { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; color: var(--encre-douce); }
input, textarea, select {
  font: 400 1rem var(--texte); padding: .7em .85em; border: 1.5px solid var(--trait); border-radius: var(--rayon-petit);
  background: var(--fond); color: var(--encre); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--vert); outline: none; box-shadow: 0 0 0 4px var(--vert-clair); background: #fff; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirmation { max-width: 620px; margin: 0 auto; background: var(--surface); border-radius: var(--rayon);
  padding: 36px 28px; text-align: center; box-shadow: var(--ombre-forte); }
.confirmation:focus { outline: none; }
.confirmation__icone { width: 64px; height: 64px; border-radius: 50%; background: var(--vert); color: #fff;
  display: grid; place-items: center; margin: 0 auto 14px; }
.confirmation__ok { color: var(--vert); font: 600 1.6rem var(--titre); }
.numero { font: 700 2.4rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .18em; margin: 0 0 .3em; }
.numero--petit { font-size: 1.2rem; }
.envois { list-style: none; padding: 12px 16px; margin: 16px 0 0; background: var(--vert-clair); color: var(--vert);
  border-radius: var(--rayon-petit); font-weight: 600; font-size: .92rem; text-align: left; }
.envois li::before { content: "✓ "; }
.qr-commande { margin: 14px auto 10px; }
.qr-commande img { width: 180px; height: 180px; margin: 0 auto; padding: 8px; background: #fff;
  border: 1px solid var(--trait); border-radius: var(--rayon-petit); image-rendering: pixelated; }
.qr-commande figcaption { font-size: .88rem; color: var(--encre-douce); max-width: 26em; margin: 8px auto 0; }
.qr-commande--suivi { text-align: center; }
.qr-commande--suivi img { width: 140px; height: 140px; }
.reprise { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--vert-clair); border-radius: var(--rayon); padding: 14px 18px; margin-bottom: 18px; }
.reprise p { margin: 0; }
.reprise__titre { font-weight: 700; color: var(--vert); }
.carte__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.creneaux { margin: 12px 0 6px; }
.creneaux__titre { font-weight: 700; margin-bottom: 8px; }
.creneaux__liste { display: flex; flex-wrap: wrap; gap: 8px; }
.creneau { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: var(--rayon-petit);
  border: 2px solid var(--trait); background: var(--surface); cursor: pointer; color: inherit; font-size: .9rem; }
.creneau span { font-size: .75rem; color: var(--vert); font-weight: 600; }
.creneau--choisi { border-color: var(--vert); background: var(--vert-clair); }
.creneau:disabled { opacity: .5; cursor: not-allowed; }
.creneau:disabled span { color: var(--encre-douce); }
.bouton--attente { background: var(--surface); color: var(--accent); }
.bouton--attente:hover { background: var(--accent-clair); }
.fenetre { border: 0; border-radius: var(--rayon); padding: 26px 24px; width: min(520px, calc(100vw - 24px));
  background: var(--fond); color: var(--encre); box-shadow: var(--ombre-forte); }
.fenetre::backdrop { background: rgb(30 20 10 / 50%); }
.fenetre h2 { font-size: 1.6rem; }
.fenetre__fermer { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--encre-douce); }
.recap__pesee { display: block; color: var(--encre-douce); font-size: .8rem; }
.recap { text-align: left; margin: 22px 0; border-top: 1px solid var(--trait); padding-top: 16px; }
.recap__lignes { list-style: none; padding: 0; margin: 12px 0; }
.recap__lignes li, .recap__total { display: flex; justify-content: space-between; gap: 12px; }
.recap__lignes li { padding: 4px 0; }
.recap__total { border-top: 1px solid var(--trait); padding-top: 8px; font-weight: 700; }

/* Comment ça marche ------------------------------------------------------ */

.etapes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: none; }
@media (max-width: 800px) { .etapes { grid-template-columns: 1fr; } }
.etapes li { background: var(--surface); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre); position: relative; }
.etapes__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-clair); color: var(--accent); font: 700 1.4rem var(--titre); margin-bottom: 14px; }
.etapes p { color: var(--encre-douce); margin: 0; }

/* Élevage ---------------------------------------------------------------- */

.ferme { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .ferme { grid-template-columns: 1fr; } }
.presentation { font-size: 1.08rem; line-height: 1.7; color: #e3dfd2; }
.ferme__lots h3 { color: #fff; }
.lots { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lot { background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%); border-radius: var(--rayon); padding: 16px 18px; }
.lot p { margin: 0; }
.lot__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lot__age { color: #cfe0b8; }
.lot__age strong { font: 700 2rem var(--titre); color: #fff; }
.lot__nom { font-weight: 700; color: #fff; text-align: right; }
.lot__nom span { display: block; font-weight: 400; font-size: .85rem; color: #cfd3c4; }
.lot__jauge { height: 6px; border-radius: 999px; background: rgb(255 255 255 / 12%); margin: 10px 0; overflow: hidden; }
.lot__jauge span { display: block; height: 100%; background: linear-gradient(90deg, #9cc27a, var(--or)); border-radius: inherit; }
.lot__detail { font-size: .9rem; color: #d7d6cb; }
.lot__note { font-size: .85rem; color: #b9bdae; font-style: italic; margin-top: 4px !important; }

.galerie { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 200px; }
.galerie li:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } }
.galerie__vignette { all: unset; position: relative; display: block; width: 100%; height: 100%; border-radius: var(--rayon);
  overflow: hidden; cursor: zoom-in; }
.galerie__vignette:focus-visible { outline: 3px solid var(--or); }
.galerie__vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galerie__vignette:hover img { transform: scale(1.05); }
.galerie__vignette span { position: absolute; inset: auto 0 0; padding: 24px 14px 10px; font-size: .88rem; color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 65%)); }

.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.visionneuse::backdrop { background: rgb(15 12 8 / 85%); }
.visionneuse img { max-width: 100%; max-height: 84vh; border-radius: var(--rayon-petit); margin: 0 auto; }
.visionneuse p { color: #fff; text-align: center; margin-top: 10px; }
.visionneuse__fermer { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* Suivi ------------------------------------------------------------------ */

.suivi { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin: 28px 0 16px; }
@media (max-width: 600px) { .suivi { grid-template-columns: 1fr; } }
.carte { background: var(--surface); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.carte__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.statut { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--fond-teinte); color: var(--encre-douce); white-space: nowrap; }
.statut--nouvelle { background: #fdf0d5; color: #8a5a00; }
.statut--confirmee { background: #e3edf9; color: #1f4f86; }
.statut--prete { background: var(--vert-clair); color: var(--vert); }
.statut--retiree { background: #ecebe8; color: #555; }
.statut--annulee { background: var(--alerte-fond); color: var(--alerte); }

/* Barre panier (mobile surtout) ------------------------------------------ */

.barre-panier { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--encre); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: var(--ombre-forte);
  animation: monte .25s ease-out; }
.barre-panier__info { display: flex; gap: 12px; align-items: baseline; }
.barre-panier__info span { opacity: .8; font-size: .9rem; }
.barre-panier__info strong { font-size: 1.1rem; }
@keyframes monte { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Pied ------------------------------------------------------------------- */

.pied { background: #1b1a15; color: #cfc9ba; padding: 56px 0 72px; font-size: .95rem; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pied__grille { grid-template-columns: 1fr; } }
.pied__nom { display: flex; align-items: center; gap: 10px; font: 600 1.25rem var(--titre); color: #fff; }
.pied__titre { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: #8f8a7c; }
.pied p:empty { display: none; }
