/* Tondraaga — expérience téléphone et tablette. Chargé en dernier.
   Principe : en-tête compact, menu latéral, blocs en défilement horizontal plutôt qu'empilés. */

/* ---------- Menu latéral (toutes tailles, déclenché par ☰ sur mobile) ---------- */
.hd-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--fond-page); color: var(--brun); place-items: center; cursor: pointer; flex: none; }
.hd-burger svg { width: 22px; height: 22px; }
.tiroir { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.tiroir.ouvert { visibility: visible; }
.tiroir-voile { position: absolute; inset: 0; background: rgba(36, 22, 15, .5); opacity: 0; transition: opacity .3s; }
.tiroir.ouvert .tiroir-voile { opacity: 1; }
.tiroir-panneau { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: #fff; overflow-y: auto; padding: 0 0 28px; transform: translateX(-100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: 10px 0 40px rgba(36, 22, 15, .25); }
.tiroir.ouvert .tiroir-panneau { transform: none; }
html.sans-defilement, html.sans-defilement body { overflow: hidden; }
.tiroir-haut { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--gris-200); position: sticky; top: 0; background: #fff; z-index: 1; }
.tiroir-haut .hd-logo { width: 130px; }
.tiroir-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fond-page); color: var(--brun); display: grid; place-items: center; cursor: pointer; }
.tiroir-x svg { width: 18px; height: 18px; }
.tiroir-compte { display: flex; align-items: center; gap: 12px; margin: 14px 16px 10px; padding: 12px 14px; border-radius: 14px; background: var(--brun); color: #fff; text-decoration: none; }
.tiroir-compte > svg:first-child { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.tiroir-compte span { flex: 1; display: flex; flex-direction: column; }
.tiroir-compte small { color: #E9B56F; font-size: .74rem; }
.tiroir-compte b { font-size: .9rem; }
.tiroir-compte > svg:last-child { width: 16px; height: 16px; }
.tiroir-pays { display: flex; align-items: center; gap: 10px; margin: 0 16px 6px; padding: 8px 12px; border: 1px solid var(--gris-200); border-radius: 12px; font-size: .82rem; color: var(--gris-700); }
.tiroir-pays .drapeau-svg { width: 22px; height: 15px; }
.tiroir-pays span { flex: 1; }
.tiroir-pays select { border: 0; background: transparent; font-weight: 700; color: var(--brun); font-size: .82rem; }
.tiroir-titre { margin: 18px 16px 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ocre-texte); }
.tiroir-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 0 12px; }
.tiroir-grille a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; text-decoration: none; font-size: .7rem; font-weight: 600; color: var(--gris-900); line-height: 1.2; }
.tiroir-grille img, .tiroir-icone { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--fond-page); }
.tiroir-icone { display: grid; place-items: center; background: var(--ocre-pale); color: var(--ocre-texte); }
.tiroir-icone svg { width: 22px; height: 22px; }
.tiroir-liens { display: grid; padding: 0 8px; }
.tiroir-liens a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; text-decoration: none; color: var(--gris-900); font-weight: 600; font-size: .9rem; }
.tiroir-liens a:hover { background: var(--fond-page); }
.tiroir-liens svg { width: 20px; height: 20px; color: var(--ocre-texte); }
.tiroir-liens .badge { margin-left: auto; }
.tiroir-wa { display: flex; align-items: center; gap: 12px; margin: 16px 16px 0; padding: 12px 14px; border-radius: 14px; background: #EAF5EE; color: #1F7A4D; text-decoration: none; }
.tiroir-wa svg { width: 26px; height: 26px; }
.tiroir-wa span { display: flex; flex-direction: column; }
.tiroir-wa small { color: var(--gris-700); }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .hd-burger { display: grid; }
  .hd-toutes { display: none; }
  .menu-categories { display: none; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .cadre { padding-left: 14px; padding-right: 14px; }
  .section { padding: 26px 0; }
  .section-courte { padding-top: 14px; padding-bottom: 0; }
  .surtitre { font-size: .66rem; margin-bottom: 6px; }
  .entete-section { margin-bottom: 14px; align-items: center; flex-wrap: nowrap; }
  .entete-section h2, .bandeau-rail h2 { font-size: 1.45rem; }
  .entete-section h2::after { width: 32px; margin-top: 6px; }
  .entete-section .btn-lien, .entete-section .btn { font-size: .8rem; white-space: nowrap; flex: none; }
  .entete-section .intro { display: none; }

  /* En-tête compact : démo sur une ligne, pas de barre haute, menu en pastilles */
  .bandeau-demo { font-size: .68rem; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hd-top { display: none; }
  .hd-main .cadre { gap: 8px; padding-top: 8px; padding-bottom: 10px; }
  .hd-logo { width: 118px; }
  .hd-actions { gap: 0; }
  .hd-action { min-width: 40px; padding: 4px; }
  .hd-action svg { width: 22px; height: 22px; }
  .hd-action .compteur { right: 0; top: -2px; }
  .hd-recherche { height: 44px; padding: 3px; }
  .hd-recherche button { width: 40px; height: 38px; }
  .hd-recherche input { font-size: .88rem; }
  .hd-nav { border-top: 0; }
  .hd-nav .cadre { min-height: 0; padding-top: 0; padding-bottom: 10px; }
  .hd-menu { gap: 6px; }
  .hd-menu a { padding: 7px 13px; border-radius: 999px; background: var(--fond-page); font-size: .8rem; font-weight: 600; }
  .hd-menu a::after { display: none; }
  .hd-menu a[aria-current="page"] { background: var(--brun); color: #fff; }
  .hd-menu .hd-offres { background: var(--ocre-pale); }

  /* Bannière */
  .hero-mf { gap: 12px; padding-top: 6px; }
  .hero-mf .carrousel { border-radius: 18px; }
  .hero-mf .slide-photo { height: 190px; }
  .hero-mf .slide-texte { padding: 0 18px 64px; margin-top: -26px; position: relative; }
  .hero-mf .surtitre { font-size: .62rem; }
  .hero-mf .titre-heros { font-size: 1.65rem; margin-bottom: 8px; }
  .hero-mf .chapeau { font-size: .88rem; line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-mf .boutons { gap: 8px; }
  .hero-mf .boutons .btn { min-height: 40px; padding: 0 16px; font-size: .86rem; }
  .hero-mf .carrousel-nav { bottom: 16px; left: 18px; }
  .hero-mf .carrousel-nav > button { width: 30px; height: 30px; }
  .cotes-mf { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; grid-template-rows: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cotes-mf::-webkit-scrollbar { display: none; }
  .cote-mf { min-height: 128px; border-radius: 16px; scroll-snap-align: start; }
  .cote-texte { padding: 14px 16px; max-width: 78%; }
  .cote-texte b { font-size: 1.15rem; }
  .cote-texte em { font-size: .85rem; }
  .cote-texte i { margin-top: 6px; font-size: .74rem; }

  /* Engagements : grille 2 × 2 compacte */
  .promesses-mf { grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 14px; margin-top: 12px; border-radius: 16px; }
  .promesses-mf li { gap: 9px; }
  .promesses-mf li + li { border: 0; padding: 0; }
  .promesses-mf svg { width: 34px; height: 34px; padding: 8px; }
  .promesses-mf .drapeau-svg { width: 34px; height: 23px; }
  .promesses-mf span { font-size: 0; }
  .promesses-mf b { font-size: .76rem; line-height: 1.25; }

  /* Panneaux et rails */
  .bandeau-rail { padding: 16px 14px; border-radius: 16px; }
  .bandeau-rail .entete-section > div > p { display: none; }
  .rail { grid-auto-columns: 58%; gap: 10px; padding-bottom: 6px; }
  .rail-offres { grid-auto-columns: 40%; }
  .bande-categories { margin: 12px 14px 0; padding: 14px 10px !important; gap: 4px; border-radius: 16px; }
  .rond-categorie { min-width: 70px; font-size: .7rem; gap: 6px; }
  .rond-categorie .cercle { width: 58px; height: 58px; }
  .entete-outils { width: auto; }
  .entete-outils .fleches { display: none; }
  .entete-outils .onglets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .section .entete-section:has(.entete-outils) { flex-wrap: wrap; }
  .section .entete-section:has(.entete-outils) .entete-outils { width: 100%; }
  .onglets button, .onglets a { padding: 6px 13px; font-size: .8rem; white-space: nowrap; }

  /* Offre de la semaine */
  .offre-semaine { grid-template-columns: 84px 1fr; gap: 12px 14px; padding: 14px; border-radius: 16px; margin-top: 14px; }
  .offre-photo { width: 84px; height: 84px; border-radius: 12px; }
  .offre-texte .surtitre { font-size: .6rem; }
  .offre-texte h2 { font-size: 1.3rem; margin-bottom: 2px; }
  .offre-texte > p:not(.surtitre):not(.offre-prix) { display: none; }
  .offre-prix { font-size: 1.15rem; margin-bottom: 8px; }
  .offre-texte .btn { min-height: 36px; padding: 0 14px; font-size: .82rem; }
  .compte-rebours { grid-column: 1 / -1; gap: 6px; }
  .compte-rebours div { padding: 7px 0; border-radius: 10px; }
  .compte-rebours b { font-size: 1.15rem; }
  .compte-rebours span { font-size: .58rem; }

  /* Cartes produits compactes */
  .carte-produit { padding: 6px; border-radius: 16px; }
  .carte-produit .carte-media { border-radius: 12px; }
  .carte-produit .corps { padding: 9px 4px 2px; gap: 1px; }
  .carte-produit .categorie, .carte-produit .vendeur, .carte-produit .livraison-carte, .carte-produit .made-bf.sur-photo { display: none; }
  .carte-produit h3 { font-size: .84rem; line-height: 1.3; }
  .carte-produit .etoiles svg { width: 11px; height: 11px; }
  .carte-produit .pied-carte { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 6px; }
  .carte-produit .prix { font-size: .92rem; }
  .carte-produit .prix s { display: block; margin: 0; font-size: .7rem; }
  .carte-produit .prix small { font-size: .7rem; }
  .carte-produit .rond-panier { width: 34px; height: 34px; }
  .carte-produit .rond-panier svg { width: 16px; height: 16px; }
  .carte-produit .favori { top: 12px; right: 12px; width: 30px; height: 30px; }
  .carte-produit .pastilles { top: 12px; left: 12px; }
  .badge-choix { display: none; }
  .grille-produits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .article-course .corps { padding: 9px 10px 10px; }
  .article-course h3 { font-size: .84rem; }
  .article-course .pied-carte { flex-direction: row; align-items: flex-end; }
  .rond-panier { width: 34px; height: 34px; }

  /* Bannières, colis, paniers : défilement horizontal */
  .trio { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .trio::-webkit-scrollbar { display: none; }
  .banniere { min-height: 118px; padding: 16px 0 16px 18px; scroll-snap-align: start; border-radius: 16px; }
  .banniere h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .banniere img { width: 96px; height: 96px; border-radius: 50%; margin-right: 14px; }
  .bloc-colis { grid-template-columns: minmax(0, 1fr); margin: 14px 0 20px; border-radius: 16px; }
  .bloc-colis-photo { min-height: 0; max-height: 150px; }
  .bloc-colis-texte { min-width: 0; padding: 18px 16px; }
  .bloc-colis-texte h2 { font-size: 1.35rem; }
  .bloc-colis-texte > p.muet { font-size: .86rem; }
  .suivi-rapide { min-width: 0; max-width: 100%; }
  .suivi-rapide input { min-width: 0; font-size: .86rem; }
  .suivi-rapide .btn { padding: 0 14px; min-height: 38px; font-size: .84rem; }
  .grille-paniers { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .grille-paniers::-webkit-scrollbar { display: none; }
  .carte-panier { scroll-snap-align: start; }
  .carte-panier .corps { padding: 14px; }
  .carte-panier ul { font-size: .82rem; margin: 2px 0 6px; }

  /* Made in Burkina, classements, étapes, avis */
  .made-in { padding: 34px 0; margin: 20px 0; }
  .made-in h2 { font-size: 1.6rem; }
  .made-in p { font-size: .9rem; }
  .piliers { gap: 8px; }
  .piliers div { padding: 12px; border-radius: 14px; }
  .piliers span { font-size: .74rem; }
  .duo-rails > :nth-child(2) { display: none; }
  .top-ventes li:nth-child(n+4) { display: none; }
  .top-ventes a { grid-template-columns: 26px 52px 1fr; gap: 10px; padding: 6px; }
  .top-ventes img { width: 52px; height: 52px; }
  .top-ventes .rang { font-size: 1.3rem; }
  .etapes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .etape { padding: 14px; }
  .etape > svg { width: 38px; height: 38px; padding: 9px; margin-bottom: 8px; }
  .etape::before { display: none; }
  .etape h3 { font-size: .9rem; margin-bottom: 4px; }
  .etape p { font-size: .76rem; }
  .temoignage { padding: 16px; }
  .temoignage blockquote { font-size: .86rem; }
  .assistance { gap: 20px; }
  .faq summary { padding: 13px 16px; font-size: .9rem; }
  .contact-carte { padding: 22px 18px; border-radius: 16px; }
  .newsletter { padding: 22px 18px; gap: 14px; border-radius: 16px; margin-bottom: 24px; }
  .newsletter h2 { font-size: 1.4rem; }
  .icone-ronde-n { width: 52px; height: 52px; }
  .icone-ronde-n svg { width: 24px; height: 24px; }

  /* Pied de page compact */
  .retour-haut { padding: 12px; font-size: .82rem; }
  .garanties-bande .cadre { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .garanties-bande svg { width: 34px; height: 34px; padding: 7px; }
  .garanties-bande p { font-size: .72rem; }
  .garanties-bande strong { font-size: .8rem; }
  .pied-principal { padding: 30px 0 90px; }
  #pied .colonnes { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  #pied .colonnes > div:first-child, #pied .contact-pied { grid-column: 1 / -1; }
  #pied .bas { flex-direction: column; align-items: flex-start; gap: 10px; font-size: .74rem; }

  /* Barre d'onglets et bouton WhatsApp */
  .barre-onglets { height: 62px; box-shadow: 0 -4px 18px rgba(36, 22, 15, .08); }
  .barre-onglets a { color: var(--gris-700); font-size: .66rem; }
  .barre-onglets a svg { width: 22px; height: 22px; }
  .wa-flottant { bottom: 76px; right: 12px; padding: 12px; }
  .wa-flottant svg { width: 24px; height: 24px; }

  /* Pages intérieures */
  .page-titre { padding: 18px 0 6px; }
  .page-titre h1, .confirmation h1 { font-size: 1.6rem !important; }
  .heros-courses.avec-photo { padding: 30px 0 40px; }
  .heros-courses h1 { font-size: 1.7rem !important; }
  .fiche-amz { gap: 16px; }
  .encart-achat { padding: 14px; }
  .barre-resultats-amz { margin: 10px 0 12px; padding: 8px 12px; }
  .banniere-cat { min-height: 96px; padding: 14px 16px; }
  .banniere-cat h1 { font-size: 1.5rem; }
  .panneau { padding: 16px; border-radius: 16px; }
  .etapes-commande li { padding: 8px 0; }
  .choix-moyens { grid-template-columns: 1fr 1fr; gap: 8px; }
  .moyen-carte { padding: 10px; gap: 8px; }
  .logo-moyen { width: 38px; height: 38px; }
  .moyen-carte strong { font-size: .85rem; }
  .copier-ligne { flex-wrap: wrap; }
  .copier-ligne span { width: 100%; }
}

/* v8.1 — contrastes et marges */
#pied .barre-onglets a { color: var(--gris-700); }
#pied .barre-onglets a[aria-current="page"] { color: var(--brun); }
#pied .barre-onglets a.central { color: var(--brun); }
@media (max-width: 720px) {
  .trio, .cotes-mf, .grille-paniers, .rail { scroll-padding-left: 14px; }
  .section-courte .note-globale, .note-globale { display: none; }
}

/* v8.2 — filtres repliés, barre d'achat collante */
.barre-achat-mobile { display: none; }
.filtres summary { display: none; }
.nb-filtres:empty { display: none; }
@media (max-width: 1000px) {
  .filtres { padding: 0; }
  .filtres details { background: #fff; border-radius: 14px; box-shadow: var(--ombre-douce); padding: 0 14px; }
  .filtres summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 12px 0; font-weight: 700; color: var(--brun); cursor: pointer; }
  .filtres summary::-webkit-details-marker { display: none; }
  .filtres summary svg { width: 17px; height: 17px; color: var(--ocre-texte); }
  .filtres summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--ocre-texte); }
  .filtres details[open] summary::after { content: "–"; }
  .filtres details[open] { padding-bottom: 14px; }
  .mise-en-page-boutique { gap: 14px; }
}
@media (max-width: 720px) {
  .indice-zoom { display: none; }
  .barre-achat-mobile { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 62px; z-index: 45; background: #fff; padding: 10px 14px; border-top: 1px solid var(--gris-200); box-shadow: 0 -8px 22px rgba(36, 22, 15, .08); }
  .barre-achat-mobile .prix { flex: 1; font-size: 1.05rem; }
  .barre-achat-mobile .prix small { font-size: .72rem; }
  .barre-achat-mobile .btn { min-height: 42px; padding: 0 14px; font-size: .86rem; }
  .barre-achat-mobile .btn svg { width: 16px; height: 16px; }
  body:has(.barre-achat-mobile) .wa-flottant { bottom: 140px; }
  .fiche-amz + .bloc-fiche, .avis-fiche { padding-bottom: 20px; }
  .encart-achat .btn-ocre, .encart-achat .btn-brun { display: none; }
  .barre-resultats-amz { flex-direction: row; flex-wrap: wrap; }
  .barre-resultats-amz .tri { width: 100%; justify-content: space-between; }
}
@media (max-width: 720px) { body:has(.barre-achat-mobile) { padding-bottom: 136px; } }
@media (max-width: 720px) { .cadre.section, .section > .cadre { padding-left: 14px; padding-right: 14px; } }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
