/* BayaHome — boutique en ligne
   Mobile d'abord. Propriétés logiques (inline-start/end) pour que l'arabe
   (dir="rtl") se mette en miroir sans règles en double.
   Propriété de Trajectoire Conseil. */

:root {
  --noir: #111111;
  --jaune: #FECF0F;
  --jaune-doux: #FFF4C7;
  --fond: #FAFAF7;
  --blanc: #FFFFFF;
  --ligne: #E6E4DC;
  --ligne-forte: #D8D5CB;
  --sable: #EFECE3;
  --gris: #5E5A52;
  --texte-2: #2B2A27;
  --vert: #1E7A46;
  --vert-wa: #1E8E4E;
  --rouge: #B42318;
  --orange: #B54708;
  --rayon: 14px;
  --rayon-l: 20px;
  --ombre: 0 6px 16px rgba(0, 0, 0, .08);
  --police: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
}
html[lang="ar"] { --police: "Cairo", "Manrope", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--noir);
  font-family: var(--police); font-size: 15px; line-height: 1.5;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.sans-nav { padding-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--noir); }
a:hover { color: var(--gris); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 800; }
p { margin: 0; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.lien-evitement { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--noir); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.lien-evitement:focus { top: 8px; color: #fff; }

.conteneur { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.icone { width: 22px; height: 22px; flex: none; }
html[dir="rtl"] .icone-miroir { transform: scaleX(-1); }

/* ---------- Bandeau de confiance et en-tête ---------- */
.bandeau-confiance {
  background: var(--noir); color: var(--jaune); font-size: 12.5px; font-weight: 700;
  text-align: center; padding: 8px 16px; letter-spacing: .01em;
}
.entete { background: var(--blanc); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 30; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 8px; }
.entete__gauche, .entete__droite { display: flex; align-items: center; gap: 2px; }
.logo { display: flex; align-items: center; height: 44px; }
.logo img { height: 22px; width: auto; }
.bouton-icone {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative; text-decoration: none; color: var(--noir);
}
.bouton-icone:hover { background: var(--fond); color: var(--noir); }
.pastille-panier {
  position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--jaune); color: var(--noir);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pastille-panier[data-vide="1"] { display: none; }
.choix-langue { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; font-size: 15px; }
.choix-langue[lang="ar"] { font-family: "Cairo", sans-serif; }
.choix-langue[lang="fr"] { font-family: "Manrope", sans-serif; }
.nav-bureau { display: none; }

/* Recherche */
.recherche { padding: 4px 0 14px; position: relative; }
.recherche__champ {
  display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px;
  border: 1.5px solid var(--noir); border-radius: var(--rayon); background: var(--blanc);
}
.recherche__champ input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; min-width: 0; }
.recherche__champ input::-webkit-search-cancel-button { cursor: pointer; }
.suggestions {
  position: absolute; inset-inline: 0; top: calc(100% - 8px); z-index: 40; background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre);
  list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto;
}
.suggestions[hidden] { display: none; }
.suggestions a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; min-height: 48px; }
.suggestions a:hover, .suggestions a[aria-selected="true"] { background: var(--fond); }
.suggestions img, .suggestions .vignette-vide { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--sable); flex: none; }
.suggestions .s-nom { font-weight: 700; font-size: 14px; flex: 1; }
.suggestions .s-prix { font-weight: 800; font-size: 13.5px; }
.suggestions .s-type { font-size: 12px; color: var(--gris); font-weight: 600; }

/* Menu latéral */
.tiroir { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: min(86vw, 360px); height: 100dvh; inset-inline-start: 0; inset-inline-end: auto; background: var(--blanc); }
.tiroir::backdrop { background: rgba(17, 17, 17, .45); }
.tiroir__haut { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--ligne); }
.tiroir nav { padding: 8px 16px 24px; }
.tiroir h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: 18px 0 6px; }
html[lang="ar"] .tiroir h2 { letter-spacing: 0; }
.tiroir ul { list-style: none; margin: 0; padding: 0; }
.tiroir li a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--ligne); }
.tiroir li ul a { font-weight: 600; padding-inline-start: 14px; color: var(--texte-2); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--rayon); border: 1.5px solid var(--noir);
  background: var(--blanc); color: var(--noir); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s;
}
.bouton:hover { background: var(--fond); color: var(--noir); }
.bouton:active { transform: scale(.98); }
.bouton--plein { background: var(--noir); color: var(--blanc); }
.bouton--plein:hover { background: #2a2a2a; color: var(--blanc); }
.bouton--jaune { background: var(--jaune); border-color: var(--jaune); color: var(--noir); }
.bouton--jaune:hover { background: #F2C300; }
.bouton--discret { border-color: var(--ligne-forte); font-weight: 600; }
.bouton--bloc { width: 100%; }
.bouton--grand { min-height: 54px; font-size: 16px; }
.bouton--pilule { border-radius: 999px; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.bouton--wa { border-color: var(--vert); color: var(--vert); }
.bouton--wa:hover { color: var(--vert); background: #F1F8F3; }

/* ---------- Accueil ---------- */
.hero {
  margin-top: 16px; border-radius: 22px; background: var(--jaune); padding: 24px;
  position: relative; overflow: hidden; min-height: 200px; display: flex; flex-direction: column; justify-content: center;
}
.hero__surtitre { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .hero__surtitre { letter-spacing: 0; font-size: 13px; }
.hero h1 { font-size: 30px; line-height: 1.08; margin: 8px 0 18px; max-width: 12ch; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
.hero .bouton { align-self: flex-start; position: relative; z-index: 1; }
.hero__visuel {
  position: absolute; inset-inline-end: -24px; bottom: -24px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(255,255,255,.85); overflow: hidden;
}
.hero__visuel img { width: 100%; height: 100%; object-fit: cover; }

.section { padding-top: 28px; }
.section__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section__tete h2 { font-size: 19px; }
.section__tete a { font-size: 14px; font-weight: 700; }

.univers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.univers a { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.univers__image { aspect-ratio: 1; border-radius: 16px; background: var(--sable); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.univers__image img { width: 100%; height: 100%; object-fit: cover; }
.univers__image svg { width: 40%; height: 40%; color: var(--gris); }
.univers span { font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.3; }

.confiance {
  margin-top: 24px; padding: 16px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; list-style: none;
}
.confiance li { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; line-height: 1.25; }
.confiance__icone { width: 38px; height: 38px; border-radius: 10px; background: var(--jaune-doux); display: flex; align-items: center; justify-content: center; flex: none; }
.confiance__icone .icone { width: 20px; height: 20px; }

.magasin { margin-top: 28px; padding: 18px; background: var(--noir); color: var(--blanc); border-radius: var(--rayon-l); }
.magasin h2 { font-size: 18px; color: var(--jaune); margin-bottom: 10px; }
.magasin p { font-size: 14px; }
.magasin .actions { display: flex; gap: 10px; margin-top: 14px; }
.magasin .actions a { flex: 1; min-height: 44px; }
.magasin .bouton--clair { border-color: var(--blanc); background: transparent; color: var(--blanc); }

/* ---------- Cartes produit ---------- */
.grille-produits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; list-style: none; margin: 0; padding: 0; }
.carte { display: flex; flex-direction: column; gap: 6px; }
.carte__lien { text-decoration: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte__image { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--sable); overflow: hidden; }
.carte__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.carte__lien:hover .carte__image img { transform: scale(1.03); }
.carte__image .vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gris); }
.carte__image .vide svg { width: 34%; height: 34%; opacity: .6; }
.badge { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.badge--nouveau { background: var(--noir); color: var(--jaune); }
.badge--promo { background: var(--jaune); color: var(--noir); }
.badge--stock { background: var(--noir); color: var(--blanc); }
.carte__epuise { position: absolute; inset: 0; background: rgba(250,250,247,.72); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.carte__cat { font-size: 12px; font-weight: 600; color: var(--gris); }
.carte__nom { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.prix { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prix__actuel { font-size: 15px; font-weight: 800; }
.prix__ancien { font-size: 12.5px; font-weight: 600; color: var(--gris); }
.prix__economie { flex-basis: 100%; font-size: 13.5px; font-weight: 700; color: var(--vert); }
.fiche .prix__economie { font-size: 14.5px; }
.carte form .bouton { width: 100%; min-height: 44px; border-radius: 12px; font-size: 14px; }

/* ---------- Liste / catégorie ---------- */
.titre-page { display: flex; align-items: center; gap: 4px; padding-top: 12px; }
.titre-page h1 { font-size: 20px; }
.titre-page p { font-size: 12.5px; font-weight: 600; color: var(--gris); }
.pastilles { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.pastilles::-webkit-scrollbar { display: none; }
.pastilles a {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ligne-forte);
  background: var(--blanc); font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
}
.pastilles a[aria-current="page"] { background: var(--noir); border-color: var(--noir); color: var(--jaune); font-weight: 700; }
.barre-outils { display: flex; gap: 10px; padding-bottom: 14px; }
.barre-outils > * { flex: 1; }
.barre-outils select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 0 36px 0 14px; border: 1.5px solid var(--ligne-forte); border-radius: 12px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font-weight: 600; font-size: 14px; }
html[dir="rtl"] .barre-outils select { padding: 0 14px 0 36px; background-position: left 12px center; }
.barre-outils .bouton { min-height: 44px; font-size: 14px; border-radius: 12px; }
.compteur-filtres { background: var(--jaune); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.pagination { display: flex; justify-content: center; padding-top: 28px; gap: 8px; }
.vide-etat { text-align: center; padding: 40px 16px; }
.vide-etat h2 { font-size: 18px; margin-bottom: 6px; }
.vide-etat p { color: var(--gris); font-weight: 600; margin-bottom: 18px; }

/* Fenêtre de filtres (bas d'écran sur mobile) */
.feuille { border: 0; padding: 0; width: 100%; max-width: 560px; margin: auto auto 0; border-radius: 22px 22px 0 0; background: var(--blanc); max-height: 88dvh; }
.feuille::backdrop { background: rgba(17,17,17,.45); }
.feuille__contenu { padding: 12px 16px 20px; }
.feuille__poignee { width: 40px; height: 4px; border-radius: 2px; background: var(--ligne-forte); margin: 0 auto 10px; }
.feuille__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.feuille fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.feuille legend { font-size: 14px; font-weight: 800; margin-bottom: 10px; padding: 0; }
.feuille__actions { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--blanc); padding-top: 8px; }
.feuille__actions > :first-child { flex: 1; }
.feuille__actions > :last-child { flex: 2; }

/* ---------- Formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.champ .aide { font-weight: 600; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  min-height: 48px; border: 1.5px solid var(--ligne-forte); border-radius: 12px; padding: 0 12px;
  font-size: 15px; font-weight: 500; background: var(--blanc); width: 100%;
}
.champ textarea { padding: 10px 12px; resize: vertical; min-height: 72px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--noir); outline: none; box-shadow: 0 0 0 3px var(--jaune-doux); }
.champ--erreur input, .champ--erreur select { border-color: var(--rouge); }
.erreur { font-size: 12.5px; font-weight: 600; color: var(--rouge); }
.tel { display: flex; min-height: 48px; border: 1.5px solid var(--ligne-forte); border-radius: 12px; overflow: hidden; background: var(--blanc); }
.tel:focus-within { border-color: var(--noir); box-shadow: 0 0 0 3px var(--jaune-doux); }
.tel span { display: flex; align-items: center; padding: 0 12px; background: #F2F0E9; font-weight: 700; font-size: 15px; border-inline-end: 1.5px solid var(--ligne-forte); }
.tel input { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; flex: 1; letter-spacing: .04em; font-weight: 600 !important; }
html[dir="rtl"] .tel { direction: ltr; }
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.case input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--noir); }

.options-radio { display: flex; flex-direction: column; gap: 10px; }
.option-radio { position: relative; }
.option-radio input { position: absolute; opacity: 0; inset-inline-start: 16px; top: 22px; }
.option-radio label {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon); background: var(--blanc); cursor: pointer;
}
.option-radio .rond { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B9B5AA; flex: none; background: var(--blanc); }
.option-radio input:checked + label { border: 2px solid var(--noir); background: var(--jaune-doux); }
.option-radio input:checked + label .rond { border: 6px solid var(--noir); }
.option-radio input:focus-visible + label { outline: 3px solid var(--jaune); outline-offset: 2px; }
.option-radio .titre { font-size: 14.5px; font-weight: 800; display: block; }
.option-radio .sous { font-size: 12.5px; font-weight: 600; color: var(--gris); display: block; }
.option-radio .montant { margin-inline-start: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }
.option-radio--inactive label { border-style: dashed; background: var(--fond); cursor: default; }
.option-radio--inactive .titre { color: var(--gris); }

/* ---------- Fiche produit ---------- */
.galerie { position: relative; background: var(--sable); }
.galerie__piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerie__piste::-webkit-scrollbar { display: none; }
.galerie__piste > * { flex: none; width: 100%; aspect-ratio: 1; scroll-snap-align: center; }
.galerie__piste img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vide { display: flex; align-items: center; justify-content: center; color: var(--gris); }
.galerie__vide svg { width: 28%; height: 28%; opacity: .5; }
.galerie__compteur { position: absolute; bottom: 14px; inset-inline-end: 14px; background: rgba(17,17,17,.8); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.galerie .badge { top: 14px; inset-inline-start: 14px; font-size: 12px; padding: 5px 10px; }
.vignettes { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; }
.vignettes button { width: 60px; height: 60px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--sable); cursor: pointer; flex: none; }
.vignettes button[aria-current="true"] { border-color: var(--noir); }
.vignettes img { width: 100%; height: 100%; object-fit: cover; }
.fiche__infos { padding-top: 16px; }
.fiche__surtitre { font-size: 12.5px; font-weight: 700; color: var(--gris); margin-bottom: 4px; }
.fiche h1 { font-size: 22px; margin-bottom: 10px; }
.fiche .prix__actuel { font-size: 24px; }
.fiche .prix__ancien { font-size: 15px; }
.etat-stock { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.etat-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.etat-stock--ok { color: var(--vert); }
.etat-stock--bas { color: var(--orange); }
.etat-stock--non { color: var(--rouge); }
.bloc-choix { padding-top: 20px; }
.bloc-choix legend, .bloc-choix .titre-choix { font-size: 14px; font-weight: 800; margin-bottom: 10px; padding: 0; }
.bloc-choix fieldset { border: 0; margin: 0; padding: 0; }
.choix-variantes { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-variantes a {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ligne-forte); background: var(--blanc);
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.choix-variantes a[aria-current="true"] { border-color: var(--noir); background: var(--jaune-doux); font-weight: 800; }
.choix-variantes a.epuisee { color: var(--gris); text-decoration: line-through; }
.choix-variantes .rond-couleur { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.quantite { display: inline-flex; align-items: center; border: 1.5px solid var(--ligne-forte); border-radius: 12px; background: var(--blanc); }
.quantite button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; }
.quantite input { width: 40px; text-align: center; border: 0; font-weight: 800; font-size: 16px; background: transparent; -moz-appearance: textfield; }
.quantite input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ligne-quantite { display: flex; align-items: center; gap: 16px; padding-top: 20px; }
.ligne-quantite span { font-size: 14px; font-weight: 800; }
.encart { margin-top: 20px; padding: 14px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; }
.encart label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; margin-bottom: 8px; }
.encart select { width: 100%; min-height: 44px; border: 1.5px solid var(--ligne-forte); border-radius: 12px; padding: 0 12px; background: var(--blanc); font-size: 15px; }
.encart p { margin-top: 10px; font-size: 13.5px; line-height: 1.45; }
.encart .discret { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gris); }
.accordeons { margin-top: 16px; border-top: 1px solid var(--ligne); }
.accordeons details { border-bottom: 1px solid var(--ligne); }
.accordeons summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.accordeons summary::-webkit-details-marker { display: none; }
.accordeons summary svg { transition: transform .2s; }
.accordeons details[open] summary svg { transform: rotate(180deg); }
.accordeons .texte { padding-bottom: 14px; font-size: 14px; line-height: 1.6; color: var(--texte-2); }
.accordeons .texte p + p { margin-top: 8px; }
.associes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.associes .carte__nom { font-size: 12.5px; }
.associes .prix__actuel { font-size: 13px; }

.barre-achat {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35; background: var(--blanc);
  border-top: 1px solid var(--ligne); box-shadow: 0 -6px 16px rgba(0,0,0,.06);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.barre-achat__dedans { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin-inline: auto; }
.barre-achat__total { display: flex; flex-direction: column; }
.barre-achat__total small { font-size: 12px; font-weight: 600; color: var(--gris); }
.barre-achat__total strong { font-size: 18px; font-weight: 800; white-space: nowrap; }
.barre-achat .bouton { flex: 1; min-height: 52px; }
body.avec-barre-achat { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.avec-barre-achat .nav-bas { display: none; }

/* ---------- Panier et commande ---------- */
.jauge { margin-top: 16px; padding: 14px; background: var(--jaune-doux); border-radius: 16px; }
.jauge p { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.jauge__barre { height: 8px; border-radius: 4px; background: var(--blanc); overflow: hidden; }
.jauge__barre span { display: block; height: 100%; border-radius: 4px; background: var(--noir); }
.lignes-panier { list-style: none; margin: 0; padding: 8px 0 0; }
.ligne-panier { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.ligne-panier__image { width: 92px; height: 92px; border-radius: 14px; background: var(--sable); overflow: hidden; flex: none; }
.ligne-panier__image img { width: 100%; height: 100%; object-fit: cover; }
.ligne-panier__infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ligne-panier__haut { display: flex; justify-content: space-between; gap: 8px; }
.ligne-panier__nom { font-size: 14.5px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.ligne-panier__variante { font-size: 12.5px; font-weight: 600; color: var(--gris); }
.ligne-panier__bas { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.ligne-panier .quantite button { width: 40px; height: 40px; font-size: 18px; }
.ligne-panier .retirer { width: 36px; height: 36px; margin: -6px; color: var(--gris); }
.avertissement { font-size: 12.5px; font-weight: 700; color: var(--orange); }
.carte-blanche { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; padding: 16px; }
.recap { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.recap__ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.recap__ligne .valeur { font-weight: 700; white-space: nowrap; }
.recap__ligne .discret { color: var(--gris); font-weight: 600; }
.recap__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--ligne); }
.recap__total span { font-size: 15px; font-weight: 800; }
.recap__total strong { font-size: 20px; }
.note-paiement { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--texte-2); }
.pied-action { position: sticky; bottom: 0; z-index: 20; margin-top: 20px; margin-inline: -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--blanc); border-top: 1px solid var(--ligne); box-shadow: 0 -6px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; }
.pied-action p { text-align: center; font-size: 12px; font-weight: 600; color: var(--gris); }
.etape-commande { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.etape-commande h2 { font-size: 16px; }
.intro-commande { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--texte-2); }
.encadre-retrait { padding: 12px; background: #F2F0E9; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.alerte { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-top: 12px; }
.alerte--erreur { background: #FEF3F2; color: var(--rouge); border: 1px solid #FECDCA; }
.alerte--ok { background: #ECFDF3; color: var(--vert); border: 1px solid #ABEFC6; }
.alerte--info { background: var(--jaune-doux); color: var(--noir); }

/* Confirmation et suivi */
.merci { padding-top: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.merci__coche { width: 76px; height: 76px; border-radius: 50%; background: var(--jaune); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.merci h1 { font-size: 24px; margin-bottom: 8px; }
.merci p { font-size: 14.5px; font-weight: 600; color: #4A473F; }
.etapes { list-style: none; margin: 0; padding: 0; }
.etapes li { display: flex; gap: 14px; }
.etapes__repere { display: flex; flex-direction: column; align-items: center; }
.etapes__rond { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--noir); background: var(--blanc); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.etapes li.fait .etapes__rond { background: var(--noir); color: var(--jaune); }
.etapes__fil { width: 2px; flex: 1; min-height: 22px; background: var(--ligne); }
.etapes li.fait .etapes__fil { background: var(--noir); }
.etapes li:last-child .etapes__fil { display: none; }
.etapes__texte { padding-bottom: 14px; }
.etapes__texte strong { display: block; margin-top: 3px; font-size: 14.5px; }
.etapes__texte span { font-size: 13px; font-weight: 600; color: #4A473F; }
.encart-compte { margin-top: 20px; padding: 14px 16px; background: var(--jaune-doux); border-radius: 16px; }

/* Pages de texte */
.texte-page { padding: 20px 0 32px; max-width: 720px; }
.texte-page h1 { font-size: 24px; margin-bottom: 16px; }
.texte-page p { margin-bottom: 12px; line-height: 1.7; }

/* ---------- Pied de page, WhatsApp, navigation basse ---------- */
.pied { margin-top: 40px; background: var(--blanc); border-top: 1px solid var(--ligne); padding: 28px 0 24px; font-size: 14px; }
.pied__grille { display: grid; gap: 24px; }
.pied h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-bottom: 10px; }
html[lang="ar"] .pied h2 { letter-spacing: 0; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-weight: 600; }
.pied__bas { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: 12.5px; color: var(--gris); font-weight: 600; }
.pied__logo img { height: 20px; width: auto; margin-bottom: 12px; }

.flottant-wa {
  position: fixed; inset-inline-end: 16px; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 25;
  width: 56px; height: 56px; border-radius: 50%; background: var(--vert-wa); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.flottant-wa:hover { color: #fff; background: #187A42; }
body.avec-barre-achat .flottant-wa { bottom: calc(96px + env(safe-area-inset-bottom)); }

.nav-bas {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: var(--blanc); border-top: 1px solid var(--ligne);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.nav-bas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--gris); font-size: 11px; font-weight: 600; position: relative; }
html[lang="ar"] .nav-bas a { font-size: 11.5px; gap: 1px; }
.nav-bas a[aria-current="page"] { color: var(--noir); font-weight: 800; }
.nav-bas a[aria-current="page"] .icone { fill: var(--jaune); }
.nav-bas .pastille-panier { top: 6px; inset-inline-end: calc(50% - 22px); }

/* Message éphémère */
.toast {
  position: fixed; inset-inline: 16px; bottom: calc(var(--nav-h) + 16px); z-index: 60; margin-inline: auto; max-width: 420px;
  background: var(--noir); color: var(--blanc); border-radius: var(--rayon); padding: 14px 16px; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--ombre);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .2s ease;
}
.toast.visible { transform: none; opacity: 1; pointer-events: auto; }
body.avec-barre-achat .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.toast a { color: var(--jaune); margin-inline-start: auto; white-space: nowrap; }
.messages { list-style: none; margin: 0; padding: 0; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
  .grille-produits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .associes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero { min-height: 300px; padding: 40px; }
  .hero h1 { font-size: 44px; }
  .hero__visuel { width: 300px; height: 300px; inset-inline-end: -30px; bottom: -40px; }
  .univers { gap: 16px; }
  .confiance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1.5fr 1fr; }
  .feuille { margin: auto; border-radius: 22px; }
}
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .nav-bas { display: none; }
  .flottant-wa { bottom: 24px; }
  body.avec-barre-achat .flottant-wa { bottom: 24px; }
  body.avec-barre-achat { padding-bottom: 0; }
  .grille-produits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .entete__barre { min-height: 72px; }
  .logo img { height: 26px; }
  .nav-bureau { display: flex; gap: 4px; align-items: center; }
  .nav-bureau a { padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
  .nav-bureau a:hover { background: var(--fond); }
  .entete__barre { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; }
  .entete .bouton-menu { display: none; }
  .recherche--entete { padding: 0; max-width: 420px; width: 100%; justify-self: end; }
  .recherche--mobile { display: none; }
  .fiche { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 24px; }
  .fiche__galerie { position: sticky; top: 96px; }
  .galerie { border-radius: 20px; overflow: hidden; margin-inline: 0 !important; }
  .fiche__infos { padding-top: 0; }
  .fiche h1 { font-size: 28px; }
  .barre-achat { position: static; box-shadow: none; border: 0; padding: 20px 0 0; background: transparent; }
  .page-panier, .page-commande { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .colonne-resume { position: sticky; top: 96px; }
  .pied-action { position: static; margin-inline: 0; box-shadow: none; border: 0; padding-inline: 0; background: transparent; }
  .toast { bottom: 24px; }
}
@media (max-width: 1023px) { .recherche--entete { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .entete, .nav-bas, .flottant-wa, .pied, .bandeau-confiance { display: none !important; } }

/* ---------- Espace client et suivi (lot 2) ---------- */
.point-connecte { position: absolute; top: 9px; inset-inline-end: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); border: 2px solid var(--blanc); }
.menu-compte { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 12px 16px 0; }
.menu-compte::-webkit-scrollbar { display: none; }
.menu-compte a { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ligne-forte); background: var(--blanc); font-size: 13.5px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.menu-compte a[aria-current="page"] { background: var(--noir); border-color: var(--noir); color: var(--jaune); font-weight: 700; }
.compte-tete p { font-size: 13px; font-weight: 600; color: var(--gris); }
.discret { font-size: 13px; font-weight: 600; color: var(--gris); }
.carte-commande { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 18px; text-decoration: none; margin-bottom: 12px; }
.carte-commande:hover { border-color: var(--noir); color: var(--noir); }
.tete-commande { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tete-commande > div { display: flex; flex-direction: column; }
.statut-pastille { flex: none; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--sable); color: var(--noir); white-space: nowrap; }
.statut--nouvelle { background: var(--jaune); }
.statut--confirmee, .statut--preparation { background: #D1E9FF; color: #175CD3; }
.statut--prete, .statut--expediee { background: #CFF9FE; color: #0E7090; }
.statut--livree { background: #D1FADF; color: var(--vert); }
.statut--annulee { background: #EAECF0; color: #475467; }
.statut--refusee, .statut--retournee { background: #FEE4E2; color: var(--rouge); }
.vignettes-commande { display: flex; align-items: center; gap: 6px; }
.vignettes-commande > span:not(.discret) { width: 44px; height: 44px; border-radius: 10px; background: var(--sable); overflow: hidden; flex: none; }
.vignettes-commande img { width: 100%; height: 100%; object-fit: cover; }
.vignettes-commande .discret { margin-inline-start: 4px; }
.mini-etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mini-etapes span { height: 5px; border-radius: 3px; background: var(--ligne); }
.mini-etapes span.fait { background: var(--noir); }
.vide-compte { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.raccourcis { display: grid; gap: 10px; }
.raccourcis a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.raccourcis a > span { display: flex; flex-direction: column; min-width: 0; }
.raccourcis .discret { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avantages { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.avantages li { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; }
.avantages .icone { color: var(--noir); background: var(--jaune-doux); border-radius: 10px; padding: 8px; width: 38px; height: 38px; }
.champ-code { font-size: 26px !important; letter-spacing: .5em; text-align: center; font-weight: 800 !important; direction: ltr; }
.estimation { display: flex; gap: 10px; align-items: center; background: var(--jaune-doux); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.etapes li.courant .etapes__rond { background: var(--jaune); color: var(--noir); border-color: var(--noir); box-shadow: 0 0 0 4px var(--jaune-doux); }
.etapes__date { display: block; font-size: 12px; font-weight: 700; color: var(--gris); }
.etapes__texte .lien-fort { display: inline-block; margin-top: 4px; font-weight: 800; font-size: 13.5px; }
.etapes li:not(.fait) .etapes__texte strong { color: var(--gris); font-weight: 700; }
.detail-articles { margin-top: 10px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.detail-articles summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.detail-articles ul { list-style: none; margin: 0; padding: 0; }
.detail-articles li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 4px 0; }
.actions-commande { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.actions-ligne { display: flex; gap: 8px; margin-top: 10px; }
.actions-ligne .bouton { min-height: 40px; font-size: 13.5px; }
.adresse p + p { margin-top: 2px; }
.adresses-enregistrees { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.adresses-enregistrees legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.adresse-choix { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--ligne-forte); border-radius: var(--rayon); cursor: pointer; background: var(--blanc); }
.adresse-choix:has(input:checked) { border: 2px solid var(--noir); background: var(--jaune-doux); }
.adresse-choix input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--noir); flex: none; }
.adresse-choix > span { display: flex; flex-direction: column; }
@media (min-width: 720px) { .raccourcis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Promotions et code promo */
.ligne-panier__montant { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.recap__ligne--remise .valeur, .recap__ligne--remise span { color: var(--vert); font-weight: 700; }
.recap__economie { margin: 10px 0 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--vert); }
.code-promo { margin-top: 12px; padding: 14px 16px; }
.code-promo summary { cursor: pointer; font-weight: 700; font-size: 14.5px; min-height: 28px; display: flex; align-items: center; }
.code-promo__saisie { display: flex; gap: 8px; margin-top: 10px; }
.code-promo__saisie input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 14px; font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.code-promo__saisie input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.code-promo__saisie .bouton { min-height: 48px; }
.code-promo__actif { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.code-promo__actif strong { background: var(--jaune); padding: 2px 8px; border-radius: 6px; }
.lien-bouton { background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; }
.bandeau-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.bandeau-promos span { background: var(--jaune); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; }
.nav-bureau .nav-promos { color: var(--noir); background: var(--jaune); border-radius: 999px; padding: 9px 16px; white-space: nowrap; align-self: center; line-height: 1.2; }
nav .nav-promos { font-weight: 800; }
.nav-bureau .nav-promos:hover { background: #F2C300; }

/* Infolettre */
.page-infolettre__icone { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.pied-infolettre { min-width: 0; }
.pied-infolettre p { margin: 0 0 10px; }
.pied-infolettre form { display: flex; gap: 8px; width: 100%; max-width: 400px; position: relative; }
.pied-infolettre input[type=email] { flex: 1 1 0; width: 0; min-width: 0; min-height: 46px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 0 14px; font: inherit; background: var(--blanc); }
.pied-infolettre .bouton { min-height: 46px; white-space: nowrap; flex: none; padding-inline: 16px; }
.pied-infolettre small { display: block; margin-top: 8px; font-size: 12px; color: var(--gris); }
.piege { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.case--infolettre small { display: block; font-size: 12.5px; color: var(--gris); font-weight: 500; margin-top: 2px; }

/* Texte de présentation des catégories (référencement) */
.texte-categorie { max-width: 760px; margin: 28px 0 8px; padding-top: 20px; border-top: 1px solid var(--ligne); color: var(--gris); font-size: 14.5px; line-height: 1.6; }
.texte-categorie h2 { font-size: 16px; color: var(--noir); margin: 0 0 8px; }
.texte-categorie p { margin: 0 0 8px; }

/* Retour de paiement en ligne */
.paiement-retour { padding: 26px 22px; text-align: center; }
.paiement-retour h1 { font-size: 21px; margin: 6px 0 8px; }
.paiement-retour__choix { display: grid; gap: 10px; margin: 18px 0 12px; }
.paiement-retour__choix .bouton { width: 100%; }
.paiement-retour__attente { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--ligne); border-top-color: var(--noir); animation: tourne 0.9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .paiement-retour__attente { animation: none; border-top-color: var(--jaune); } }
