/* ==========================================================================
   Le Fournil d’Élise — feuille de styles
   Couleurs, polices et espacements se règlent dans :root, juste en dessous.
   ========================================================================== */

/* Polices hébergées avec le site (licence SIL Open Font License) :
   aucune requête vers un service tiers. */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Réglages ---------- */
:root {
  color-scheme: light;
  --mie: #F7EFDF;          /* fond principal, couleur de mie */
  --mie-fonce: #EEDFC3;    /* sections alternées */
  --farine: #FDFAF3;       /* surfaces claires */
  --croute: #6B3E1F;       /* brun croûte : boutons, liens */
  --croute-vive: #84502A;
  --fournil: #2E1B10;      /* texte */
  --texte-doux: #634A37;
  --trait: rgba(46, 27, 16, .16);
  --champ-bord: rgba(46, 27, 16, .4);
  --ouvert: #2F6B2B;
  --ferme: #9A3B22;
  --sur-croute: #FDFAF3;
  --pied-fond: #2E1B10;
  --pied-texte: #EEDFC3;
  --pied-doux: #C4AB8C;
  --photo-fond: repeating-linear-gradient(135deg, transparent 0 18px, rgba(107, 62, 31, .07) 18px 19px), linear-gradient(160deg, #EBD8B6, #D2A773);
  --photo-texte: #4A2B16;
  --ombre: 0 1px 2px rgba(46, 27, 16, .06), 0 14px 32px -20px rgba(46, 27, 16, .45);

  --police-titre: "Young Serif", Georgia, "Times New Roman", serif;
  --police-texte: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --largeur: 74rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --hauteur-entete: 4.5rem;
  --rayon: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --mie: #1C140E;
    --mie-fonce: #271C14;
    --farine: #2C2017;
    --croute: #E2B47A;
    --croute-vive: #F0C995;
    --fournil: #F3E7D5;
    --texte-doux: #CDB89E;
    --trait: rgba(243, 231, 213, .16);
    --champ-bord: rgba(243, 231, 213, .4);
    --ouvert: #8FCB87;
    --ferme: #F29A7C;
    --sur-croute: #1C140E;
    --pied-fond: #120C08;
    --pied-texte: #E8D8C1;
    --pied-doux: #B79E80;
    --photo-fond: repeating-linear-gradient(135deg, transparent 0 18px, rgba(243, 231, 213, .05) 18px 19px), linear-gradient(160deg, #4A3221, #2E1F15);
    --photo-texte: #E8D3B4;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -20px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --mie: #1C140E;
  --mie-fonce: #271C14;
  --farine: #2C2017;
  --croute: #E2B47A;
  --croute-vive: #F0C995;
  --fournil: #F3E7D5;
  --texte-doux: #CDB89E;
  --trait: rgba(243, 231, 213, .16);
  --champ-bord: rgba(243, 231, 213, .4);
  --ouvert: #8FCB87;
  --ferme: #F29A7C;
  --sur-croute: #1C140E;
  --pied-fond: #120C08;
  --pied-texte: #E8D8C1;
  --pied-doux: #B79E80;
  --photo-fond: repeating-linear-gradient(135deg, transparent 0 18px, rgba(243, 231, 213, .05) 18px 19px), linear-gradient(160deg, #4A3221, #2E1F15);
  --photo-texte: #E8D3B4;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -20px rgba(0, 0, 0, .8);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + env(safe-area-inset-top, 0px) + 1rem);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: var(--mie);
}

body {
  margin: 0;
  background: var(--mie);
  color: var(--fournil);
  font-family: var(--police-texte);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Bande sous la barre d’état des téléphones */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--mie);
}

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

a {
  color: var(--croute);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
a:hover { color: var(--croute-vive); text-decoration-thickness: 2px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fournil);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); letter-spacing: -.005em; }
h3 { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--croute); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--largeur));
  margin-inline: auto;
}

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--fournil);
  color: var(--mie);
  font-weight: 700;
}
.lien-evitement:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); color: var(--mie); }

main:focus { outline: none; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bouton--plein { background: var(--croute); color: var(--sur-croute); }
.bouton--plein:hover { background: var(--croute-vive); color: var(--sur-croute); }
.bouton--contour { border-color: currentColor; background: transparent; color: var(--croute); }
.bouton--contour:hover { background: var(--mie-fonce); color: var(--croute); }
.bouton[disabled] { opacity: .7; cursor: progress; }
.bouton svg { width: 1.1em; height: 1.1em; flex: none; }

.lien-fort { font-weight: 700; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--mie);
  background: color-mix(in srgb, var(--mie) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.entete.is-defile,
.entete[data-menu-ouvert] { border-bottom-color: var(--trait); }

.entete__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  min-height: var(--hauteur-entete);
}

.marque {
  display: grid;
  margin-right: auto;
  padding-block: .5rem;
  color: var(--fournil);
  line-height: 1.15;
  text-decoration: none;
}
.marque:hover { color: var(--fournil); }
.marque__nom { font-family: var(--police-titre); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.marque__lieu { font-size: .8125rem; color: var(--texte-doux); }

.nav ul { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  display: block;
  padding: .5rem .85rem;
  border-radius: 999px;
  color: var(--fournil);
  font-weight: 600;
  text-decoration: none;
}
.nav ul a:hover { background: var(--mie-fonce); color: var(--fournil); }
.nav ul a[aria-current="page"] {
  color: var(--croute);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}
.nav .nav__tel { display: none; }

.entete__tel { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9375rem; white-space: nowrap; }

.menu-bouton {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: transparent;
  color: var(--fournil);
  cursor: pointer;
}
.menu-bouton__icone,
.menu-bouton__icone::before,
.menu-bouton__icone::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-bouton__icone { position: relative; }
.menu-bouton__icone::before,
.menu-bouton__icone::after { content: ""; position: absolute; left: 0; }
.menu-bouton__icone::before { top: -6px; }
.menu-bouton__icone::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__icone::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Photos et emplacements ---------- */
/* Tant que la photo n’est pas déposée dans /images, un emplacement s’affiche. */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--photo-fond);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}
.photo__vide {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35rem;
  padding: 1rem;
  color: var(--photo-texte);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.photo__vide::before {
  content: "";
  width: 1.75rem;
  height: 1.75rem;
  background: currentColor;
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.photo__vide small { display: block; font-size: .75rem; font-weight: 400; opacity: .8; overflow-wrap: anywhere; }

/* Cadre en arche, comme la gueule du four */
.photo--arche {
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
}

/* ---------- Accueil : grande image d’en-tête ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(86vh, 54rem);
  min-height: min(86svh, 54rem);
  overflow: hidden;
  color: #FDFAF3;
}
.hero > .photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
  background: radial-gradient(120% 90% at 72% 28%, #B9834B 0%, #7A4724 38%, #3A2213 72%, #22140B 100%);
}
.hero > .photo .photo__vide {
  place-content: start end;
  justify-items: end;
  padding: 1.25rem var(--gouttiere);
  color: rgba(253, 250, 243, .72);
  text-align: right;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(28, 16, 8, .86) 0%, rgba(28, 16, 8, .5) 42%, rgba(28, 16, 8, .08) 78%);
}
.hero__contenu { padding-block: 7rem clamp(3rem, 7vw, 5.5rem); }
.hero__lieu { margin-bottom: 1rem; color: #EEDFC3; font-weight: 600; }
.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.5rem;
  color: #FDFAF3;
  font-size: clamp(2.75rem, 1.2rem + 6vw, 6.25rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__texte {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: rgba(253, 250, 243, .92);
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .bouton--plein { background: #FDFAF3; color: #2E1B10; }
.hero .bouton--plein:hover { background: #EEDFC3; color: #2E1B10; }
.hero .bouton--contour { color: #FDFAF3; }
.hero .bouton--contour:hover { background: rgba(253, 250, 243, .12); color: #FDFAF3; }
.hero :focus-visible { outline-color: #FDFAF3; }

/* Le seul mouvement du site : le texte d’accueil qui « lève » au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero__contenu > * { animation: lever .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__contenu > :nth-child(2) { animation-delay: .08s; }
  .hero__contenu > :nth-child(3) { animation-delay: .16s; }
  .hero__contenu > :nth-child(4) { animation-delay: .24s; }
}
@keyframes lever {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Accueil : horaires et infos pratiques ---------- */
.infos { padding-block: clamp(3rem, 2rem + 4vw, 5rem); background: var(--mie-fonce); }
.infos__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.infos h2 { margin-bottom: 1rem; font-size: clamp(1.625rem, 1.4rem + .8vw, 2rem); }
.infos__bloc p { color: var(--texte-doux); }
.infos__bloc address { margin-bottom: .75rem; font-size: 1.125rem; font-weight: 700; }
.infos__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 700; }

.statut { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1rem; font-weight: 700; }
.statut::before {
  content: "";
  flex: none;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: currentColor;
}
.statut.is-ouvert { color: var(--ouvert); }
.statut.is-ferme { color: var(--ferme); }
.statut[hidden] { display: none; }

.horaires { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.horaires th,
.horaires td {
  padding: .55rem 0;
  border-bottom: 1px dashed var(--trait);
  text-align: left;
  vertical-align: top;
}
.horaires th { padding-right: 1rem; font-weight: 400; white-space: nowrap; }
.horaires td { text-align: right; }
.horaires td span { display: inline-block; white-space: nowrap; }
.horaires td span + span { margin-left: .75rem; }
.horaires .horaires__ferme { color: var(--texte-doux); }
.horaires .is-aujourdhui th,
.horaires .is-aujourdhui td { font-weight: 700; }
.badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .05rem .5rem;
  border-radius: 999px;
  background: var(--croute);
  color: var(--sur-croute);
  font-size: .75rem;
  font-weight: 700;
  vertical-align: .15em;
}

.fournees { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.fournees li {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--trait);
}
.fournees__heure { font-family: var(--police-titre); font-size: 1.25rem; line-height: 1.3; color: var(--croute); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
.section--fonce { background: var(--mie-fonce); }
.section--serre { padding-top: 0; }

.section__tete {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section__tete p { max-width: 34rem; margin: .75rem 0 0; color: var(--texte-doux); }

/* ---------- Accueil : produits phares ---------- */
.phares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.phare h3 { margin: 1.25rem 0 .5rem; }
.phare p { margin-bottom: .75rem; color: var(--texte-doux); }
.phare .phare__prix { margin: 0; color: var(--fournil); font-weight: 700; }

/* ---------- Accueil : histoire ---------- */
.histoire {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.histoire__photo { width: 100%; max-width: 26rem; }
.histoire__texte h2 { margin-bottom: 1.25rem; }
.histoire__texte p { max-width: 34rem; margin-bottom: 1.75rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

/* ---------- En-tête des pages intérieures ---------- */
.page-tete {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-bottom: 1px solid var(--trait);
}
.page-tete h1 { max-width: 16ch; }
.chapo {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--texte-doux);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
}

/* ---------- Nos produits ---------- */
.categories {
  position: sticky;
  top: calc(var(--hauteur-entete) + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: var(--mie);
  border-bottom: 1px solid var(--trait);
}
.categories ul {
  position: relative;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: .75rem 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.categories ul::-webkit-scrollbar { display: none; }
.categories a {
  display: block;
  padding: .45rem 1rem;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  color: var(--fournil);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.categories a:hover { border-color: var(--croute); color: var(--croute); }
.categories a.is-actif { border-color: var(--fournil); background: var(--fournil); color: var(--mie); }

.categorie { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); scroll-margin-top: 3.5rem; }
.categorie + .categorie { border-top: 1px solid var(--trait); }
.categorie__grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.categorie--inverse .categorie__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.categorie--inverse .categorie__visuel { order: 2; }
.categorie__visuel { position: sticky; top: calc(var(--hauteur-entete) + 5.5rem); }
.categorie__intro { max-width: 40rem; margin: 1rem 0 0; color: var(--texte-doux); }

.carte { margin: 2rem 0 0; padding: 0; list-style: none; }
.carte__item { padding-block: 1.25rem; border-top: 1px solid var(--trait); }
.carte__item:last-child { border-bottom: 1px solid var(--trait); }
.carte__ligne { display: flex; align-items: baseline; gap: .75rem; }
.carte__ligne::after {
  content: "";
  order: 1;
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--trait);
  transform: translateY(-.3em);
}
.carte__nom { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.carte__prix { order: 2; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.carte__prix small { font-size: .875rem; font-weight: 400; color: var(--texte-doux); }
.carte__desc { max-width: 52ch; margin: .4rem 0 0; color: var(--texte-doux); }
.carte__etiquette { margin: .6rem 0 0; }
.etiquette {
  display: inline-block;
  padding: .15rem .65rem;
  border-radius: 999px;
  background: var(--mie-fonce);
  color: var(--croute);
  font-size: .8125rem;
  font-weight: 700;
}

.commande {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: end;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 24px;
  background: var(--croute);
  color: var(--sur-croute);
}
.commande h2 { margin-bottom: 1rem; color: var(--sur-croute); }
.commande p { max-width: 40rem; margin: 0; }
.commande__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.commande .bouton--plein { background: var(--sur-croute); color: var(--croute); }
.commande .bouton--plein:hover { background: var(--mie-fonce); color: var(--croute); }
.commande .bouton--contour { color: var(--sur-croute); }
.commande .bouton--contour:hover { background: transparent; color: var(--sur-croute); text-decoration: underline; }
.commande :focus-visible { outline-color: var(--sur-croute); }
.commande a:not(.bouton) { color: var(--sur-croute); }

.note { max-width: 48rem; margin: 2.5rem 0 0; color: var(--texte-doux); font-size: .9375rem; }

/* ---------- À propos ---------- */
.recit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.recit h2 { margin-bottom: 1.5rem; }
.recit__texte p { max-width: 38rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.recit__photo { width: 100%; max-width: 26rem; justify-self: end; }

.journee {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.journee li { padding-top: 1.25rem; border-top: 2px solid var(--croute); }
.journee__heure {
  display: block;
  margin-bottom: .75rem;
  color: var(--croute);
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1;
}
.journee p { margin: 0; color: var(--texte-doux); }

.engagements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.engagements h3 { margin-bottom: .75rem; }
.engagements p { margin: 0; color: var(--texte-doux); }

.citation { margin: 0; }
.citation blockquote {
  max-width: 26ch;
  margin: 0;
  font-family: var(--police-titre);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.2;
}
.citation blockquote p { margin: 0; }
.citation figcaption { margin-top: 1.5rem; font-weight: 700; }
.citation figcaption span { color: var(--texte-doux); font-weight: 400; }
.citation__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.formulaire-bloc {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--trait);
  border-radius: 18px;
  background: var(--farine);
  box-shadow: var(--ombre);
}
.formulaire-bloc h2,
.coordonnees h2 { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }

.champ { display: grid; gap: .4rem; margin-bottom: 1.25rem; }
.champ label { font-weight: 700; }
.champ input,
.champ textarea {
  width: 100%;
  min-height: 3rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--champ-bord);
  border-radius: 10px;
  background: var(--mie);
  color: var(--fournil);
  font: inherit;
}
.champ textarea { min-height: 10rem; resize: vertical; }
.champ input:focus,
.champ textarea:focus { outline: 3px solid var(--croute); outline-offset: 1px; border-color: var(--croute); }
.champ [aria-invalid="true"] { border-color: var(--ferme); }
.champ__aide { margin: 0; color: var(--texte-doux); font-size: .9375rem; }
.champ__erreur { margin: 0; color: var(--ferme); font-size: .9375rem; font-weight: 700; }
.champ__erreur:empty { display: none; }

.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.formulaire__rgpd { color: var(--texte-doux); font-size: .9375rem; }
.formulaire .bouton { width: 100%; }

.envoi-statut { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 10px; font-weight: 700; }
.envoi-statut:empty { display: none; }
.envoi-statut.is-ok { background: color-mix(in srgb, var(--ouvert) 14%, transparent); color: var(--ouvert); }
.envoi-statut.is-erreur { background: color-mix(in srgb, var(--ferme) 14%, transparent); color: var(--ferme); }

.coordonnees__bloc { padding-block: 1rem; border-top: 1px solid var(--trait); }
.coordonnees__bloc h3 { margin-bottom: .35rem; font-family: var(--police-texte); font-size: 1rem; font-weight: 700; }
.coordonnees__bloc p,
.coordonnees__bloc address,
.coordonnees__bloc ul { margin: 0; }
.coordonnees__bloc .statut { margin-bottom: .5rem; }
.coordonnees__bloc a { overflow-wrap: anywhere; }
.horaires-court { padding: 0; list-style: none; }

.plan {
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 18px;
  background: var(--photo-fond);
}
.plan iframe { display: block; width: 100%; height: 100%; border: 0; }
.plan__vide {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 1rem;
  color: var(--photo-texte);
  font-weight: 600;
  text-align: center;
}
.plan__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-weight: 700; }

/* Page affichée après un envoi sans JavaScript */
.retour-envoi { max-width: 40rem; padding-block: 5rem; }
.retour-envoi h1 { margin-bottom: 1rem; }

/* ---------- Pied de page ---------- */
.pied {
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--pied-fond);
  color: var(--pied-texte);
}
.pied a { color: inherit; }
.pied a:hover { color: #FFFFFF; }
.pied :focus-visible { outline-color: var(--pied-texte); }
.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.pied__marque { margin-bottom: .5rem; font-family: var(--police-titre); font-size: 1.75rem; line-height: 1.15; }
.pied h2 { margin-bottom: .75rem; color: var(--pied-texte); font-family: var(--police-texte); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.pied p,
.pied address { margin: 0 0 .75rem; color: var(--pied-doux); font-size: .9375rem; }
.pied ul { margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.pied li + li { margin-top: .4rem; }
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 223, 195, .18);
}
.pied__bas p { margin: 0; }

/* ---------- Tablettes ---------- */
@media (max-width: 1000px) {
  .infos__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infos__horaires { grid-column: 1 / -1; max-width: 36rem; }
  .journee { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobiles et petites tablettes ---------- */
@media (max-width: 880px) {
  :root { --hauteur-entete: 4rem; }

  .entete__tel { display: none; }
  .js .menu-bouton { display: inline-grid; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gouttiere));
    right: calc(-1 * var(--gouttiere));
    padding: .5rem var(--gouttiere) 1.5rem;
    border-bottom: 1px solid var(--trait);
    background: var(--mie);
    box-shadow: var(--ombre);
  }
  .js .entete[data-menu-ouvert] .nav { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a { padding: .9rem 0; border-bottom: 1px solid var(--trait); border-radius: 0; font-size: 1.1875rem; }
  .js .nav ul a:hover { background: none; }
  .js .nav .nav__tel { display: flex; width: 100%; margin-top: 1.25rem; }

  .histoire,
  .recit,
  .contact,
  .commande { grid-template-columns: minmax(0, 1fr); }
  .histoire__photo { max-width: 16rem; }
  .recit__photo { order: -1; justify-self: start; max-width: 16rem; }

  .categorie__grille,
  .categorie--inverse .categorie__grille { grid-template-columns: minmax(0, 1fr); }
  .categorie--inverse .categorie__visuel { order: 0; }
  .categorie__visuel { position: static; }
  /* Sur petit écran, l’arche devient une voûte basse */
  .categorie__visuel .photo--arche {
    aspect-ratio: 16 / 10;
    border-radius: 50% 50% 10px 10px / 24% 24% 10px 10px;
  }

  .journee { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .journee li {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--trait);
  }
  .journee__heure { margin: 0; font-size: 1.5rem; line-height: 1.3; }

  .engagements { grid-template-columns: minmax(0, 1fr); }
  .plan { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .phares { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .phare {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .phare h3 { margin-top: .25rem; }
  .phare .photo__vide { font-size: .75rem; padding: .5rem; }
  .phare .photo__vide small { display: none; }
}

@media (max-width: 560px) {
  .infos__grille,
  .pied__grille { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .bouton,
  .commande__actions .bouton,
  .citation__actions .bouton { flex: 1 1 100%; }
  .horaires td span + span { margin-left: 0; }
  .horaires td span { display: block; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Ajouts : bouton de thème, animations, parallaxe, click & collect
   ========================================================================== */

/* ---------- Bouton clair / sombre ---------- */
.theme-bouton {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: transparent;
  color: var(--fournil);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.theme-bouton:hover { background: var(--mie-fonce); border-color: var(--croute); }
.theme-bouton svg {
  grid-area: 1 / 1;
  width: 1.2rem;
  height: 1.2rem;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}
.theme-bouton__soleil { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-bouton__lune { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-bouton__soleil { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-bouton__lune { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-bouton__soleil { opacity: 1; transform: none; }
}

/* Fondu des couleurs au changement de thème (classe posée quelques instants) */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important;
}

/* ---------- Apparitions au défilement ---------- */
.anim [data-apparition] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--ordre, 0) * 110ms);
}
/* Les photos montent comme une pâte qui lève : dévoilement par le bas */
.anim .photo[data-apparition] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.15s cubic-bezier(.65, 0, .35, 1);
  transition-delay: calc(var(--ordre, 0) * 110ms);
}
.anim .photo[data-apparition] img {
  transform: scale(1.14);
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--ordre, 0) * 110ms);
}
.anim [data-apparition].est-visible { opacity: 1; transform: none; }
.anim .photo[data-apparition].est-visible { clip-path: inset(0 0 0 0); }
.anim .photo[data-apparition].est-visible img { transform: scale(1); }

/* ---------- Parallaxe de l’image d’en-tête ---------- */
.hero > .photo { will-change: transform; transform-origin: 50% 0; }
.hero__contenu { will-change: transform, opacity; }

/* ---------- Click & collect : présentation ---------- */
.cc-intro {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  border: 1px solid var(--trait);
  border-radius: 14px;
  background: var(--farine);
}
.cc-intro svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .1rem; color: var(--croute); }

/* ---------- Click & collect : contrôles sur chaque produit ---------- */
.carte__item { transition: background-color .3s ease; }
.carte__item.est-au-panier {
  background: linear-gradient(90deg, color-mix(in srgb, var(--croute) 8%, transparent), transparent 75%);
}
.carte__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: .85rem;
}
.carte__pied .carte__etiquette { margin: 0; }
.cc { display: none; align-items: center; gap: .75rem; margin-left: auto; }
.js .cc { display: flex; }
.cc__note { color: var(--texte-doux); font-size: .875rem; }

.cc__ajouter {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--croute);
  border-radius: 999px;
  background: transparent;
  color: var(--croute);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.cc__ajouter:hover { background: var(--croute); color: var(--sur-croute); }
.cc__ajouter:active { transform: scale(.96); }
.cc__ajouter svg { width: 1rem; height: 1rem; }
.cc__ajouter[hidden] { display: none; }

.stepper {
  display: inline-flex;
  align-items: center;
  padding: .2rem;
  border-radius: 999px;
  background: var(--croute);
  color: var(--sur-croute);
}
.stepper[hidden] { display: none; }
.cc[data-etat="plein"] .stepper { animation: stepper-entree .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes stepper-entree { from { opacity: 0; transform: scale(.8); } }
.stepper__btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.stepper__btn:hover { background: color-mix(in srgb, var(--sur-croute) 18%, transparent); }
.stepper__qte {
  width: 2.6rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__qte::-webkit-outer-spin-button,
.stepper__qte::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.stepper :focus-visible,
.stepper__qte:focus { outline: 2px solid var(--sur-croute); outline-offset: -3px; }

/* ---------- Click & collect : barre flottante ---------- */
.panier-barre {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--gouttiere) calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.panier-barre[hidden] { display: none; }
.panier-barre__bouton {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .55rem .6rem .55rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--fournil);
  color: var(--mie);
  font: inherit;
  text-align: left;
  box-shadow: 0 18px 40px -16px rgba(28, 16, 8, .7);
  cursor: pointer;
  pointer-events: auto;
  animation: barre-entree .5s cubic-bezier(.2, .7, .2, 1) both;
}
.panier-barre__bouton > svg { flex: none; width: 1.35rem; height: 1.35rem; }
.panier-barre__texte { display: grid; line-height: 1.2; }
.panier-barre__texte > span:first-child { font-size: .875rem; opacity: .8; }
.panier-barre__action { font-weight: 700; }
.panier-barre__total {
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--croute);
  color: var(--sur-croute);
  font-weight: 700;
  white-space: nowrap;
}
.panier-barre__bouton:focus-visible { outline-color: var(--croute); }
.panier-barre__bouton.rebond { animation: rebond .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes barre-entree { from { opacity: 0; transform: translateY(140%); } }
@keyframes rebond { 35% { transform: scale(1.06); } }
html.panier-actif .pied { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- Click & collect : tiroir de commande ---------- */
html.panier-ouvert { overflow: hidden; }
.panier {
  width: min(31rem, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--mie);
  color: var(--fournil);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .55);
}
.panier[open] { display: flex; flex-direction: column; animation: tiroir-entree .4s cubic-bezier(.2, .7, .2, 1); }
.panier::backdrop { background: rgba(28, 16, 8, .55); }
.panier[open]::backdrop { animation: voile .4s ease; }
.panier.se-ferme { animation: tiroir-sortie .22s ease-in forwards; }
.panier.se-ferme::backdrop { animation: voile-sortie .22s ease forwards; }
@keyframes tiroir-entree { from { transform: translateX(100%); } }
@keyframes tiroir-sortie { to { transform: translateX(100%); } }
@keyframes voile { from { opacity: 0; } }
@keyframes voile-sortie { to { opacity: 0; } }

.panier__tete {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.5rem 1rem;
  border-bottom: 1px solid var(--trait);
}
.panier__tete h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); }
.panier__tete h2:focus { outline: none; }
.panier__fermer {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--trait);
  border-radius: 999px;
  background: transparent;
  color: var(--fournil);
  cursor: pointer;
}
.panier__fermer:hover { background: var(--mie-fonce); }
.panier__fermer svg { width: 1.2rem; height: 1.2rem; }
.panier__corps {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .5rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
}
.panier__vide { padding: 3rem 1rem; color: var(--texte-doux); text-align: center; }
.panier__vide[hidden],
[data-panier-contenu][hidden],
[data-etape][hidden] { display: none; }

.panier__liste { margin: 0; padding: 0; list-style: none; }
.panier__ligne {
  display: grid;
  grid-template-areas: "info retirer" "quantite sous-total";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--trait);
  animation: ligne-entree .3s ease;
}
@keyframes ligne-entree { from { opacity: 0; transform: translateY(-.4rem); } }
.panier__info { grid-area: info; }
.panier__nom { margin: 0; font-weight: 700; line-height: 1.3; }
.panier__pu { margin: .1rem 0 0; color: var(--texte-doux); font-size: .875rem; }
.panier__ligne .stepper { grid-area: quantite; justify-self: start; }
.panier__st { grid-area: sous-total; justify-self: end; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.panier__retirer {
  grid-area: retirer;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texte-doux);
  cursor: pointer;
}
.panier__retirer:hover { background: var(--mie-fonce); color: var(--fournil); }
.panier__retirer svg { width: 1rem; height: 1rem; }

.panier__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 0 .4rem;
  font-weight: 700;
}
.panier__total strong { font-family: var(--police-titre); font-size: 1.875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.panier__paiement { margin: 0 0 1.75rem; color: var(--texte-doux); font-size: .9375rem; }

.panier__groupe { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.panier__groupe legend { margin-bottom: .9rem; padding: 0; font-family: var(--police-titre); font-size: 1.375rem; }
.panier__label { margin: 0 0 .4rem; font-weight: 700; }
.panier__alerte {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: var(--mie-fonce);
  font-size: .9375rem;
}
.panier__alerte[hidden] { display: none; }
.facultatif { color: var(--texte-doux); font-weight: 400; }

.jours {
  display: flex;
  gap: .5rem;
  margin: 0 calc(-1 * 1.5rem) 1.25rem;
  padding: .2rem 1.5rem .3rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.jours::-webkit-scrollbar { display: none; }
.jour { position: relative; flex: none; cursor: pointer; }
.jour input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jour__carte {
  display: grid;
  gap: .1rem;
  min-width: 5.75rem;
  padding: .6rem .85rem;
  border: 1.5px solid var(--trait);
  border-radius: 14px;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.jour__nom { font-size: .9375rem; font-weight: 700; }
.jour__date { color: var(--texte-doux); font-size: .8125rem; }
.jour:hover .jour__carte { border-color: var(--croute); }
.jour input:checked + .jour__carte { border-color: var(--fournil); background: var(--fournil); color: var(--mie); }
.jour input:checked + .jour__carte .jour__date { color: inherit; opacity: .8; }
.jour input:focus-visible + .jour__carte { outline: 3px solid var(--croute); outline-offset: 2px; }

.champ select {
  width: 100%;
  min-height: 3rem;
  padding: .7rem 2.75rem .7rem 1rem;
  border: 1.5px solid var(--champ-bord);
  border-radius: 10px;
  background: var(--mie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 1.1rem no-repeat;
  color: var(--fournil);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.champ select:focus { outline: 3px solid var(--croute); outline-offset: 1px; border-color: var(--croute); }
.champ select:disabled { opacity: .6; }
.panier__form textarea { min-height: 4.5rem; }
.panier__valider { width: 100%; }

.panier__confirmation { padding-top: 1.5rem; }
.panier__coche {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--croute);
  color: var(--sur-croute);
  animation: coche .5s cubic-bezier(.2, .7, .2, 1.4);
}
.panier__coche svg { width: 1.75rem; height: 1.75rem; }
@keyframes coche { from { transform: scale(.4); opacity: 0; } }
.panier__confirmation h3 { margin-bottom: .75rem; font-size: 1.875rem; }
.panier__confirmation h3:focus { outline: none; }
.panier__recap { margin: 1.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--trait); }
.panier__recap li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--trait); }
.panier__recap-total { margin: .9rem 0 1.75rem; font-weight: 700; text-align: right; }

/* Sur téléphone, le tiroir s’ouvre par le bas */
@media (max-width: 640px) {
  .panier {
    width: 100%;
    height: auto;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .55);
  }
  .panier[open] { animation-name: tiroir-entree-bas; }
  .panier.se-ferme { animation-name: tiroir-sortie-bas; }
  .panier__tete { padding-top: 1rem; }
  .panier__tete::before {
    content: "";
    position: absolute;
    top: .45rem;
    left: 50%;
    width: 2.5rem;
    height: 4px;
    border-radius: 4px;
    background: var(--trait);
    transform: translateX(-50%);
  }
  .panier-barre__bouton { width: 100%; }
  .panier-barre__total { margin-left: auto; }
}
@keyframes tiroir-entree-bas { from { transform: translateY(100%); } }
@keyframes tiroir-sortie-bas { to { transform: translateY(100%); } }

@media (max-width: 880px) {
  .theme-bouton { margin-left: auto; }
  .marque { margin-right: 0; }
}

/* ---------- Impression : tout le contenu visible ---------- */
@media print {
  .anim [data-apparition],
  .anim .photo[data-apparition],
  .anim .photo[data-apparition] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .entete, .panier-barre, .theme-bouton { display: none !important; }
}
