/* =====================================================================
   Bétail et Viande — Design system & site public
   Identité : ferme locale, authentique, chaleureuse, rassurante.
   ===================================================================== */

/* ---- Tokens ------------------------------------------------------- */
:root {
  --green-900: #1e3524;
  --green-800: #284631;
  --green-700: #32603e;
  --green-600: #3d7049;
  --green-500: #4f8a5c;
  --green-100: #e6efe4;

  --bordeaux: #8a2733;
  --bordeaux-dark: #6e1d27;
  --bordeaux-100: #f4e3e1;

  --cream: #faf6ec;
  --beige: #f1e9d6;
  --beige-2: #ece2cb;
  --sand: #e2d6bb;
  --brown: #6b4f3a;

  --ink: #2c2820;
  --ink-soft: #5d5648;
  --white: #ffffff;

  --ok: #3d7049;
  --warn: #b8761d;
  --danger: #a23434;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(40, 35, 25, .08);
  --shadow: 0 8px 24px rgba(40, 35, 25, .09);
  --shadow-lg: 0 18px 48px rgba(30, 53, 36, .16);

  --maxw: 1180px;
  --gap: clamp(1.2rem, 3vw, 2rem);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Brush Script MT", cursive;
}

/* ---- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--bordeaux); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-800); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(2.6rem, 6vw, 4.6rem) 0; }
.section--tight { padding: clamp(1.8rem, 4vw, 2.6rem) 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.08rem; color: var(--ink-soft); }

/* Eyebrow / heading décor */
.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .72rem; color: var(--bordeaux);
}
.section-title { text-align: center; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
  content: ""; display: block; width: 64px; height: 3px; border-radius: 3px;
  background: var(--bordeaux); margin: .55rem auto 0;
}

/* ---- Boutons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .82rem 1.5rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  text-align: center; line-height: 1.15;
}
.btn:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }
.btn--primary { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.btn--primary:hover { background: var(--bordeaux-dark); border-color: var(--bordeaux-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--sand); }
.btn--ghost:hover { background: var(--beige); color: var(--green-800); border-color: var(--green-600); }
.btn--green { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn--green:hover { background: var(--green-800); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---- Bandeau démo ----------------------------------------------- */
.demo-bar {
  background: repeating-linear-gradient(45deg, #f6edd4, #f6edd4 14px, #f1e6c6 14px, #f1e6c6 28px);
  color: var(--brown); text-align: center; font-size: .82rem; font-weight: 600;
  padding: .42rem 1rem; border-bottom: 1px solid var(--sand);
}
.demo-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brown); background: #f4ead0; border: 1px dashed var(--brown);
  padding: .2rem .5rem; border-radius: 999px;
}

/* ---- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250,246,236,.94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand);
}
.header-inner { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .7rem 0; min-height: 76px; }
.brand { display: flex; align-items: center; justify-content: center; gap: .7rem; flex-shrink: 0; min-height: 46px; }
.brand__logo { width: 46px; height: 46px; color: var(--green-700); flex-shrink: 0; }
.brand__logo-img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand__name-img { width: 154px; max-height: 42px; object-fit: contain; object-position: left center; }
.brand__text { line-height: 1; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--green-800); }
.brand__baseline { font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 1.35rem; }
.main-nav a { font-weight: 600; font-size: .94rem; color: var(--ink); padding: .3rem 0; position: relative; }
.main-nav a:hover { color: var(--green-700); }
.main-nav a.active { color: var(--green-800); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--green-600); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-shrink: 0; min-height: 46px; }
.fb-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: #1877f2; color: #fff; transition: .15s; flex-shrink: 0; }
.fb-link svg { width: 20px; height: 20px; display: block; }
.fb-link:hover { background: #145dc2; color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--sand); border-radius: 10px;
  width: 44px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--green-800); }

/* ---- Hero -------------------------------------------------------- */
.hero { position: relative; }
.hero__grid {
  position: relative; min-height: 460px; border-radius: 0;
  display: grid; align-items: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--cream) 0%, rgba(250,246,236,.92) 34%, rgba(250,246,236,.35) 56%, rgba(250,246,236,0) 78%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(2.4rem,6vw,4.4rem) 0; }
.hero__content { max-width: 540px; }
.hero h1 { color: var(--green-800); margin-bottom: .8rem; }
.hero p { color: var(--ink); font-size: 1.05rem; max-width: 460px; }
.hero__card {
  position: absolute; right: 0; bottom: 1.6rem; z-index: 3; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.3rem;
  display: grid; gap: .65rem; max-width: 280px;
}
.hero__card-row { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; }
.hero__card-row svg { width: 26px; height: 26px; color: var(--green-700); flex-shrink: 0; }
.hero__card-row strong { color: var(--bordeaux); }

/* ---- Grille colis ----------------------------------------------- */
.colis-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(4, 1fr); margin-top: 1.6rem; }
.colis-card {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: .2s ease;
}
.colis-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.colis-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--beige-2); }
.colis-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip {
  position: absolute; top: .6rem; left: .6rem; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: .22rem .55rem; border-radius: 999px;
}
.cat-chip.boeuf { background: var(--bordeaux); }
.cat-chip.porc { background: #c06a8e; }
.cat-chip.veau { background: var(--brown); }
.cat-chip.mouton { background: var(--green-600); }
.colis-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; text-align: center; }
.colis-card__name { font-family: var(--serif); font-size: 1.3rem; color: var(--green-800); margin-bottom: .15rem; }
.colis-card__price { font-size: 1.02rem; margin-bottom: .7rem; color: var(--ink); }
.colis-card__price strong { color: var(--bordeaux); font-weight: 700; }
.compo { display: grid; gap: .28rem; text-align: left; margin: 0 auto .9rem; font-size: .9rem; color: var(--ink-soft); width: fit-content; }
.compo li { display: flex; align-items: center; gap: .45rem; }
.compo li svg { width: 16px; height: 16px; color: var(--green-600); flex-shrink: 0; }
.stock-badge {
  display: inline-block; font-size: .8rem; font-weight: 600; padding: .3rem .7rem;
  border-radius: 999px; margin-bottom: .8rem;
}
.stock-badge.dispo { background: var(--green-100); color: var(--green-800); }
.stock-badge.faible { background: #fbeed3; color: var(--warn); }
.stock-badge.complet { background: #f1ddd9; color: var(--danger); }
.colis-card__actions { margin-top: auto; display: grid; gap: .5rem; }

/* ---- Étapes "Comment ça marche" --------------------------------- */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: 1.8rem; }
.step { display: flex; align-items: center; gap: .9rem; max-width: 250px; }
.step__icon { position: relative; width: 70px; height: 70px; flex-shrink: 0; border-radius: 50%;
  background: var(--beige); display: grid; place-items: center; color: var(--green-700); }
.step__icon svg { width: 34px; height: 34px; }
.step__num { position: absolute; bottom: -2px; right: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bordeaux); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.step__text { font-size: .94rem; }
.step__text strong { display: block; color: var(--green-800); }
.step-arrow { color: var(--sand); align-self: center; }
.step-arrow svg { width: 30px; height: 30px; }

/* ---- Encart livraison ------------------------------------------- */
.info-box {
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; grid-template-columns: 200px 1fr;
  gap: clamp(1.2rem, 4vw, 2.4rem); align-items: center; box-shadow: var(--shadow-sm);
}
.info-box__illu { width: 100%; color: var(--green-600); }
.checklist { display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist li svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }

/* ---- Section ferme ---------------------------------------------- */
.farm {
  background: var(--beige); border: 1px solid var(--sand); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
}
.farm__text { padding: clamp(1.6rem, 4vw, 2.6rem); }
.farm__text h2::after { content:""; display:block; width:54px; height:3px; background:var(--bordeaux); border-radius:3px; margin-top:.5rem;}
.farm__script { font-family: var(--script); font-size: 1.9rem; color: var(--bordeaux); display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.farm__media { min-height: 280px; }
.farm__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Facebook CTA ----------------------------------------------- */
.fb-cta {
  background: #eef3fb; border: 1px solid #d6e2f4; border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem; display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
}
.fb-cta__icon { width: 64px; height: 64px; border-radius: 50%; background: #1877f2; color: #fff;
  display: grid; place-items: center; flex-shrink: 0; }
.fb-cta__icon svg { width: 34px; height: 34px; }
.fb-cta__body { flex: 1; min-width: 220px; }
.fb-cta__body h3 { color: var(--green-800); margin-bottom: .2rem; }
.fb-cta .btn { margin-left: auto; }

/* ---- Footer ----------------------------------------------------- */
.site-footer { background: var(--green-900); color: #d9e3d6; margin-top: 3rem; }
.footer-main { padding: 2.4rem 0 1.4rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-main--home { grid-template-columns: 1.4fr 1fr; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand .brand__logo { color: #fff; width: 42px; height: 42px; }
.footer-brand .brand__name { color: #fff; font-size: 1.25rem; }
.footer-brand small { color: #aebfa9; font-size: .82rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: .8rem; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a, .footer-info-row { color: #cdd9c9; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-info-row { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-info-row svg { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1rem 0; display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #9fb39a; }
.footer-bottom a { color: #cdd9c9; }

/* ---- Pied de page / cartes process génériques ------------------- */
.page-head { background: var(--beige); border-bottom: 1px solid var(--sand); padding: clamp(2rem,5vw,3.2rem) 0; }
.page-head h1 { margin-bottom: .4rem; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.breadcrumb a { color: var(--green-700); }

/* ---- Filtres ----------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.chip {
  border: 1.5px solid var(--sand); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: .42rem .95rem; font-size: .88rem; font-weight: 600; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--green-600); color: var(--green-800); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---- Fiche colis ------------------------------------------------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.gallery__main { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand); background: var(--beige-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery__thumbs button { width: 76px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--beige-2); }
.gallery__thumbs button.active { border-color: var(--green-600); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-block { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.price-block .price { font-family: var(--serif); font-size: 2rem; color: var(--bordeaux); font-weight: 600; }
.price-block .weight { color: var(--ink-soft); }
.facts { display: grid; gap: .5rem; margin: 1rem 0; }
.fact { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--sand); font-size: .95rem; }
.fact span:first-child { color: var(--ink-soft); }
.fact strong { color: var(--green-800); }

/* ---- Cartes / panneaux ------------------------------------------ */
.panel { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); padding: clamp(1.2rem,3vw,1.8rem); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 1.2rem; }
.panel h3 { margin-bottom: .8rem; }

/* ---- Formulaires ------------------------------------------------ */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--green-800); }
.field .req { color: var(--bordeaux); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .98rem; padding: .7rem .85rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand); background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: .8rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green-700); }
.form-narrow { max-width: 460px; margin-inline: auto; }

/* ---- Alertes ----------------------------------------------------- */
.alert { border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert--info { background: var(--green-100); color: var(--green-800); }
.alert--warn { background: #fbeed3; color: #8a5a12; }
.alert--demo { background: #f4ead0; color: var(--brown); border: 1px dashed var(--brown); }

/* ---- Récap / lignes prix ---------------------------------------- */
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--sand); font-size: .95rem; }
.summary-line.total { border-bottom: none; border-top: 2px solid var(--green-700); margin-top: .4rem; padding-top: .7rem; font-size: 1.05rem; }
.summary-line.total strong { font-family: var(--serif); font-size: 1.3rem; color: var(--green-800); }
.summary-line .accent { color: var(--bordeaux); font-weight: 700; }

/* ---- Stepper (commander) ---------------------------------------- */
.stepper { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.6rem; counter-reset: s; }
.stepper__item { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); flex: 1; min-width: 130px; }
.stepper__num { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--sand); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.stepper__item.active { color: var(--green-800); font-weight: 700; }
.stepper__item.active .stepper__num { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.stepper__item.done .stepper__num { background: var(--green-100); border-color: var(--green-600); color: var(--green-700); }

/* ---- Choix radio cartes ----------------------------------------- */
.option-cards { display: grid; gap: .8rem; }
.option-card { border: 1.5px solid var(--sand); border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; display: flex; gap: .8rem; transition: .15s; }
.option-card:hover { border-color: var(--green-600); }
.option-card.selected { border-color: var(--green-700); background: var(--green-100); }
.option-card input { margin-top: 4px; accent-color: var(--green-700); }
.option-card__body { flex: 1; }
.option-card__title { font-weight: 700; color: var(--green-800); }

/* ---- Formulaire de contact --------------------------------------- */
.contact-form {
  max-width: 620px;
  margin: 1.2rem auto 0;
}
.contact-form__intro {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}
.contact-form__body .btn--block {
  margin-top: .6rem;
}

/* ---- Récapitulatif colis transféré au formulaire ---------------- */
.contact-colis-summary {
  max-width: 620px;
  margin: 1rem auto 1.4rem;
  border: 1px solid var(--green-600);
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.contact-colis-summary h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  color: var(--green-800);
}
.contact-summary-row {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding: .3rem 0;
  font-size: .9rem;
  border-bottom: 1px dashed rgba(0,0,0,.1);
}
.contact-summary-row:last-child {
  border-bottom: none;
}
.contact-summary-row span:first-child {
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-summary-row span:last-child {
  text-align: right;
  max-width: 55%;
}
.contact-summary-compo {
  margin: .5rem 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
}
.contact-summary-compo li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .15rem 0;
}
.contact-summary-compo li svg {
  width: 14px;
  height: 14px;
  color: var(--green-600);
  flex-shrink: 0;
}
.contact-summary-rempl {
  margin: .4rem 0 0;
  font-size: .88rem;
}
.contact-summary-rempl > strong {
  color: var(--green-800);
  font-size: .9rem;
}
.contact-summary-rempl ul {
  margin: .25rem 0 0;
}
.contact-summary-rempl li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .15rem 0;
  font-size: .86rem;
  color: var(--ink-soft);
}
.contact-summary-arrow {
  color: var(--green-700);
  font-weight: 700;
}

/* ---- Statuts commande ------------------------------------------- */
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; padding: .28rem .7rem; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.nouvelle { background: #eef3fb; color: #2c5aa0; }
.status.confirmee { background: var(--green-100); color: var(--green-800); }
.status.preparee { background: #fbeed3; color: #8a5a12; }
.status.livraison { background: #e7eefb; color: #2c5aa0; }
.status.livree, .status.retiree { background: #e2efe0; color: var(--green-700); }
.status.annulee { background: #f1ddd9; color: var(--danger); }
.status.prete { background: #fff2d9; color: #8a5a12; }

/* ---- Tableaux (public) ------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; background: var(--beige); color: var(--green-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .75rem .9rem; border-bottom: 1px solid var(--sand); white-space: nowrap; }
table.data td { padding: .8rem .9rem; border-bottom: 1px solid var(--beige-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fcfaf3; }

/* ---- Simulateur livraison --------------------------------------- */
.sim-result { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px dashed var(--sand); background: var(--cream); }
.sim-result.ok { border-color: var(--green-600); background: var(--green-100); }
.sim-result.ko { border-color: var(--danger); background: #f6e4e1; }

/* ---- 404 --------------------------------------------------------- */
.error-page { text-align: center; padding: clamp(3rem,8vw,6rem) 0; }
.error-page .big { font-family: var(--serif); font-size: clamp(4rem,14vw,8rem); color: var(--green-700); line-height: 1; }

/* ---- Repli image ------------------------------------------------ */
.img-fallback {
  width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem; text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(135deg, var(--beige-2), var(--sand));
  color: var(--brown); padding: 1rem; font-size: .8rem; font-weight: 600;
}
.img-fallback svg { width: 42px; height: 42px; opacity: .55; }
.img-fallback span { opacity: .85; max-width: 90%; line-height: 1.3; }

/* ---- Prose (pages légales) -------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .3rem; }

/* ---- Utilitaires ------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.stack > * + * { margin-top: 1.2rem; }
.mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-800); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 1000px) {
  .colis-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .farm { grid-template-columns: 1fr; }
  .farm__media { min-height: 220px; order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .hero__card { position: static; max-width: none; margin-top: 1.4rem; }
  .hero__media::after { background: linear-gradient(180deg, rgba(250,246,236,.55), rgba(250,246,236,.92)); }
  .footer-main { grid-template-columns: 1fr; gap: 1.6rem; }
  .info-box { grid-template-columns: 1fr; }
  .info-box__illu { max-width: 180px; margin: 0 auto; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body[data-page="accueil"] .header-inner { gap: .55rem; min-height: 68px; }
  body[data-page="accueil"] .brand { gap: .45rem; min-width: 0; }
  body[data-page="accueil"] .brand__logo-img { width: 38px; height: 38px; }
  body[data-page="accueil"] .brand__name-img { width: 106px; max-height: 34px; }
  body[data-page="accueil"] .header-actions { gap: .45rem; }
  body[data-page="accueil"] .fb-link { width: 34px; height: 34px; }
  .colis-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .fb-cta { flex-direction: column; text-align: center; }
  .fb-cta .btn { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Contact responsive ------------------------------------------ */
@media (max-width: 1440px) {
  .contact-form,
  .contact-colis-summary {
    max-width: 620px;
  }
}
@media (max-width: 768px) {
  .contact-colis-summary {
    padding: .85rem 1rem;
  }
  .contact-summary-row {
    font-size: .86rem;
  }
  .contact-summary-row span:last-child {
    max-width: 50%;
  }
}
@media (max-width: 390px) {
  .contact-form,
  .contact-colis-summary {
    max-width: 100%;
  }
  .contact-form__body .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-colis-summary {
    padding: .7rem .85rem;
    font-size: .84rem;
  }
  .contact-summary-row {
    flex-direction: column;
    gap: .15rem;
    padding: .35rem 0;
  }
  .contact-summary-row span:last-child {
    max-width: 100%;
    text-align: left;
  }
}

/* ---- Menu mobile ------------------------------------------------- */
.mobile-menu { display: none; }
.mobile-menu:not([hidden]) {
  display: block; position: sticky; top: 0; z-index: 49;
  background: var(--cream); border-bottom: 1px solid var(--sand);
  padding: 1rem 1.2rem 1.4rem; box-shadow: var(--shadow);
}
.mobile-menu ul { display: grid; gap: .2rem; }
.mobile-menu a { display: block; padding: .7rem .4rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--beige-2); }
.mobile-menu a.active { color: var(--green-800); }
