/* ============================================================
   SÉRÉNIMAL — Design system « Sauge & Terracotta »
   Mobile-first (390px d'abord) — réf. UX_UI_CONVERSION.md
   ============================================================ */

/* ---------- Polices locales (identité de marque) ---------- */
@font-face {
  font-family: "Cooper Black";
  src: url("../polices/cooper-black.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../polices/space-grotesk.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --creme: #FAF6EF;
  --blanc: #FFFFFF;
  --sauge: #5F7D6B;
  --sauge-fonce: #3E5749;
  --sauge-pale: #E4ECE6;
  --terracotta: #A8512E;        /* CTA — contraste AA avec texte blanc */
  --terracotta-fonce: #8C4023;
  --encre: #262B27;
  --taupe: #5F6660;
  --or: #C98A1B;
  /* Échelle d'espacement 4/8 */
  --e1: 4px; --e2: 8px; --e3: 16px; --e4: 24px; --e5: 32px; --e6: 48px; --e7: 64px;
  --radius: 14px;
  --ombre: 0 2px 12px rgba(38, 43, 39, .07);
  --police-display: "Cooper Black", "Cooper Std", Georgia, serif;
  --police-texte: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--police-texte);
  font-size: 1rem;            /* ≥ 16px mobile */
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }   /* l'attribut hidden l'emporte sur display:grid/flex */
a { color: var(--sauge-fonce); }
h1, h2 { font-family: var(--police-display); font-weight: 400; line-height: 1.15; }
h3 { font-family: var(--police-texte); font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

.conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--e3); }
section { padding: var(--e6) 0; }
.sous-titre { color: var(--taupe); max-width: 56ch; }

/* ---------- Bandes pleine largeur (rythme visuel de la page) ---------- */
.bande-blanche { background: var(--blanc); }
.bande-sauge { background: var(--sauge-pale); }
.bande-foncee { background: var(--sauge-fonce); color: var(--creme); }
.bande-foncee h2 { color: var(--creme); }
.bande-foncee .sous-titre { color: var(--sauge-pale); }
.bande-foncee .prix { color: var(--blanc); }

/* ---------- Section « Spécial canicule » (ambiance estivale, tuiles soignées) ---------- */
.bande-canicule {
  background:
    radial-gradient(720px 380px at 84% 6%, rgba(242, 199, 68, .22), transparent 62%),
    radial-gradient(560px 440px at 6% 98%, rgba(168, 81, 46, .12), transparent 60%),
    linear-gradient(180deg, #FFF7E8, var(--creme));
}
.canicule-int { display: grid; gap: var(--e5); }
.canicule-entete { text-align: center; display: grid; gap: 14px; justify-items: center; }
.canicule-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta); color: #fff; font-weight: 600; font-size: .78rem;
  letter-spacing: .07em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(168, 81, 46, .22);
}
.canicule-titre { font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1.02; margin: 0; }
.canicule-entete .sous-titre { max-width: 52ch; }

.grille-canicule { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e3); }
@media (min-width: 760px) { .grille-canicule { grid-template-columns: repeat(4, 1fr); gap: var(--e4); } }
.produit-frais {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius); padding: 12px;
  box-shadow: 0 6px 20px rgba(38, 43, 39, .07); transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .produit-frais:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(38, 43, 39, .14); } }
.produit-frais .pf-img { display: block; background: var(--sauge-pale); border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.produit-frais .pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
@media (hover: hover) { .produit-frais:hover .pf-img img { transform: scale(1.05); } }
.produit-frais .pf-nom { font-weight: 600; font-size: .95rem; line-height: 1.25; margin-top: 8px; }
.produit-frais .pf-prix { font-weight: 700; color: var(--terracotta); font-size: 1.05rem; }
.bande-foncee .kicker { color: #EDC4AD; }
.bande-blanche .carte, .bande-blanche details { border: 1px solid var(--sauge-pale); }
.bande-blanche .garanties li { background: var(--creme); box-shadow: none; }

/* En-tête de section centré + surtitre */
.entete-section { text-align: center; max-width: 62ch; margin: 0 auto; display: grid; gap: var(--e2); justify-items: center; }
.entete-section .sous-titre { margin: 0 auto; }
.kicker {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta);
}

/* ---------- Barre d'annonce ---------- */
.barre-annonce {
  background: var(--sauge-fonce); color: var(--creme);
  text-align: center; font-size: .85rem; font-weight: 600;
  padding: var(--e2) var(--e3);
}

/* ---------- Header ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--blanc); box-shadow: var(--ombre);
}
.entete-int {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--e3); min-height: 60px;
}
.logo {
  font-family: var(--police-display); font-size: 1.4rem; font-weight: 400;
  color: var(--sauge-fonce); text-decoration: none; display: flex; align-items: center; gap: var(--e2);
}
.logo img { height: 38px; width: auto; display: block; }
.nav-principale { display: none; }
.nav-principale a {
  text-decoration: none; font-weight: 600; color: var(--encre);
  padding: var(--e2) var(--e3); border-radius: 8px;
}
.nav-principale a:hover { background: var(--sauge-pale); }
.actions-entete { display: flex; align-items: center; gap: var(--e2); }
.btn-icone {
  position: relative; background: none; border: none; cursor: pointer;
  min-width: 44px; min-height: 44px; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--encre); border-radius: 8px;
}
.compteur-panier {
  position: absolute; top: 2px; right: 0;
  background: var(--terracotta); color: #fff; font-size: .7rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}
.compteur-panier.rebond { animation: rebond .4s ease; }
@keyframes rebond { 50% { transform: scale(1.45); } }
/* Hamburger animé : 3 barres qui se muent en croix */
.burger-ico { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.burger-ico span {
  display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px;
  transform-origin: center; transition: transform .3s ease, opacity .15s ease;
}
.burger[aria-expanded="true"] .burger-ico span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-ico span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-ico span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile : dropdown en fondu/glissement (liens en cascade) */
.nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  display: flex; flex-direction: column; background: var(--blanc);
  border-top: 1px solid var(--sauge-pale); box-shadow: var(--ombre);
  padding: var(--e2) 0;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .26s ease, transform .3s ease, visibility 0s linear .26s;
}
.nav-mobile.ouvert {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .26s ease, transform .3s ease, visibility 0s;
}
.nav-mobile a {
  text-decoration: none; font-weight: 600; color: var(--encre);
  padding: var(--e3); min-height: 48px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .3s ease, transform .3s ease;
}
.nav-mobile.ouvert a { opacity: 1; transform: none; }
.nav-mobile.ouvert a:nth-child(1) { transition-delay: .05s; }
.nav-mobile.ouvert a:nth-child(2) { transition-delay: .09s; }
.nav-mobile.ouvert a:nth-child(3) { transition-delay: .13s; }
.nav-mobile.ouvert a:nth-child(4) { transition-delay: .17s; }
.nav-mobile.ouvert a:nth-child(5) { transition-delay: .21s; }
.nav-mobile.ouvert a:nth-child(6) { transition-delay: .25s; }
.nav-mobile.ouvert a:nth-child(7) { transition-delay: .29s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  background: var(--terracotta); color: #fff;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-family: var(--police-texte); font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  min-height: 48px; padding: var(--e2) var(--e4);
  width: 100%; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--terracotta-fonce); }
.btn:active { transform: scale(.98); }
.btn-secondaire { background: var(--sauge-fonce); }
.btn-secondaire:hover { background: var(--sauge); }
.btn-discret {
  background: none; color: var(--sauge-fonce); border: 2px solid var(--sauge);
}
.btn-discret:hover { background: var(--sauge-pale); }

/* ---------- Cartes & grilles ---------- */
.grille { display: grid; gap: var(--e3); }
.carte {
  position: relative;
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--ombre); padding: var(--e4);
  display: flex; flex-direction: column; gap: var(--e2);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Rend toute la carte cliquable : le lien s'étire sur toute la surface. */
.lien-carte::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.carte:hover { cursor: pointer; }
@media (hover: hover) {
  .carte:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(38, 43, 39, .13); }
}
.carte .btn { margin-top: auto; }
.badge {
  display: inline-block; background: var(--sauge-pale); color: var(--sauge-fonce);
  font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 3px 12px; border-radius: 99px;
  width: fit-content;
}
.badge-accent { background: #F6E3D9; color: var(--terracotta-fonce); }
.prix { font-size: 1.3rem; font-weight: 700; color: var(--encre); }
.prix-barre { color: var(--taupe); text-decoration: line-through; font-size: .95rem; font-weight: 600; }
.economie { color: var(--terracotta-fonce); font-size: .85rem; font-weight: 700; }

/* ---------- Placeholder image (photos d'échantillons à venir) ---------- */
.img-ph {
  aspect-ratio: 1 / 1; width: 100%;
  background: linear-gradient(135deg, var(--sauge-pale), #F0E9DC);
  border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--taupe); font-size: .8rem; font-weight: 700; gap: 0;
}
.img-ph span { font-size: 2.6rem; display: block; }
.img-ph-large { aspect-ratio: 4 / 3; }
.visuel-jouet {
  aspect-ratio: 1 / 1; width: 100%;
  background: var(--sauge-pale);
  border-radius: var(--radius);
  display: grid; place-items: center;
}

/* ---------- Filtres catalogue ---------- */
.filtres-produits {
  display: flex; flex-wrap: wrap; gap: var(--e2);
  align-items: center; justify-content: space-between;
}
.filtres-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; cursor: pointer;
  border: 1px solid var(--sauge-pale); background: #fff; color: var(--sauge-fonce);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--sauge); }
.chip.actif { background: var(--sauge-fonce); color: var(--creme); border-color: var(--sauge-fonce); }
.recherche-produits {
  font: inherit; padding: 9px 16px; min-width: 220px;
  border: 1px solid var(--sauge-pale); border-radius: 999px; background: #fff;
}
.recherche-produits:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.filtres-vide { text-align: center; color: var(--taupe); }
.lien-reset {
  background: none; border: none; font: inherit; cursor: pointer;
  color: var(--terracotta); text-decoration: underline;
}
.carte[hidden] { display: none; }
@media (max-width: 600px) { .recherche-produits { width: 100%; min-width: 0; } }

/* Catalogue : 2 produits par ligne sur mobile (cartes compactes) */
@media (max-width: 767px) {
  .grille-mobile-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grille-mobile-2 .carte { padding: 14px; gap: 8px; }
  .grille-mobile-2 .carte h3 { font-size: 1rem; line-height: 1.2; }
  .grille-mobile-2 .carte .sous-titre { font-size: .84rem; }
  .grille-mobile-2 .carte .prix { font-size: 1.05rem; }
  .grille-mobile-2 .carte .btn { padding: 10px 8px; font-size: .85rem; }
}

/* ---------- Recherche en-tête (overlay) ---------- */
.recherche-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(40, 50, 45, .45);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 10vh 16px 16px;
}
.recherche-overlay[hidden] { display: none; }
.recherche-panneau {
  background: var(--creme); width: min(640px, 100%);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.recherche-barre {
  display: flex; gap: 8px; align-items: center;
  padding: 14px; border-bottom: 1px solid var(--sauge-pale);
}
#recherche-input {
  flex: 1; font: inherit; padding: 11px 16px;
  border: 1px solid var(--sauge-pale); border-radius: 999px; background: #fff;
}
#recherche-input:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.recherche-resultats { max-height: 58vh; overflow-y: auto; padding: 8px; }
.recherche-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--encre);
}
.recherche-item:hover { background: var(--sauge-pale); }
.recherche-item img { border-radius: 8px; object-fit: contain; background: #fff; flex: none; }
.recherche-nom { flex: 1; font-weight: 500; }
.recherche-prix { color: var(--sauge-fonce); font-weight: 600; white-space: nowrap; }
.recherche-aide { padding: 22px 16px; text-align: center; color: var(--taupe); }

/* ---------- Carrousel produits ---------- */
.carrousel { position: relative; min-width: 0; }
.grille-carrousel {
  display: flex; gap: var(--e3); min-width: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 18px;
  scrollbar-width: thin; scrollbar-color: var(--sauge) transparent;
}
.grille-carrousel > .carte {
  flex: 0 0 clamp(220px, 74vw, 280px);
  scroll-snap-align: start;
}
@media (min-width: 700px) { .grille-carrousel > .carte { flex-basis: 280px; } }
.carrousel-fleche {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--sauge-pale); background: #fff; color: var(--sauge-fonce);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.14); display: grid; place-items: center;
  transition: background .15s;
}
.carrousel-fleche.prec { left: -12px; }
.carrousel-fleche.suiv { right: -12px; }
.carrousel-fleche:hover { background: var(--sauge-pale); }
.carrousel-fleche[hidden] { display: none; }
@media (max-width: 760px) { .carrousel-fleche { display: none; } }

/* ---------- Cartes PACKS (style distinct des produits) ---------- */
.grille-packs { gap: var(--e4); }
.grille-carrousel.grille-packs > .carte-pack { flex: 0 0 clamp(260px, 82vw, 340px); scroll-snap-align: start; }
.carte-pack {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: var(--blanc); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--ombre); border: 1px solid var(--sauge-pale);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .carte-pack:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(38,43,39,.15); } }
.carte-pack .pack-media { position: relative; background: var(--sauge-pale); }
.carte-pack .pack-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.carte-pack .pack-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.carte-pack .pack-corps { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e4); flex: 1; }
.carte-pack h3 { font-size: 1.2rem; }
.carte-pack .pack-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.economie-pill {
  display: inline-block; background: var(--terracotta); color: #fff;
  font-weight: 600; font-size: .82rem; padding: 3px 11px; border-radius: 999px;
}
.carte-pack .btn { margin-top: var(--e1); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(640px 320px at 88% 12%, rgba(168, 81, 46, .09), transparent 60%),
    radial-gradient(520px 380px at 8% 90%, rgba(95, 125, 107, .12), transparent 60%),
    linear-gradient(180deg, var(--sauge-pale), var(--creme));
  padding: var(--e6) 0;
}
.hero-int { display: grid; gap: var(--e4); }
.hero .btn { max-width: 320px; }
.hero-confiance { font-size: .9rem; font-weight: 500; color: var(--sauge-fonce); letter-spacing: .01em; }
.hero-illu img {
  width: 100%; height: auto; display: block;
  border-radius: 28px; box-shadow: 0 14px 40px rgba(38,43,39,.16);
  aspect-ratio: 1000 / 700; object-fit: cover;
}

/* ---------- Pastille signature « Le conseil Sérénimal » ---------- */
.conseil-veto {
  background: var(--blanc); border-left: 5px solid var(--sauge);
  border-radius: var(--radius); box-shadow: var(--ombre);
  padding: var(--e3) var(--e4); display: flex; gap: var(--e3); align-items: flex-start;
}
.conseil-veto .icone { color: var(--sauge); line-height: 0; flex: none; }
.conseil-veto strong { color: var(--sauge-fonce); display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.conseil-veto p { font-size: .95rem; color: var(--encre); }

/* ---------- Garanties / réassurance ---------- */
.garanties { list-style: none; display: grid; gap: var(--e3); }
.garanties li { display: flex; gap: var(--e3); align-items: flex-start; background: var(--blanc); border-radius: var(--radius); padding: var(--e3); box-shadow: var(--ombre); }
.garanties .icone { color: var(--sauge-fonce); flex: none; }
.reassurance-produit {
  list-style: none; display: grid;
  font-size: .85rem; color: var(--taupe);
  background: var(--blanc); border: 1px solid var(--sauge-pale);
  border-radius: var(--radius); padding: var(--e1) var(--e3);
}
.reassurance-produit li { padding: var(--e2) 0; }
.reassurance-produit li + li { border-top: 1px solid var(--sauge-pale); }
.reassurance-produit strong { color: var(--encre); font-weight: 600; }

/* ---------- Accordéons ---------- */
details {
  background: var(--blanc); border-radius: var(--radius);
  box-shadow: var(--ombre); padding: 0; overflow: hidden;
}
details + details { margin-top: var(--e2); }
summary {
  cursor: pointer; font-weight: 600; padding: var(--e3) var(--e4);
  list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--sauge); }
details[open] summary::after { content: "–"; }
details .contenu { padding: 0 var(--e4) var(--e3); color: var(--taupe); }

/* ---------- Galerie produit & infographies ---------- */
.galerie-principale { border-radius: var(--radius); overflow: hidden; background: var(--sauge-pale); }
.galerie-principale img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.infographies figure { margin: 0; background: var(--blanc); border-radius: var(--radius); box-shadow: var(--ombre); overflow: hidden; }
.infographies img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.infographies figcaption { padding: var(--e2) var(--e3) var(--e3); font-size: .9rem; font-weight: 700; color: var(--sauge-fonce); }
.infographies .img-ph { aspect-ratio: 4 / 3; border-radius: 0; }
.img-ph code { font-size: .7rem; color: var(--taupe); word-break: break-all; padding: 0 var(--e2); }
.img-produit-carte { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; box-sizing: border-box; }

/* ---------- Page produit ---------- */
.produit-layout { display: grid; gap: var(--e4); padding: var(--e4) 0; }
.produit-infos { display: flex; flex-direction: column; gap: var(--e3); }
.note-produit { font-size: .9rem; color: var(--taupe); font-weight: 700; }
.pastilles { display: flex; flex-wrap: wrap; gap: var(--e2); }
.pastille, .pastille-couleur {
  min-width: 52px; min-height: 44px; padding: var(--e2) var(--e3);
  border: 2px solid var(--sauge-pale); background: var(--blanc);
  border-radius: 10px; font-weight: 500; cursor: pointer; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
}
.puce {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 1px solid rgba(38, 43, 39, .25); display: inline-block;
}
.pastille.actif, .pastille-couleur.actif { border-color: var(--sauge-fonce); background: var(--sauge-pale); font-weight: 600; }
.lien-guide { font-size: .9rem; font-weight: 700; }
.section-fiche { padding: var(--e4) 0; }
.section-fiche h2 { margin-bottom: var(--e3); }
.section-fiche ul { padding-left: 1.2em; color: var(--taupe); }

/* ---------- Sticky add-to-cart ---------- */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--blanc); box-shadow: 0 -4px 16px rgba(38,43,39,.12);
  padding: var(--e2) var(--e3);
  display: flex; align-items: center; gap: var(--e3);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc .infos { flex: 1; min-width: 0; }
.sticky-atc .nom { font-weight: 800; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc .btn { width: auto; padding: var(--e2) var(--e4); }

/* ---------- Drawer panier ---------- */
.voile {
  position: fixed; inset: 0; background: rgba(38,43,39,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 70;
}
.voile.ouvert { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(420px, 92vw); background: var(--blanc);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease;
  box-shadow: -8px 0 24px rgba(38,43,39,.18);
}
.drawer.ouvert { transform: translateX(0); }
.drawer-entete {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--e3) var(--e4); border-bottom: 1px solid var(--sauge-pale);
}
.drawer-corps { flex: 1; overflow-y: auto; padding: var(--e3) var(--e4); display: flex; flex-direction: column; gap: var(--e3); }
.drawer-pied { border-top: 1px solid var(--sauge-pale); padding: var(--e3) var(--e4); display: grid; gap: var(--e2); }
.jauge-livraison { background: var(--sauge-pale); border-radius: var(--radius); padding: var(--e3); font-size: .9rem; font-weight: 700; }
.jauge-barre { background: var(--blanc); border-radius: 99px; height: 10px; margin-top: var(--e2); overflow: hidden; }
.jauge-remplie { background: var(--sauge); height: 100%; width: 0; border-radius: 99px; transition: width .3s ease; }
.ligne-panier { display: flex; gap: var(--e3); align-items: center; }
.ligne-panier .vignette {
  width: 56px; height: 56px; flex: none; border-radius: 10px;
  background: var(--sauge-pale); display: grid; place-items: center; font-size: 1.5rem;
}
.ligne-panier .details { flex: 1; min-width: 0; }
.ligne-panier .nom { font-weight: 800; font-size: .9rem; }
.qte { display: inline-flex; align-items: center; gap: var(--e2); margin-top: var(--e1); }
.qte button {
  width: 32px; height: 32px; border: 1.5px solid var(--sauge-pale); background: var(--blanc);
  border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 1rem;
}
.qte .btn-suppr { width: auto; height: auto; padding: 0; margin-left: 6px; background: none; border: none; border-radius: 0; color: var(--taupe); cursor: pointer; font-size: .8rem; font-weight: 400; text-decoration: underline; white-space: nowrap; }
.upsell-drawer {
  border: 2px dashed var(--sauge); border-radius: var(--radius); padding: var(--e3);
  display: flex; gap: var(--e3); align-items: center; font-size: .9rem;
}
.upsell-drawer .btn { width: auto; min-height: 40px; padding: var(--e1) var(--e3); font-size: .9rem; white-space: nowrap; flex: none; }
.sous-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; }
.note-offre { margin: 2px 0; font-size: .85rem; font-weight: 600; color: var(--terracotta); }
.champ-promo input {
  width: 100%; padding: var(--e2) var(--e3); border: 1px solid var(--sauge-pale);
  border-radius: 10px; font: inherit; font-size: .95rem; background: var(--creme);
}
.champ-promo input:focus { border-color: var(--sauge); outline: none; background: #fff; }
.note-promo-info { margin: 2px 0 4px; font-size: .78rem; }
.note-port { font-size: .8rem; color: var(--taupe); }
.panier-vide { text-align: center; color: var(--taupe); padding: var(--e5) 0; }

/* ---------- Dialog guide des tailles ---------- */
dialog.guide {
  border: none; border-radius: var(--radius); padding: var(--e4);
  max-width: min(520px, 92vw); box-shadow: var(--ombre); margin: auto;
}
dialog.guide::backdrop { background: rgba(38,43,39,.5); }
.tableau-tailles { width: 100%; border-collapse: collapse; font-size: .9rem; margin: var(--e3) 0; }
.tableau-tailles th, .tableau-tailles td { padding: var(--e2) var(--e3); text-align: left; border-bottom: 1px solid var(--sauge-pale); }
.tableau-tailles th { background: var(--sauge-pale); }

/* ---------- Articles conseils ---------- */
.article-corps { max-width: 68ch; margin: 0 auto; display: grid; gap: var(--e4); padding: var(--e5) 0; }
.article-corps h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.article-corps h2 { font-size: 1.3rem; }
.article-corps > p, .article-corps li { color: var(--taupe); }
.encadre { background: var(--sauge-pale); border-radius: var(--radius); padding: var(--e3) var(--e4); }
.encadre strong { color: var(--sauge-fonce); }
.encadre ul { padding-left: 1.1em; color: var(--encre); margin-top: var(--e1); }
.meta-article { font-size: .85rem; color: var(--taupe); font-weight: 700; }
.disclaimer { font-size: .8rem; color: var(--taupe); border-top: 1px solid var(--sauge-pale); padding-top: var(--e3); }

/* ---------- Preuve sociale honnête ---------- */
.preuve-sociale { background: var(--sauge-pale); border-radius: var(--radius); padding: var(--e4); text-align: center; }

/* ---------- Footer ---------- */
.pied {
  background: var(--sauge-fonce); color: var(--creme);
  padding: var(--e6) 0 var(--e5);
}
.pied a { color: var(--creme); }
.pied-grille { display: grid; gap: var(--e4); }
.pied h3 { font-size: 1rem; margin-bottom: var(--e2); }
.pied ul { list-style: none; display: grid; gap: var(--e1); font-size: .9rem; }
.pied .mention { font-size: .8rem; opacity: .75; margin-top: var(--e4); }

/* ---------- Bandeau paiement sécurisé (réassurance) ---------- */
.paiement-securise {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--e2) var(--e3); font-size: .8rem;
}
.ps-lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ps-lock svg { flex: none; }
.ps-cartes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ps-carte {
  font-size: .68rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  padding: 3px 8px; border-radius: 5px; border: 1px solid currentColor; opacity: .7;
}
.pied .paiement-securise {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: var(--e4); margin-top: var(--e5);
}
.drawer-pied .paiement-securise { color: var(--taupe); margin-top: 2px; }

/* ---------- Bandeau d'offre de bienvenue ---------- */
.bandeau-offre {
  display: flex; align-items: center; justify-content: center; gap: var(--e3);
  background: var(--terracotta); color: #fff; padding: var(--e2) var(--e4);
  text-align: center; font-size: .92rem; position: relative;
}
.bandeau-offre .bo-lien { color: #fff; font-weight: 600; text-decoration: none; }
.bandeau-offre .bo-lien:hover { text-decoration: underline; }
.bandeau-offre .bo-fermer {
  position: absolute; right: var(--e3); top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; opacity: .85; line-height: 1;
}
.bandeau-offre .bo-fermer:hover { opacity: 1; }

/* ---------- Flèche « retour en haut » ---------- */
.retour-haut {
  position: fixed; right: var(--e4); bottom: var(--e4); z-index: 1000;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--sauge-fonce); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(38,43,39,.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.retour-haut.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.retour-haut:hover { background: var(--sauge); }
@media (max-width: 760px) {
  .retour-haut { width: 42px; height: 42px; right: var(--e3); bottom: 76px; }
}

/* ---------- Bandeau de consentement cookies ---------- */
.bandeau-cookies {
  position: fixed; left: var(--e3); right: var(--e3); bottom: var(--e3); z-index: 1200;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--sauge-pale); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(38,43,39,.18);
  padding: var(--e3) var(--e4);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e4);
}
.bandeau-cookies .bc-texte { margin: 0; font-size: .9rem; color: var(--taupe); flex: 1 1 320px; line-height: 1.5; }
.bandeau-cookies .bc-actions { display: flex; gap: var(--e2); flex: 0 0 auto; }
.bandeau-cookies .btn { width: auto; min-height: 42px; padding: var(--e2) var(--e4); white-space: nowrap; }
@media (max-width: 520px) {
  .bandeau-cookies { padding: var(--e3); }
  .bandeau-cookies .bc-actions { width: 100%; }
  .bandeau-cookies .bc-actions .btn { flex: 1; }
}

/* ---------- Desktop ≥ 768px ---------- */
@media (min-width: 768px) {
  section { padding: var(--e7) 0; }
  .hero { padding: 96px 0; }
  .hero-int { gap: var(--e6); }
  .grille { gap: var(--e4); }
  .nav-principale { display: flex; gap: var(--e1); }
  .burger { display: none; }
  .nav-mobile { display: none; }
  .btn { width: auto; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .grille-5 { grid-template-columns: repeat(3, 1fr); }
  .grille-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-int { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .produit-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .pied-grille { grid-template-columns: repeat(4, 1fr); }
  .garanties { grid-template-columns: repeat(4, 1fr); }
  .garanties li { flex-direction: column; }
}
@media (min-width: 1024px) {
  .grille-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Animations d'entrée (légères, sans nuire à l'UX) ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 { animation: fade-up .7s ease both; }
.hero .sous-titre { animation: fade-up .7s ease .1s both; }
.hero-confiance { animation: fade-up .7s ease .2s both; }
.hero .btn { animation: fade-up .7s ease .28s both; }

/* Révélation au défilement : l'état « caché » n'est posé par le JS que sur
   les éléments situés sous la ligne de flottaison (aucun flash au chargement). */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.est-visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }

/* ---------- Accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero h1, .hero .sous-titre, .hero-confiance, .hero .btn { opacity: 1 !important; transform: none !important; }
}

/* ---------- Pages légales ---------- */
.legal-note { background:#FFF3CD; border:1px solid #F0D070; border-radius:var(--radius); padding:var(--e3); font-size:.9rem; margin-bottom:var(--e4); }
.acompleter { background:#FFF3CD; color:#7A5B00; padding:0 5px; border-radius:4px; font-weight:600; }
.article-corps h2 { margin-top: var(--e4); font-size:1.25rem; }
.article-corps h3 { margin-top: var(--e2); }
.maj-legale { font-size:.85rem; color:var(--taupe); }

/* ---------- Pages À propos & Contact ---------- */
/* Bloc alterné texte + photo */
.duo { display: grid; gap: var(--e4); align-items: center; }
@media (min-width: 768px) {
  .duo { grid-template-columns: 1fr 1fr; gap: var(--e6); }
  .duo.inverse .duo-media { order: 2; }
}
.duo-media img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; box-shadow: var(--ombre); }
.duo-texte { display: grid; gap: var(--e3); }
.duo-texte p { color: var(--taupe); }

/* Bandeau de photos (produits réellement testés) */
.galerie-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--e3); }
@media (min-width: 768px) { .galerie-photos { grid-template-columns: repeat(4, 1fr); } }
.galerie-photos img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--ombre); }

/* Étapes numérotées (notre méthode de contrôle) */
.etapes { display: grid; gap: var(--e4); counter-reset: etape; }
@media (min-width: 768px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etape { background: var(--blanc); border: 1px solid var(--sauge-pale); border-radius: var(--radius); padding: var(--e4); display: grid; gap: var(--e2); align-content: start; }
.etape::before { counter-increment: etape; content: counter(etape); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sauge-pale); color: var(--sauge-fonce); font-family: var(--police-display); font-size: 1.2rem; }
.etape h3 { color: var(--encre); }
.etape p { color: var(--taupe); font-size: .95rem; }

/* Canaux de contact (e-mail, WhatsApp, horaires) */
.canaux { display: grid; gap: var(--e3); }
@media (min-width: 640px) { .canaux { grid-template-columns: repeat(3, 1fr); } }
.canal { display: grid; gap: var(--e1); background: var(--blanc); border: 1px solid var(--sauge-pale); border-radius: var(--radius); padding: var(--e4); text-decoration: none; color: var(--encre); transition: transform .2s ease, box-shadow .2s ease; }
.canal:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(38,43,39,.12); }
.canal .canal-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--taupe); }
.canal .canal-valeur { font-weight: 600; color: var(--sauge-fonce); font-size: 1.05rem; }
.canal .canal-note { font-size: .85rem; color: var(--taupe); }

/* Formulaire de contact */
.form-contact { display: grid; gap: var(--e3); max-width: 640px; }
.form-contact label { display: grid; gap: var(--e1); font-weight: 600; font-size: .95rem; }
.form-contact input, .form-contact textarea {
  font-family: var(--police-texte); font-size: 1rem; color: var(--encre);
  background: var(--blanc); border: 1px solid #CDD8D0; border-radius: 10px;
  padding: 12px 14px; width: 100%; min-height: 48px;
}
.form-contact textarea { min-height: 150px; resize: vertical; }
.form-contact input:focus, .form-contact textarea:focus { border-color: var(--sauge); outline: 2px solid var(--sauge-pale); outline-offset: 0; }
.form-contact .btn { width: auto; justify-self: start; }
.form-aide { font-size: .85rem; color: var(--taupe); }

/* Footer : colonne contact */
.pied-contact .canal-valeur, .pied a.lien-contact { color: var(--creme); }

/* ---------- Comptes clients (connexion / inscription) ---------- */
.auth-enveloppe { max-width: 460px; margin: 0 auto; padding: var(--e6) 0; display: grid; gap: var(--e3); }
.auth-carte { background: var(--blanc); border: 1px solid var(--sauge-pale); border-radius: var(--radius); box-shadow: var(--ombre); padding: var(--e5); display: grid; gap: var(--e3); }
.auth-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e1); background: var(--sauge-pale); border-radius: 12px; padding: 4px; }
.auth-onglets button { font-family: var(--police-texte); font-size: .95rem; font-weight: 600; color: var(--sauge-fonce); background: none; border: none; border-radius: 9px; padding: 10px; cursor: pointer; }
.auth-onglets button.actif { background: var(--blanc); box-shadow: var(--ombre); color: var(--encre); }
.auth-message { border-radius: 10px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; }
.auth-message.info { background: var(--sauge-pale); color: var(--sauge-fonce); }
.auth-message.succes { background: #E3F0E4; color: #2F5D34; }
.auth-message.erreur { background: #FBE6DF; color: #8C4023; }
.lien-bouton { background: none; border: none; color: var(--sauge-fonce); text-decoration: underline; cursor: pointer; font-family: var(--police-texte); font-size: .9rem; padding: 0; justify-self: start; }
.auth-pied { text-align: center; font-size: .82rem; color: var(--taupe); }

/* Menu "compte" déroulant dans le header */
.compte-menu { position: relative; display: inline-flex; }
.compte-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 250px;
  background: var(--blanc); border: 1px solid var(--sauge-pale); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(38, 43, 39, .18); padding: 10px; z-index: 70;
  display: grid; gap: 4px; animation: pop-bas .16s ease;
}
.compte-pop[hidden] { display: none; }
@keyframes pop-bas { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.compte-pop-tete { padding: 8px 10px 12px; border-bottom: 1px solid var(--sauge-pale); margin-bottom: 4px; display: grid; gap: 2px; }
.compte-pop-tete strong { font-size: .95rem; color: var(--encre); word-break: break-word; }
.compte-pop-tete span { font-size: .8rem; color: var(--taupe); }
.compte-pop a:not(.btn), .compte-pop button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--police-texte); font-size: .92rem; color: var(--encre);
  text-decoration: none; padding: 10px 12px; border-radius: 9px; cursor: pointer;
}
.compte-pop a:not(.btn):hover, .compte-pop button:hover { background: var(--sauge-pale); }
.compte-pop .btn { width: 100%; margin-bottom: 2px; }
.compte-pop .lien-pop { text-align: center; color: var(--sauge-fonce); }
.compte-pop #compte-deconnexion { color: var(--terracotta); font-weight: 600; }

/* Liste des commandes dans "Mon compte" */
.commande-ligne { border: 1px solid var(--sauge-pale); border-radius: 12px; padding: var(--e3); display: grid; gap: 8px; }
.commande-ligne + .commande-ligne { margin-top: var(--e2); }
.commande-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.commande-articles { list-style: none; display: grid; gap: 2px; font-size: .92rem; color: var(--taupe); }
.commande-total { font-size: .95rem; }

/* Recommandations dans le panier */
.reco-titre { font-weight: 600; font-size: .95rem; color: var(--encre); margin: var(--e3) 0 6px; padding-top: var(--e3); border-top: 1px solid var(--sauge-pale); }
.upsell-nom { font-size: .9rem; }

/* Badge de compatibilité (filtres / accessoires liés à un modèle précis) */
.compat-badge {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF6EC; border: 1px solid #E7C9A8; border-left: 4px solid var(--terracotta);
  border-radius: 10px; padding: 12px 14px; font-size: .92rem; line-height: 1.5; color: var(--encre);
}
.compat-badge svg { flex: 0 0 auto; color: var(--terracotta); margin-top: 1px; }
.compat-badge strong { color: var(--terracotta-fonce); }
.compat-badge a { color: var(--terracotta-fonce); font-weight: 600; }

/* Bouton "favoris" sur les fiches produits */
.btn-favori { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--sauge-pale); color: var(--sauge-fonce); border-radius: 12px; padding: 10px 16px; font-family: var(--police-texte); font-size: .92rem; font-weight: 600; cursor: pointer; min-height: 44px; margin-top: 8px; transition: background .15s ease; }
.btn-favori:hover { background: var(--sauge-pale); }
.btn-favori[aria-pressed="true"] { color: var(--terracotta); border-color: #E7C9A8; background: #FFF6EC; }
.btn-favori[aria-pressed="true"]:hover { background: #FBEFE2; }

/* Liste des favoris dans "Mon compte" */
.favori-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sauge-pale); }
.favori-ligne:last-child { border-bottom: none; }
.favori-ligne a { font-weight: 600; color: var(--encre); text-decoration: none; }
.favori-ligne a:hover { text-decoration: underline; }
.favori-ligne button { background: none; border: none; color: var(--taupe); cursor: pointer; font-size: .85rem; text-decoration: underline; }
