/* ========================================================
   MES CIRCULAIRES — identité « étiquette de prix »
   Palette : vert épicerie, jaune étiquette, rouge spécial
   ======================================================== */
:root {
  --vert: #17513A;
  --vert-fonce: #0E3324;
  --jaune: #FFD64D;
  --rouge: #DE2B2B;
  --encre: #14170F;
  --papier: #FDFDFB;
  --gris: #EEF0E9;
  --rayon: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  color: var(--encre);
  background: var(--papier);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); }

/* ---------- En-tête ---------- */
.site-tete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--vert);
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 42px; width: auto; display: block; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--vert-fonce); }

/* ---------- Héros ---------- */
.heros {
  position: relative;
  padding: clamp(44px, 8vw, 90px) clamp(16px, 4vw, 48px) clamp(36px, 6vw, 70px);
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 920px) {
  .heros { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
}
.heros-texte { max-width: 880px; }

/* Mosaïque de logos des grands magasins */
.heros-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
}
.heros-logo {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(58px, 7vw, 84px);
  padding: 10px 14px;
  background: var(--marque);
  color: var(--encre, #fff);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(20, 23, 15, 0.22);
  transform: rotate(calc((var(--i, 0) - 3.5) * 0.9deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.heros-logo:hover, .heros-logo:focus-visible {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 5px 5px 0 rgba(20, 23, 15, 0.28);
}
.heros-logo--img { background: #fff; padding: 12px 16px; }
.heros-logo--img img { max-width: 100%; max-height: 52px; object-fit: contain; }
@media (max-width: 919px) {
  .heros-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .heros-logo { min-height: 52px; font-size: 0.82rem; padding: 8px 6px; border-radius: 10px; }
}
@media (max-width: 560px) {
  .heros-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.heros-sur { margin: 0 0 10px; font-weight: 700; color: var(--vert); font-size: 0.95rem; }
.heros h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 900;
  font-variation-settings: 'wdth' 82;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.heros-sous { margin: 18px 0 0; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 34em; color: #3c4136; }
.heros-sous em { font-style: normal; background: linear-gradient(transparent 62%, var(--jaune) 62%); }

/* L'étampe — élément signature, une seule animation orchestrée au chargement */
.etampe {
  position: absolute;
  right: clamp(10px, 6vw, 90px);
  top: clamp(18px, 5vw, 56px);
  background: var(--rouge); color: #fff;
  font-weight: 900; font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  padding: 10px 16px;
  border-radius: 8px;
  transform: rotate(7deg);
  box-shadow: 3px 3px 0 rgba(20, 23, 15, 0.25);
  animation: etamper 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 0.25s both;
}
@keyframes etamper {
  from { transform: rotate(7deg) scale(2.4); opacity: 0; }
  to   { transform: rotate(7deg) scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .etampe { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections & grille ---------- */
.section { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900; font-variation-settings: 'wdth' 85;
  margin: 0 0 18px;
}
.section--prochaine { background: var(--gris); }
.section-intro { margin: -6px 0 20px; color: #3c4136; max-width: 44em; }
.pastille {
  vertical-align: middle;
  background: var(--jaune); color: var(--encre);
  font-size: 0.55em; font-weight: 800;
  padding: 5px 10px; border-radius: 999px;
  transform: rotate(-2deg); display: inline-block; margin-left: 6px;
}
.vide { color: #5a5f52; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.carte {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff;
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  padding: 0 16px 16px;
  text-decoration: none; color: var(--encre);
  box-shadow: 4px 4px 0 rgba(20, 23, 15, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  overflow: hidden;
}
.carte:hover, .carte:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--marque, var(--vert));
}
.carte-bande {
  align-self: stretch; margin: 0 -16px 0;
  background: var(--marque, var(--vert)); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 6px 16px;
}
.carte-vignette {
  display: block; margin: 0 -16px 10px;
  background: var(--gris);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.carte-vignette img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top; /* montre le haut de la 1re page : logo + aubaines vedettes */
  display: block;
}
.carte--future .carte-bande::after { content: ' · en primeur'; opacity: 0.85; }
.carte-nom { font-size: 1.3rem; font-weight: 900; font-variation-settings: 'wdth' 88; }
.carte-periode { font-size: 0.9rem; color: #3c4136; }
.carte-pages { margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: var(--vert); }

/* ---------- Fiche magasin ---------- */
.fiche-tete { padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 48px) 8px; }
.fil { font-size: 0.85rem; margin: 0 0 8px; }
.fil a { text-decoration: none; font-weight: 600; }
.fiche h1 {
  margin: 0; font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 900; font-variation-settings: 'wdth' 84; line-height: 1.08;
}
.fiche-periode { margin: 10px 0 16px; font-size: 1.02rem; }
.bascule { display: inline-flex; border: 2px solid var(--encre); border-radius: 999px; overflow: hidden; }
.bascule a { padding: 8px 18px; text-decoration: none; font-weight: 700; font-size: 0.92rem; color: var(--encre); }
.bascule a.actif { background: var(--encre); color: var(--jaune); }

.aubaines {
  margin: 18px clamp(16px, 4vw, 48px);
  background: var(--jaune);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  padding: 18px 22px;
  max-width: 760px;
}
.aubaines h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; }
.aubaines ul { margin: 0; padding-left: 20px; }
.aubaines li { margin: 4px 0; }

/* Aperçu replié : sans JS, tout reste visible (SEO). Le JS ajoute .est-repliee. */
.aubaines.est-repliee li.aubaine-cachee { display: none; }
.aubaines.est-repliee ul {
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0.25));
  mask-image: linear-gradient(180deg, #000 70%, rgba(0,0,0,0.25));
}
.aubaines-plus {
  margin-top: 12px;
  padding: 7px 16px;
  font: inherit; font-weight: 700; font-size: 0.9rem;
  color: var(--encre);
  background: #fff;
  border: 2px solid var(--encre);
  border-radius: 999px;
  cursor: pointer;
}
.aubaines-plus:hover { background: var(--encre); color: var(--jaune); }

.pages {
  display: grid; gap: 22px;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  max-width: 980px; margin-inline: auto;
}
.page { margin: 0; }
.page img {
  width: 100%; border: 2px solid var(--encre); border-radius: 6px;
  cursor: zoom-in; background: #fff;
}
.page figcaption { font-size: 0.82rem; color: #5a5f52; margin-top: 6px; text-align: center; }

/* ---------- Avis de non-responsabilité : même habillage que le bloc aubaines ---------- */
.avis-legal {
  margin: 18px clamp(16px, 4vw, 48px) 34px;
  background: var(--jaune);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  padding: 18px 22px;
  max-width: 760px;
}
.avis-legal h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 900; }
.avis-legal p { margin: 0 0 8px; font-size: 0.92rem; }
.avis-legal p:last-child { margin-bottom: 0; }

/* ---------- Circulaires expirées : passage en noir et blanc ---------- */
.fiche--expiree .pages img,
.carte--expiree,
.visionneuse--expiree .v-image {
  filter: grayscale(1);
}
.carte--expiree { opacity: 0.85; }
.carte--expiree:hover, .carte--expiree:focus-visible { filter: grayscale(0.4); opacity: 1; }
.fiche--expiree .pages img { cursor: zoom-in; transition: filter 0.25s ease; }
.fiche--expiree .pages .page:hover img { filter: grayscale(0.55); } /* léger aperçu couleur au survol */

.avis-expiree {
  margin: 12px 0 16px;
  max-width: 46em;
  background: var(--gris);
  border: 2px dashed #8a8f80;
  border-radius: var(--rayon);
  padding: 12px 16px;
  font-weight: 600;
  color: #3c4136;
}
.page { position: relative; }

/* ---------- Contenu éditorial par magasin ---------- */
.editorial {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 56px;
}
.editorial h2 {
  font-size: 1.35rem;
  font-weight: 900; font-variation-settings: 'wdth' 88;
  margin: 34px 0 10px;
}
.editorial p { margin: 0 0 10px; color: #2c2f27; }
.conseils { margin: 0; padding-left: 22px; }
.conseils li { margin: 8px 0; color: #2c2f27; }
.faq {
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  margin: 10px 0;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  list-style-position: inside;
}
.faq[open] summary { border-bottom: 2px solid var(--gris); }
.faq p { padding: 12px 16px; margin: 0; }

/* ---------- Annuaire des magasins ---------- */
.titre-page {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; font-variation-settings: 'wdth' 84;
  margin: 0 0 8px;
}
.groupe-titre {
  font-size: 1.2rem; font-weight: 900;
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--jaune);
  display: inline-block;
}
.carte--inactive { opacity: 0.55; box-shadow: none; cursor: default; }

/* ---------- Liste des archives d'un magasin ---------- */
.archives {
  max-width: 720px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.archives h2 {
  font-size: 1.35rem; font-weight: 900; font-variation-settings: 'wdth' 88;
  margin: 10px 0 12px;
}
.liste-archives { list-style: none; margin: 0; padding: 0; }
.liste-archives li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  border: 2px solid var(--gris);
  border-radius: var(--rayon);
  margin-bottom: 8px;
  background: #fff;
}
.liste-archives li.archive--active { border-color: var(--encre); }
.liste-archives a { font-weight: 700; text-decoration: none; color: var(--encre); }
.liste-archives a:hover { text-decoration: underline; }
.archive--expiree a { color: #6a6f61; }
.badge {
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
}
.badge--vigueur { background: var(--vert); color: #fff; }
.badge--primeur { background: var(--jaune); color: var(--encre); }
.badge--expiree { background: var(--gris); color: #5a5f52; }

.etampe-expiree {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #5a5f52; color: #fff;
  font-weight: 900; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px; border-radius: 8px;
  transform: rotate(-8deg);
  box-shadow: 2px 2px 0 rgba(20, 23, 15, 0.3);
  pointer-events: none;
}

/* ---------- Visionneuse plein écran ---------- */
.visionneuse {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 51, 36, 0.96);
  display: grid; place-items: center;
}
.visionneuse[hidden] { display: none; }
.v-image { max-width: min(96vw, 900px); max-height: 88vh; width: auto; border-radius: 6px; touch-action: pan-y; }
.v-fermer, .v-prec, .v-suiv {
  position: absolute; z-index: 2;
  background: var(--jaune); color: var(--encre);
  border: 2px solid var(--encre); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.5rem; font-weight: 900;
  cursor: pointer; display: grid; place-items: center; line-height: 1;
}
.v-fermer { top: 16px; right: 16px; }
.v-prec { left: 12px; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 12px; top: 50%; transform: translateY(-50%); }
.v-compteur { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; margin: 0; }

/* ---------- Pied ---------- */
.site-pied {
  background: var(--encre); color: #d8dcd0;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  font-size: 0.9rem;
}
.site-pied p { max-width: 62em; }
.pied-note { opacity: 0.75; }

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

@media (max-width: 560px) {
  .site-nav a { padding: 8px 8px; font-size: 0.85rem; }
  .etampe { position: static; display: inline-block; margin-top: 18px; }
}

/* ============ Ajouts : pages informatives, primeur, cartes en cours ============ */

/* Pages informatives (qui sommes-nous, conditions, confidentialité) */
.page-texte { max-width: 720px; }
.page-texte h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; font-variation-settings: 'wdth' 84; margin: 0 0 6px; }
.page-chapeau { font-size: 1.02rem; color: #3c4136; margin: 0 0 26px; }
.page-texte h2 { font-size: 1.12rem; font-weight: 900; margin: 28px 0 8px; }
.page-texte p { margin: 0 0 12px; }
.page-texte ul { margin: 0 0 12px; padding-left: 22px; }
.page-texte li { margin-bottom: 8px; }

/* Liens des pages informatives dans le pied */
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 8px 0; }
.pied-liens a { color: #fff; font-size: 0.85rem; font-weight: 600; }

/* Message « la primeur n'est pas encore publiée » — style étiquette jaune */
.avis-primeur-attente {
  margin: 14px 0 16px; padding: 12px 16px;
  background: var(--jaune);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  box-shadow: 4px 4px 0 rgba(20, 23, 15, 0.12);
  font-size: 0.94rem; max-width: 760px;
}

/* Cartes de la page semaine prochaine (primeur absente) */
.duo-cartes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; max-width: 860px;
  margin: 8px 0 10px; padding: 0 clamp(16px, 4vw, 48px);
}
@media (max-width: 560px) { .duo-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carte--bientot { cursor: default; }
.carte-vignette--bientot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(-45deg, rgba(20, 23, 15, 0.05) 0 12px, transparent 12px 24px),
    var(--gris);
}
.bientot-texte {
  font-weight: 900; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--encre); background: var(--jaune);
  padding: 4px 12px; border: 2px solid var(--encre); border-radius: 6px;
  transform: rotate(-3deg);
}
.bientot-icone { font-size: 1.4rem; }

/* Bandeau compact « autres circulaires en cours » */
.encours {
  margin: 6px clamp(16px, 4vw, 48px) 10px; padding: 12px 14px 14px;
  background: #FFF7DB;
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  box-shadow: 4px 4px 0 rgba(20, 23, 15, 0.12);
}
.encours h2 { font-size: 0.95rem; font-weight: 900; margin: 0 0 10px; }
.cartes-encours {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cartes-encours .carte-nom { font-size: 0.92rem; }
.cartes-encours .carte-periode { font-size: 0.76rem; }
.cartes-encours .carte-pages { font-size: 0.72rem; margin-top: 4px; }

/* Ruban jaune incliné « En cours » sur la vignette */
.carte-vignette { position: relative; }
.ruban-encours {
  position: absolute; top: 14px; left: -38px; z-index: 2;
  transform: rotate(-35deg);
  background: var(--jaune); color: var(--encre);
  border-top: 2px solid var(--encre); border-bottom: 2px solid var(--encre);
  font-weight: 900; font-size: 0.64rem; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 42px; text-align: center;
  pointer-events: none;
}

/* ─────────── Éditions (extra, santé, beauté…) : mot d'édition en gras ─────────── */
strong.edition { font-weight: 900; }
.carte-nom strong.edition,
.liste-archives strong.edition {
  font-weight: 900;
  background: linear-gradient(transparent 62%, var(--jaune) 62%);
}
.fiche-tete h1 strong.edition,
.aubaines h2 strong.edition,
.avis-legal h2 strong.edition,
.editorial h2 strong.edition { font-weight: 900; }

/* Bandeau jaune « semaine prochaine » (même style que « en cours ») + ruban « En primeur » */
.encours--primeur { background: var(--jaune); }
.encours--primeur h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.encours--primeur h2 .pastille { font-size: 0.66rem; background: var(--encre); color: var(--jaune); }
.ruban-primeur { background: var(--encre); color: var(--jaune); border-color: var(--jaune); }

/* ─────────── Image automatique : étiquette de prix d'un magasin sans circulaire ───────────
   Étiquette (pointe à gauche, œillet) aux couleurs de la marque, nom du magasin et pastille « Bientôt ».
   Remplacée d'elle-même par la vraie miniature dès qu'une circulaire est en ligne. */
.carte--inactive { opacity: 0.92; }
.carte-vignette.carte-etiquette {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 14px;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--marque, #17513A) 9%, transparent) 0 2px, transparent 2px 14px),
    var(--gris);
}
.etiquette {
  position: relative; box-sizing: border-box;
  width: 100%; min-height: 44%;
  display: flex; align-items: center;
  padding: 18px 14px 18px 38px;
  background: #fff;
  border-top: 5px solid var(--marque, #17513A);
  clip-path: polygon(0 50%, 24px 0, 100% 0, 100% 100%, 24px 100%);
  transform: rotate(-2.5deg);
  filter: drop-shadow(3px 4px 0 rgba(20, 23, 15, .16));
}
.etiquette-trou {
  position: absolute; left: 21px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  border-radius: 50%; background: var(--gris); box-shadow: inset 0 0 0 2px var(--marque, #17513A);
}
.etiquette-nom {
  font-weight: 900; font-variation-settings: 'wdth' 88;
  line-height: 1.08; color: var(--encre);
  text-wrap: balance; overflow-wrap: anywhere;
}
.etiquette-nom--xl { font-size: 1.7rem; }
.etiquette-nom--l  { font-size: 1.4rem; }
.etiquette-nom--m  { font-size: 1.12rem; }
.etiquette-nom--s  { font-size: 0.95rem; }
.etiquette-bientot {
  position: absolute; right: 12px; bottom: 11px;
  background: var(--jaune); color: var(--encre);
  font-size: 0.68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; transform: rotate(3deg);
  box-shadow: 0 0 0 2px var(--encre);
}
@media (max-width: 560px) {
  .carte-vignette.carte-etiquette { padding: 10px 8px; }
  .etiquette { padding: 12px 8px 12px 28px; clip-path: polygon(0 50%, 18px 0, 100% 0, 100% 100%, 18px 100%); }
  .etiquette-trou { left: 15px; width: 9px; height: 9px; margin-top: -4.5px; }
  .etiquette-nom--xl { font-size: 1.2rem; }
  .etiquette-nom--l  { font-size: 1rem; }
  .etiquette-nom--m  { font-size: 0.84rem; }
  .etiquette-nom--s  { font-size: 0.74rem; }
  .etiquette-bientot { right: 6px; bottom: 6px; font-size: 0.58rem; padding: 2px 7px; }
}

/* ═══════════════════════ Recherche ═══════════════════════ */
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* En-tête : le champ se range à droite du menu; sur mobile, il passe sur sa propre rangée */
.site-tete { flex-wrap: wrap; gap: 10px 14px; }
.site-nav { margin-left: auto; }
.rech-tete { position: relative; flex: 0 1 280px; }
.rech-ouvrir { display: none; }
.rech-champ {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 5px 0 14px;
  background: #fff; color: var(--vert);
  border: 2px solid var(--encre); border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(20, 23, 15, .35);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rech-champ:focus-within { box-shadow: 0 0 0 3px var(--jaune), 2px 2px 0 3px var(--encre); }
.rech-loupe { flex: none; }
.rech-champ input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none;
  color: var(--encre); font: inherit; font-size: .95rem; font-weight: 600;
  -webkit-appearance: none; appearance: none;
}
.rech-champ input::placeholder { color: #6b7165; font-weight: 500; opacity: 1; }
.rech-champ input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rech-go {
  flex: none; width: 32px; height: 32px; padding: 0; border: 2px solid var(--encre); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--jaune); color: var(--encre);
}
.rech-go:hover { background: #ffe27a; }

.rech-sugg {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 90;
  width: min(440px, 92vw); max-height: min(70vh, 560px); overflow-y: auto;
  padding: 8px; background: #fff; color: var(--encre);
  border: 2px solid var(--encre); border-radius: var(--rayon);
  box-shadow: 5px 5px 0 rgba(20, 23, 15, .25);
}
.rech-sugg[hidden] { display: none; }
.rech-sugg-titre {
  margin: 8px 10px 4px; padding-bottom: 3px; font-size: .72rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: var(--vert); border-bottom: 2px solid var(--jaune); display: inline-block;
}
.rech-sugg-vide { margin: 12px; color: #3c4136; font-size: .92rem; }
.rech-opt {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px;
  color: var(--encre); text-decoration: none;
}
a.rech-opt:hover, .rech-opt--actif { background: var(--gris); }
.rech-opt--bientot { opacity: .6; cursor: default; }
.rech-opt-corps { display: flex; flex-direction: column; min-width: 0; }
.rech-opt-nom { font-weight: 800; font-size: .93rem; line-height: 1.25; overflow-wrap: anywhere; }
.rech-opt-meta { font-size: .78rem; color: #4a5044; }
.rech-opt--tout {
  justify-content: center; margin-top: 6px; padding: 11px 10px; text-align: center;
  font-weight: 800; font-size: .86rem; color: var(--vert);
  background: var(--jaune); border: 2px solid var(--encre); border-radius: 8px;
}
a.rech-opt--tout:hover, .rech-opt--tout.rech-opt--actif { background: #ffe27a; }
.rech-puce {
  flex: none; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--encre);
  background: var(--marque, var(--vert));
}

@media (max-width: 720px) {
  .rech-tete { order: 3; flex: 1 1 100%; }
  .rech-sugg { left: 0; right: 0; width: auto; }
  .rech-champ input { font-size: 1rem; } /* 16 px : pas de zoom automatique sur iPhone */
}

/* Page de résultats */
.rech-page { display: flex; gap: 10px; max-width: 720px; margin: 6px 0 24px; }
.rech-page input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px;
  border: 2px solid var(--encre); border-radius: var(--rayon); background: #fff;
  color: var(--encre); font: inherit; font-size: 1.05rem; font-weight: 600;
  box-shadow: 4px 4px 0 rgba(20, 23, 15, .15);
}
.rech-page input:focus { outline: 0; box-shadow: 0 0 0 3px var(--jaune), 4px 4px 0 3px var(--encre); }
.rech-page button {
  flex: none; height: 54px; padding: 0 24px; cursor: pointer;
  background: var(--vert); color: #fff; font: inherit; font-weight: 900;
  border: 2px solid var(--encre); border-radius: var(--rayon); box-shadow: 4px 4px 0 var(--encre);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rech-page button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.rech-bilan { margin: 0 0 4px; color: #3c4136; }
.rech-bilan strong { color: var(--encre); }
.rech-titre {
  margin: 30px 0 14px !important; font-size: 1.05rem !important; font-weight: 900;
  display: inline-block; padding-bottom: 4px; border-bottom: 3px solid var(--jaune);
}
.rech-vide { font-size: 1.15rem; margin: 6px 0 4px; }
.rech-vous-vouliez a { font-weight: 800; }
.rech-aide { margin: 12px 0 0; color: #4a5044; font-size: .9rem; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; text-align: center;
  border: 2px solid var(--encre); border-radius: 6px; background: #fff;
  font: inherit; font-size: .85em; font-weight: 800; box-shadow: 1px 1px 0 var(--encre);
}
mark { background: var(--jaune); color: var(--encre); padding: 0 2px; border-radius: 3px; }
.rech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rech-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px;
  background: #fff; color: var(--encre); text-decoration: none; font-weight: 800; font-size: .92rem;
  border: 2px solid var(--encre); border-radius: 999px; box-shadow: 3px 3px 0 rgba(20, 23, 15, .15);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rech-chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--marque, var(--vert)); }

.rech-magasins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rech-magasin {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: #fff; color: var(--encre); text-decoration: none;
  border: 2px solid var(--encre); border-left: 8px solid var(--marque, var(--vert)); border-radius: var(--rayon);
  box-shadow: 4px 4px 0 rgba(20, 23, 15, .12);
  transition: transform .12s ease, box-shadow .12s ease;
}
a.rech-magasin:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--marque, var(--vert)); }
.rech-magasin--bientot { opacity: .8; border-style: dashed; box-shadow: none; }
.rech-magasin .rech-puce { display: none; }
.rech-magasin-corps { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rech-nom { font-weight: 900; font-variation-settings: 'wdth' 88; font-size: 1.15rem; line-height: 1.15; overflow-wrap: anywhere; }
.rech-type { font-size: .8rem; color: #4a5044; margin-top: 2px; }
.rech-statut { flex: none; max-width: 8.5em; text-align: right; font-size: .72rem; font-weight: 800; line-height: 1.2; color: #4a5044; }
.rech-statut--en_cours { color: var(--vert); }
.rech-statut--a_venir { color: #8a5a00; }

.rech-aubaines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.rech-aubaine {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 15px;
  background: #fff; color: var(--encre); text-decoration: none;
  border: 2px solid var(--encre); border-left: 8px solid var(--marque, var(--vert)); border-radius: var(--rayon);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rech-aubaine:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(20, 23, 15, .2); }
.rech-aub-texte { font-weight: 800; overflow-wrap: anywhere; }
.rech-aub-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #4a5044; }
.rech-aub-meta .rech-puce { display: none; }
.rech-etiq { padding: 1px 9px; border-radius: 999px; background: var(--jaune); color: var(--encre); font-size: .72rem; font-weight: 900; border: 1.5px solid var(--encre); }
@media (max-width: 560px) {
  .rech-page { flex-direction: column; }
  .rech-page button { width: 100%; }
  .rech-magasin { flex-wrap: wrap; }
  .rech-statut { max-width: none; text-align: left; flex-basis: 100%; }
}
