/* Tondraaga v7 — « Marketplace riche » aux couleurs du logo (style A retenu le 13 octobre 2026).
   La densité d'un grand marché en ligne (recherche, rayons, offres du jour, catégories) sur un en-tête blanc qui garde
   le logo intact. Couleurs du logo uniquement : brun #4D3529, ocre #C87817, leurs teintes et des blancs chauds.
   Signature Made in Burkina : le tressage en losanges du panier du logo et le drapeau. Chargé en dernier. */
:root {
  --police: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --titre: var(--police);
  --texte: var(--police);
  --serif: var(--police);
  --fond-page: #F4EEE7;
  --ligne: #EADFD2;
  --rayon-a: 14px;
  --ocre-clair: #F2B661;      /* ocre éclairci : texte sur fond brun */
  --creme-texte: #F3E6D6;     /* texte clair sur fond brun */
  /* tressage du panier du logo (losanges) */
  --tressage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M0 0l14 14M14 0L0 14' stroke='%23C87817' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E");
  --tressage-brun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0 0l12 12M12 0L0 12' stroke='%234D3529' stroke-width='1.6'/%3E%3C/svg%3E");
  /* motifs inspirés du bogolan : zigzags, points et croix, en ocre */
  --bogolan-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23C87817' stroke-opacity='.13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 9l7-7 7 7 7-7 7 7 7-7 7 7 7-7 7 7'/%3E%3Cpath d='M14 33v12M8 39h12M42 33v12M36 39h12'/%3E%3C/g%3E%3Cg fill='%23C87817' fill-opacity='.15'%3E%3Ccircle cx='7' cy='22' r='1.8'/%3E%3Ccircle cx='21' cy='22' r='1.8'/%3E%3Ccircle cx='35' cy='22' r='1.8'/%3E%3Ccircle cx='49' cy='22' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  --bogolan-sombre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23F2B661' stroke-opacity='.16' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 9l7-7 7 7 7-7 7 7 7-7 7 7 7-7 7 7'/%3E%3Cpath d='M14 33v12M8 39h12M42 33v12M36 39h12'/%3E%3C/g%3E%3Cg fill='%23F2B661' fill-opacity='.2'%3E%3Ccircle cx='7' cy='22' r='1.8'/%3E%3Ccircle cx='21' cy='22' r='1.8'/%3E%3Ccircle cx='35' cy='22' r='1.8'/%3E%3Ccircle cx='49' cy='22' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  /* pagne « aux hirondelles » : ses couleurs d'origine (rouge, noir, blanc) */
  --pagne-rouge: #DA251D;
  --pagne-noir: #1B1B1B;
  --pagne-blanc: #FFFFFF;
}
body { background: var(--fond-page) var(--bogolan-clair); font-family: var(--police); }
h1, h2, h3, h4, .titre-heros, .infos-produit h1, .banniere h3, .cote-texte b { font-family: var(--police); font-weight: 700; letter-spacing: -.02em; }
.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0; }
.btn-ocre:hover { background: var(--brun); color: #fff; border-color: var(--brun); }

/* ======================= En-tête ======================= */
.hd-top { background: var(--brun-fonce) var(--bogolan-sombre); font-size: .74rem; }
.hd-promesses li, .hd-liens a { white-space: nowrap; }
.hd-main { background: #fff; border-bottom: 0; }
@media (min-width: 1001px) {
  .hd-main .cadre { min-height: 84px; gap: 28px; }
  .hd-logo { width: 172px; }
}
.hd-recherche { height: 50px; background: #fff; border: 2px solid var(--ocre); border-radius: 10px; padding: 0 0 0 16px; overflow: hidden; }
.hd-recherche:focus-within { border-color: var(--brun); box-shadow: 0 0 0 4px rgba(200, 120, 23, .15); }
.hd-recherche input { font-size: .92rem; }
.hd-recherche button { width: 60px; height: 100%; border-radius: 0; background: var(--ocre); color: #fff; }
.hd-recherche button:hover { background: var(--brun); color: #fff; }
.hd-pays { border-radius: 10px; }
.hd-action { color: var(--brun); font-weight: 500; }
.hd-action:hover { background: var(--ocre-pale); }
.hd-nav { background: var(--brun); border: 0; border-bottom: 3px solid var(--ocre); }
.hd-nav .cadre { min-height: 48px; }
.hd-toutes { height: 48px; border: 0; border-radius: 0; padding: 0 22px; margin-right: 14px; background: var(--ocre); color: var(--brun-encre); font-weight: 600; }
.hd-toutes:hover, .hd-toutes[aria-expanded="true"] { background: var(--ocre-clair); border: 0; }
.hd-menu a { color: var(--creme-texte); font-weight: 500; font-size: .88rem; }
.hd-menu a:hover, .hd-menu a[aria-current="page"] { color: #fff; }
.hd-menu a[aria-current="page"] { font-weight: 600; }
.hd-menu a::after { bottom: 0; height: 3px; border-radius: 0; background: var(--ocre-clair); }
.hd-menu .hd-offres, .hd-menu .hd-offres svg { color: var(--ocre-clair); }
.hd-suivi { color: var(--creme-texte); }
.hd-suivi:hover { color: #fff; }
.hd-suivi svg { color: var(--ocre-clair); }
.mega { margin-top: 3px; border-radius: 0 0 var(--rayon-a) var(--rayon-a); color: var(--gris-900); }

/* ======================= Accueil : haut de page ======================= */
.a-haut { padding-top: 16px; }
.a-hero { display: grid; grid-template-columns: 262px minmax(0, 1fr) 290px; gap: 16px; }

.a-rayons { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-a); padding: 6px 0 8px; overflow: hidden; }
.a-rayons-titre { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 10px 18px 12px; font-weight: 700; color: var(--brun); font-size: .95rem; border-bottom: 1px solid var(--ligne); }
.a-rayons-titre svg { width: 18px; height: 18px; color: var(--ocre); }
.a-rayons a { display: flex; align-items: center; gap: 11px; padding: 7px 12px 7px 16px; color: #3A2C23; text-decoration: none; font-size: .84rem; font-weight: 500; }
.a-rayons a img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ocre-pale); }
.a-rayons a span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-rayons a > svg { flex: none; width: 13px; height: 13px; color: #C9B8A5; }
.a-rayons a:hover { background: var(--ocre-pale); color: var(--brun); }
.a-rayons a:hover > svg { color: var(--ocre); }
.a-rayons .a-rayons-tout { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--ligne); color: var(--ocre-texte); font-weight: 600; }
.a-rayons .a-rayons-tout svg { width: 15px; height: 15px; }

/* carrousel : une diapositive par service */
.a-banniere { position: relative; display: grid; min-height: 450px; border-radius: var(--rayon-a); overflow: hidden; background: var(--brun); color: #fff; }
.a-carrousel .slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: 450px; overflow: hidden; color: #fff; text-decoration: none; }
.a-banniere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.a-banniere .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 22, 15, .93) 0%, rgba(59, 40, 31, .8) 40%, rgba(59, 40, 31, 0) 78%); }
.a-banniere .slide::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 46%; background: var(--bogolan-sombre); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.a-banniere-texte { position: relative; z-index: 2; padding: 40px 44px 60px; max-width: 480px; }
.a-etiquette { display: inline-flex; align-items: center; gap: 7px; background: var(--ocre); color: var(--brun-encre); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.a-etiquette .drapeau-svg { width: 18px; height: 12px; border-radius: 2px; }
.a-banniere h1, .a-banniere h2 { color: #fff; font-size: clamp(1.85rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 16px 0 12px; }
.a-banniere p { color: var(--creme-texte); font-size: .98rem; line-height: 1.6; margin: 0 0 24px; }
.a-banniere .btn svg { width: 16px; height: 16px; }
.a-banniere .slide:hover .btn-ocre { background: #fff; color: var(--brun); }
.a-carrousel-nav { position: absolute; z-index: 3; left: 44px; bottom: 22px; display: flex; align-items: center; gap: 10px; }
.a-carrousel-nav > button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(36, 22, 15, .35); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.a-carrousel-nav > button:hover { background: var(--ocre); border-color: var(--ocre); color: var(--brun-encre); }
.a-carrousel-nav > button svg { width: 15px; height: 15px; }
.a-carrousel .points button { background: rgba(255, 255, 255, .45); }
.a-carrousel .points button[aria-current="true"] { background: var(--ocre); }

/* tampon rotatif « Made in Burkina » */
.a-tampon { position: absolute; z-index: 3; right: 22px; bottom: 22px; width: 116px; height: 116px; pointer-events: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .3)); }
.a-tampon-fond { fill: rgba(36, 22, 15, .78); stroke: var(--ocre); stroke-width: 1.5; }
.a-tampon-coeur { fill: #FFF8EF; stroke: var(--ocre); stroke-width: 2; stroke-dasharray: 3 3; }
.a-tampon text { font: 700 8px var(--police); fill: #FFF8EF; letter-spacing: .5px; transform-box: view-box; transform-origin: 60px 60px; }

/* bandeau défilant entre deux liserés de Faso Dan Fani */
/* Pagne « aux hirondelles » (motif dessiné dans l'en-tête, voir app.js) */
.pagne-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pg-rouge { fill: var(--pagne-rouge); }
.pg-noir { fill: var(--pagne-noir); }
.pg-blanc { fill: var(--pagne-blanc); }
.pg-trait { stroke: var(--pagne-noir); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.pg-croise { stroke: var(--pagne-rouge); stroke-width: 1.6; }
.pagne-rang { display: block; width: 100%; height: 42px; }
.pagne-rang rect { fill: url(#tdg-pagne); }
.pagne-rang.lisiere { height: 32px; }
.pagne-rang.lisiere rect { fill: url(#tdg-pagne-petit); }

/* bande de pagne entre le haut de page et les rayons */
.a-defile { position: relative; margin-top: 16px; overflow: hidden; background: var(--pagne-noir); box-shadow: 0 10px 30px rgba(27, 27, 27, .18); }
.pagne-rang.double { height: 78px; } /* deux rangées du damier, comme une bande de tissu */

.a-cotes { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.a-cote { position: relative; display: flex; align-items: flex-end; min-height: 212px; border-radius: var(--rayon-a); overflow: hidden; background: #EFE6DA; text-decoration: none; }
.a-cote img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-cote::after { content: ""; position: absolute; inset: 0; }
.a-cote > span { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 20px 22px; max-width: 72%; }
.a-cote b { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.a-cote em { font-style: normal; }
.a-cote-clair::after { background: linear-gradient(90deg, #F7EBDB 0%, rgba(247, 235, 219, .97) 52%, rgba(247, 235, 219, 0) 88%); }
.a-cote-clair::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brun) var(--tressage); }
.a-cote-surtitre { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ocre-texte); }
.a-cote-clair b { color: var(--brun); }
.a-cote-clair em { color: var(--ocre-texte); font-weight: 800; font-size: 1.15rem; }
.a-cote-sombre::after { background: var(--bogolan-sombre), linear-gradient(90deg, rgba(36, 22, 15, .94) 0%, rgba(59, 40, 31, .7) 60%, rgba(59, 40, 31, .2) 100%); }
.a-cote-sombre .made-bf { align-self: flex-start; margin: 0 0 8px; }
.a-cote-sombre b { color: #fff; }
.a-cote-sombre small { color: var(--creme-texte); font-size: .76rem; line-height: 1.4; }
.a-cote .a-cote-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ocre-clair); font-weight: 600; font-size: .82rem; }
.a-cote .a-cote-lien svg { width: 14px; height: 14px; transition: transform .25s; }
.a-cote:hover .a-cote-lien svg { transform: translateX(4px); }
.a-cote:hover b { text-decoration: underline; text-underline-offset: 3px; }
.a-cote img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.a-cote:hover img { transform: scale(1.07); }

.a-promesses { list-style: none; margin: 16px 0 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-a); }
.a-promesses li { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: #6B5D52; line-height: 1.4; }
.a-promesses i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ocre-pale); color: var(--ocre); }
.a-promesses i svg { width: 20px; height: 20px; }
.a-promesses i .drapeau-svg { width: 22px; height: 15px; border-radius: 2px; }
.a-promesses b { display: block; color: var(--brun); font-size: .9rem; font-weight: 600; }

/* ======================= Panneaux blancs ======================= */
.cadre.a-panneau { max-width: calc(var(--contenu) - 32px); margin-top: 16px; padding: 22px 24px 24px; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-a); }
.a-tete { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 18px; }
.a-tete h2, .a-panneau .v6-entete h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; color: var(--brun); }
.a-tete h2::before, .a-panneau .v6-entete h2::before { content: ""; flex: none; width: 6px; height: 24px; border-radius: 2px; background: var(--brun) var(--tressage); }
.a-tete h2 svg { width: 22px; height: 22px; color: var(--ocre); }
.a-tete .v6-tout { margin-left: auto; }
.a-panneau .v6-entete { margin-bottom: 18px; }
.a-panneau .v6-surtitre .drapeau-svg { width: 18px; height: 12px; }
.a-rebours { margin: 0; padding: 6px 12px; border-radius: 8px; background: var(--brun); color: var(--creme-texte); font-size: .8rem; font-weight: 500; }
.a-rebours b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.v6-tout { color: var(--ocre-texte); font-weight: 600; }
.v6-tout:hover { color: var(--brun); }

.a-cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(86px, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.a-cats::-webkit-scrollbar { display: none; }
.a-cats a { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; color: #3A2C23; text-decoration: none; font-size: .78rem; font-weight: 500; line-height: 1.25; }
.a-cat-cercle { position: relative; display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50%; background: var(--ocre-pale); }
.a-cat-cercle::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px dashed var(--ocre); opacity: 0; transition: opacity .3s; }
.a-cats img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.a-cats a:hover .a-cat-cercle::before { opacity: 1; }
.a-cats a:hover img { transform: scale(1.07); }
.a-cats a:hover > span:last-child { color: var(--ocre-texte); }

.a-offres { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.a-offres .carte-produit .vendeur, .a-offres .carte-produit .livraison-carte { display: none; }

/* sections suivantes de l'accueil : même rythme serré que les panneaux */
.v6-section { padding-top: 16px; }
.v6-bande-claire { background: transparent; border: 0; margin-top: 16px; }
.v6-bande-claire > .cadre { max-width: calc(var(--contenu) - 32px); background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-a); padding: 30px 28px 32px; }
.v6-colis { border-radius: var(--rayon-a); padding: 32px 36px; }
.v6-colis-prix { border-radius: 12px; background: var(--brun) var(--tressage); background-blend-mode: soft-light; }
.v6-fierte { border-radius: var(--rayon-a); }
.v6-aide { padding-bottom: 48px; }

/* ======================= Cartes ======================= */
.carte-produit { border-radius: var(--rayon-a); }
.carte-produit .pastilles { right: 56px; flex-wrap: wrap; }
.carte-produit .pied-carte { align-items: flex-end; }
.carte-produit .prix { min-width: 0; }
.carte-produit .prix s { display: block; margin: 0; }
.carte-panier .pied-carte { flex-wrap: wrap; }
.carte-panier .pied-carte .btn { padding: 0 16px; min-height: 42px; font-size: .86rem; }
.a-offres .badge-choix { display: none; }
.article-course, .carte-panier { border-radius: var(--rayon-a); }
.carte-produit .prix, .article-course .prix { color: var(--brun); }
.badge.promo { background: var(--ocre); color: var(--brun-encre); }

/* Pied de page : liseré tressé comme le panier du logo */
.pied-principal { position: relative; padding-top: 82px; }
.pied-principal > .pagne-rang { position: absolute; left: 0; right: 0; top: 0; }
.garanties-bande { border-top: 0; }

/* Bandeau « artisans » : liseré de Faso Dan Fani en pied */
.v6-fierte { position: relative; padding-bottom: 76px; }
.v6-fierte > .pagne-rang { position: absolute; left: 0; right: 0; bottom: 0; }

/* Pied de page : bandeau ocre (seconde couleur du logo) avec les moyens de paiement */
.pied-paiement { background: var(--ocre); color: var(--brun-encre); border-top: 3px solid var(--ocre-clair); }
.pied-paiement .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.pied-moyens { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pied-moyens p { display: flex; flex-direction: column; margin: 0 6px 0 0; font-size: .74rem; line-height: 1.35; }
.pied-moyens p b { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 700; }
.pied-moyens p svg { width: 17px; height: 17px; }
.pied-moyen { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 6px 14px 6px 6px; font-weight: 600; font-size: .86rem; color: var(--brun); box-shadow: 0 4px 12px rgba(36, 22, 15, .14); }
.pied-moyen .logo-moyen { width: 38px; height: 38px; border-radius: 9px; }
.pied-moyen .logo-moyen.om b { font-size: .55rem; }
.pied-moyen .logo-moyen.om i { font-size: .5rem; }
.pied-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .78rem; }
.pied-legal .liens-legaux a { color: var(--brun-encre); font-weight: 600; text-decoration: none; }
.pied-legal .liens-legaux a:hover { text-decoration: underline; text-underline-offset: 3px; }
#pied h4 { color: var(--ocre-clair); }
.contact-pied svg { color: var(--ocre-clair); }

/* Boutique pas encore ouverte (site en ligne sans produit de vendeur) */
.boutique-fermee .hd-menu li:has(> .hd-offres), .boutique-fermee .hd-offres, .boutique-fermee #pied li:has(> a[href="#/boutique?tri=promo"]) { display: none; }
.a-bientot { padding-top: 24px; padding-bottom: 56px; }
.a-bientot-carte { display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-a); overflow: hidden; }
.a-bientot-carte > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.a-bientot-texte { padding: 44px 46px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.a-bientot-texte h1 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 14px 0 10px; }
.a-bientot-texte p { color: #5E5148; line-height: 1.65; margin: 0 0 12px; }
.a-bientot-texte .v6-boutons { margin-top: 10px; }
.a-bientot-wa { margin-top: 18px; }
.a-bientot-wa svg { width: 18px; height: 18px; color: #1F7A4D; }
.a-bientot-mini { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center; }
.a-bientot-mini > img { width: 100%; height: 210px; object-fit: cover; border-radius: 12px; }
.a-bientot-mini h2 { margin: 6px 0 10px; font-size: 1.35rem; color: var(--brun); }
.a-bientot-mini p { color: #5E5148; line-height: 1.6; margin: 0 0 16px; max-width: 640px; }
.a-bientot-mini .btn svg { width: 17px; height: 17px; }
.v6-etapes li span { background: var(--brun) var(--tressage); border: 3px solid var(--ocre-pale); box-sizing: content-box; }

/* ======================= Animations ======================= */
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes eclair { 0%, 86%, 100% { opacity: 1; } 89% { opacity: .25; } 92% { opacity: 1; } 95% { opacity: .4; } }
@keyframes tic { from { transform: translateY(-5px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes flux { to { background-position: 28px 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes balance { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* entrée de page et apparition au défilement (douces, une seule fois) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* carrousel : zoom lent de la photo et textes qui montent l'un après l'autre */
.a-carrousel .slide.active img { animation: kenburns 9s ease-out both; }
.a-carrousel .slide.active .a-banniere-texte > * { animation: monte .8s both; }
.a-carrousel .slide.active .a-banniere-texte > :nth-child(2) { animation-delay: .12s; }
.a-carrousel .slide.active .a-banniere-texte > :nth-child(3) { animation-delay: .24s; }
.a-carrousel .slide.active .a-banniere-texte > :nth-child(4) { animation-delay: .36s; }
.a-tampon text { animation: tourne 22s linear infinite; }
/* la bande de pagne glisse lentement (une case de 72 px par cycle : boucle invisible) */
@keyframes pagne-gauche { to { transform: translateX(-72px); } }
.a-defile .pagne-glisse { animation: pagne-gauche 6s linear infinite; }
.a-defile:hover .pagne-glisse { animation-play-state: paused; }

/* petits signes de vie */
.a-tete h2 svg { animation: eclair 3.2s infinite; }
.a-rebours b { display: inline-block; }
.a-rebours b.tic { animation: tic .45s ease-out; }
.a-cats a:hover .a-cat-cercle::before { animation: tourne 9s linear infinite; }
.a-rayons a span { transition: transform .25s; }
.a-rayons a:hover span { transform: translateX(4px); }
.a-promesses i { transition: background .25s, color .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.a-promesses li:hover i { background: var(--ocre); color: #fff; transform: translateY(-3px) rotate(-8deg); }
.a-tete h2::before, .a-panneau .v6-entete h2::before { transition: transform .7s .25s cubic-bezier(.2, .7, .2, 1); transform-origin: bottom; }
.reveal:not(.visible) .a-tete h2::before, .reveal:not(.visible) .v6-entete h2::before { transform: scaleY(0); }
.v6-etapes li.visible span { animation: pop .6s .15s both; }
.v6-etapes li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 66px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--ocre) 0 9px, transparent 9px 14px); animation: flux 1.4s linear infinite; }

/* cartes : légère élévation et zoom de la photo au survol */
.carte-produit, .article-course, .carte-panier { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.carte-produit:hover, .article-course:hover, .carte-panier:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(36, 22, 15, .1); }
.carte-media img, .article-course .carte-media img, .carte-panier img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.carte-produit:hover .carte-media img, .article-course:hover .carte-media img, .carte-panier:hover img { transform: scale(1.06); }
.rond-panier { transition: transform .25s, background .25s; }
.rond-panier:hover { transform: scale(1.1); }
.rond-panier:hover svg { animation: balance .5s; }
.made-bf .drapeau-svg { transform-origin: left center; }
.carte-produit:hover .made-bf .drapeau-svg { animation: balance .7s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .a-carrousel .slide.active img, .a-carrousel .slide.active .a-banniere-texte > *, .a-tampon text, .pagne-glisse, .a-tete h2 svg, .a-rebours b.tic,
  .a-cats a:hover .a-cat-cercle::before, .v6-etapes li.visible span, .v6-etapes li::after, .rond-panier:hover svg, .carte-produit:hover .made-bf .drapeau-svg { animation: none !important; }
  .carte-produit:hover, .article-course:hover, .carte-panier:hover, .carte-produit:hover .carte-media img, .article-course:hover .carte-media img, .carte-panier:hover img, .a-cote:hover img { transform: none; }
}

/* ======================= Tablette ======================= */
@media (max-width: 1240px) {
  .a-hero { grid-template-columns: 220px minmax(0, 1fr) 250px; }
  .a-offres { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1001px) and (max-width: 1240px) { .a-offres .carte-produit:nth-child(n+5) { display: none; } }
@media (min-width: 721px) and (max-width: 1000px) { .a-offres .carte-produit:nth-child(n+4) { display: none; } }
@media (max-width: 1100px) { .v6-etapes li:nth-child(2)::after { display: none; } }
@media (max-width: 1000px) {
  .a-hero { grid-template-columns: minmax(0, 1fr) 240px; }
  .a-tampon { width: 96px; height: 96px; right: 14px; bottom: 14px; }
  .a-rayons { display: none; }
  .a-promesses { grid-template-columns: 1fr 1fr; }
  .a-offres { grid-template-columns: repeat(3, 1fr); }
  .hd-nav .cadre { padding-top: 8px; padding-bottom: 8px; }
  .hd-menu a { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--creme-texte); }
  .hd-menu a::after { display: none; }
  .hd-menu a[aria-current="page"] { background: var(--ocre); color: var(--brun-encre); }
  .hd-menu .hd-offres { background: rgba(200, 120, 23, .22); }
}
/* ======================= Téléphone ======================= */
@media (max-width: 720px) {
  .a-haut { padding-top: 10px; }
  .a-hero { grid-template-columns: 1fr; gap: 10px; }
  .a-banniere, .a-carrousel .slide { min-height: 400px; }
  .a-carrousel .slide { align-items: flex-end; }
  .a-banniere .slide::after { background: linear-gradient(180deg, rgba(36, 22, 15, .1) 0%, rgba(36, 22, 15, .55) 38%, rgba(36, 22, 15, .95) 100%); }
  .a-banniere .slide::before { width: 100%; top: auto; height: 60%; -webkit-mask-image: linear-gradient(0deg, #000 20%, transparent); mask-image: linear-gradient(0deg, #000 20%, transparent); }
  .a-banniere-texte { padding: 22px 20px; }
  .a-banniere h1, .a-banniere h2 { font-size: 1.6rem; margin: 12px 0 8px; }
  .a-carrousel-nav { left: auto; right: 14px; bottom: auto; top: 14px; }
  .a-carrousel-nav > button { display: none; }
  .a-tampon { display: none; }
  .a-defile { margin-top: 10px; }
  .pied-principal { padding-top: 62px; padding-bottom: 30px; }
  .pied-paiement { padding-bottom: 72px; } /* place pour la barre d'onglets fixe */
  .pied-legal { align-items: flex-start; }
  .a-bientot { padding-top: 12px; padding-bottom: 30px; }
  .a-bientot-carte { grid-template-columns: 1fr; }
  .a-bientot-carte > img { min-height: 0; height: 220px; }
  .a-bientot-texte { padding: 22px 18px 26px; }
  .a-bientot-texte .v6-boutons .btn { flex: 1 1 100%; }
  .a-bientot-mini { grid-template-columns: 1fr; gap: 14px; }
  .a-bientot-mini > img { height: 160px; }
  .v6-fierte { padding-bottom: 56px; }
  .a-cat-cercle { width: 70px; height: 70px; }
  .v6-etapes li::after { display: none; }
  .a-banniere p { font-size: .9rem; margin-bottom: 16px; }
  .a-banniere .btn { width: 100%; }
  .a-cotes { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 10px; }
  .a-cote { min-height: 168px; }
  .a-cote > span { max-width: none; padding: 14px; }
  .a-cote b { font-size: .95rem; }
  .a-cote-clair::after { background: linear-gradient(180deg, rgba(247, 235, 219, 0) 0%, rgba(247, 235, 219, .9) 52%, #F7EBDB 100%); }
  .a-cote-sombre::after { background: linear-gradient(180deg, rgba(36, 22, 15, .1) 0%, rgba(36, 22, 15, .9) 100%); }
  .a-cote-clair .made-bf { display: none; }
  .a-cote-sombre small { display: none; }
  .a-promesses { margin-top: 10px; padding: 14px; gap: 14px 10px; }
  .a-promesses li { font-size: .72rem; gap: 9px; }
  .a-promesses i { width: 36px; height: 36px; }
  .a-promesses i svg { width: 17px; height: 17px; }
  .a-promesses b { font-size: .8rem; }
  .cadre.a-panneau, .v6-bande-claire > .cadre { margin: 10px 10px 0; padding: 16px 14px 18px; max-width: none; }
  .a-tete { margin-bottom: 14px; gap: 8px 12px; }
  .a-tete h2, .a-panneau .v6-entete h2 { font-size: 1.15rem; }
  .a-rebours { order: 3; font-size: .74rem; }
  .a-cats { grid-auto-columns: 74px; gap: 8px; }
  .a-cats img { width: 62px; height: 62px; }
  .a-cats a { font-size: .7rem; }
  .a-offres { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
  .a-offres::-webkit-scrollbar { display: none; }
  .a-offres .carte-produit { scroll-snap-align: start; }
  .hd-recherche { border-radius: 10px; padding-left: 12px; }
  .hd-recherche button { width: 48px; }
  .hd-nav .cadre { padding-top: 8px; padding-bottom: 8px; }
}
