/* ==========================================================================
   Boutique IKAM — feuille de style publique
   Palette tirée du logo : nuit #000D30, ambre #F9A31F, acier argenté.
   ========================================================================== */
:root {
  --nuit: #000d30;
  --nuit-2: #0b1f5c;
  --ambre: #f9a31f;
  --ambre-fonce: #c97d00;
  --acier: #c9cedb;
  --acier-clair: #e6e9f0;
  --fond: #eef0f5;
  --papier: #fff;
  --encre: #0d1633;
  --encre-2: #4a5470;
  --ligne: #d3d8e4;
  --focus: #2a55d6;
  --vert: #17683d;
  --vert-fond: #dff3e7;
  --orange: #7a4b00;
  --orange-fond: #fff0d1;
  --rouge: #a8231b;
  --rouge-fond: #fbe3e0;
  --titre: "Barlow Condensed", "Arial Narrow", "Bahnschrift", sans-serif;
  --texte: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur: 1180px;
}
/* Arabe : police adaptée, et pas d'espacement entre lettres (il casse la liaison des lettres arabes). */
:root:lang(ar) {
  --titre: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --texte: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
:lang(ar) * { letter-spacing: 0 !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: var(--texte); font-size: 17px; line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 .8em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.entete :focus-visible, .hero :focus-visible, .pied :focus-visible { outline-color: var(--ambre); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saut { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ambre); color: var(--nuit); padding: 10px 16px; font-weight: 600; z-index: 100; border-radius: 4px; }
.saut:focus { top: 12px; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 4px;
  font: 600 1rem/1 var(--texte); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton:disabled { cursor: not-allowed; opacity: .55; }
.bouton--ambre { background: var(--ambre); color: var(--nuit); }
.bouton--ambre:hover:not(:disabled) { background: #ffb840; }
.bouton--plein { background: var(--nuit); color: #fff; }
.bouton--plein:hover { background: var(--nuit-2); }
.bouton--contour { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.bouton--contour:hover:not(:disabled) { background: var(--nuit); color: #fff; }
.bouton--bloc { width: 100%; }
.bouton--grand { min-height: 54px; font-size: 1.1rem; }
.lien-discret { color: var(--encre-2); text-underline-offset: 3px; }
.lien-discret:hover { color: var(--encre); }
.lien-bouton { background: none; border: 0; padding: 4px; font: inherit; color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- en-tête ---------- */
.entete { background: var(--nuit); color: #fff; border-bottom: 3px solid var(--ambre); position: sticky; top: 0; z-index: 50; }
.entete__ligne { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.marque img { height: 40px; width: auto; }
.entete__nav { display: flex; gap: 22px; margin-inline-end: auto; }
.entete__nav a { text-decoration: none; color: var(--acier-clair); font-weight: 500; padding: 6px 0; }
.entete__nav a:hover { color: var(--ambre); }
.recherche-entete { display: flex; width: min(300px, 28vw); }
.recherche-entete input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 0; border-radius: 0; border-start-start-radius: 4px; border-end-start-radius: 4px; font: inherit; font-size: .95rem; background: #fff; color: var(--encre); }
.recherche-entete button { width: 44px; border: 0; border-radius: 0; border-start-end-radius: 4px; border-end-end-radius: 4px; background: var(--ambre); color: var(--nuit); cursor: pointer; display: grid; place-items: center; }
.entete__actions { display: flex; align-items: center; gap: 18px; }
.tel, .panier-lien, .compte-lien { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 600; white-space: nowrap; }
.tel:hover, .panier-lien:hover, .compte-lien:hover, .compte-lien[aria-current="page"] { color: var(--ambre); }
.compte-lien span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.entete svg { flex-shrink: 0; }
.entete__nav a { white-space: nowrap; }
/* en-tête : le téléphone n'est qu'une icône (le numéro est lu par les lecteurs d'écran et affiché dans le pied de page) */
.tel { justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pastille { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--ambre); color: var(--nuit); font-size: .85rem; font-weight: 700; }
.pastille--vide { background: rgba(255,255,255,.2); color: #fff; }

/* sur l'accueil le logo est dans le hero : l'en-tête n'a pas besoin de le répéter ni de proposer une 2e recherche */
.accueil .entete .marque, .accueil .recherche-entete { display: none; }

/* ---------- messages / toast ---------- */
.messages { padding-top: 16px; }
.message { margin: 0 0 8px; padding: 12px 16px; border-radius: 4px; border-inline-start: 4px solid; font-weight: 500; }
.message--ok { background: var(--vert-fond); border-color: var(--vert); color: #0f4a2b; }
.message--erreur { background: var(--rouge-fond); border-color: var(--rouge); color: #7d1a14; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 24px); z-index: 90; background: var(--nuit); color: #fff; padding: 14px 20px; border-inline-start: 4px solid var(--ambre); border-radius: 4px; max-width: min(92vw, 460px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-weight: 500; }
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--erreur { border-inline-start-color: #ff6b5e; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--nuit); color: #fff;
  padding: 44px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
}
.hero__ligne { position: relative; z-index: 1; }
.hero__contenu { max-width: 600px; }
.hero__logo { width: min(100%, 430px); height: auto; margin-inline-start: -8px; }
.hero__titre { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 600; margin: 22px 0 26px; max-width: 18ch; }
.recherche-hero { display: flex; max-width: 560px; }
.recherche-hero input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 0; border-start-start-radius: 4px; border-end-start-radius: 4px; font: inherit; font-size: 1.05rem; background: #fff; color: var(--encre); }
.recherche-hero .bouton { height: 56px; border-radius: 0; border-start-end-radius: 4px; border-end-end-radius: 4px; padding: 0 26px; }
.rapides { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--acier); font-size: .95rem; }
.rapides a { text-decoration: none; padding: 4px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; }
.rapides a:hover { border-color: var(--ambre); color: var(--ambre); }
.hero__disque {
  position: absolute; z-index: 0; inset-inline-end: -140px; top: 50%; width: min(680px, 62vw); height: auto;
  margin-top: calc(min(680px, 62vw) / -2 - 10px);
  animation: pose 1.6s cubic-bezier(.16, .84, .3, 1) both;
}
@keyframes pose { from { transform: rotate(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .hero__disque { opacity: .22; inset-inline-end: -220px; } }
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) { .hero__disque { animation: none; } }
@media (prefers-reduced-motion: reduce) { .hero__disque { animation: none; } html { scroll-behavior: auto; } .toast { transition: none; } }

/* ---------- sections ---------- */
.section { padding: 56px 20px 40px; }
.section--serree { padding: 48px 0 24px; }
.section__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section__tete h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section__compte { color: var(--encre-2); margin: 0; }
.section__suite { text-align: center; margin: 36px 0 0; }

/* ---------- catégories (accueil, onglets du catalogue) ---------- */
.section--categories { padding-bottom: 0; }
.categories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.categorie-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 18px 20px; background: var(--papier); border: 1px solid var(--ligne); border-top: 4px solid var(--nuit); border-radius: 6px; color: var(--encre); text-decoration: none; transition: border-color .15s; }
.categorie-tuile:hover, .categorie-tuile:focus-visible { border-color: var(--nuit); border-top-color: var(--ambre); }
.categorie-tuile .icone-cat { width: 64px; height: 40px; color: var(--nuit); margin-bottom: 4px; }
.categorie-tuile__nom { font: 700 1.45rem/1.15 var(--titre); }
.categorie-tuile__compte { color: var(--encre-2); font-size: .92rem; }
.onglets-cat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.onglets-cat a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; background: var(--papier); border: 1px solid var(--ligne); border-radius: 999px; color: var(--encre); font-weight: 600; text-decoration: none; }
.onglets-cat a:hover { border-color: var(--nuit); }
.onglets-cat a[aria-current="page"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.onglets-cat .icone-cat { width: 30px; height: 19px; stroke-width: 3.4; }
.onglets-cat__n { font-size: .8rem; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--acier-clair); color: var(--encre-2); }
.onglets-cat a[aria-current="page"] .onglets-cat__n { background: var(--ambre); color: var(--nuit); }

.etapes { background: var(--papier); border-top: 1px solid var(--ligne); padding: 56px 0 64px; margin-top: 32px; }
.etapes h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.etapes__liste { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin: 0; padding: 0; }
.etapes__liste li { counter-increment: etape; padding-top: 18px; border-top: 3px solid var(--nuit); }
.etapes__liste li::before { content: counter(etape); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; background: var(--ambre); color: var(--nuit); border-radius: 50%; font: 700 1.2rem/1 var(--titre); }
.etapes__liste h3 { font-size: 1.5rem; margin-bottom: 6px; }
.etapes__liste p { color: var(--encre-2); margin: 0; max-width: 34ch; }

.certification { background: var(--papier); padding: 0 0 64px; }
.certification__ligne { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.certification img { display: block; width: 100%; height: auto; border-radius: 6px; }
.certification__certificat { display: block; border: 1px solid var(--ligne); border-radius: 6px; }
.certification__certificat:hover { border-color: var(--nuit); }

/* ---------- cartes produit ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.carte { position: relative; display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; transition: border-color .15s, transform .15s; }
.carte:hover, .carte:focus-within { border-color: var(--nuit); }
.carte__visuel { aspect-ratio: 16 / 11; background: var(--acier-clair); display: grid; place-items: center; overflow: hidden; }
.carte__visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte__visuel--generique { background: linear-gradient(180deg, #eef0f5, #d9deea); }
.carte__visuel--generique img { width: 78%; height: auto; object-fit: contain; }
.carte__corps { padding: 16px 18px 6px; flex: 1; }
.carte__cat { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ambre-fonce); }
.carte__ref { font-size: 1.85rem; font-weight: 700; color: var(--nuit); }
.carte__ref a { text-decoration: none; }
.lien-etendu::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.carte__equiv { font-size: .88rem; color: var(--encre-2); margin: 2px 0 8px; }
.carte__titre { font-weight: 600; margin: 8px 0 2px; }
.carte__compat { color: var(--encre-2); font-size: .92rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte__pied { padding: 14px 18px 18px; }
.carte__prix { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.carte .ajout { position: relative; z-index: 2; }
.carte .ajout .bouton { width: 100%; }
.carte--rupture .carte__visuel img { opacity: .5; }
.prix { font-family: var(--titre); font-size: 1.75rem; font-weight: 700; color: var(--nuit); }
.prix--grand { font-size: 2.6rem; margin: 0 0 6px; }
.prix small { font-size: 1rem; font-weight: 500; color: var(--encre-2); }

.dispo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.dispo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dispo--en_stock { background: var(--vert-fond); color: var(--vert); }
.dispo--limite { background: var(--orange-fond); color: var(--orange); }
.dispo--rupture { background: var(--rouge-fond); color: var(--rouge); }

/* ---------- pages ---------- */
.page { padding-top: 32px; padding-bottom: 56px; }
.page--etroite { max-width: 760px; }
.page__titre { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.fil { font-size: .92rem; color: var(--encre-2); margin-bottom: 20px; }
.fil a { text-underline-offset: 3px; }
.vide { background: var(--papier); border: 1px dashed var(--acier); border-radius: 6px; padding: 40px 24px; text-align: center; }
.vide h1, .vide h2 { font-size: 1.9rem; margin-bottom: 10px; }
.vide__code { font: 700 4rem/1 var(--titre); color: var(--ambre-fonce); margin: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }

/* ---------- filtres ---------- */
.filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; background: var(--papier); border: 1px solid var(--ligne); border-radius: 6px; padding: 18px; margin-bottom: 20px; }
.filtres .champ { margin: 0; flex: 1 1 150px; }
.filtres .filtres__q { flex: 2 1 260px; }
.filtres__dispo { flex: 0 0 auto; min-height: 46px; }
.filtres__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; min-height: 46px; }
.resultat-compte { color: var(--encre-2); margin-bottom: 14px; }

/* ---------- formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.filtres .champ { margin: 0; }
.champ label { font-weight: 600; font-size: .95rem; }
.facultatif { font-weight: 400; color: var(--encre-2); }
input[type="text"], input[type="search"], input[type="tel"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--encre);
  background: #fff; border: 1px solid #98a1b8; border-radius: 4px;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--rouge); border-width: 2px; }
.champ__erreur { color: var(--rouge); font-weight: 500; font-size: .92rem; margin: 0; }
.coche { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.coche input { width: 20px; height: 20px; accent-color: var(--nuit); }
input:disabled { background: var(--acier-clair); color: var(--encre-2); }
.champ__aide { font-size: .88rem; color: var(--encre-2); margin: 0; }
.formulaire { background: var(--papier); border: 1px solid var(--ligne); border-radius: 6px; padding: 24px; }
.formulaire__intro { font-weight: 600; color: var(--vert); margin-bottom: 20px; }
.formulaire__compte { padding: 10px 14px; margin-bottom: 20px; background: var(--acier-clair); border-radius: 4px; font-size: .95rem; }
.formulaire__compte a { font-weight: 600; text-underline-offset: 3px; }
.formulaire__titre { font-size: 1.6rem; margin-bottom: 18px; }

/* ---------- états de commande ---------- */
.etat { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 .85rem/1.5 var(--texte); white-space: nowrap; vertical-align: middle; }
.etat--attente { background: var(--orange-fond); color: var(--orange); }
.etat--confirmee { background: #dfe7fb; color: #1c3f9e; }
.etat--expediee { background: #e7e0f7; color: #4a2b9a; }
.etat--livree { background: var(--vert-fond); color: var(--vert); }
.etat--annulee { background: var(--rouge-fond); color: var(--rouge); }

/* ---------- espace client ---------- */
.compte-acces { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; align-items: start; max-width: 960px; }
.compte-acces .page__titre { margin-bottom: 18px; }
.compte-acces__autre { background: var(--nuit); color: var(--acier-clair); border-radius: 6px; padding: 26px; border-top: 4px solid var(--ambre); }
.compte-acces__autre h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.compte-acces__autre a:not(.bouton) { color: #fff; }
.compte-acces__autre .bouton--plein { background: var(--ambre); color: var(--nuit); }
.compte-acces__autre .bouton--plein:hover { background: #ffb840; }
.compte-acces__titre2 { margin-top: 24px; }
.compte-acces__liste { margin: 0; padding-inline-start: 1.2em; }
.compte-acces__liste li { margin-bottom: 4px; }
.compte-acces__aide { font-size: .92rem; margin: 16px 0 0; color: inherit; opacity: .9; }
.formulaire .compte-acces__aide { color: var(--encre-2); }
.souvenir { margin: 4px 0 18px; }
.souvenir .champ__aide { margin-inline-start: 30px; }

.compte-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.compte-tete .page__titre { margin: 0; }
.compte-tete__bonjour { margin: 0 0 4px; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ambre-fonce); }
.compte-onglets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; border-bottom: 2px solid var(--ligne); }
.compte-onglets a { padding: 10px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; text-decoration: none; font-weight: 600; color: var(--encre-2); }
.compte-onglets a:hover { color: var(--encre); }
.compte-onglets a[aria-current="page"] { color: var(--nuit); border-bottom-color: var(--ambre); }
.tableau-commandes .ligne-produit__ref { font-size: 1.25rem; }
.compte-profil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.confirmation--compte { border-top-color: var(--nuit); }
.compte-commande__titre { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 2rem; margin-bottom: 10px; }

/* ---------- fiche produit ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fiche__visuel { background: var(--acier-clair); border: 1px solid var(--ligne); border-radius: 6px; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; }
.fiche__visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche__visuel--generique { background: linear-gradient(180deg, #eef0f5, #d3d9e6); }
.fiche__visuel--generique img { width: 76%; height: auto; object-fit: contain; }
.fiche__galerie { min-width: 0; }
.vignettes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 10px; margin: 12px 0 0; padding: 0; }
.vignette { display: block; width: 100%; aspect-ratio: 16 / 11; border: 2px solid var(--ligne); border-radius: 4px; overflow: hidden; background: var(--acier-clair); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette:hover { border-color: var(--nuit-2); }
.vignette[aria-current="true"] { border-color: var(--ambre); box-shadow: 0 0 0 1px var(--ambre); }
@media (max-width: 640px) { .vignettes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } }
.fiche__ref { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; color: var(--nuit); }
.fiche__equiv { color: var(--encre-2); margin: 4px 0 0; }
.fiche__titre { font-size: 1.2rem; font-weight: 600; margin: 14px 0 0; }
.fiche__sous-titre { font-family: var(--texte); font-size: 1rem; font-weight: 600; margin: 22px 0 4px; }
.fiche__compat { color: var(--encre-2); max-width: 60ch; }
.fiche__achat { background: var(--papier); border: 1px solid var(--ligne); border-inline-start: 4px solid var(--ambre); border-radius: 6px; padding: 20px; margin: 22px 0; }
.ajout--fiche { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.ajout--fiche .champ { margin: 0; }
.champ--court { width: 96px; }
.carte-livraison[hidden], .carte-livraison [hidden] { display: none; }
.carte-livraison__titre { font-weight: 600; font-size: .95rem; }
.carte-livraison__carte { height: 320px; border: 1px solid var(--ligne); border-radius: 4px; z-index: 0; }
.carte-livraison__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.carte-livraison__actions .lien-discret { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.carte-livraison__etat:empty { display: none; }
.ajout--fiche .bouton { min-width: 220px; min-height: 48px; }
.fiche__note { font-size: .92rem; color: var(--encre-2); margin: 14px 0 0; }
.specs { margin: 0; border-top: 1px solid var(--ligne); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.specs dt { color: var(--encre-2); }
.specs dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }

/* ---------- panier / commande ---------- */
.panier { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.tableau-panier { width: 100%; border-collapse: collapse; background: var(--papier); border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; }
.tableau-panier th { text-align: start; font-size: .88rem; color: var(--encre-2); font-weight: 600; padding: 12px 14px; background: var(--acier-clair); }
.tableau-panier td { padding: 14px; border-top: 1px solid var(--ligne); vertical-align: middle; }
.ligne-produit { display: flex; align-items: center; gap: 14px; }
.ligne-produit img { width: 72px; height: 56px; border-radius: 4px; background: var(--acier-clair); flex: none; }
.ligne-produit__photo { object-fit: cover; }
.ligne-produit__generique { object-fit: contain; padding: 4px; }
.ligne-produit__ref { font: 700 1.3rem/1.1 var(--titre); color: var(--nuit); text-decoration: none; }
.ligne-produit__ref:hover { text-decoration: underline; }
.ligne-produit__titre { margin: 2px 0 0; font-size: .9rem; color: var(--encre-2); }
.quantite { width: 76px; text-align: center; }
.panier__actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.recap { background: var(--papier); border: 1px solid var(--ligne); border-top: 4px solid var(--nuit); border-radius: 6px; padding: 22px; position: sticky; top: 92px; }
.recap h2 { font-size: 1.6rem; margin-bottom: 14px; }
.recap__ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.recap__ligne strong { font: 700 1.6rem/1 var(--titre); }
.recap__ligne--total { border-top: 1px solid var(--ligne); padding-top: 14px; }
.recap__note { font-size: .9rem; color: var(--encre-2); }
.recap__produits { list-style: none; margin: 0 0 14px; padding: 0; }
.recap__produits li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.recap__produits small { color: var(--encre-2); }

.confirmation { background: var(--papier); border: 1px solid var(--ligne); border-top: 4px solid var(--vert); border-radius: 6px; padding: 28px; }
.confirmation__numero { font-size: 1.15rem; }
.confirmation__numero strong { font: 700 1.8rem/1 var(--titre); color: var(--nuit); margin-inline-start: 6px; }
.tableau-simple { width: 100%; border-collapse: collapse; margin: 18px 0 8px; }
.tableau-simple th, .tableau-simple td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--ligne); }
.tableau-simple tfoot th, .tableau-simple tfoot td { border-bottom: 0; font-size: 1.1rem; }

/* ---------- pied de page ---------- */
.pied { background: var(--nuit); color: var(--acier); margin-top: 24px; padding-top: 44px; border-top: 3px solid var(--ambre); }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.pied h2 { font-family: var(--texte); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.pied__logo { height: 40px; width: auto; margin-bottom: 14px; }
.pied__liste { list-style: none; padding: 0; margin: 0; }
.pied__liste li { margin-bottom: 6px; }
.pied a { text-underline-offset: 3px; }
.pied a:hover { color: var(--ambre); }
.pied__bas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.pied__espaces { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (min-width: 1100px) { .pied__grille { grid-template-columns: .9fr 1.45fr 1.15fr .9fr .9fr; gap: 28px; } }

/* coordonnées : icône ronde cerclée d'orange, trait dégradé entre les lignes (comme la carte de visite) */
.infos { list-style: none; margin: 0; padding: 0; }
.info { position: relative; padding: 9px 0 11px; }
.info:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 82%; height: 2px; border-radius: 2px;
  background: linear-gradient(to right, #f9a31f, #e2572a 55%, transparent); }
[dir="rtl"] .info:not(:last-child)::after { background: linear-gradient(to left, #f9a31f, #e2572a 55%, transparent); }
.info, .info__lien { display: flex; align-items: center; gap: 12px; }
.info__lien { color: #fff; text-decoration: none; min-width: 0; }
.info__icone { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid var(--ambre); background: #0b1736; color: #fff; box-shadow: 0 0 0 1px rgba(249,163,31,.25); }
.info__texte { color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.info__texte--tel { display: flex; flex-direction: column; font-size: 1.12rem; letter-spacing: .02em; }
.info__texte a { color: #fff; text-decoration: none; }
.info a:hover, .info__lien:hover .info__texte { color: var(--ambre); }
.info__lien:hover .info__icone { background: var(--ambre); color: var(--nuit); }
.info__lien:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

/* mini carte : capture du plan, ouvre Google Maps */
.pied__carte { display: block; align-self: start; border-radius: 6px; overflow: hidden; border: 2px solid rgba(255,255,255,.18);
  background: #fff; text-decoration: none; transition: border-color .15s; }
.pied__carte:hover { border-color: var(--ambre); }
.pied__carte img { display: block; width: 100%; height: auto; }
.pied__carte-legende { display: block; padding: 7px 10px; background: var(--nuit-2); color: #fff; font-size: .88rem; font-weight: 600; text-align: center; }
.pied__carte:hover .pied__carte-legende { color: var(--ambre); }

/* ---------- écrans Clerk (connexion, inscription, sécurité) ---------- */
.email-statut { margin-top: 2px; }
.email-statut--ok { color: var(--vert); font-weight: 600; }
.clerk-zone { display: flex; flex-direction: column; align-items: center; min-height: 420px; }
.clerk-zone .message { width: min(100%, 480px); }
.clerk-attente { margin: 48px 0; color: var(--encre-2); font-weight: 600; }
.page--clerk .souvenir { width: min(100%, 400px); margin: 16px auto 0; }
.clerk-note { margin-top: 18px; text-align: center; color: var(--encre-2); font-size: .95rem; }

/* ---------- choix de la langue ---------- */
.langue-lien { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.langue-lien:hover { border-color: var(--ambre); color: var(--ambre); }
.langue-lien:lang(ar) { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
.langues { display: inline-flex; gap: 6px; }
.langue-code { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fiche { grid-template-columns: 1fr; gap: 24px; }
  .panier, .compte-acces, .compte-profil { grid-template-columns: 1fr; }
  .recap { position: static; }
  .recherche-entete { width: 220px; }
  .entete__nav { display: none; }
  .entete__ligne { gap: 14px; }
  .recherche-entete { margin-inline-end: auto; }
  .accueil .entete__actions { margin-inline-start: auto; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .entete__ligne { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .recherche-entete { order: 3; width: 100%; margin: 0; }
  .entete__actions { margin-inline-start: auto; gap: 14px; }
  .tel span, .compte-lien span { display: none; }
  /* langues : code court (EN, FR, ع) ; le nom complet reste lu par les lecteurs d'écran */
  .panier-lien span:not(.pastille) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .entete__actions { gap: 12px; }
  .langues { gap: 4px; }
  .langue-lien { padding: 0 10px; min-width: 34px; justify-content: center; }
  .langue-lien .langue-code { display: inline; }
  .langue-lien .langue-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { padding: 28px 0 80px; }
  .hero__logo { width: min(100%, 340px); }
  .recherche-hero { flex-direction: column; gap: 10px; }
  .recherche-hero input, .recherche-hero .bouton { border-radius: 4px; width: 100%; }
  .section { padding: 40px 16px 24px; }
  .section--categories { padding-bottom: 8px; }
  .certification { padding-bottom: 40px; }
  .certification__ligne { grid-template-columns: 1fr; gap: 20px; }
  .certification__certificat { width: min(100%, 360px); margin-inline: auto; }
  .categories { gap: 10px; }
  .categorie-tuile { padding: 14px; }
  .categorie-tuile__nom { font-size: 1.2rem; }
  .onglets-cat { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .onglets-cat a { flex: 0 0 auto; }
  .conteneur { padding: 0 16px; }
  /* tableau panier empilé */
  .tableau-panier thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau-panier, .tableau-panier tbody, .tableau-panier tr, .tableau-panier td { display: block; width: 100%; }
  .tableau-panier tr { padding: 12px 14px; border-top: 1px solid var(--ligne); }
  .tableau-panier td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; }
  .tableau-panier td::before { content: attr(data-label); color: var(--encre-2); font-size: .88rem; margin-inline-end: 12px; }
  .tableau-panier .cellule-produit::before, .cellule-retirer::before { content: none; }
  .cellule-retirer { justify-content: flex-end; }
  .formulaire { padding: 18px; }
  .ajout--fiche .bouton { width: 100%; }
}
