/* =============================================================================
   MISE EN PAGE ET COMPOSANTS
   -----------------------------------------------------------------------------
   Les couleurs, polices et tailles sont dans theme.css.

   Sommaire
     1.  Base (remise à zéro, typographie, utilitaires)
     2.  Éléments communs (conteneur, sections, titres, boutons, statut)
     3.  Bandeau d'annonce et en-tête
     4.  Accueil
     5.  La maison
     6.  Nos viandes
     7.  Carte de découpe
     8.  L'ardoise
     9.  Nos éleveurs
     10. Traiteur
     11. Avis
     12. Infos pratiques
     13. Contact et formulaire
     14. Pied de page
     15. Page mentions légales
     16. Animations et préférences de mouvement
   ========================================================================== */


/* =============================================================================
   1. BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hauteur-entete);
}

body {
  margin: 0;
  background: var(--fumoir);
  color: var(--suif);
  font-family: var(--police-texte);
  font-size: var(--t-texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-ouvert { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--police-titres);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--sang); color: var(--suif); }

:focus-visible {
  outline: 2px solid var(--focus, var(--laiton-clair));
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lien-evitement {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--laiton);
  color: var(--fumoir);
  font-weight: 600;
}
.lien-evitement:focus { top: 16px; }

.icone {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sans-js {
  padding: 2rem var(--marge-laterale);
  text-align: center;
}


/* =============================================================================
   2. ÉLÉMENTS COMMUNS
   ========================================================================== */

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--marge-laterale));
  margin-inline: auto;
  padding-inline: var(--marge-laterale);
}

/* Sections : fond et couleur de texte selon la variante */
.section { padding-block: var(--espace-section); }

.section--clair   { background: var(--suif);   color: var(--encre); --focus: var(--sang); }
.section--clair-2 { background: var(--suif-2); color: var(--encre); --focus: var(--sang); }
.section--sombre  { background: var(--fumoir); color: var(--suif); }

.titre-section {
  font-size: var(--t-titre);
  max-width: 16ch;
  text-wrap: balance;
}

.entete-section {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.entete-section__intro {
  max-width: 52ch;
  font-size: var(--t-moyen);
  line-height: 1.45;
  opacity: 0.82;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-size: var(--t-discret);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.bouton--plein { background: var(--laiton); color: var(--fumoir); }
.bouton--plein:hover { background: var(--laiton-clair); }

.bouton--contour { border-color: rgba(212, 178, 122, 0.55); color: var(--suif); }
.bouton--contour:hover { border-color: var(--laiton-clair); background: rgba(212, 178, 122, 0.1); }

.bouton--sombre { background: var(--fumoir); color: var(--suif); }
.bouton--sombre:hover { background: var(--sang); }
.bouton[disabled] { opacity: 0.6; cursor: wait; }

/* Statut ouvert / fermé */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--t-discret);
  font-weight: 500;
}
.statut:empty { display: none; }

.statut__point {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.statut--ouvert .statut__point { background: var(--vert-ouvert); box-shadow: 0 0 0 4px rgba(143, 178, 138, 0.2); }
.statut--ferme  .statut__point { background: var(--rouge-ferme); box-shadow: 0 0 0 4px rgba(208, 122, 122, 0.18); }


/* =============================================================================
   3. BANDEAU D'ANNONCE ET EN-TÊTE
   ========================================================================== */

.annonce {
  background: var(--sang);
  color: var(--suif);
  font-size: var(--t-petit);
}

.annonce__texte {
  padding-block: 0.6rem;
  text-align: center;
}
.annonce__texte a { margin-left: 0.5rem; font-weight: 600; text-underline-offset: 3px; }

.entete {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--hauteur-entete);
}

/* Fond de l'en-tête au défilement. Posé sur un pseudo-élément : un
   backdrop-filter sur .entete elle-même enfermerait le menu mobile
   (position: fixed) dans la hauteur de l'en-tête. */
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(29, 22, 19, 0.94);
  box-shadow: 0 1px 0 rgba(212, 178, 122, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}
.entete.est-defile::before { opacity: 1; }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.marque {
  position: relative;
  z-index: 2; /* reste visible au-dessus du menu mobile ouvert */
  display: grid;
  line-height: 1.1;
  text-decoration: none;
}
.marque__nom {
  font-family: var(--police-titres);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marque__depuis {
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-petit);
  color: var(--laiton-clair);
}

.nav__liste {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav__liste a:not(.bouton) {
  font-size: var(--t-discret);
  font-weight: 500;
  text-decoration: none;
  color: rgba(239, 229, 212, 0.85);
  text-underline-offset: 6px;
  transition: color 0.2s;
}
.nav__liste a:not(.bouton):hover,
.nav__liste a[aria-current] {
  color: var(--laiton-clair);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nav__appel .bouton { min-height: 42px; padding: 0.55rem 1.1rem; }

.nav__bouton { display: none; }

/* Menu mobile (tablette et téléphone) */
@media (max-width: 1080px) {
  .nav__bouton {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0 0.25rem;
    border: 0;
    background: none;
    font-size: var(--t-discret);
    font-weight: 600;
  }

  .nav__bouton-barres,
  .nav__bouton-barres::before,
  .nav__bouton-barres::after {
    display: block;
    width: 22px; height: 1.5px;
    background: currentColor;
    transition: transform 0.25s;
  }
  .nav__bouton-barres { position: relative; }
  .nav__bouton-barres::before,
  .nav__bouton-barres::after { content: ""; position: absolute; left: 0; }
  .nav__bouton-barres::before { top: -7px; }
  .nav__bouton-barres::after  { top: 7px; }

  .nav__bouton[aria-expanded="true"] .nav__bouton-barres { background: transparent; }
  .nav__bouton[aria-expanded="true"] .nav__bouton-barres::before { transform: translateY(7px) rotate(45deg); }
  .nav__bouton[aria-expanded="true"] .nav__bouton-barres::after  { transform: translateY(-7px) rotate(-45deg); }

  .nav__liste {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    padding: var(--hauteur-entete) var(--marge-laterale) 2rem;
    background: var(--fumoir);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }
  .nav__liste.est-ouvert {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s;
  }

  .nav__liste a:not(.bouton) {
    font-family: var(--police-titres);
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--suif);
  }
  .nav__appel { margin-top: 1.5rem; }
}


/* =============================================================================
   4. ACCUEIL
   ========================================================================== */

.accueil {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 980px);
  margin-top: calc(-1 * var(--hauteur-entete));
  padding-top: calc(var(--hauteur-entete) + 3rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.accueil__image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 62%;
  margin: 0;
}
.accueil__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
/* Fondu de la photo vers le fond sombre, côté texte */
.accueil__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--fumoir) 0%, rgba(29, 22, 19, 0.75) 22%, rgba(29, 22, 19, 0) 55%),
    linear-gradient(0deg, rgba(29, 22, 19, 0.7) 0%, rgba(29, 22, 19, 0) 35%);
}

.accueil__contenu { position: relative; }

.accueil__titre {
  margin-left: -0.04em;
  font-size: var(--t-geant);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.035em;
}
/* Chaque ligne masque son mot pendant l'animation d'ouverture. Les marges
   négatives compensent le padding : la place des hampes (B, d, accents)
   est réservée sans changer l'interlignage, sinon le haut des lettres est rogné. */
.accueil__titre .ligne {
  display: block;
  overflow: hidden;
  padding-block: 0.16em 0.1em;
  margin-block: -0.16em -0.1em;
}
.accueil__titre .ligne > span { display: inline-block; }
/* Le second mot est décalé : il déborde sur la photo */
.accueil__titre .ligne:nth-child(2) { padding-left: 0.5em; }

.accueil__activite {
  margin-top: 1.75rem;
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-grand);
  color: var(--laiton-clair);
}

.accueil__accroche {
  max-width: 44ch;
  margin-top: 0.75rem;
  font-size: var(--t-moyen);
  line-height: 1.5;
  color: rgba(239, 229, 212, 0.88);
}

.accueil__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.accueil .statut { margin-top: 2rem; }

@media (max-width: 760px) {
  .accueil { min-height: 92svh; }
  .accueil__image { width: 100%; }
  .accueil__image::after {
    background: linear-gradient(0deg, var(--fumoir) 18%, rgba(29, 22, 19, 0.55) 60%, rgba(29, 22, 19, 0.35) 100%);
  }
  .accueil__titre .ligne:nth-child(2) { padding-left: 0.3em; }
  .accueil__actions .bouton { flex: 1 1 100%; }
}


/* =============================================================================
   5. LA MAISON
   ========================================================================== */

.maison__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.maison__paragraphes {
  display: grid;
  gap: 1.1rem;
  max-width: 58ch;
  margin-top: 2.25rem;
  line-height: 1.7;
  color: var(--encre-douce);
}
.maison__paragraphes p:first-child {
  font-size: var(--t-moyen);
  line-height: 1.55;
  color: var(--encre);
}
/* Lettrine sur le premier paragraphe */
.maison__paragraphes p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--police-titres);
  font-size: 3.4em;
  line-height: 0.8;
  color: var(--sang);
}

.signature {
  display: grid;
  margin-top: 2.5rem;
}
.signature__nom {
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-grand);
  color: var(--sang);
}
.signature__role { font-size: var(--t-petit); color: var(--encre-douce); }

.maison__images {
  position: relative;
  padding-bottom: 18%;
}
.maison__image-principale {
  width: 88%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.maison__image-secondaire {
  position: absolute;
  bottom: 0; left: 0;
  width: 52%;
}
.maison__image-secondaire img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--suif);
}
.maison__image-secondaire figcaption {
  margin-top: 0.5rem;
  padding-left: 8px;
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-discret);
  color: var(--encre-douce);
}

.engagements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.engagement {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 31, 27, 0.2);
}
.engagement__icone {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--sang);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.engagement__titre {
  margin-top: 1rem;
  font-size: var(--t-moyen);
}
.engagement p {
  margin-top: 0.5rem;
  font-size: var(--t-discret);
  color: var(--encre-douce);
}

@media (max-width: 900px) {
  .maison__grille { grid-template-columns: 1fr; }
  .engagements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .engagements { grid-template-columns: 1fr; }
}


/* =============================================================================
   6. NOS VIANDES
   ========================================================================== */

.viandes__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.viandes__visuel {
  position: sticky;
  top: calc(var(--hauteur-entete) + 2rem);
  overflow: hidden;
  background: var(--fumoir-2);
}
.viandes__visuel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 0.18s ease;
}
.viandes__visuel img.est-en-transition { opacity: 0; }

.rayon { border-top: 1px solid rgba(239, 229, 212, 0.14); }
.rayon:last-child { border-bottom: 1px solid rgba(239, 229, 212, 0.14); }

.rayon__bouton {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  width: 100%;
  padding: 1.6rem 0 0.4rem;
  border: 0;
  background: none;
  text-align: left;
}

.rayon__nom {
  font-family: var(--police-titres);
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  transition: color 0.2s, transform 0.3s ease;
}
.rayon__origine {
  font-size: var(--t-petit);
  font-weight: 500;
  color: var(--laiton);
}
.rayon__texte {
  max-width: 54ch;
  padding-bottom: 1.6rem;
  font-size: var(--t-discret);
  color: rgba(239, 229, 212, 0.7);
}

.rayon.est-actif .rayon__nom { color: var(--laiton-clair); transform: translateX(0.75rem); }

.rayon__image { display: none; }

/* Téléphone : chaque rayon devient une fiche photo, nom, origine, texte */
@media (max-width: 820px) {
  .viandes__grille { grid-template-columns: 1fr; }
  .viandes__visuel { display: none; }

  .rayon {
    display: flex;
    flex-direction: column;
    padding-block: 2rem;
  }
  .rayon:first-child { border-top: 0; padding-top: 0; }
  .rayon:last-child { border-bottom: 0; padding-bottom: 0; }

  .rayon__image {
    display: block;
    order: -1;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 1.25rem;
  }
  .rayon__bouton {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0;
    cursor: default;
  }
  .rayon__texte { margin-top: 0.75rem; padding-bottom: 0; }

  /* Pas de mise en avant au survol sur écran tactile */
  .rayon.est-actif .rayon__nom { color: inherit; transform: none; }
}


/* =============================================================================
   7. CARTE DE DÉCOUPE
   Le bœuf est dessiné en crème sur fond bordeaux, comme une planche
   de boucherie ancienne. Le morceau choisi passe en laiton.
   ========================================================================== */

.decoupe {
  background: var(--sang-profond);
  color: var(--suif);
}

.decoupe__grille {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas:
    "schema fiche"
    "index  index";
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.decoupe__schema { grid-area: schema; }
.fiche           { grid-area: fiche; }
.decoupe__index  { grid-area: index; }

.bete {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.morceau {
  fill: var(--suif);
  stroke: var(--sang-profond);
  stroke-width: 2.5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s;
}
.morceau:hover,
.morceau.est-survole { fill: var(--suif-2); }
.morceau.est-actif { fill: var(--laiton); }
.morceau:focus { outline: none; }
.morceau:focus-visible { stroke: var(--laiton-clair); stroke-width: 4; }

.bete__decor path { fill: #e0d2bb; }
.bete__traits path {
  fill: none;
  stroke: #e0d2bb;
  stroke-width: 7;
  stroke-linecap: round;
}
.bete__oeil { fill: var(--sang-profond); pointer-events: none; }

.fiche {
  padding-top: 1.5rem;
  border-top: 2px solid var(--laiton);
}
.fiche__nom { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.fiche__cuisson {
  margin-top: 0.6rem;
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-moyen);
  color: var(--laiton-clair);
}
.fiche__texte {
  margin-top: 1.1rem;
  max-width: 40ch;
  color: rgba(239, 229, 212, 0.88);
}
.fiche__lien {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: var(--t-discret);
  font-weight: 600;
  text-underline-offset: 5px;
}
.fiche__lien:hover { color: var(--laiton-clair); }

.decoupe__index {
  position: relative; /* repère pour centrer la pastille active (decoupe.js) */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 229, 212, 0.16);
}

.pastille {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(239, 229, 212, 0.3);
  border-radius: 999px;
  background: none;
  font-size: var(--t-petit);
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pastille:hover { border-color: var(--suif); }
.pastille[aria-pressed="true"] {
  border-color: var(--laiton);
  background: var(--laiton);
  color: var(--fumoir);
}

/* Tablette et téléphone : dessin, puis bande de morceaux défilante, puis fiche.
   Toucher un morceau met à jour la fiche juste en dessous, sans la perdre de vue. */
@media (max-width: 900px) {
  .decoupe__grille {
    grid-template-columns: 1fr;
    grid-template-areas: "schema" "index" "fiche";
    gap: 1.5rem;
  }

  .decoupe__index {
    flex-wrap: nowrap;
    margin-inline: calc(-1 * var(--marge-laterale));
    padding: 0.25rem var(--marge-laterale) 0.75rem;
    border-top: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--marge-laterale);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--marge-laterale), #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--marge-laterale), #000 calc(100% - 2.5rem), transparent);
  }
  .decoupe__index::-webkit-scrollbar { display: none; }
  .decoupe__index li { flex: none; scroll-snap-align: start; }
  .pastille { white-space: nowrap; }

  .fiche { padding-top: 1.25rem; }
}


/* =============================================================================
   8. L'ARDOISE
   ========================================================================== */

.ardoise__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.ardoise__texte p {
  max-width: 42ch;
  margin-block: 1.75rem 2.25rem;
  font-size: var(--t-moyen);
  line-height: 1.5;
  color: var(--encre-douce);
}

/* Le tableau : un cadre en bois autour d'une ardoise */
.tableau {
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #6a4a32, var(--cadre) 50%, #4a3322);
  box-shadow: 0 40px 60px -30px rgba(29, 22, 19, 0.55), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-0.6deg);
}

.tableau__ardoise {
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--ardoise);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset, 0 6px 18px rgba(0, 0, 0, 0.35) inset;
  color: rgba(239, 229, 212, 0.94);
}

.tableau__periode {
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-moyen);
  color: var(--laiton-clair);
}

.tableau__liste {
  display: grid;
  gap: 1.15rem;
  margin-block: 1.75rem;
}

.tableau__ligne {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.tableau__produit {
  font-family: var(--police-titres);
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  line-height: 1.3;
}
.tableau__points {
  flex: 1 1 2rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted rgba(239, 229, 212, 0.32);
  transform: translateY(-0.3em);
}
.tableau__prix {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tableau__unite {
  font-weight: 400;
  font-size: var(--t-petit);
  opacity: 0.7;
}

.tableau__mention {
  font-size: var(--t-petit);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .ardoise__grille { grid-template-columns: 1fr; }
  .tableau { transform: none; }
}
/* Téléphone : produit à gauche, prix et unité alignés à droite, sans pointillés */
@media (max-width: 520px) {
  .tableau__ardoise { padding: 1.5rem 1.25rem; }
  .tableau__liste { gap: 0; margin-block: 1.25rem; }
  .tableau__ligne {
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.85rem;
    border-bottom: 1px dashed rgba(239, 229, 212, 0.16);
  }
  .tableau__ligne:last-child { border-bottom: 0; }
  .tableau__points { display: none; }
  .tableau__prix {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
  }
}


/* =============================================================================
   9. NOS ÉLEVEURS
   ========================================================================== */

.eleveurs { padding-top: 0; }

.eleveurs__bandeau {
  margin-bottom: var(--espace-section);
}
.eleveurs__bandeau img {
  width: 100%;
  height: clamp(260px, 42vw, 560px);
  object-fit: cover;
}

.eleveurs__grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.eleveurs__grille .entete-section { margin-bottom: 0; }
.eleveurs__grille .entete-section__intro { font-size: var(--t-texte); line-height: 1.6; }

.eleveurs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-discret);
}
.eleveurs__table thead th {
  padding: 0 1rem 0.75rem 0;
  border-bottom: 1px solid var(--encre);
  font-size: var(--t-petit);
  font-weight: 600;
  text-align: left;
  color: var(--encre-douce);
}
.eleveurs__table thead th:last-child { text-align: right; padding-right: 0; }
.eleveurs__table tbody th,
.eleveurs__table td {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid rgba(42, 31, 27, 0.16);
  text-align: left;
  vertical-align: baseline;
}
.eleveurs__table tbody th {
  font-family: var(--police-titres);
  font-size: var(--t-moyen);
  font-weight: 500;
}
.eleveurs__table td { color: var(--encre-douce); }
.eleveurs__distance {
  padding-right: 0 !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--sang) !important;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .eleveurs__grille { grid-template-columns: 1fr; }
}
/* Sur téléphone, chaque éleveur devient une fiche empilée */
@media (max-width: 640px) {
  .eleveurs__table thead { display: none; }
  .eleveurs__table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.2rem 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid rgba(42, 31, 27, 0.16);
  }
  .eleveurs__table tbody th,
  .eleveurs__table td { padding: 0; border: 0; }
  .eleveurs__table td[data-label="Lieu"],
  .eleveurs__table td[data-label="Production"] { grid-column: 1 / -1; }
  .eleveurs__distance { grid-row: 1; grid-column: 2; }
}


/* =============================================================================
   10. TRAITEUR
   ========================================================================== */

.traiteur__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.traiteur__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.traiteur__texte .entete-section__intro { margin-top: 1.5rem; }

.offres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}
.offre {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(239, 229, 212, 0.16);
}
.offre__nom { font-size: var(--t-grand); }
.offre__prix {
  margin-top: 0.5rem;
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--laiton);
}
.offre__texte {
  margin-top: 0.6rem;
  font-size: var(--t-discret);
  color: rgba(239, 229, 212, 0.72);
}

/* Les trois étapes de commande : une vraie séquence, d'où les numéros */
.etapes__titre {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  font-size: var(--t-grand);
}
.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  counter-reset: etape;
}
.etape {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--laiton);
  counter-increment: etape;
}
.etape::before {
  content: counter(etape);
  display: block;
  font-family: var(--police-titres);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--laiton);
}
.etape__titre {
  margin-top: 0.75rem;
  font-size: var(--t-moyen);
}
.etape p {
  margin-top: 0.5rem;
  max-width: 34ch;
  font-size: var(--t-discret);
  color: rgba(239, 229, 212, 0.72);
}

@media (max-width: 900px) {
  .traiteur__grille { grid-template-columns: 1fr; }
  .traiteur__image img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .offres, .etapes { grid-template-columns: 1fr; }
  .offres { gap: 2rem; margin-top: 2.5rem; }

  /* Étapes : numéro à gauche, texte à droite */
  .etapes { gap: 1.5rem; }
  .etape {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 1rem;
  }
  .etape::before { grid-row: span 2; font-size: 2.75rem; }
  .etape__titre { margin-top: 0.2rem; }
}


/* =============================================================================
   11. AVIS
   ========================================================================== */

.avis__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.avis__note { font-size: var(--t-discret); color: var(--encre-douce); }
.avis__note a { color: var(--sang); font-weight: 600; text-underline-offset: 4px; }
.avis__chiffre {
  font-family: var(--police-titres);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--sang);
}

.avis__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.citation {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--sang);
}
.citation blockquote p {
  font-family: var(--police-titres);
  font-style: italic;
  font-size: var(--t-moyen);
  line-height: 1.45;
}
.citation blockquote p::before { content: "« "; }
.citation blockquote p::after  { content: " »"; }
.citation figcaption {
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--encre-douce);
}

@media (max-width: 900px) {
  .avis__liste { grid-template-columns: 1fr; }
}


/* =============================================================================
   12. INFOS PRATIQUES
   ========================================================================== */

.infos__grille {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.infos__adresse {
  margin-top: 1.75rem;
  font-family: var(--police-titres);
  font-style: normal;
  font-size: var(--t-grand);
  line-height: 1.3;
}

.infos__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.acces {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  max-width: 52ch;
}
.acces__ligne {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(239, 229, 212, 0.14);
}
.acces dt { font-size: var(--t-petit); font-weight: 600; color: var(--laiton); padding-top: 0.15rem; }
.acces dd { font-size: var(--t-discret); color: rgba(239, 229, 212, 0.8); }

.infos__sous-titre {
  margin-bottom: 1.25rem;
  font-size: var(--t-grand);
}

.horaires {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-discret);
}
.horaires th,
.horaires td {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(239, 229, 212, 0.12);
  text-align: left;
  font-weight: 400;
}
.horaires td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.horaires .est-ferme td { color: rgba(239, 229, 212, 0.45); }
.horaires .est-aujourdhui th,
.horaires .est-aujourdhui td { color: var(--laiton-clair); font-weight: 600; }
.horaires__aujourdhui {
  margin-left: 0.4rem;
  font-family: var(--police-titres);
  font-style: italic;
  font-weight: 400;
}

.statut--compact { margin-top: 1.5rem; }

.carte {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid rgba(239, 229, 212, 0.14);
  background: var(--fumoir-2);
}
.carte iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 36vw, 440px);
  border: 0;
  /* Teinte la carte pour l'accorder aux couleurs du site */
  filter: grayscale(1) sepia(0.25) contrast(0.95) brightness(0.92);
}

@media (max-width: 900px) {
  .infos__grille { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .acces__ligne { grid-template-columns: 1fr; gap: 0.25rem; }
}


/* =============================================================================
   13. CONTACT ET FORMULAIRE
   ========================================================================== */

.contact__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact__texte > p:not(.contact__direct) {
  max-width: 44ch;
  margin-top: 1.75rem;
  color: var(--encre-douce);
}

.contact__direct {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  margin-top: 2.25rem;
}
.contact__direct a:first-child {
  font-family: var(--police-titres);
  font-size: var(--t-grand);
  color: var(--sang);
  text-decoration: none;
}
.contact__direct a:last-child {
  font-size: var(--t-discret);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.champ { grid-column: 1 / -1; display: grid; align-content: start; gap: 0.4rem; }
.champ--moitie { grid-column: span 1; }

.champ label {
  font-size: var(--t-petit);
  font-weight: 600;
}
.champ__optionnel { font-weight: 400; color: var(--encre-douce); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(42, 31, 27, 0.3);
  border-radius: var(--rayon);
  background: var(--suif-vif);
  color: var(--encre);
  transition: border-color 0.2s;
}
.champ textarea { resize: vertical; min-height: 140px; }
.champ input::placeholder,
.champ textarea::placeholder { color: rgba(94, 76, 67, 0.7); }
.champ input:hover,
.champ select:hover,
.champ textarea:hover { border-color: rgba(42, 31, 27, 0.55); }
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible { outline-offset: 0; border-color: var(--sang); }
.champ [aria-invalid="true"] { border-color: var(--sang); border-width: 2px; }

.champ__erreur {
  font-size: var(--t-petit);
  font-weight: 600;
  color: var(--sang);
}
.champ__erreur:empty { display: none; }

.champ--case {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
}
.champ--case input {
  width: 20px;
  min-height: 0;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--sang);
}
.champ--case label { font-weight: 400; color: var(--encre-douce); }
.champ--case .champ__erreur { grid-column: 2; }

.formulaire .bouton { justify-self: start; }

.formulaire__retour {
  grid-column: 1 / -1;
  font-size: var(--t-discret);
  font-weight: 500;
}
.formulaire__retour:empty { display: none; }
.formulaire__retour.est-erreur { color: var(--sang); }

@media (max-width: 900px) {
  .contact__grille { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .champ--moitie { grid-column: 1 / -1; }
  .formulaire .bouton { justify-self: stretch; }
}


/* =============================================================================
   14. PIED DE PAGE
   ========================================================================== */

.pied {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--fumoir);
  border-top: 1px solid rgba(212, 178, 122, 0.18);
  font-size: var(--t-discret);
  color: rgba(239, 229, 212, 0.8);
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 0.8fr;
  gap: 2.5rem;
}

.pied__marque .marque__nom { font-size: 1.75rem; color: var(--suif); }
.pied__marque p:last-child { margin-top: 0.4rem; }

.pied__titre {
  margin-bottom: 0.9rem;
  font-family: var(--police-texte);
  font-size: var(--t-petit);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--laiton);
}

.pied a { text-underline-offset: 4px; }
.pied a:hover { color: var(--laiton-clair); }

.pied__horaires { display: grid; gap: 0.35rem; }
.pied__horaires span { display: block; color: var(--suif); }

.pied__reseaux { display: grid; gap: 0.6rem; }
.pied__reseaux a { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(239, 229, 212, 0.12);
  font-size: var(--t-petit);
  color: rgba(239, 229, 212, 0.55);
}

@media (max-width: 900px) {
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pied__grille { grid-template-columns: 1fr; gap: 2rem; }
  .pied__bas { flex-direction: column; }
}

.pied__demo { flex-basis: 100%; font-style: italic; }
.pied__demo:empty { display: none; }


/* =============================================================================
   14 bis. BARRE D'ACTION MOBILE (appeler, itinéraire)
   Glisse depuis le bas une fois l'accueil dépassé. Masquée sur grand écran.
   ========================================================================== */

.barre-mobile { display: none; }

@media (max-width: 760px) {
  .barre-mobile {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem var(--marge-laterale) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(29, 22, 19, 0.96);
    border-top: 1px solid rgba(212, 178, 122, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
  }
  .barre-mobile.est-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }
  body.menu-ouvert .barre-mobile { transform: translateY(100%); visibility: hidden; }

  /* Le bas du pied de page reste lisible au-dessus de la barre */
  .pied { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}


/* =============================================================================
   15. PAGE MENTIONS LÉGALES
   ========================================================================== */

.page-simple {
  min-height: 70vh;
  padding-top: calc(var(--hauteur-entete) + 3rem);
}
.page-simple .titre-section { max-width: none; }

.legal {
  display: grid;
  gap: 2.5rem;
  max-width: 68ch;
  margin-top: 3rem;
}
.legal h2 { font-size: var(--t-grand); margin-bottom: 0.75rem; }
.legal p { color: var(--encre-douce); }
.legal p + p { margin-top: 0.6rem; }
.legal a { color: var(--sang); }


/* =============================================================================
   15 bis. AJUSTEMENTS TÉLÉPHONE (tailles de texte et détails communs)
   Les mises en page propres à chaque section sont dans leur rubrique.
   ========================================================================== */

@media (max-width: 760px) {
  /* Bandeau d'annonce sur deux lignes au plus */
  .annonce { font-size: 0.75rem; }
  .annonce__texte { padding-block: 0.55rem; text-align: left; line-height: 1.45; }
  .annonce__texte a { margin-left: 0.25rem; white-space: nowrap; }

  /* Textes d'introduction : un cran plus petits qu'à l'écran */
  .entete-section__intro,
  .accueil__accroche,
  .ardoise__texte p,
  .maison__paragraphes p:first-child { font-size: 1.125rem; }

  .accueil__activite { margin-top: 1.25rem; font-size: 1.375rem; }
  .accueil .statut { margin-top: 1.5rem; }

  .titre-section { max-width: none; }
  .entete-section { gap: 1rem; margin-bottom: 2.25rem; }

  /* La maison : photo secondaire moins envahissante */
  .maison__images { padding-bottom: 24%; }
  .maison__image-principale { width: 82%; }
  .maison__image-secondaire { width: 56%; }
  .engagements { gap: 0 1.5rem; margin-top: 3.5rem; }
  .engagement { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding-block: 1.25rem; }
  .engagement__icone { grid-row: span 2; width: 28px; height: 28px; }
  .engagement__titre { margin-top: 0; font-size: 1.1875rem; }
  .engagement p { margin-top: 0.25rem; }

  .ardoise__texte .bouton { width: 100%; }

  .citation blockquote p { font-size: 1.1875rem; }
  .avis__liste { gap: 2rem; }

  .infos__adresse { font-size: 1.5rem; }
  .infos__actions .bouton { flex: 1 1 0; }
  .carte iframe { height: 280px; }

  .contact__direct a:first-child { font-size: 1.75rem; }
}


/* =============================================================================
   16. ANIMATIONS
   Une seule séquence à l'ouverture : la photo se pose, le nom monte ligne
   par ligne, puis le texte apparaît. Désactivée si le visiteur a demandé
   moins d'animations dans son système.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .accueil__image img {
    transform: scale(1.06);
    transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .accueil__titre .ligne > span {
    transform: translateY(105%);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(0.15s + var(--i, 0) * 0.14s);
  }
  .accueil__activite,
  .accueil__accroche,
  .accueil__actions,
  .accueil .statut {
    opacity: 0;
    transition: opacity 0.8s ease 0.7s;
  }

  .est-pret .accueil__image img { transform: none; }
  .est-pret .accueil__titre .ligne > span { transform: none; }
  .est-pret .accueil__activite,
  .est-pret .accueil__accroche,
  .est-pret .accueil__actions,
  .est-pret .accueil .statut { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
