/* Matambo : compléments des pages publiques (collections, suggestions de recherche).
   Jetons de la charte : voir static/css/maquettes.css. */
.hdr-recherche{position:relative}
.sugg{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;background:#fff;color:var(--night);border-radius:16px;
  box-shadow:0 16px 40px rgba(5,24,52,.22);overflow:hidden;text-align:left}
.sugg[hidden]{display:none}
.sugg-cols{display:grid;grid-template-columns:1fr;gap:4px 24px;padding:8px 16px 4px}
.sugg-titre{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--t2);margin:12px 0 4px}
.sugg-liste{list-style:none;margin:0;padding:0}
.sugg-liste a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:10px;justify-content:space-between}
.sugg-liste a:hover,.sugg-liste a:focus-visible,.sugg-liste a.actif{background:var(--bg)}
.sugg-prod img{width:52px;height:43px;border-radius:8px;object-fit:cover;background:var(--bg);flex:none}
.sugg-prod .b{font-weight:500}
.sugg-marques{display:flex;flex-wrap:wrap;gap:8px}
.sugg-pied{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line,#E3E8F0)}
.sugg-pied .t2{display:none}
.sugg-vide{padding:16px;color:var(--t2)}
@media(min-width:768px){.sugg{right:auto;width:min(860px,92vw)}.sugg-cols{grid-template-columns:.9fr 1.3fr}.sugg-pied .t2{display:inline}}
/* Page collection (maquette P1-3) */
.coll-tete{margin:0 -16px 16px;padding:16px 16px 20px;color:#fff;background:linear-gradient(100deg,var(--o),var(--red))}
.coll-tete .crumb,.coll-tete .crumb a,.coll-tete .crumb li+li::before{color:rgba(255,255,255,.85)}
.coll-corps{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-end;margin-top:8px}
.coll-tete h1{font-size:28px;line-height:1.15;color:#fff}
.coll-desc{margin-top:6px;max-width:60ch}
.coll-nb{margin-top:6px;font-size:13px;opacity:.9}
.coll-partage .btn{background:#fff;color:var(--night);border-color:#fff}
@media(min-width:768px){.coll-tete{margin:0 0 20px;border-radius:16px;padding:20px 28px 28px}.coll-tete h1{font-size:40px}}
.coll-liste{list-style:none;padding:0;margin:16px 0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.coll-lien{display:flex;flex-direction:column;gap:4px;padding:16px;height:100%}
.coll-lien:hover{border-color:var(--o)}
/* Compte à rebours de la collection (P1-3) */
.coll-fin{margin-top:8px;align-items:center;flex-wrap:wrap}
.coll-fin .timer span[data-h],.coll-fin .timer span[data-m],.coll-fin .timer span[data-s]{display:inline-block;min-width:30px;padding:3px 6px;border-radius:6px;background:var(--night);color:#fff;text-align:center;font-weight:700}
/* Cœur « favori » des cartes et de la fiche (maquette 3.10 A, P7-2) */
.card .fav,.galerie-grande .fav{position:absolute;top:6px;right:6px;z-index:2;width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(7,24,52,.18);display:flex;align-items:center;justify-content:center}
.card .fav form,.galerie-grande .fav form{display:flex}
.card .fav .coeur,.galerie-grande .fav .coeur{border:0;background:none;font-size:22px;line-height:1;cursor:pointer;min-width:36px;min-height:36px;padding:0;color:var(--t2,#5B6B85)}
.card .fav .coeur.on,.galerie-grande .fav .coeur.on{color:var(--red)}
/* Bandeau d'annonce des clients connectés (3.10 A) */
.bandeau-annonce{align-items:center;margin:0 -16px 12px;padding:10px 16px;background:var(--night);color:#fff;font-size:13px}
.bandeau-annonce[hidden]{display:none}
.bandeau-annonce p{flex:1;margin:0;min-width:0}
.bandeau-txt{display:none}
.bandeau-code,.bandeau-lien{flex:none;padding:4px 10px;border-radius:6px;background:var(--o);color:var(--night);font-weight:700;font-size:12px;text-decoration:none}
.bandeau-x{flex:none;border:0;background:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;min-width:32px;min-height:32px}
@media(min-width:768px){.bandeau-annonce{margin:0 0 16px;border-radius:12px}.bandeau-txt{display:inline}}
/* Mes annonces (3.10 B et C) */
.annonces{list-style:none;padding:0;margin:12px 0;display:grid;gap:12px}
.annonce-carte{padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.annonce-tete{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.annonce-carte.finie{opacity:.6;background:var(--bg,#F3F5F9)}
.annonce-code{align-items:center}
.code-pastille{padding:6px 12px;border:1px dashed var(--o);border-radius:8px;font-weight:700;font-size:14px}
.annonces-vide{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:28px 20px;margin:12px auto;max-width:480px}
.annonces-vide h2{font-size:22px}
.annonces-ic{display:inline-flex;width:64px;height:64px;border-radius:50%;background:#FFF1E0;color:var(--o);align-items:center;justify-content:center}
@media(min-width:768px){.annonces{max-width:640px}}
/* Avis de la fiche produit (6.11 A) : l'ancre #avis reste en place après le chargement du fragment */
.bloc-avis{margin:28px 0;scroll-margin-top:80px}
.bloc-avis h2{font-size:22px;margin-bottom:12px}

/* ===== Accueil (21 nov. 2026, d'après une maquette de référence) : cartes sobres teintées, peu de texte, et des
   sections qui se rangent côte à côte sans jamais laisser de vide. Couleurs : jetons de la charte. ===== */
:root{--carte:#F5EEE5;--carte-2:#EBE0D2}

/* --- Flux de l'accueil : tout prend la largeur ; une section de produits prend la place de ses produits,
       deux sections courtes se rangent donc sur la même ligne. --- */
.accueil-flux{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start}
.accueil-flux>*{flex:1 1 100%;min-width:0;margin-top:0}
.sec-cartes{--w:46%}
@media(min-width:768px){
  .accueil-flux{gap:22px}
  .sec-cartes{--w:178px;flex:1 1 calc(var(--n,4) * var(--w) + (var(--n,4) - 1) * 12px)}
  .sec-blog{--w:290px}
}
@media(min-width:1200px){.sec-cartes{--w:196px}.sec-blog{--w:300px}}

/* Sections : plus de panneau blanc ; un titre simple et « Tout voir → ». */
.section:not(.flash):not(.offre){background:none;box-shadow:none;padding:0;border-radius:0}
.section .sec-h{margin-bottom:12px;padding:0;border:0}
.section .sec-h h2,.section .sec-titre{font-size:20px;font-weight:600;letter-spacing:-.01em;margin:0}
.section .sec-h h2::before,.section .sec-titre::before{display:none}
.seeall{background:none;padding:0;border-radius:0;color:var(--night);font-weight:600;gap:6px}
.seeall:hover{background:none;text-decoration:underline;text-underline-offset:3px}

/* Rayons : pastilles qui défilent sans fin (animation de matambo.css conservée), pause au survol. */
.rayons.defile{padding:2px 0 4px}
.rayons-groupe{gap:8px;padding-right:8px}
@media(min-width:1024px){.rayons-groupe{gap:8px;padding-right:8px}}
.rayon{width:auto;flex-direction:row;gap:8px;height:42px;padding:0 16px 0 12px;border-radius:999px;background:var(--carte);font-size:14px;white-space:nowrap;line-height:1}
.rayon-ic{width:auto;height:auto;border:0;border-radius:0;background:none;box-shadow:none;color:var(--night)}
.rayon-ic .ic{width:18px;height:18px}
.rayon:hover{background:var(--carte-2)}
.rayon.chaud{background:var(--o);color:var(--night)}
.rayon.chaud .rayon-ic{background:none;color:var(--night)}
#nos-rayons-titre,.section:has(.rayons) .sec-titre{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.rayon{width:auto}

/* --- Carrousel (rangée) : les cartes remplissent la largeur ; trop nombreuses, elles défilent. --- */
.rangee-piste{display:flex;gap:12px;padding:2px 2px 8px;overflow-x:auto;scroll-snap-type:x mandatory;grid-auto-flow:initial}
.rangee-piste>div{flex:1 0 var(--w,46%);max-width:var(--cmax,none);min-width:0;margin:0;scroll-snap-align:start}
@media(max-width:767.98px){.rangee-piste{gap:10px}.rangee-piste>div{flex:0 0 46%}}
@media(min-width:768px){.rangee-piste>div{--cmax:290px}.rangee-piste>div:first-child{margin-left:auto}.rangee-piste>div:last-child{margin-right:auto}}

/* --- Grille : colonnes qui se remplissent ; accueil.js cache les produits qui ne complètent pas la dernière ligne. --- */
.rangee.disp-grille{--wg:150px}
@media(min-width:768px){.rangee.disp-grille{--wg:178px}}
@media(min-width:1200px){.rangee.disp-grille{--wg:196px}}
.rangee.disp-grille .rangee-piste{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--wg),1fr));justify-content:center;gap:12px;overflow:visible;scroll-snap-type:none;padding:2px 0 0}
.rangee.disp-grille .rangee-piste>div{max-width:none;margin:0}
/* peu de produits : la grille ne s'étire pas plus que leurs cartes (290 px chacune), et reste centrée */
.rangee.disp-grille .rangee-piste{max-width:calc(var(--n,12) * 302px);margin-inline:auto}

/* --- Liste : vignette à gauche, texte à droite ; deux colonnes dès que la place le permet. --- */
.rangee.disp-liste .rangee-piste{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px;overflow:visible;scroll-snap-type:none;padding:2px 0 0}
.rangee.disp-liste .rangee-piste>div{max-width:none;margin:0}
.rangee.disp-liste .rangee-piste .card{width:100%;grid-template-columns:104px 1fr;column-gap:12px;padding:8px;align-items:center}
.rangee.disp-liste .card-img{margin:0;align-self:start}
.rangee.disp-liste .card-img img{aspect-ratio:1/1}
.rangee.disp-liste .card .body{padding:0 2px 0 0}
.rangee.disp-liste .card .brand,.rangee.disp-liste .card .ttl{padding-right:34px}

/* --- Carte produit : fond teinté sans bordure, image arrondie, peu de texte, prix + petit bouton panier. --- */
.card{background:var(--carte);border:0;border-radius:16px;box-shadow:none;padding:8px;transition:transform .2s ease,box-shadow .2s ease}
.card .bdg{top:16px;left:16px}
.card .fav{top:14px;right:14px;width:30px;height:30px;box-shadow:none}
.card-img{border-radius:12px;overflow:hidden;background:#fff}
.card-img img{aspect-ratio:1/.78}
.card .body{padding:10px 4px 2px;gap:4px}
.card .brand{font-size:10px;letter-spacing:.07em}
.card .ttl{font-size:13px;line-height:1.3;height:auto;max-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500}
.card .stars{font-size:12px}
.card .badge{border-radius:999px;font-size:11px;font-weight:600;padding:3px 9px;background:#fff;color:var(--night)}
.card .badge.bd-promo{color:var(--red)}
.card .bas{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px}
.card .prixl{flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.card .price{font-size:17px;line-height:1.15}
.card .old{margin-left:0;font-size:12px}
.card .act{margin:0;padding:0;flex:none}
/* « En stock » ne s'affiche pas sur la carte (lu seulement par les lecteurs d'écran) ; les alertes, elles, restent visibles. */
.card .st.ok{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.card .st{font-size:12px}
/* Bouton d'ajout : carré sombre avec l'icône panier ; le texte reste pour les lecteurs d'écran. */
.card .act .btn{width:38px;height:38px;min-height:0;padding:0;border-radius:11px;background:var(--night);color:#fff;border:0}
.card .act .btn.s{background:#fff;color:var(--night);border:1.5px solid var(--night)}
.card .act .btn .ic{display:inline-block}
.card .act .btn:hover{background:var(--o);color:var(--night)}
.card .btn-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.card.off .act{display:none}
@media(hover:hover){.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(5,24,52,.10);border:0}.card:hover .card-img img{transform:scale(1.03)}}

/* --- Ventes flash et blog : même style que les cartes. --- */
.flash{background:var(--carte);border:0;box-shadow:none;border-radius:16px}
.flash-corps{padding:12px 10px 4px;background:none}
@media(min-width:1024px){.flash-corps{padding:14px 14px 6px}}
/* Blog de l'accueil : petites cartes en rangée (vignette à gauche, titre à droite), sur toute la largeur, sans défilement. */
.sec-blog{flex-basis:100%}
#conseils-et-guides .defile>.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;overflow:visible;padding:0}
#conseils-et-guides .ba-carte{flex-direction:row;align-items:center;gap:12px;background:var(--carte);border:0;border-radius:16px;padding:8px;min-width:0}
#conseils-et-guides .ba-img{flex:none;width:112px;aspect-ratio:4/3;border-radius:12px}
#conseils-et-guides .ba-corps{padding:0 4px 0 0;gap:4px;flex:1;min-width:0}
#conseils-et-guides .ba-titre{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#conseils-et-guides .ba-meta{font-size:12px}
@media(min-width:768px){#conseils-et-guides .ba-img{width:136px}#conseils-et-guides .ba-titre{font-size:15px}}

/* Bandeau de réassurance et bannière : pleine largeur, plus compacts. */
.rassurance{margin-top:0;padding:8px 14px}
.banniere{box-shadow:none}

/* Tablette : cartes un peu plus étroites pour que 4 produits tiennent sans défiler. */
@media(min-width:768px) and (max-width:1023.98px){.sec-cartes{--w:158px}.rangee.disp-grille{--wg:158px}}

/* Barre fixe en bas sur mobile : Accueil, Catégories, Panier, Compte. */
.nav-bas{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(5,24,52,.08);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
.nav-bas a,.nav-bas button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;min-height:48px;justify-content:center;font-size:11px;font-weight:600;color:#4A5873;position:relative}
.nav-bas [aria-current="page"]{color:var(--otext)}
.nav-bas .nb-n{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
/* La barre est fixe : on réserve sa place dans le pied de page (et non sous lui, où elle laissait une bande claire). */
body:has(.nav-bas) .site-pied{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@media(min-width:1024px){body:has(.nav-bas) .site-pied{padding-bottom:20px}}

/* Bannières deux fois moins hautes (22 nov. 2026) ; sur mobile les commandes passent à droite. */
.banniere{aspect-ratio:780/170}
@media(min-width:768px){.banniere{aspect-ratio:1440/225}}
@media(max-width:767px){.ban-bas{left:auto;right:6px;bottom:4px}.ban-pause{width:28px;height:28px}.ban-points button{width:18px}}
/* Suggestions de recherche */
.sugg-vide{margin:0}
