/* Polices auto-hébergées (Google Fonts, licence OFL) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/montserrat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('fonts/playfair.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Thème noir et blanc */
  --ivoire: #FFFFFF;        /* fond des pages */
  --sable: #CFCFCF;         /* gris clair (textes sur fond noir) */
  --sable-light: #F3F3F3;   /* encarts gris très clair */
  --terracotta: #111111;    /* pastilles : remises, panier */
  --terracotta-text: #111111;
  --bleu: #111111;          /* texte, boutons, bandeaux */
  --bleu-dark: #000000;
  --olive: #111111;
  --majorelle: #111111;
  --danger: #B42318;        /* erreurs de formulaire uniquement */
  --text: #111111;
  --muted: #5C5C5C;
  --line: rgba(0, 0, 0, 0.12);
  --card: #FFFFFF;
  --radius: 14px;   /* grands blocs : fenêtres, encarts */
  --r-md: 10px;     /* champs, boutons de taille, formulaires, reçus */
  --r-sm: 6px;      /* photos produit, en-tête, menus */
  --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.22);
  --serif: 'Playfair Display', 'Noto Naskh Arabic', 'Geeza Pro', 'Damascus', Georgia, serif;
  --sans: Montserrat, 'Noto Sans Arabic', 'Geeza Pro', 'SF Arabic', Tahoma, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html:has(dialog[open]), body.lock { overflow: hidden; }
body {
  margin: 0; background: var(--ivoire); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.center, .center-text { text-align: center; }
.hp { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--bleu); color: var(--ivoire); padding: 8px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta-text); font-weight: 600; margin-bottom: 12px;
}

/* ANNONCE + EN-TÊTE */
.announce {
  background: var(--bleu); color: var(--ivoire); text-align: center;
  font-size: 12px; letter-spacing: 0.04em; padding: 8px 16px;
}
.site-header { position: sticky; top: 12px; z-index: 30; margin: 12px 16px -76px; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px; background: var(--card); border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: 0.1em; color: var(--bleu); }
.logo-sub { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bleu); margin-top: 5px; font-weight: 600; }
.logo-word.light, .logo-sub.light { color: var(--ivoire); display: block; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a:hover { color: var(--terracotta-text); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--bleu); color: var(--ivoire);
  border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; cursor: pointer;
}
.cart-btn:hover { background: var(--bleu-dark); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; }
.cart-btn.bump .count { animation: bump 0.4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* BOUTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--bleu); color: var(--ivoire); }
.btn-primary:hover:not(:disabled) { background: var(--bleu-dark); }
.btn-ghost { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-ghost:hover { background: var(--bleu); color: var(--ivoire); }
.btn-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(2px); }
.btn-light:hover { background: var(--card); color: var(--bleu); }
.btn-whatsapp { background: #1F8F4E; color: #fff; }
.btn-whatsapp:hover { background: #18773F; }
.wide { width: 100%; }
.icon-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--bleu); padding: 6px 10px; border-radius: var(--r-md); }

/* HERO */
.hero { position: relative; height: min(92vh, 880px); min-height: 560px; overflow: hidden; background: var(--sable); }
.hero-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 18, 15, 0.55) 100%); pointer-events: none; }
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 24px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff;
}
.kicker { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.hero h1 {
  font-size: clamp(40px, 7vw, 96px); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); max-width: 14ch;
}
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.2vw, 22px); margin: 14px 0 26px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }

/* ENGAGEMENTS */

/* UNIVERS */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(20, 18, 15, 0.5)); }
.tile-title, .tile-cta { position: absolute; left: 0; right: 0; z-index: 1; text-align: center; }
.tile-title { bottom: 88px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: 0.06em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }
.tile-cta { bottom: 36px; width: max-content; margin: 0 auto; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, 0.85); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* SECTIONS */
.section { padding: 88px 0; }
.section h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--bleu); padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--bleu); }
.chip[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: var(--ivoire); }

/* PRODUITS */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.card { display: flex; flex-direction: column; }
.p-img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--sable-light); cursor: pointer; overflow: hidden; border-radius: var(--r-sm); }
.p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.8s ease; }
.p-img .alt { opacity: 0; }
.card:hover .p-img .alt.ready { opacity: 1; }
.card:hover .p-img img:first-child { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--terracotta); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.p-body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-cat { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta-text); font-weight: 600; }
.p-body h3 { font-size: 18px; font-weight: 500; }
.p-link { all: unset; cursor: pointer; }
.p-link:hover { color: var(--terracotta-text); }
.p-link:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.p-price { font-weight: 700; font-size: 16px; }
.p-price small { font-weight: 500; font-size: 12px; color: var(--muted); }
.p-price s, .pd-price s { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px; }
.btn-add { padding: 8px 14px; font-size: 12px; background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-add:hover { background: var(--bleu); color: var(--ivoire); }

/* ÉDITORIAL */
.editorial { display: grid; grid-template-columns: 1fr; background: var(--sable-light); }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; padding: 64px clamp(24px, 6vw, 96px); }
.editorial-copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.editorial-copy p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.editorial-copy .btn { align-self: center; }

/* COMMENT COMMANDER */

/* FAQ */
.faq { background: var(--card); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--terracotta-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* PIED DE PAGE */
.site-footer { background: var(--bleu); color: var(--ivoire); padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid p { font-size: 14px; margin-top: 6px; }
.foot-grid a { color: var(--ivoire); text-underline-offset: 3px; }
.foot-tag { font-family: var(--serif); font-style: italic; margin-top: 18px !important; font-size: 18px !important; }
.foot-title { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px !important; color: var(--sable); margin-bottom: 10px !important; }
.foot-bottom { margin-top: 48px; padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px; color: var(--sable); }

/* WHATSAPP FLOTTANT */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 35; width: 56px; height: 56px; border-radius: 50%;
  background: #1F8F4E; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { background: #18773F; }

/* PANIER */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.38); z-index: 40; opacity: 0; transition: opacity 0.3s; }
.overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 50; background: var(--ivoire);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; visibility: hidden;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head, .dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2, .dialog-head h2 { font-size: 24px; }
.ship-progress { padding: 14px 24px 0; font-size: 13px; }
.ship-progress .bar-track { height: 6px; background: var(--sable-light); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.ship-progress .bar-fill { height: 100%; background: var(--majorelle); border-radius: 999px; transition: width 0.4s ease; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px 16px; }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-art { width: 64px; height: 80px; border-radius: var(--r-sm); object-fit: cover; background: var(--sable-light); }
.line-info { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.line-info span { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bleu); background: transparent; color: var(--bleu); cursor: pointer; }
.qty .remove { width: auto; height: auto; border: 0; border-radius: 0; font-size: 12px; text-decoration: underline; margin-left: 8px; color: var(--terracotta-text); }
.line-total { font-size: 14px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-foot .totals { margin-bottom: 16px; }
.drawer-foot .note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.totals { margin: 0; display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 17px; }
.totals.small { font-size: 14px; margin-bottom: 20px; }

/* DIALOGUES */
dialog { border: 0; border-radius: var(--radius); padding: 0; background: var(--ivoire); color: var(--text); width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.dialog-body { padding: 0 0 24px; }
.dialog-body > .summary, .dialog-body > .totals, .dialog-body > form { padding-left: 24px; padding-right: 24px; }
.dialog-body > .totals { padding-top: 16px; }
.summary { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; }
.summary em { color: var(--muted); font-style: normal; font-size: 13px; }

form { display: grid; gap: 14px; margin-top: 8px; }
form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
form input, form select, form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--r-md); background: var(--card); color: var(--text); font-size: 16px; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--bleu); outline-offset: 1px; }
form [aria-invalid="true"] { border-color: var(--danger); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--danger); font-size: 12px; font-weight: 600; }
.err:empty { display: none; }
.cod-badge { background: var(--sable-light); border-radius: var(--r-md); padding: 11px 14px; font-size: 13px; font-weight: 500; color: var(--bleu); }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }
.legal-note { font-size: 12px; color: var(--muted); text-align: center; }

#thanksDialog .dialog-body { padding: 40px 28px 28px; display: grid; gap: 12px; justify-items: center; }
#thanksDialog p { color: var(--muted); }
#thanksDialog p strong { color: var(--bleu); }
.thanks-star { width: 48px; height: 48px; fill: var(--terracotta); }
.thanks-total { font-size: 15px; color: var(--text) !important; }

/* FICHE PRODUIT */
dialog.pd { width: min(1040px, calc(100% - 32px)); }
.pd-close { position: absolute; top: 10px; right: 12px; z-index: 2; background: var(--ivoire); border-radius: 50%; width: 40px; height: 40px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd-media { background: var(--sable-light); }
.pd-media > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 60px; height: 75px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--bleu); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.pd-info .eyebrow { margin: 0; }
.pd-info h2 { font-size: 28px; }
.pd-price { font-size: 22px; font-weight: 700; }
.opt-title { font-size: 13px; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: var(--r-md); padding: 9px 13px; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-height: 44px; justify-content: center; }
.opts button small { color: var(--muted); font-size: 12px; }
.opts button[aria-pressed="true"] { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); font-weight: 600; }
.pd-buy { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.pd-buy .btn { flex: 1; }
.qty.big { margin: 0; }
.qty.big button { width: 42px; height: 42px; }
.pd-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.pd-trust li::before { content: "✓ "; color: var(--olive); font-weight: 700; }
.pd-desc { color: var(--muted); font-size: 14px; }
.pd-desc p { margin: 0 0 12px; color: var(--text); }
.pd-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pd-benefits li { position: relative; padding-left: 26px; line-height: 1.5; }
.pd-benefits li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pd-benefits strong { color: var(--text); font-weight: 600; }
.pd-specs { margin: 0; display: grid; gap: 0; font-size: 13px; border-top: 1px solid var(--line); }
.pd-specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pd-specs dt { font-weight: 600; margin: 0; }
.pd-specs dd { margin: 0; color: var(--muted); }
.pd-specs:empty { display: none; }
.pd-wa { font-size: 13px; font-weight: 600; color: #18773F; }

@media (min-width: 901px) {
  .pd-grid { max-height: min(720px, calc(100dvh - 32px)); }
  .pd-media { display: flex; flex-direction: column; min-height: 0; }
  .pd-media > img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; }
  .pd-info { overflow-y: auto; }
}

/* PAGES D'INFORMATION */
.page { padding: 140px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.page .lead { color: var(--muted); margin-bottom: 32px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 20px; }
.page a:not(.btn) { color: var(--bleu); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pd-grid, .editorial { grid-template-columns: 1fr; }
  .pd-info { padding: 22px 20px 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 760px) {
  .site-header { margin: 8px 10px -70px; top: 8px; }
  .bar { height: 58px; padding: 0 14px; }
  .hero { height: 66svh; min-height: 470px; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-second { display: none; }
  .hero-overlay { padding-bottom: 40px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 3; }
  .section { padding: 60px 0; }
  .row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .p-body h3 { font-size: 15px; }
  .p-foot { flex-direction: column; align-items: flex-start; }
  .btn-add { width: 100%; }
  .announce { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* PAGE PRODUIT */
.pp { padding-top: 104px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--terracotta-text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }
.pp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.pp-media { position: sticky; top: 96px; }
.pp-main { position: relative; background: var(--sable-light); border-radius: var(--r-sm); overflow: hidden; }
.pp-main img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.pp-media .pd-thumbs { padding: 12px 0 0; }
.pp-info { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.pp-info .eyebrow { margin: 0; }
.pp-info h1 { font-size: clamp(28px, 3.4vw, 42px); }
.pp-cod { font-size: 13px; color: var(--muted); margin-top: -6px; }
.pp-ship { font-size: 13px; background: var(--sable-light); border-radius: var(--r-md); padding: 10px 14px; }
.pp-acc { border-top: 1px solid var(--line); }
.pp-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pp-acc summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 600; position: relative; }
.pp-acc summary::-webkit-details-marker { display: none; }
.pp-acc summary::after { content: "+"; position: absolute; right: 2px; top: 9px; font-size: 22px; font-weight: 400; color: var(--terracotta-text); }
.pp-acc[open] summary::after { content: "−"; }
.pp-acc > :not(summary) { margin-bottom: 16px; }
.pp-acc .pd-specs { border-top: 0; }
.pp-acc .pd-desc a { color: var(--bleu); font-weight: 600; }
.related { background: var(--card); border-top: 1px solid var(--line); margin-top: 80px; }
.related h2 { margin-bottom: 32px; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; background: var(--card); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-info { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 1.3; }
.sticky-info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { flex: none; padding: 12px 20px; }
body.has-sticky .wa-float { bottom: 84px; }
a.p-img { color: inherit; }
@media (max-width: 900px) {
  .pp { padding-top: 84px; }
  .pp-grid { grid-template-columns: 1fr; gap: 24px; }
  .pp-media { position: static; }
  .related { margin-top: 48px; }
}

/* MENU MOBILE */
.menu-btn { display: none; width: 44px; height: 44px; margin-left: -10px; padding: 12px 10px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--bleu); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .bar { position: relative; }
  .menu-btn { display: inline-flex; }
  .logo { margin-right: auto; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 8px 0;
  }
  .nav.open a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .nav-mobile { display: block; }
}

/* Photo produit 4:5 : sur grand écran, la photo tient entière dans la fenêtre */
@media (min-width: 901px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-media { max-width: calc((100vh - 170px) * 0.8); width: 100%; justify-self: start; }
}

/* ===== CORRECTIFS MOBILE (audit) ===== */
.pp-media, .pp-info { min-width: 0; }
.cart-btn { min-height: 44px; }
.chip { min-height: 44px; }
.crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 900px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .opts button { min-height: 48px; }
  .pd-buy .btn, .pd-buy + .btn { min-height: 52px; }
}
@media (max-width: 760px) {
  .announce { font-size: 12px; }
  /* Filtres : une seule ligne qui défile */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .section-head { margin-bottom: 24px; }
  /* Cartes produit : titres sur 3 lignes, bouton à 44 px */
  .p-body h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
  .btn-add { min-height: 44px; font-size: 12px; }
  /* Univers : carrousel horizontal au format 4:5 */
  .tiles { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px; scrollbar-width: none; background: var(--ivoire); }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: var(--r-sm); }
  .tile-title { bottom: 76px; font-size: 30px; }
  .tile-cta { bottom: 28px; }
  /* Pied de page : liens faciles à toucher */
  .foot-grid p { margin-top: 0; }
  .foot-grid p a { display: inline-block; padding: 9px 0; }
  .site-footer { padding-bottom: 72px; }
  /* Bouton WhatsApp plus discret */
  .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 25px; height: 25px; }
  body.has-sticky .wa-float { bottom: 80px; }
  /* WhatsApp flottant : absent des fiches produit (déjà dans la barre du bas) et caché en haut de l'accueil */
  body[data-product] .wa-float, body.wa-hide .wa-float { display: none; }
  .faq summary { padding: 16px 32px 16px 0; min-height: 52px; }
}
/* Montants jamais coupés sur deux lignes */
.summary li span:last-child, .totals dd, .line-total, .p-price, .pd-price { white-space: nowrap; }
.totals .grand dt { min-width: 0; }
@media (max-width: 760px) {
  .qty button { width: 40px; height: 40px; }
  .qty .remove { padding: 10px 4px; }
  .summary li { align-items: baseline; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .dialog-body > .summary, .dialog-body > .totals, .dialog-body > form { padding-left: 18px; padding-right: 18px; }
  .dialog-head { padding: 16px 18px; }
}

.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; padding: 12px 16px; background: var(--bleu); color: var(--ivoire); text-align: center; font-size: 14px; }
.noscript a { color: #fff; font-weight: 700; }

/* COMMANDE RAPIDE (comme Decordarna) */
.pp-stock { font-size: 13px; font-weight: 600; color: var(--olive); margin-top: -4px; }
.pp-stock::before { content: "● "; }
.quick-order { display: grid; gap: 10px; border: 1px solid var(--bleu); border-radius: var(--r-md); padding: 20px; background: var(--card); margin: 4px 0 0; }
.quick-order.in-dialog { border: 0; padding: 4px 24px 0; background: transparent; }
.qo-title { font-family: var(--serif); font-size: 21px; text-align: center; }
.qo-sub { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.quick-order input:not(.hp), .quick-order select { width: 100%; padding: 13px 14px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--r-md); background: var(--card); color: var(--text); font-size: 16px; }
.quick-order [aria-invalid="true"] { border-color: var(--danger); }
.qo-qty { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; padding: 4px 0; }
.qo-totals { background: var(--sable-light); border-radius: var(--r-md); padding: 12px 14px; margin: 0 !important; }
.quick-order .btn-primary { min-height: 52px; }
.quick-order .legal-note { margin: 0; }
@media (max-width: 760px) {
  .quick-order { padding: 16px; }
  .quick-order.in-dialog { padding: 4px 18px 0; }
}

/* PROCESSUS DE COMMANDE (même déroulé que Decordarna) */
/* Champs avec icône ; en rouge s'il faut les corriger */
form label.in { position: relative; display: block; font-weight: 400; }
.in[hidden] { display: none; }
.in svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.quick-order .in input, .quick-order .in select, .quick-order .in textarea { width: 100%; height: 50px; padding: 0 14px 0 42px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--r-md); background: var(--card); color: var(--text); font-size: 16px; appearance: none; }
.quick-order .in select { background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.quick-order .in textarea { height: 72px; padding-top: 13px; resize: vertical; font-family: inherit; }
.quick-order .in textarea + svg, .in[data-k="note"] svg { top: 25px; }
.quick-order .in input:focus, .quick-order .in select:focus, .quick-order .in textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu); }
.in.bad input, .in.bad select { border-color: var(--danger); background: #FEF3F2; }
.in.bad svg { stroke: var(--danger); }
.qo-totals dd.free { color: var(--olive); font-weight: 700; }
.qo-totals dd.tbd { color: var(--muted); }
.qo-nudge { margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--terracotta-text); text-align: center; }
.qo-nudge:empty { display: none; }
/* Les 3 garanties sous le bouton */
.ticks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.3; text-align: center; color: var(--text); }
.ticks li { display: grid; justify-items: center; gap: 6px; }
.ticks li::before { content: ""; width: 22px; height: 22px; background: var(--majorelle); -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ticks li:nth-child(1) { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2.5'%20y='6'%20width='19'%20height='12'%20rx='1.5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2.6'/%3E%3Cpath%20d='M6%209.5v5M18%209.5v5'/%3E%3C/svg%3E"); }
.ticks li:nth-child(2) { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2.5%206.5h11v9.5h-11zM13.5%2010h4.2l3.3%203.4V16h-7.5'/%3E%3Ccircle%20cx='6.5'%20cy='17.5'%20r='1.6'/%3E%3Ccircle%20cx='17'%20cy='17.5'%20r='1.6'/%3E%3C/svg%3E"); }
.ticks li:nth-child(3) { --ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4%208.5h14.5L15%205M20%2015.5H5.5L9%2019'/%3E%3C/svg%3E"); }
/* « Ajouter au panier » : un lien sous le formulaire */
.linkbtn { display: block; margin: 2px auto 0; background: none; border: 0; padding: 12px 16px; min-height: 44px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--terracotta-text); }
/* Barre du bas sur téléphone : prix, WhatsApp, Commander */
.sticky-wa { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); color: #1F8F4E; margin-left: auto; }
.sticky-wa svg { width: 24px; height: 24px; fill: currentColor; }
/* Tiroir : panier → commande → merci */
.drawer-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-view[hidden] { display: none; }
.drawer-scroll { overflow-y: auto; padding: 18px 24px 28px; gap: 12px; }
.quick-order.in-drawer { display: flex; border: 0; border-radius: 0; background: transparent; margin: 0; }
.quick-order.in-drawer .qo-title { margin-top: 2px; }
.back-link { align-self: flex-start; background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.done { text-align: center; display: grid; gap: 6px; justify-items: center; padding-top: 8px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--olive); color: var(--olive); display: grid; place-items: center; }
.done .tick svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.done p { margin: 0; color: var(--muted); font-size: 14px; max-width: 34ch; }
.done .no { font-size: 13px; color: var(--muted); font-weight: 600; }
.callnote { background: var(--sable-light); border-radius: var(--r-md); padding: 11px 13px; font-size: 14px; text-align: center; }
.receipt { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 14px; display: grid; gap: 7px; font-size: 14px; }
.receipt .r { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.receipt .r > span:last-child, .receipt .r > strong:last-child { white-space: nowrap; }
.receipt .k { color: var(--muted); }
.receipt hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--bleu); color: var(--ivoire); padding: 10px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* La barre du bas a son propre bouton WhatsApp : le bouton rond ne couvre plus les tailles */
body.has-sticky .wa-float { display: none; }
@media (max-width: 760px) {
  .drawer-scroll { padding: 16px 18px 24px; }
  .ticks { font-size: 12px; }
}

/* POURQUOI BONBAIN + COMPARAISON */
.why { background: var(--sable-light); }
.why-lead { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 52ch; }
.why-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.why-grid svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-grid strong { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.25; }
.why-grid span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.why-grid span span { color: inherit; font-size: inherit; }
.compare-table { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.compare-table thead th:nth-child(2) { background: var(--text); color: #fff; }
.compare-table tbody th { font-weight: 600; width: 32%; }
.compare-table td.yes { font-weight: 600; background: rgba(0, 0, 0, 0.03); }
.compare-table td.yes::before { content: "✓ "; font-weight: 700; }
.compare-table td.no { color: var(--muted); }
.compare-table td.no::before { content: "✕ "; }
.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; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .why-grid li { grid-template-columns: 32px 1fr; column-gap: 14px; row-gap: 4px; padding: 16px; }
  .why-grid svg { grid-row: span 2; width: 26px; height: 26px; }
  .why-grid strong { font-size: 17px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 11px 10px; }
  .compare-table tbody th { width: 30%; }
}

/* BRODERIE (fiche produit) */
.emb { border: 1px dashed rgba(0, 0, 0, 0.25); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 10px; }
.emb-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.emb-toggle input { width: 20px; height: 20px; accent-color: var(--text); flex: none; margin: 0; }
.emb-toggle small { display: block; color: var(--muted); font-size: 12px; }
.emb-box { display: grid; gap: 6px; }
.emb-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.quick-order .emb-toggle input[type="checkbox"] { width: 20px; height: 20px; padding: 0; border: 0; flex: none; }

/* PAGES CATÉGORIES */
.cat-head { padding-bottom: 0; }
.cat-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 4px; }
.cat-intro { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 62ch; }
.cat-products { padding-top: 32px; }
.cat-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; font-size: 13px; color: var(--muted); }
.cat-others .chip { text-decoration: none; color: var(--text); }
.cat-guide { background: var(--sable-light); }
.prose h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.prose h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.prose ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* Fiche produit (téléphone) : « Pourquoi nous » compact, pour garder « Vous aimerez aussi » proche */
@media (max-width: 760px) {
  .pp .why { padding: 40px 0; }
  .pp .why-lead { display: none; }
  .pp .why-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .pp .why-grid li { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
  .pp .why-grid li > span { display: none; }
  .pp .why-grid svg { width: 24px; height: 24px; }
  .pp .why-grid strong { font-size: 15px; }
}

/* Réseaux sociaux (pied de page) */
.foot-social { display: flex; gap: 10px; margin-top: 6px !important; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.foot-social svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* SÉLECTEUR DE LANGUE */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; margin-inline-end: 10px; }
.lang-switch a { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang-switch a[lang="ar"] { font-size: 15px; font-family: 'Noto Sans Arabic', 'Geeza Pro', Tahoma, sans-serif; }
.lang-switch a[aria-current] { color: var(--text); background: var(--sable-light); }
.lang-switch a:hover { color: var(--text); }
@media (max-width: 760px) {
  .lang-switch { gap: 0; margin-inline-end: 6px; }
  .lang-switch a { min-width: 28px; height: 30px; padding: 0 4px; font-size: 11px; }
  .lang-switch a[lang="ar"] { font-size: 14px; }
  .logo { margin-right: 0 !important; }
}

/* ARABE : lecture de droite à gauche */
[dir="rtl"] body { line-height: 1.75; }
/* l'espacement des lettres casse les liaisons de l'écriture arabe */
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .hero h1 { line-height: 1.3; }
[dir="rtl"] .logo, [dir="rtl"] .logo-word, [dir="rtl"] .logo-sub { direction: ltr; }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .badge { left: auto; right: 12px; }
[dir="rtl"] .p-price s, [dir="rtl"] .pd-price s { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
[dir="rtl"] .faq summary { padding: 16px 0 16px 32px; }
[dir="rtl"] .pp-acc summary::after { right: auto; left: 2px; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.is-open { transform: translateX(0); }
[dir="rtl"] .qty .remove { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .pd-close { right: auto; left: 12px; }
[dir="rtl"] .pd-benefits li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .pd-benefits li::before { left: auto; right: 0; }
[dir="rtl"] .page ul, [dir="rtl"] .prose ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .menu-btn { margin-left: 0; margin-right: -10px; }
[dir="rtl"] .in svg { left: auto; right: 14px; }
[dir="rtl"] .quick-order .in input, [dir="rtl"] .quick-order .in select, [dir="rtl"] .quick-order .in textarea { padding: 0 42px 0 14px; }
[dir="rtl"] .quick-order .in textarea { padding-top: 13px; }
[dir="rtl"] .quick-order .in select { background-position: left 14px center; }
[dir="rtl"] .sticky-wa { margin-left: 0; margin-right: auto; }
[dir="rtl"] .compare-table th, [dir="rtl"] .compare-table td { text-align: right; }
[dir="rtl"] .wa-float { right: auto; left: 18px; }
[dir="rtl"] .back-link, [dir="rtl"] .crumbs { direction: rtl; }
/* numéros de téléphone et montants restent dans le bon ordre */
[dir="rtl"] a[href^="tel:"], [dir="rtl"] #orderNo { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 760px) {
  [dir="rtl"] .wa-float { right: auto; left: 12px; }
  [dir="rtl"] .logo { margin-right: 0; margin-left: 0; }
}
[dir="rtl"] .badge { direction: ltr; }
.menu-btn span { width: 22px; }
.logo-sub { white-space: nowrap; }
@media (max-width: 760px) {
  .bar { gap: 8px; padding: 0 12px; }
  .logo-sub { letter-spacing: 0.14em; font-size: 11px; }
  .cart-btn { padding: 9px 12px; }
}

/* CONVERSION : économie, date de livraison, suggestions du panier, étiquette livraison offerte */
.pd-price .save { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.pp-eta { font-size: 13px; color: var(--muted); margin-top: -6px; }
.pp-eta:empty { display: none; }
.pp-eta::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.upsell { margin: 14px 0 4px; padding: 12px; border: 1px dashed rgba(0, 0, 0, 0.25); border-radius: var(--r-md); display: grid; gap: 10px; }
.upsell-title { margin: 0; font-size: 13px; font-weight: 700; }
.upsell-item { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; }
.upsell-item img { width: 48px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.upsell-name { line-height: 1.3; }
.upsell-name small { display: block; color: var(--muted); font-size: 12px; }
.upsell-item .btn-add { padding: 7px 12px; min-height: 36px; }
.tag-free { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.tag-free::before { content: "✓ "; }
