/* ==================================================================
   FOOD MARKET — Lunel
   Catalogue en ligne. Une seule feuille de style.
   Ordre : tokens · base · header · catégories · cartes · grilles ·
           page produit · liste · pages annexes · footer
   ================================================================== */

/* Rubik, hébergée sur le site : plus de requête vers Google Fonts, qui
   bloquait l'affichage. Police variable, graisses 400 à 700. */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/polices/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/polices/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Police de secours aux proportions de Rubik : quand Rubik arrive, le texte
   ne bouge presque plus. */
@font-face {
  font-family: 'Rubik repli';
  src: local('Arial');
  ascent-override: 93.5%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 104%;
}

:root {
  --bg:        #ffffff;
  --surface:   #f4f4f5;
  --surface-2: #ebebed;

  --ink:       #0f1720;   /* le noir du logo */
  --ink-2:     #545963;
  --ink-3:     #6f7480;   /* 4,9:1 sur blanc : lisible (l'ancien #8a8f99 tombait à 3,2) */
  --ink-4:     #a2a7b0;   /* décoratif seulement : traits, pictogrammes de fond */

  --line:      #e4e5e8;

  --brand:     #d24300;   /* l'orange du logo, foncé juste assez pour porter du texte blanc (4,6:1) */
  --brand-vif: #fa5701;   /* l'orange exact du logo : points, traits, jamais sous du texte */
  --brand-ink: #a83500;   /* même orange, assez foncé pour du texte sur blanc */
  --brand-pale:#fff0e6;
  --promo:     var(--brand);

  --ouvert:    #0f5c2c;   /* « ouvert » reste vert : c'est un état, pas la marque */
  --ouvert-bg: #e7f5ec;

  --radius:    10px;
  --radius-lg: 14px;

  --shadow:    0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);

  --head-h:    68px;
  --gutter:    clamp(1rem, 3vw, 2.5rem);
  --max:       1280px;

  --t: 180ms cubic-bezier(.2, 0, .2, 1);

  /* Verre dépoli : même recette que la barre du bas et la navbar du
     portfolio. `--verre-bord` et `--verre-ombre` vont avec. */
  --verre-flou:  blur(24px) saturate(180%);
  --verre-fond:  rgba(255,255,255,.62);
  --verre-bord:  1px solid rgba(255,255,255,.6);
  --verre-ombre: 0 6px 24px rgba(15,23,32,.1), inset 0 1px 0 rgba(255,255,255,.7);
}

/* ---------- Base ------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  touch-action: manipulation;   /* pas de zoom au double appui */
  background: var(--bg);
  color: var(--ink);
  font-family: Rubik, 'Rubik repli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.25rem; }
p  { margin: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Boutons ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #33363d; }
.btn--brand   { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--soft {
  background: var(--verre-fond);
  color: var(--ink);
  border: var(--verre-bord);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  box-shadow: var(--verre-ombre);
}
.btn--soft:hover { background: rgba(255,255,255,.8); }
.btn--line    { border-color: var(--line); background: #fff; }
.btn--line:hover { background: var(--surface); }
.btn--block   { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.9; }

/* ---------- Header ----------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.72);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--head-h);
}

/* Le logo FOOD MARKET 34 est détouré (fond transparent, sinon un rectangle
   blanc se voit sur l'en-tête en verre dépoli) et recadré au plus près : un
   align-items:center suffit à aligner « Lunel » sur le mot. */
.logo { display: flex; align-items: center; gap: .625rem; flex: none; }
.logo__img { height: 40px; width: auto; }
.logo__city {
  color: var(--ink-3);
  font-size: .875rem;
  font-weight: 500;
  padding-left: .625rem;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex: 1 1 auto;
  max-width: 520px;
  height: 44px;
  padding: 0 1rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background var(--t), border-color var(--t);
}
.searchbar:focus-within { background: #fff; border-color: var(--ink); }
.searchbar svg { color: var(--ink-2); }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: .9375rem;
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar button {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-3); display: none; padding: 0;
}
.searchbar.has-value button { display: block; }

.topbar__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }

.list-btn { position: relative; }
.list-btn__count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--promo);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.list-btn__count:empty { display: none; }

@media (max-width: 760px) {
  .topbar__in { flex-wrap: wrap; height: auto; padding-block: .75rem; gap: .625rem 1rem; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .logo__city { display: none; }
  .logo__img { height: 30px; }
}

/* Sur les petits écrans, « Ma liste » se réduit à son icône pour rester
   sur la même ligne que le logo. */
@media (max-width: 430px) {
  .list-btn__label { display: none; }   /* l'icône, elle, doit rester */
  .list-btn { padding-inline: .875rem; }
  .btn { padding-inline: 1rem; }
}

/* ---------- Catégories ------------------------------------------- */

.cats {
  position: sticky;
  top: var(--head-h);
  z-index: 30;
  background: rgba(255,255,255,.72);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .cats { position: static; } }

.cats__rail {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: .5rem;
}
.cats__rail::-webkit-scrollbar { display: none; }

.cat {
  flex: none;
  display: grid;
  justify-items: center;
  gap: .375rem;
  width: 92px;
  padding: .5rem .25rem .625rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--ink-2);
  transition: color var(--t), border-color var(--t);
}
.cat__ph {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--teinte, var(--surface));
  display: grid;
  place-items: center;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow var(--t);
}
.cat__ph svg { width: 24px; height: 24px; stroke-width: 1.7; color: var(--ink-2); }
.cat:hover .cat__ph { transform: translateY(-3px) scale(1.06); }
.cat.is-on .cat__ph { box-shadow: 0 0 0 2px var(--ink); }
.cat:active .cat__ph { transform: scale(.96); }
.cat span { font-size: .75rem; font-weight: 500; text-align: center; line-height: 1.25; }
.cat:hover { color: var(--ink); }
.cat.is-on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Hero de l'accueil -------------------------------------
   La photo du magasin en fond, un voile pour la lisibilité, le texte en
   blanc par-dessus. */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;      /* le texte se pose au milieu du bandeau */
  /* La bannière est montrée en entier : le bandeau prend le format de
     l'image, sans dépasser la hauteur de l'écran. */
  aspect-ratio: 1672 / 739;   /* le format de la bannière recadrée */
  /* Sans cette largeur, `min-height` fait grandir la largeur pour tenir le
     format, et la page déborde sur le côté. */
  width: 100%;
  min-height: 420px;
  /* Assez de hauteur pour que la bannière ne soit pas rognée sur un grand
     écran, tout en laissant voir le début des rayons. */
  max-height: min(780px, calc(100dvh - var(--head-h) - 132px));
  padding-block: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  border-radius: 0 0 52px 52px;
  background: var(--ink);
}

.hero__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  /* L'allée à gauche laisse la place au texte : la photo remplit le cadre. */
  object-fit: cover;
  object-position: center bottom;
}
/* Voile : sombre à gauche, où se pose le texte, transparent sur les produits. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(9,12,16,.9) 0%, rgba(9,12,16,.78) 26%, rgba(9,12,16,.42) 48%, rgba(9,12,16,.12) 70%, rgba(9,12,16,0) 88%),
    linear-gradient(to top, rgba(9,12,16,.55) 0%, transparent 45%);
}

.hero__in { color: #fff; max-width: var(--max); }
.hero__oeil {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffb4ab;
}
.hero__titre {
  margin-top: .875rem;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.hero__sous {
  margin-top: 1rem;
  max-width: 44ch;
  color: rgba(255,255,255,.86);
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.hero__actions .btn { min-height: 50px; padding-inline: 1.5rem; }
/* Boutons du bandeau : un plein blanc, un contour clair. */
.btn--blanc { background: #fff; color: var(--ink); }
.btn--blanc:hover { background: #f1f1f2; }
.btn--verre {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--verre:hover { background: rgba(255,255,255,.24); }

.hero__preuves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
/* Une seule ligne d'informations, sans pastilles : la note et l'horaire. */
.hero__preuves { font-size: .9375rem; color: rgba(255,255,255,.85); }
.hero__preuves .avis { gap: .4375rem; }
.hero__preuves .avis b { color: #fff; font-weight: 600; }
.hero__preuves .avis__nb { color: rgba(255,255,255,.72); }
.hero__preuves .avis:hover .avis__nb { color: #fff; }
.preuve__sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.45); }
.preuve__etat { color: #ff9b90; font-weight: 500; }
.preuve__etat.est-ouvert { color: #7ee0a3; }

@media (max-width: 860px) {
  /* Sur téléphone, pas de texte blanc posé sur une photo assombrie : la photo
     reste nette en haut, le texte se lit en dessous, sur le fond de la page. */
  .hero {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    padding: 0 0 1.5rem;
    background: none;
    border-radius: 0;
    overflow: visible;
  }
  .hero::after { display: none; }

  .hero__fond {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 38%;
    border-radius: 0 0 28px 28px;
  }

  .hero__in { color: var(--ink); padding-top: 1.375rem; }
  .hero__titre {
    font-size: clamp(1.625rem, 7.5vw, 2rem);
    max-width: 20ch;
  }
  /* L'adresse et le détail sont plus bas dans la page : le bandeau garde
     l'accroche, deux boutons et la note. */
  .hero__sous { display: none; }

  /* Un seul bouton, rien d'autre : l'itinéraire, les horaires et la note se
     retrouvent plus bas et sur la page Infos. */
  .hero__actions { margin-top: 1.25rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn--verre { display: none; }
  .hero__preuves { display: none; }
  .hero .btn--blanc { background: var(--ink); color: #fff; }
  .hero .btn--blanc:hover { background: #33363d; }
  .hero .btn--verre { background: #fff; color: var(--ink); border-color: var(--line); }

  .hero__preuves { margin-top: 1.125rem; color: var(--ink-2); font-size: .875rem; }
  .hero__preuves .avis b { color: var(--ink); }
  .hero__preuves .avis__nb { color: var(--ink-3); }
  .preuve__sep { background: var(--ink-4); }
  .preuve__etat { color: var(--brand-ink); }
  .preuve__etat.est-ouvert { color: var(--ouvert); }
}

/* Note Google : logo « G », etoiles jaunes remplies au prorata. */
.avis { display: inline-flex; align-items: center; gap: .375rem; }
.avis .google { width: 15px; height: 15px; flex: none; }
.avis__nb { color: var(--ink-2); }
.avis:hover .avis__nb { text-decoration: underline; }
.foot li:empty { display: none; }

.etoiles { position: relative; display: inline-block; line-height: 0; flex: none; }
.etoiles__fond, .etoiles__plein { display: flex; gap: 1px; }
.etoiles__plein {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;   /* la largeur en % decoupe la derniere etoile */
}
.etoiles svg { width: 14px; height: 14px; flex: none; }
.etoiles__fond svg  { fill: #dadce0; }
.etoiles__plein svg { fill: #fbbc04; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  height: 32px;
  padding: 0 .75rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: .8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--open   { background: var(--ouvert-bg); color: var(--ouvert); font-weight: 500; }
.tag--closed { background: var(--brand-pale); color: var(--brand-ink); font-weight: 500; }

/* Page infos : les pastilles sous l'adresse. */
.shop__tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Les rayons, sous le hero ------------------------------- */

.rayons { padding-block: clamp(1rem, 2.5vw, 1.5rem) .5rem; }
.rayons__titre { font-size: 1.375rem; margin-bottom: .75rem; }
.rayons .cats__rail { padding-block: .25rem; }

/* Sur grand écran, la rangée de rayons se pose au milieu. */
@media (min-width: 761px) {
  .rayons__titre { text-align: center; }
  .rayons .cats__rail { justify-content: center; gap: .75rem; }
}

/* ---------- Entrée du bandeau --------------------------------------
   La photo se pose en s'élargissant à peine, le texte monte derrière elle.
   (Le bloc `prefers-reduced-motion` en haut du fichier neutralise tout ça.) */

@keyframes hero-fond {
  from { opacity: 0; transform: scale(1.07); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-monte {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.js .hero__fond {
  animation: hero-fond 1.3s cubic-bezier(.2, .7, .2, 1) both;
}
.js .hero__titre   { animation: hero-monte .75s cubic-bezier(.2, .8, .3, 1) both .15s; }
.js .hero__sous    { animation: hero-monte .75s cubic-bezier(.2, .8, .3, 1) both .27s; }
.js .hero__actions { animation: hero-monte .75s cubic-bezier(.2, .8, .3, 1) both .39s; }
.js .hero__preuves { animation: hero-monte .75s cubic-bezier(.2, .8, .3, 1) both .5s; }

/* ---------- Sections & rails ------------------------------------- */

.section { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.section--first { padding-top: 1.25rem; }
.section--first { border-top: 0; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__head h2 { font-size: 1.375rem; }
.section__more { font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.section__more:hover { color: var(--ink); }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: .25rem;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: minmax(230px, 1fr); } }

@media (max-width: 640px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 1rem .75rem;
  }
  .rail > *:nth-child(n + 5) { display: none; }   /* la suite est sous « Voir tout » */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem 1rem;
}
/* En dessous de 190px de colonne le catalogue tombait a un produit par
   ligne, avec des photos enormes : sur telephone on garde deux colonnes. */
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
}

/* ---------- Carte produit ---------------------------------------- */

.card { display: block; }

/* Le ratio passe par un padding : dans une piste de grille, `aspect-ratio`
   fait mal calculer la hauteur de ligne et le texte se fait rogner. */
.card__top { position: relative; }
.card__media {
  display: block;
  position: relative;
  padding-top: 75%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.card__media > img,
.card__media > .ph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transition: transform var(--t);
}
.card__media > img { object-fit: contain; background: #fff; padding: 6%; }
/* Fond blanc sur page blanche : un filet pour que la carte garde ses bords. */
.card__media:has(> img) { border: 1px solid var(--line); background: #fff; }
.card__media > .ph { object-fit: cover; }
.card:hover .card__media img { transform: scale(1.03); }

/* Sans photo : le pictogramme du rayon sur un fond teinté. */
.ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: var(--teinte, var(--surface));
}
.ph__icone {
  width: 38%;
  height: 38%;
  max-width: 64px;
  max-height: 64px;
  stroke-width: 1.4;
  color: var(--ink-2);
  opacity: .55;
}

.badge {
  position: absolute;
  top: .5rem; left: .5rem;
  height: 24px;
  padding: 0 .5rem;
  border-radius: 6px;
  background: var(--promo);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.badge--info { background: var(--ink); }

.card__add {
  position: absolute;
  right: .5rem; bottom: .5rem;
  width: 40px; height: 40px;
  /* Rond blanc sur fond blanc : sans ce filet et cette ombre, le bouton
     semblait transparent, surtout quand la carte se soulève au survol. */
  border: var(--verre-bord);
  border-radius: 999px;
  background: var(--verre-fond);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(15,23,32,.16), inset 0 1px 0 rgba(255,255,255,.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.card__add:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Zone de contact étendue à 48 px sans grossir le bouton. */
.card__add::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; }
.card__add.is-in { background: var(--brand); border-color: var(--brand); color: #fff; }

.card__body { display: block; padding-top: .625rem; }
.card__name {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__sub { font-size: .8125rem; color: var(--ink-3); margin-top: .125rem; }
.card__price { font-size: .9375rem; font-weight: 500; margin-top: .25rem; }
.card__price--ask { color: var(--ink-3); font-weight: 400; }

/* ---------- États vides & compteur ------------------------------- */

.count { color: var(--ink-3); font-size: .875rem; margin-bottom: 1rem; }

.empty {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--ink-2);
}
.empty h2 { margin-bottom: .5rem; }

/* ---------- Page produit ----------------------------------------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--ink-3);
  padding-block: 1rem;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: 3rem;
}
.product__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.product__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product__media .ph__icone { width: 34%; height: 34%; max-width: 170px; max-height: 170px; }

.product__brand {
  font-size: .8125rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product__title { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-top: .375rem; }
.product__price { font-size: 1.5rem; font-weight: 600; margin-top: 1rem; }
.product__price small { font-size: .875rem; font-weight: 400; color: var(--ink-3); margin-left: .5rem; }
.product__price--ask { font-size: 1.125rem; font-weight: 500; color: var(--ink-2); }
.product__desc { color: var(--ink-2); margin-top: 1rem; max-width: 52ch; }

.product__facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .625rem; }
.product__facts li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  color: var(--ink-2);
}
.product__facts svg { color: var(--ink-3); }

.product__actions { display: flex; gap: .625rem; margin-top: 1.75rem; flex-wrap: wrap; }

.notice {
  margin-top: 1.5rem;
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: .875rem;
  color: var(--ink-2);
}

@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- Liste de courses (tiroir) ---------------------------- */

.drawer-back {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.drawer-back.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 61;
  width: min(400px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.2, 0, .2, 1);
  box-shadow: var(--shadow);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.125rem; }
.drawer__close {
  width: 44px; height: 44px;
  border: var(--verre-bord); border-radius: 999px;
  background: var(--verre-fond);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  display: grid; place-items: center;
  cursor: pointer;
}
.drawer__close:hover { background: var(--surface-2); }

.drawer__body { flex: 1; overflow-y: auto; padding: .5rem 1.25rem 1.25rem; }
.drawer__foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; margin-bottom: .875rem; font-size: .9375rem; }
.drawer__total[hidden] { display: none; }   /* le display:flex battait [hidden] */
.drawer__total b { font-weight: 600; }
.drawer__hint { font-size: .8125rem; color: var(--ink-3); margin-top: .75rem; text-align: center; }

.line {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child { border-bottom: 0; }
.line__media {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  flex: none;
}
.line__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.line__media .ph__icone { width: 45%; height: 45%; }
.line__body { flex: 1; min-width: 0; }
.line__name { font-size: .875rem; font-weight: 500; }
.line__sub { font-size: .75rem; color: var(--ink-3); }
.line__price { font-size: .875rem; margin-top: .25rem; }

/* Compteur en pilule : un seul cadre autour des deux boutons et du nombre. */
.qty {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: .1875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.qty button {
  position: relative;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 999px;
  background: none;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.qty button:hover { background: var(--surface); }
.qty button[data-suppr]:hover { color: var(--brand-ink); }
.qty button .icon { width: 18px; height: 18px; }
.qty span {
  min-width: 24px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* La fiche produit garde son compteur sous le bouton d'ajout. */
.product .qty { margin-top: .5rem; }

@media (max-width: 560px) {
  .drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .drawer__body { flex: 0 1 auto; }
  .drawer__head { padding: .875rem 1.25rem; }
}

/* ---------- Pages annexes ---------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: 1rem 3rem;
}
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; }
.table td { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink-2); }
.table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-today td { font-weight: 500; color: var(--ink); }

.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1.25rem;
}

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.info-card p { font-size: .875rem; color: var(--ink-2); }

/* ---------- Footer ----------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 2rem;
  margin-top: 2rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

.foot h4 { font-size: .8125rem; font-weight: 600; margin: 0 0 .75rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot li, .foot a { font-size: .875rem; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
}

/* ---------- Toast ------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.125rem;
  border-radius: 999px;
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==================================================================
   ANIMATIONS
   Tout est neutralisé par `prefers-reduced-motion` (bloc en haut du
   fichier). Les états masqués sont conditionnés à `.js` : sans script,
   la page reste entièrement lisible.
   ================================================================== */

/* ---------- Transitions entre pages ------------------------------ */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: sortie 140ms cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: entree 260ms cubic-bezier(0,0,.2,1) 40ms both; }

@keyframes sortie { to { opacity: 0; transform: translateY(-6px); } }
@keyframes entree { from { opacity: 0; transform: translateY(10px); } }

/* Le visuel cliqué se transforme en visuel de la fiche produit. */
::view-transition-group(visuel) { animation-duration: 380ms; }
::view-transition-old(visuel),
::view-transition-new(visuel) { animation: none; }

/* Le header ne bouge pas pendant la transition. */
.topbar { view-transition-name: entete; }
::view-transition-old(entete),
::view-transition-new(entete) { animation: none; }

/* ---------- Apparition au chargement et au scroll ---------------- */

@keyframes monte {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.js .anim { opacity: 0; }
.js .anim.is-in {
  animation: monte .34s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

/* Les images arrivent en fondu une fois chargées. */
.js img[data-fade] { opacity: 0; transition: opacity .2s ease, transform var(--t); }
.js img[data-fade].is-loaded { opacity: 1; }

/* ---------- Header ------------------------------------------------ */

.topbar { transition: box-shadow .25s ease; }
.topbar.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px -12px rgba(0,0,0,.25); }

.logo__img { transition: transform .35s cubic-bezier(.2,.9,.3,1.4); }
.logo:hover .logo__img { transform: scale(1.04); }

/* ---------- Barre de recherche ------------------------------------ */

.searchbar { transition: background var(--t), border-color var(--t), box-shadow .25s ease; }
.searchbar:focus-within { box-shadow: 0 0 0 4px rgba(23,128,61,.12); }
.searchbar > span:first-child { transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.searchbar:focus-within > span:first-child { transform: scale(1.12); }

/* ---------- Catégories -------------------------------------------- */


/* Le trait sous la catégorie active glisse d'un onglet à l'autre. */
.cats__rail { position: relative; }
.js .cats__rail .cat { border-bottom-color: transparent; }
.cats__ink {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  transition: transform .38s cubic-bezier(.3,.9,.3,1),
              width .38s cubic-bezier(.3,.9,.3,1),
              opacity .2s ease;
  pointer-events: none;
}

/* ---------- Cartes ------------------------------------------------- */

.card__top { transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.card:hover .card__top { transform: translateY(-4px); }
.card__media { transition: box-shadow .35s ease; }
/* La carte se soulève : la bordure d'un pixel s'efface sur la couche de rendu,
   l'anneau de la première ombre prend le relais. */
.card:hover .card__media {
  box-shadow: 0 0 0 1px var(--line), 0 10px 26px -14px rgba(0,0,0,.45);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__name { transition: color var(--t); }
.card:hover .card__name { color: var(--brand-ink); }

.badge {
  transition: transform .3s cubic-bezier(.2,.9,.3,1.4);
  transform-origin: left center;
}
.card:hover .badge { transform: scale(1.06); }

.card__add { transition: background var(--t), color var(--t), transform .28s cubic-bezier(.2,.9,.3,1.5); }
.card:hover .card__add { transform: scale(1.08); }
.card__add:active { transform: scale(.88); }

@keyframes pastille-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.card__add.pop, .btn.pop { animation: pastille-pop .42s cubic-bezier(.2,.9,.3,1.4); }

/* ---------- Boutons ------------------------------------------------ */

.btn {
  transition: background var(--t), border-color var(--t), color var(--t),
              transform .2s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s ease;
}
.btn:active { transform: scale(.96); }
.btn--primary:hover, .btn--brand:hover { box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn .icon { transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.btn:hover .icon { transform: translateX(2px); }
.list-btn:hover .icon { transform: translateY(-2px); }

/* Compteur de la liste : petit rebond à chaque changement. */
@keyframes compteur-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.list-btn__count.bump { animation: compteur-bump .45s cubic-bezier(.2,.9,.3,1.5); }

/* ---------- Vol vers la liste -------------------------------------- */

.vol {
  position: fixed;
  z-index: 80;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.5);
}

/* ---------- Flèches des rails -------------------------------------- */

.rail-wrap { position: relative; }
.rail-nav {
  position: absolute;
  top: calc(50% - 42px);
  width: 40px; height: 40px;
  border: var(--verre-bord);
  border-radius: 999px;
  background: var(--verre-fond);
  backdrop-filter: var(--verre-flou);
  -webkit-backdrop-filter: var(--verre-flou);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--verre-ombre);
  opacity: 0;
  transform: scale(.8);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.3,1.4), background var(--t);
  z-index: 2;
}
.rail-nav--prev { left: -10px; }
.rail-nav--next { right: -10px; }
.rail-nav:hover { background: var(--surface); }
.rail-wrap:hover .rail-nav { opacity: 1; transform: none; }
.rail-nav[hidden] { display: none; }
.rail-nav .icon { width: 18px; height: 18px; }
.rail-nav--prev .icon { transform: rotate(180deg); }
@media (hover: none) { .rail-nav { display: none; } }

/* ---------- Ruban d'avis --------------------------------------------
   Deux pistes qui défilent en sens inverse, mises en pause au survol. */

.avis-bloc {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.avis-bloc__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.avis-bloc__tete h2 { font-size: 1.375rem; }
.avis-bloc__lien {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.avis-bloc__lien:hover { color: var(--ink); }
.avis-bloc__lien .icon { width: 16px; height: 16px; }

.ruban {
  position: relative;
  overflow: hidden;
  padding-block: .375rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.ruban__piste {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: defile 62s linear infinite;
}
.ruban__piste--inverse { animation-direction: reverse; }
.ruban:hover .ruban__piste { animation-play-state: paused; }

@keyframes defile {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* la série est doublée */
}

.avis-carte {
  flex: none;
  width: 320px;
  margin: 0;
  padding: 1.125rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.avis-carte__tete { display: flex; align-items: center; gap: .75rem; }
.avis-carte__tete b { display: block; font-size: .9375rem; font-weight: 600; }
.avis-carte__date { font-size: .75rem; color: var(--ink-3); }
.avis-carte__initiale {
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 600;
  color: var(--ink-2);
}
.avis-carte__photo {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.avis-carte__note { margin-top: .75rem; }
.avis-carte blockquote {
  margin: .5rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .avis-carte { width: 268px; padding: 1rem; }
  .ruban__piste { animation-duration: 48s; }
}

/* ---------- Grille : changement de filtre --------------------------- */

@keyframes fondu { from { opacity: .25; transform: translateY(8px); } }
.grid.is-swap { animation: fondu .3s ease; }

.count { transition: opacity .2s ease; }

/* ---------- Tiroir --------------------------------------------------- */

@keyframes ligne-entre {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.drawer.is-open .line {
  animation: ligne-entre .38s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.qty button { transition: background var(--t), transform .2s cubic-bezier(.2,.9,.3,1.5); }
.qty button:active { transform: scale(.85); }
.drawer__close { transition: background var(--t), transform .3s cubic-bezier(.2,.9,.3,1.4); }
.drawer__close:hover { transform: rotate(90deg); }

/* ---------- Page produit --------------------------------------------- */

.product__media { view-transition-name: visuel; }
.product__brand, .product__title, .product__price,
.product__desc, .product__facts, .product__actions, .notice {
  animation: monte .55s cubic-bezier(.2,.8,.3,1) both;
}
.product__brand   { animation-delay: 40ms; }
.product__title   { animation-delay: 80ms; }
.product__price   { animation-delay: 120ms; }
.product__desc    { animation-delay: 160ms; }
.product__facts   { animation-delay: 200ms; }
.product__actions { animation-delay: 240ms; }
.notice           { animation-delay: 280ms; }

.product__facts li { transition: transform .25s ease, color .25s ease; }
.product__facts li:hover { transform: translateX(3px); color: var(--ink); }

/* ---------- Divers ---------------------------------------------------- */

.tag { transition: transform .25s cubic-bezier(.2,.9,.3,1.4), background var(--t); }
.tag:hover { transform: translateY(-2px); }

.info-card { transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease; }
.info-card:hover { transform: translateY(-3px); border-color: var(--ink-3); box-shadow: var(--shadow); }

.table tr { transition: background .2s ease; }
.table tr:hover td { background: var(--surface); }

.section__more { transition: color var(--t), transform .25s ease; display: inline-block; }
.section__more:hover { transform: translateX(3px); }

.foot a { transition: color var(--t), transform .2s ease; display: inline-block; }
.foot a:hover { transform: translateX(2px); }

/* Le pictogramme du tag « ouvert » respire doucement. */
@keyframes pouls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23,128,61,.35); }
  60%      { box-shadow: 0 0 0 7px rgba(23,128,61,0); }
}
.tag--open svg { border-radius: 999px; animation: pouls 2.6s ease-out infinite; }

/* ---------- Ecrans tactiles -------------------------------------- */

/* iOS garde l'etat :hover apres un appui : la carte touchee restait rouge,
   remontee, avec sa pastille agrandie de travers. Sur un ecran sans souris
   on annule tous ces effets de survol. */
@media (hover: none) {
  .card:hover .card__name  { color: inherit; }
  .card:hover .card__top   { transform: none; }
  .card:hover .card__media { box-shadow: none; }
  .card:hover .card__media img { transform: none; }
  .card:hover .card__add   { transform: none; }
  .card__add:hover { background: #fff; color: var(--ink); }
  .card__add.is-in, .card__add.is-in:hover { background: var(--brand); color: #fff; }

  .btn--primary:hover { background: var(--ink); }
  .btn--brand:hover   { background: var(--brand); }
  .btn--soft:hover    { background: var(--surface); }
  .btn--line:hover    { background: #fff; }

  .qty button:hover { background: none; }
  .qty button[data-suppr]:hover { color: inherit; }
  .cat:hover .cat__ph { transform: none; }
  .cat:hover { color: var(--ink-2); }
  .cat.is-on { color: var(--ink); }
  .drawer__close:hover { background: var(--surface); transform: none; }
  .logo:hover .logo__img { transform: none; }
  .section__more:hover { color: var(--ink-2); }
}

/* ---------- Densite sur telephone -------------------------------- */

/* Tout etait espace comme sur un grand ecran : on resserre pour voir
   des produits plus tot. */
@media (max-width: 640px) {
  .cats__rail { padding-block: .375rem; }
  .cat { width: 78px; padding: .375rem .125rem .5rem; gap: .25rem; }
  .cat__ph { width: 44px; height: 44px; }
  .cat__ph svg { width: 22px; height: 22px; }
  .cat span { font-size: .6875rem; }

  .section { padding-block: 1.125rem 1.375rem; }
  .section--first { padding-top: 1rem; }
  .section__head { margin-bottom: .75rem; }
  .section__head h2 { font-size: 1.1875rem; }
}

/* ---------- Barre du bas (téléphone) -------------------------------
   Verre dépoli : la même recette que la navbar du portfolio. */

.tabbar { display: none; }

@media (max-width: 860px) {
  .tabbar {
    position: fixed;
    left: 50%;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 45;
    display: block;
    width: min(440px, calc(100% - 1.5rem));
  }
  .tabbar__verre {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
      0 8px 32px rgba(15, 23, 32, .16),
      0 1px 2px rgba(15, 23, 32, .06),
      inset 0 1px 0 rgba(255, 255, 255, .75);
  }
  .tab {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: .375rem .25rem;
    border-radius: 999px;
    color: var(--ink-3);
    font-size: .6875rem;
    font-weight: 500;
    transition: color var(--t), background var(--t);
  }
  .tab .icon { width: 21px; height: 21px; }
  .tab.is-on { color: var(--ink); background: rgba(255, 255, 255, .75); }
  .tab:active { transform: scale(.96); }

  .tab__compte {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .625rem;
    font-weight: 600;
    display: grid;
    place-items: center;
  }
  .tab__compte:empty { display: none; }

  /* De la place sous le contenu, sinon la barre couvre la fin de page. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .drawer { bottom: 0; }
}

/* ---------- Logos des transporteurs --------------------------------
   Une rangée sobre, les logos dans leurs couleurs. */

.transporteurs-bloc { text-align: center; }
.transporteurs__titre {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
}

.transporteurs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem clamp(2rem, 6vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.transporteurs li { display: flex; align-items: center; }
.transporteurs img {
  height: 30px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  transition: transform .35s ease;
}
.transporteurs li:hover img { transform: translateY(-2px); }

@media (max-width: 640px) {
  .transporteurs { gap: 1.25rem 2rem; }
  .transporteurs img { height: 24px; max-width: 108px; }
}


/* ---------- Déstockage du jour -----------------------------------
   Les arrivages postés depuis l'administration (js/destockage.js).
   Ce sont des photos prises au téléphone : elles remplissent la vignette,
   à l'inverse des packshots du catalogue posés sur blanc. */

.destock[hidden], .hero__alerte[hidden] { display: none !important; }

.destock {
  padding-block: 1.75rem .75rem;
  background: linear-gradient(180deg, #fff5ee 0%, #fff 78%);
  scroll-margin-top: var(--head-h);
}
.destock__tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.destock__pastille {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  height: 26px;
  padding: 0 .625rem;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.destock__point {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-vif);
  flex: none;
  animation: pouls 1.8s ease-out infinite;
}
@keyframes pouls {
  0%   { box-shadow: 0 0 0 0 rgba(250,87,1,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(250,87,1,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,87,1,0); }
}
.destock__titre { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-top: .5rem; }
.destock__sous  { color: var(--ink-3); font-size: .875rem; margin-top: .25rem; }

.dcard { display: block; min-width: 0; }
.dcard__media {
  display: block;
  position: relative;
  width: 100%;
  padding: 100% 0 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.dcard__media[disabled] { cursor: default; }
.dcard__media > img,
.dcard__sans {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.dcard__sans { display: grid; place-items: center; background: var(--brand-pale); }
.dcard:hover .dcard__media > img { transform: scale(1.04); }
.dcard__remise,
.dcard__etat {
  position: absolute;
  top: .5rem; left: .5rem;
  height: 26px;
  padding: 0 .5rem;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.dcard__etat { background: var(--ink); }
.dcard__corps { padding-top: .625rem; }
.dcard__nom {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dcard__unite { font-size: .8125rem; color: var(--ink-3); margin-top: .125rem; }
.dcard__prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .5rem; margin-top: .25rem; }
.dcard__prix b { font-size: 1.0625rem; font-weight: 600; color: var(--brand-ink); }
.dcard__prix s { font-size: .8125rem; color: var(--ink-3); }
.dcard__demande { font-size: .9375rem; color: var(--ink-3); }
.dcard__note { font-size: .8125rem; color: var(--ink-2); margin-top: .25rem; line-height: 1.35; }
.dcard--epuise .dcard__media > img { filter: grayscale(1); opacity: .5; }
.dcard--epuise .dcard__prix b { color: var(--ink-3); }

/* Le bandeau de l'accueil annonce le déstockage quand il y en a un. */
.hero__alerte {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: .4375rem .875rem .4375rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  animation: hero-monte .6s cubic-bezier(.2, .8, .3, 1) both;
  transition: background var(--t);
}
.hero__alerte:hover { background: rgba(255,255,255,.26); }
.hero__alerte .icon { width: 16px; height: 16px; }

/* Page dédiée */
.page-destock { padding-block: 1.75rem 3rem; }
.grid--destock { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 520px) { .grid--destock { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.destock__legal { margin-top: 2rem; font-size: .8125rem; color: var(--ink-3); }

/* Visionneuse : la photo en grand, au toucher. */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9,12,16,.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.visionneuse.is-open { opacity: 1; pointer-events: auto; }
.visionneuse figure { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.visionneuse img { max-width: min(100%, 1100px); max-height: 80dvh; border-radius: 12px; object-fit: contain; }
.visionneuse figcaption { color: #fff; font-weight: 500; text-align: center; }
.visionneuse__fermer {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

@media (hover: none) { .dcard:hover .dcard__media > img { transform: none; } }
@media (prefers-reduced-motion: reduce) { .destock__point, .hero__alerte { animation: none; } }

.destock__tete .section__more { white-space: nowrap; }

/* Sur téléphone, le texte du bandeau passe sous la photo, sur fond blanc :
   la pastille du déstockage passe en orange pâle. */
@media (max-width: 860px) {
  .hero__alerte {
    background: var(--brand-pale);
    border-color: transparent;
    color: var(--brand-ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Le déstockage reste visible même vide : bouton dans l'en-tête (l'onglet de
   la barre du bas le remplace sur téléphone), et point orange sur l'onglet
   quand des articles sont en vente. */
.topbar__destock .icon { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 760px) { .topbar__destock { display: none; } }
.tab.a-du-neuf::after {
  content: '';
  position: absolute;
  top: 5px;
  right: calc(50% - 17px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-vif);
  box-shadow: 0 0 0 2px #fff;
}
.destock__sous--vide { color: var(--ink-2); font-size: .9375rem; }
.destock .rail[hidden] { display: none; }

/* Le logo FOOD MARKET 34 est plus large que l'ancien : sous 430 px, un bouton
   « Catalogue » passait à la ligne sous le logo. */
@media (max-width: 430px) { .logo__img { height: 27px; } }

/* ---------- Téléphone ---------------------------------------------------
   Tout ce qui est propre au téléphone (760 px et moins) est dans
   css/mobile.css. Ici, seulement ce qui doit exister partout. */
.cat__nb, .m-seul, .m-avis, .topbar__etat { display: none; }

@media (max-width: 860px) {
  .topbar__actions { display: none; }
}

.grille__rayon {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.1875rem;
}
.grille__rayon:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.grille__rayon span { font-size: .8125rem; font-weight: 400; color: var(--ink-3); }

/* Logo Google : à côté de la note, sous le titre des avis, et dans le coin
   de chaque carte — les avis viennent de la fiche Google du magasin. */
.avis-bloc__tete { align-items: flex-end; }
.avis-bloc__note { margin-top: .375rem; font-size: .9375rem; }
.avis-bloc__note .avis b { font-weight: 600; }
.avis-bloc__note .avis .google { width: 17px; height: 17px; }
.avis-carte__g { margin-left: auto; align-self: flex-start; line-height: 0; }
.avis-carte__g .google { width: 18px; height: 18px; }

/* Le titre principal de l'accueil (h1) dit ce qu'est le magasin ; l'accroche
   « Le carton, la palette… » garde le grand corps. */
.hero__oeil { margin: 0; color: #ffd2b3; }
@media (min-width: 761px) and (max-width: 860px) { .hero__oeil { color: var(--brand-ink); } }

/* Quelques lignes sur le magasin, en bas de l'accueil. */
.apropos { padding-block: 1.5rem 2.5rem; }
.apropos h2 { font-size: 1.125rem; }
.apropos p { max-width: 70ch; margin-top: .625rem; color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }

/* ---------- Formulaire de contact (page Infos) --------------------- */

.contact { display: grid; gap: 1rem; max-width: 640px; }
.contact .champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact .champ span { display: block; margin-bottom: .375rem; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.contact .champ em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.contact input,
.contact textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;   /* 16 px : iOS ne zoome pas au toucher */
}
.contact textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.contact input:focus,
.contact textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(210,67,0,.12); }
/* Le champ piège ne doit être vu ni lu, mais rester dans la page. */
#c-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__pied { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.contact__etat { font-size: .875rem; color: var(--ink-2); }
.contact__etat.est-ok { color: var(--ouvert); }
.contact__etat.est-erreur { color: var(--brand-ink); }
@media (max-width: 560px) { .contact .champ-duo { grid-template-columns: 1fr; } }
