/* =====================================================================
   DJoseam Naturals — Design system (mobile-first)
   Palette inspirée du logo : violet profond, violet royal, magenta,
   doré/champagne, blanc cassé, beige clair, gris foncé.
   ===================================================================== */

:root {
  --plum-900: #2a1240;
  --violet-800: #3d1766;
  --violet-700: #4b1d7a;      /* violet profond (logo « D ») */
  --violet-600: #64289a;      /* violet royal */
  --violet-100: #efe7f6;
  --violet-50:  #f7f2fb;
  --magenta-500: #b5368f;     /* magenta subtil (logo « ám ») */
  --magenta-100: #f8e6f1;
  --gold-500: #c99a3c;        /* doré */
  --gold-300: #e9c46a;
  --champagne: #f3e5c3;
  --cream: #fbf8f4;           /* blanc cassé */
  --beige: #f4ede4;           /* beige très clair */
  --ink: #2b2530;             /* gris foncé (texte) */
  --muted: #6e6577;
  --line: #e9e2ea;
  --white: #fff;
  --success: #2f7d5b;
  --success-bg: #e8f4ee;
  --danger: #b4334a;
  --danger-bg: #fbeaed;
  --warning: #9a6a12;
  --warning-bg: #fbf2df;

  --grad-brand: linear-gradient(120deg, var(--violet-700) 0%, var(--violet-600) 55%, var(--magenta-500) 100%);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(42, 18, 64, .06), 0 2px 8px rgba(42, 18, 64, .04);
  --shadow: 0 6px 24px rgba(42, 18, 64, .08);
  --shadow-lg: 0 18px 50px rgba(42, 18, 64, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --gutter: 16px;
}

[dir="rtl"] {
  --font-display: "Tajawal", "Cormorant Garamond", serif;
  --font-body: "Tajawal", system-ui, sans-serif;
}

/* ----- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip; /* et non « hidden », qui casse les éléments position: sticky */
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--violet-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--magenta-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--plum-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--magenta-500); outline-offset: 2px; }
::selection { background: var(--violet-100); color: var(--violet-800); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hide-mobile { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; background: var(--violet-700); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

/* ----- Icônes -------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }
.icon--down { transform: rotate(90deg); }
[dir="rtl"] .icon--flip, [dir="rtl"] .btn .icon[class*="arrow"] { transform: scaleX(-1); }

/* ----- Boutons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--violet-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: .98rem; letter-spacing: .01em; line-height: 1.2;
  text-align: center; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { --btn-bg: var(--violet-700); --btn-fg: #fff; background: var(--grad-brand); box-shadow: 0 6px 18px rgba(75, 29, 122, .25); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(75, 29, 122, .32); }
.btn--gold { --btn-fg: var(--plum-900); background: linear-gradient(120deg, var(--gold-300), var(--champagne)); box-shadow: 0 6px 18px rgba(201, 154, 60, .25); }
.btn--outline { --btn-bg: transparent; border-color: var(--violet-700); }
.btn--outline:hover { background: var(--violet-700); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; border-color: var(--line); --btn-fg: var(--ink); }
.btn--ghost:hover { border-color: var(--violet-600); --btn-fg: var(--violet-700); }
.btn--light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--violet-700); }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--violet-50); color: var(--violet-700); }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 500; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }

/* ----- Badges & statuts ---------------------------------------------- */
.badge { display: inline-block; padding: .25em .7em; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; }
.badge--new { background: var(--violet-700); color: #fff; }
.badge--promo { background: var(--magenta-500); color: #fff; }
.badge--offer { background: linear-gradient(120deg, var(--gold-300), var(--champagne)); color: var(--plum-900); box-shadow: 0 2px 8px rgba(201, 154, 60, .35); }
.price-from { font-size: .78rem; color: var(--muted); }
.badge--gold { background: var(--champagne); color: var(--plum-900); }

/* ----- Alertes ------------------------------------------------------- */
.alert { margin: 16px 0; padding: 14px 18px; border-radius: var(--radius); border: 1px solid transparent; font-size: .95rem; }
.alert--success { background: var(--success-bg); color: var(--success); border-color: #cfe7da; }
.alert--error { background: var(--danger-bg); color: var(--danger); border-color: #f2cdd4; }
.alert--warning { background: var(--warning-bg); color: var(--warning); border-color: #f1e0b7; }
.alert--info { background: var(--violet-50); color: var(--violet-700); border-color: var(--violet-100); }

/* ----- Barre d'annonce ----------------------------------------------- */
.announce { background: var(--plum-900); color: var(--champagne); font-size: .82rem; letter-spacing: .02em; }
.announce__inner { display: flex; justify-content: center; padding-block: 8px; text-align: center; }
.announce__inner span { display: inline-flex; align-items: center; gap: 8px; }
/* Mobile uniquement : bandeau d'annonce masqué */
@media (max-width: 767.98px) {
  .announce { display: none; }
}

/* ----- Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(42, 18, 64, .05); }
.site-header__inner { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
.brand { display: flex; align-items: center; margin-inline-end: auto; }
.brand__logo { height: 46px; width: auto; }
.main-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 2px; }
.site-header__cta { display: none; }

/* Mobile / tablette : logo centré entre le menu (gauche) et les icônes (droite) */
@media (max-width: 1023.98px) {
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__burger { justify-self: start; }
  .brand { margin-inline-end: 0; justify-self: center; }
  .site-header__actions { justify-self: end; }
}
/* Mobile uniquement : pas d'icône de recherche dans l'en-tête */
@media (max-width: 767.98px) {
  .site-header [data-search-toggle] { display: none; }
  .brand__logo { height: 52px; }
}
.cart-count {
  position: absolute; top: 3px; inset-inline-end: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--magenta-500); color: #fff; font-size: .7rem; font-weight: 600; line-height: 19px; text-align: center;
  transition: transform .3s var(--ease);
}
.cart-count.is-empty { transform: scale(0); }
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.lang-switch { font-size: .85rem; font-weight: 500; padding: 6px 10px; border-radius: 999px; color: var(--ink); }
.lang-switch:hover { background: var(--violet-50); }

.main-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 2px; border: 0; background: none;
  color: var(--ink); font-weight: 500; font-size: .96rem; white-space: nowrap;
}
.main-nav__link::after { content: ""; position: absolute; inset-inline: 2px; bottom: 2px; height: 1.5px; background: var(--magenta-500); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav__link:hover, .main-nav__link.is-active { color: var(--violet-700); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -16px; min-width: 250px;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
}
.main-nav__dropdown:hover .dropdown-panel, .main-nav__dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.dropdown-panel a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dropdown-panel a span { color: var(--muted); font-size: .85rem; }
.dropdown-panel a:hover { background: var(--violet-50); color: var(--violet-700); }
.dropdown-panel__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; color: var(--violet-700) !important; font-weight: 500; justify-content: flex-start !important; gap: 6px; align-items: center; }

.search-panel { border-top: 1px solid var(--line); background: #fff; animation: slideDown .25s var(--ease); }
.search-panel__form { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.search-panel__form input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 1.05rem; outline: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }

/* ----- Tiroirs (menu mobile, mini-panier) ---------------------------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(42, 18, 64, .4); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(420px, 90vw);
  display: flex; flex-direction: column; background: var(--cream);
  box-shadow: var(--shadow-lg); transition: transform .35s var(--ease);
}
.drawer--right .drawer__panel { inset-inline-end: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { inset-inline-start: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer--right .drawer__panel { transform: translateX(-100%); }
[dir="rtl"] .drawer--left .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__title { margin: 0; font-size: 1.5rem; }
.drawer__logo { height: 40px; width: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); background: #fff; display: grid; gap: 10px; }
.drawer__foot .muted { margin: 0; }
body.no-scroll { overflow: hidden; }

.mobile-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.mobile-nav a, .mobile-nav summary { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; }
.mobile-nav summary { list-style: none; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav__sub { padding-inline-start: 36px !important; font-size: .98rem !important; color: var(--muted) !important; background: var(--violet-50); }
.mini-trust { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.mini-trust li { display: flex; align-items: center; gap: 8px; }

.minicart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.minicart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.minicart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--beige); }
.minicart-item__name { font-weight: 500; color: var(--ink); line-height: 1.3; display: block; margin-bottom: 4px; }
.minicart-item__variant { display: block; font-size: .8rem; color: var(--muted); margin: -2px 0 4px; }
.minicart-item__offer { display: block; margin-top: 4px; font-size: .78rem; color: var(--magenta-500); font-weight: 500; }
.minicart-item__offer.is-applied { color: var(--success); }
.minicart-item__meta { font-size: .88rem; color: var(--muted); }
.minicart-item__remove { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 50%; }
.minicart-item__remove:hover { color: var(--danger); background: var(--danger-bg); }
.minicart-row { display: flex; justify-content: space-between; font-size: 1.05rem; }
.minicart-free { margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--champagne); color: var(--plum-900); font-size: .88rem; text-align: center; }

/* ----- Sections ------------------------------------------------------ */
.section { padding-block: 56px; }
.section--tight { padding-block: 36px; }
.section--beige { background: var(--beige); }
.section--white { background: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta-500); margin-bottom: 10px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold-500); }

/* ----- Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 10%, var(--magenta-100), transparent 60%), radial-gradient(900px 500px at 0% 100%, var(--violet-100), transparent 60%), var(--cream); }
.hero__inner { display: grid; gap: 32px; padding-block: 40px 56px; align-items: center; }
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; }
.hero__title em { font-style: italic; color: var(--magenta-500); font-weight: 500; }
[dir="rtl"] .hero__title em { font-style: normal; }
.hero__subtitle { font-size: 1.1rem; color: var(--muted); max-width: 32em; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 200px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--gold-500); }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero__arch {
  position: relative; width: min(72%, 300px); aspect-ratio: 2 / 3;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  --ring: 9px;
  background: conic-gradient(from var(--hero-angle), var(--violet-700), var(--magenta-500), var(--gold-300), var(--violet-600), var(--violet-700));
  box-shadow: 0 24px 60px -18px rgba(75, 29, 122, .45), 0 0 0 1px rgba(255, 255, 255, .6);
  overflow: hidden; display: grid; place-items: center; isolation: isolate;
  animation: hero-ring 8s linear infinite;
}
.hero__video {
  position: absolute; inset: var(--ring); width: calc(100% - 2 * var(--ring)); height: calc(100% - 2 * var(--ring));
  object-fit: cover; z-index: 1;
  border-radius: 999px 999px calc(var(--radius-lg) - var(--ring)) calc(var(--radius-lg) - var(--ring));
}
@property --hero-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hero-ring { to { --hero-angle: 360deg; } }
.hero__mark { position: relative; width: 62%; filter: drop-shadow(0 12px 30px rgba(75, 29, 122, .12)); animation: float 7s ease-in-out infinite; }
.hero__product { position: absolute; width: 38%; bottom: 6%; inset-inline-end: -4%; filter: drop-shadow(0 16px 26px rgba(42, 18, 64, .22)); animation: float 7s ease-in-out -3s infinite; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 500; }
.hero__chip .icon { color: var(--magenta-500); }
.hero__chip--top { top: 10%; inset-inline-start: 0; }
.hero__chip--bottom { bottom: 14%; inset-inline-start: -2%; }

/* Mobile uniquement : titre, puis vidéo, puis texte et boutons */
@media (max-width: 767.98px) {
  .hero__inner { gap: 0; padding-top: 56px; }
  .hero__content { display: contents; }
  .hero__content .eyebrow { order: 1; justify-self: center; }
  .hero__title { order: 2; text-align: center; }
  .hero__visual { order: 3; margin-block: 16px 34px; }
  .hero__subtitle { order: 4; margin-bottom: 22px; text-align: center; justify-self: center; }
  .hero__ctas { order: 5; }
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ----- Catégories ---------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1; padding: 16px; border-radius: var(--radius); overflow: hidden;
  background: var(--beige); color: var(--plum-900); isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(251, 248, 244, .92)); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--violet-700); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.cat-card__count { font-size: .82rem; color: var(--muted); }

/* ----- Cartes produits ----------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--beige); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.product-card__soldout { position: absolute; inset: auto 10px 10px; padding: 6px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .9); text-align: center; font-size: .8rem; font-weight: 500; color: var(--muted); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 4px; }
.product-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.product-card__title { font-family: var(--font-body); font-size: .98rem; font-weight: 500; line-height: 1.35; margin: 0; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--violet-700); }
.product-card__rating { display: flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.product-card__actions { display: grid; gap: 6px; margin-top: auto; padding-top: 10px; }
.product-card__actions .btn--sm { min-height: 40px; padding-inline: .6em; font-size: .85rem; }
.product-card__actions .btn span { overflow: hidden; text-overflow: ellipsis; }

.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price { font-weight: 600; color: var(--violet-700); font-size: 1.05rem; white-space: nowrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .88rem; white-space: nowrap; }

.stars { display: inline-flex; gap: 1px; }
.star { width: 14px; height: 14px; fill: var(--line); }
.star--full { fill: var(--gold-500); }
.star--half { fill: var(--gold-300); }
.stars--lg .star { width: 20px; height: 20px; }

/* ----- Pourquoi nous ------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.why-card { padding: 22px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--violet-50); color: var(--violet-700); }
.why-card__icon .icon { width: 26px; height: 26px; }
.why-card h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.why-card p { margin: 0; font-size: .86rem; color: var(--muted); }

/* ----- Bannière promo ------------------------------------------------ */
.promo-banner { position: relative; display: grid; gap: 24px; padding: 40px 24px; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-brand); color: #fff; isolation: isolate; }
.promo-banner::before { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -120px; top: -160px; background: radial-gradient(circle, rgba(233, 196, 106, .45), transparent 65%); }
.promo-banner h2 { color: #fff; }
.promo-banner p { opacity: .88; max-width: 34em; }
.promo-banner .eyebrow { color: var(--champagne); }
.promo-banner__visual { display: flex; justify-content: center; gap: 4%; }
.promo-banner__visual img { width: 42%; max-width: 200px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.promo-banner__visual img:nth-child(2) { transform: translateY(18px); }

/* ----- Témoignages --------------------------------------------------- */
.testimonials { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.testimonials::-webkit-scrollbar { display: none; }
.testimonial { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; color: var(--plum-900); }
[dir="rtl"] .testimonial blockquote { font-size: 1.05rem; }
.testimonial footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.testimonial__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--champagne); color: var(--plum-900); font-weight: 600; }
.testimonial__product { display: block; font-size: .8rem; color: var(--muted); }

/* ----- FAQ ----------------------------------------------------------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 1.5px solid var(--violet-700); border-bottom: 1.5px solid var(--violet-700); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary { color: var(--violet-700); }
.faq-item__body { padding: 0 20px 18px; color: var(--muted); }

/* ----- Newsletter ---------------------------------------------------- */
.newsletter { padding: 40px 24px; border-radius: var(--radius-lg); background: var(--plum-900); color: #fff; text-align: center; background-image: radial-gradient(600px 240px at 50% 0%, rgba(181, 54, 143, .35), transparent 70%); }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .78); max-width: 32em; margin-inline: auto; }
.newsletter__form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 20px auto 0; }
.newsletter__form input { height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; outline: none; }
.newsletter__form input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter__form input:focus { border-color: var(--gold-300); }
.newsletter__msg { margin-top: 12px; font-size: .92rem; color: var(--champagne); }

/* ----- Bandeau réassurance & footer ---------------------------------- */
.trust-strip { background: #fff; border-top: 1px solid var(--line); }
.trust-strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-block: 28px; }
.trust-item { display: flex; align-items: flex-start; gap: 10px; }
.trust-item > .icon { width: 28px; height: 28px; color: var(--violet-700); }
.trust-item strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.trust-item span { font-size: .8rem; color: var(--muted); }

.site-footer { background: var(--plum-900); color: rgba(255, 255, 255, .78); font-size: .94rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: var(--gold-300); }
.site-footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; }
.site-footer__logo { width: 190px; padding: 10px 14px; background: var(--cream); border-radius: var(--radius); margin-bottom: 16px; }
.site-footer__title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 14px; }
.site-footer__links, .site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { color: var(--gold-300); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.socials a:hover { border-color: var(--gold-300); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 90px; }
.site-footer__pay { display: inline-flex; align-items: center; gap: 6px; color: var(--champagne); }

/* Mobile / tablette : pied de page centré (une seule colonne) */
@media (max-width: 767.98px) {
  .site-footer__grid { text-align: center; justify-items: center; }
  .site-footer__logo { margin-inline: auto; }
  .site-footer__brand p { max-width: 34ch; margin-inline: auto; }
  .site-footer .socials { justify-content: center; }
  .site-footer__links, .site-footer__contact { justify-items: center; }
  .site-footer__contact li { justify-content: center; }
  .site-footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__pay { display: none; }
  .site-footer__col--shop { display: none; }
}

/* ----- Flottants : WhatsApp, panier mobile, toasts ------------------- */
.whatsapp-float {
  position: fixed; z-index: 60; bottom: 18px; inset-inline-end: 16px;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .25s var(--ease), bottom .3s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.sticky-cart {
  position: fixed; z-index: 60; bottom: 18px; inset-inline-start: 16px;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px;
  border-radius: 999px; background: var(--violet-700); color: #fff; font-weight: 500; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease), opacity .3s;
}
.sticky-cart:hover { color: #fff; }
.sticky-cart.is-hidden { transform: translateY(120px); opacity: 0; pointer-events: none; }
.sticky-cart__count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--gold-300); color: var(--plum-900); font-size: .8rem; font-weight: 600; }
body.has-buybar .sticky-cart, .page-cart .sticky-cart, .page-checkout .sticky-cart { display: none; }
body.has-buybar .whatsapp-float { bottom: 92px; }

.toast-region { position: fixed; z-index: 120; top: 76px; inset-inline: 12px; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(100%, 420px);
  padding: 12px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: toastIn .35s var(--ease);
}
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.toast img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--beige); }
.toast__check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--success-bg); color: var(--success); flex-shrink: 0; }
.toast__text { flex: 1; font-size: .92rem; line-height: 1.35; }
.toast__text strong { display: block; }
.toast a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.toast--error .toast__check { background: var(--danger-bg); color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ----- En-tête de page & fil d'Ariane -------------------------------- */
.page-hero { padding-block: 32px 28px; background: linear-gradient(180deg, var(--violet-50), var(--cream)); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 6px; }
.page-hero p { color: var(--muted); margin: 0 auto; max-width: 40em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; list-style: none; font-size: .84rem; color: var(--muted); }
.page-hero .breadcrumb { justify-content: center; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--violet-700); }

/* ----- Boutique : barre d'outils ------------------------------------- */
.shop-layout { display: grid; gap: 20px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .9rem; white-space: nowrap; transition: all .2s; }
.chip:hover { border-color: var(--violet-600); color: var(--violet-700); }
.chip.is-active { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.shop-toolbar .muted { margin: 0; font-size: .92rem; }
.select-inline { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.select-inline select { height: 40px; padding: 0 34px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.empty-state { padding: 60px 20px; text-align: center; border-radius: var(--radius-lg); background: #fff; border: 1px dashed var(--line); }
.empty-state .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--violet-600); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pagination__item { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pagination__item.is-active { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.pagination__gap { align-self: center; color: var(--muted); }

/* ----- Fiche produit ------------------------------------------------- */
.product-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 20px 48px; }
.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--beige); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .product-card__badges { top: 14px; inset-inline-start: 14px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--beige); opacity: .7; transition: all .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--violet-600); opacity: 1; }

.product-info__cat { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta-500); }
.product-info h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 6px 0 10px; }
.product-info__rating { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.product-info__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.product-info__price .price { font-size: 1.9rem; }
.product-info__price .price-old { font-size: 1.1rem; }
.save-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--magenta-100); color: var(--magenta-500); font-size: .85rem; font-weight: 600; }
.product-info__short { color: var(--muted); font-size: 1.04rem; margin: 16px 0; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; }
.stock-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.stock-line--low { color: var(--warning); }
.stock-line--low::before { background: var(--gold-500); box-shadow: 0 0 0 4px var(--warning-bg); }
.stock-line--out { color: var(--danger); }
.stock-line--out::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.buy-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 20px 0; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.buy-box__row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-box__row .btn { flex: 1 1 150px; }
/* Commande express : formulaire ouvert sous « Commander maintenant » */
.quick-order { margin: -8px 0 20px; padding: 18px; border-radius: var(--radius); background: #fff; border: 2px solid var(--violet-600); box-shadow: 0 12px 30px -18px rgba(75, 29, 122, .45); scroll-margin-top: calc(var(--header-h) + 80px); animation: qo-in .25s ease-out; }
.quick-order[hidden] { display: none; }
.quick-order__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--violet-700); }
.quick-order .form-grid { gap: 12px; }
.quick-order__summary { margin: 16px 0 14px; padding: 4px 14px; border-radius: var(--radius-sm); background: var(--violet-50); }
.quick-order__summary .summary__row { font-size: .94rem; }
.quick-order__summary .summary__row--total { font-size: 1.05rem; }
@keyframes qo-in { from { opacity: 0; transform: translateY(-6px); } }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; color: var(--violet-700); border-radius: 999px; }
.qty button:hover { background: var(--violet-50); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 38px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 32px; }
.variant-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.variant-picker legend { padding: 0; margin-bottom: 10px; font-size: .92rem; color: var(--muted); }
.variant-picker legend strong { color: var(--ink); font-weight: 600; }
.variant-picker__options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 88px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.variant-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant-option:hover { border-color: var(--violet-600); }
.variant-option:has(input:checked) { border-color: var(--violet-700); background: var(--violet-50); box-shadow: 0 0 0 3px var(--violet-100); }
.variant-option:has(input:focus-visible) { outline: 2px solid var(--magenta-500); outline-offset: 2px; }
.variant-option__name { font-weight: 600; font-size: .95rem; }
.variant-option__price { font-size: .8rem; color: var(--muted); }
.variant-option.is-out { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.offer-box { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(120deg, #fdf6e3, var(--champagne)); border: 1px solid #ecd9a6; color: var(--plum-900); }
.offer-box__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--magenta-500); box-shadow: 0 4px 12px rgba(201, 154, 60, .25); }
.offer-box strong { display: block; font-size: .98rem; }
.offer-box span { font-size: .85rem; color: #6b5a3a; }
.line-offer { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 500; color: var(--magenta-500); }
.line-offer.is-applied { color: var(--success); }
.line-variant { display: block; font-size: .85rem; color: var(--muted); }
.summary__row--discount strong { color: var(--success); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .icon { color: var(--violet-600); }

.tabs { margin-top: 8px; }
.tabs__nav { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs__btn { flex-shrink: 0; padding: 14px 18px; border: 0; background: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__btn.is-active { color: var(--violet-700); border-color: var(--magenta-500); }
.tabs__panel { padding: 24px 0; }
.prose { max-width: 70ch; }
.prose p { color: #4a4250; }
.prose h2 { font-size: 1.7rem; margin-top: 1.5em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; color: #4a4250; }
.prose li { margin-bottom: .3em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.2em; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-inline-start: 3px solid var(--magenta-500); background: var(--violet-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--plum-900); }
.prose code { padding: 1px 6px; border-radius: 5px; background: var(--beige); font-size: .9em; color: var(--magenta-500); }
.prose pre { padding: 14px; border-radius: var(--radius-sm); background: var(--plum-900); color: var(--champagne); overflow-x: auto; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.features-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features-list li { display: flex; gap: 10px; align-items: flex-start; }
.features-list .icon { color: var(--success); margin-top: 2px; }

.reviews-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.reviews-summary__score { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--plum-900); line-height: 1; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.review__head strong { font-weight: 600; }
.review__head time { font-size: .82rem; color: var(--muted); }
.review p { margin: 0; color: #4a4250; }
.review-form { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--violet-50); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; padding: 2px; }
.rating-input label svg { width: 28px; height: 28px; fill: var(--line); transition: fill .15s; }
.rating-input input:checked ~ label svg, .rating-input label:hover svg, .rating-input label:hover ~ label svg { fill: var(--gold-500); }
.rating-input input:focus-visible + label { outline: 2px solid var(--magenta-500); border-radius: 4px; }

.buybar {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(42, 18, 64, .08);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__info { min-width: 0; flex: 1; }
.buybar__name { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex-shrink: 0; }

/* ----- Formulaires --------------------------------------------------- */
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field__label { font-size: .9rem; font-weight: 500; }
.field label .req { color: var(--magenta-500); }
.field label .opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-size: 16px; /* évite le zoom iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b1d7a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-600); box-shadow: 0 0 0 4px var(--violet-50); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: .84rem; color: var(--danger); }
.field__hint { font-size: .82rem; color: var(--muted); }
/* Champ anti-robot invisible, sans décalage hors écran (qui élargissait la page en arabe / RTL) */
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ----- Panier -------------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; gap: 24px; padding-block: 28px 56px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); background: var(--beige); }
.cart-line__name { font-weight: 500; color: var(--ink); line-height: 1.3; }
.cart-line__unit { font-size: .88rem; color: var(--muted); }
.cart-line__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cart-line__total { font-weight: 600; color: var(--violet-700); }
.cart-line__remove { border: 0; background: none; color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; padding: 6px; }
.cart-line__remove:hover { color: var(--danger); }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 6px; }

.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.summary h2 { font-size: 1.6rem; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: .98rem; }
.summary__row + .summary__row { border-top: 1px dashed var(--line); }
.summary__row--total { border-top: 1.5px solid var(--ink) !important; margin-top: 4px; padding-top: 14px; font-size: 1.2rem; font-weight: 600; }
.summary__row--total strong { color: var(--violet-700); font-size: 1.35rem; }
.summary .btn { margin-top: 14px; }
.summary__items { display: grid; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.summary__item-media { position: relative; }
.summary__item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); background: var(--beige); }
.summary__item-qty { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--violet-700); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.summary__trust { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.summary__trust li { display: flex; gap: 8px; align-items: center; }
.summary__trust .icon { color: var(--violet-600); }
.estimate { margin-top: 10px; }
.estimate select { min-height: 42px; padding: 8px 12px; font-size: .9rem; }

/* ----- Checkout ------------------------------------------------------ */
.checkout-card { padding: 22px 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.checkout-card + .checkout-card { margin-top: 16px; }
.checkout-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; margin-bottom: 18px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet-700); color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 600; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--violet-600); border-radius: var(--radius); background: var(--violet-50); }
.pay-option .icon { width: 30px; height: 30px; color: var(--violet-700); }
.pay-option strong { display: block; }
.pay-option p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.checkout-submit { margin-top: 18px; }
.checkout-submit .btn { width: 100%; min-height: 58px; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; }
.secure-note { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; font-size: .84rem; color: var(--muted); text-align: center; }

/* ----- Confirmation & suivi ------------------------------------------ */
.success-card { max-width: 640px; margin: 32px auto 56px; padding: 32px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.success-card__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-bg); color: var(--success); animation: pop .5s var(--ease); }
.success-card__icon .icon { width: 38px; height: 38px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.details-list { display: grid; gap: 0; margin: 24px 0; text-align: start; border-radius: var(--radius); background: var(--cream); padding: 6px 18px; }
.details-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.details-list div:last-child { border: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; font-weight: 500; text-align: end; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: #fff; }

.timeline { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
[dir="rtl"] .timeline li { padding: 0 28px 18px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet-600); box-shadow: 0 0 0 4px var(--violet-100); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 10px; top: 20px; bottom: 0; width: 2px; background: var(--violet-100); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: .82rem; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--new { background: #eef0ff; color: #3d4fc4; }
.status--confirmed { background: var(--violet-100); color: var(--violet-700); }
.status--preparing { background: var(--warning-bg); color: var(--warning); }
.status--shipped { background: #e6f3fb; color: #1f6f9b; }
.status--delivered { background: var(--success-bg); color: var(--success); }
.status--cancelled { background: var(--danger-bg); color: var(--danger); }
.status--no-answer { background: #f0eef1; color: #6e6577; }

/* ----- Pages de contenu ---------------------------------------------- */
.content-card { padding: 28px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
/* Carte de texte (CGV, confidentialité, pages CMS) : pleine largeur du conteneur, centrée */
.content-card.prose { max-width: none; margin-inline: auto; line-height: 1.75; box-shadow: 0 10px 30px -18px rgba(46, 22, 70, .18); }
.content-card.prose > :first-child { margin-top: 0; }
.content-card.prose > :last-child { margin-bottom: 0; }
.content-card.prose h2 { margin: 1.6em 0 .5em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: 1.55rem; line-height: 1.25; }
.content-card.prose > h2:first-child, .content-card.prose > p:first-child + h2 { padding-top: 0; border-top: 0; }
.content-card.prose p, .content-card.prose ul, .content-card.prose ol { margin: 0 0 .9em; }
.content-card.prose ul li::marker { color: var(--magenta-500); }
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-visual { border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff, var(--violet-50) 60%, var(--magenta-100)); padding: 40px; display: grid; place-items: center; }
.about-visual img { max-width: 360px; width: 100%; }
/* Texte « À propos » : intertitres, sous-titres et citations */
.about-grid .prose { max-width: none; line-height: 1.8; }
.about-grid .prose h2 { margin-top: 1.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.about-grid .prose .eyebrow + h2 { margin-top: .4em; padding-top: 0; border-top: 0; line-height: 1.25; }
.about-grid .prose h3 { margin: 1.1em 0 .3em; color: var(--magenta-500); font-size: 1.2rem; }
.about-grid .prose ul li::marker { color: var(--magenta-500); }
.about-grid .prose > .btn { margin-top: 1.4em; }
.values-grid { display: grid; gap: 14px; }
.contact-grid { display: grid; gap: 20px; padding-block: 32px 56px; }
.contact-info { display: grid; gap: 12px; }
.contact-info__item { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); }
.contact-info__item .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--violet-50); color: var(--violet-700); }
.contact-info__item small { display: block; color: var(--muted); }

/* Mobile : coordonnées en tuiles compactes (2 colonnes), formulaire plus visible */
@media (max-width: 767.98px) {
  .contact-grid { gap: 24px; padding-block: 20px 48px; }
  .contact-info { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-info__item { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 10px; text-align: center; font-size: .92rem; line-height: 1.35; min-width: 0; }
  .contact-info__item > span { min-width: 0; overflow-wrap: anywhere; }
  .contact-info__item small { font-size: .78rem; margin-bottom: 2px; }
  .contact-info__item .icon { width: 38px; height: 38px; padding: 9px; flex: none; }
  /* Nombre impair de tuiles : la dernière occupe toute la largeur */
  .contact-info__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .contact-grid form .btn { width: 100%; min-height: 50px; }
}

.error-page { padding: 80px 0; text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--violet-100); font-weight: 700; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .brand__logo { height: 42px; }
  .product-grid { gap: 8px; }
  .product-card__body { padding: 10px; }
  .product-card__actions .btn span { display: none; }
}

@media (min-width: 480px) {
  .newsletter__form { flex-direction: row; }
  .newsletter__form input { flex: 1; }
  .testimonials { grid-auto-columns: 60%; }
}

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
  .cart-line { grid-template-columns: 100px 1fr; }
  .cart-line img { width: 100px; height: 100px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 76px; }
  .hide-mobile { display: inline-grid !important; }
  .lang-switch.hide-mobile { display: inline-block !important; }
  .brand__logo { height: 54px; }
  .section { padding-block: 80px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-card__body { padding: 16px; }
  .product-card__title { font-size: 1.04rem; }
  .product-card__actions { grid-template-columns: 1fr; }
  .trust-strip__grid { grid-template-columns: repeat(4, 1fr); }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .site-footer__bottom-inner { padding-bottom: 18px; }
  .promo-banner { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 56px; }
  .testimonials { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .toast-region { top: 90px; inset-inline: auto 24px; justify-items: end; }
  [dir="rtl"] .toast-region { inset-inline: auto 24px; }
  .sticky-cart { display: none; }
  .whatsapp-float { bottom: 24px; inset-inline-end: 24px; width: 60px; height: 60px; }
  .buybar { display: none; }
  body.has-buybar .whatsapp-float { bottom: 24px; }
  .checkout-card { padding: 28px; }
  .success-card { padding: 48px; }
  .content-card { padding: 40px; }
}

@media (min-width: 1024px) {
  .site-header__burger { display: none; }
  .brand { margin-inline-end: 0; }
  .main-nav { display: flex; align-items: center; gap: 20px; margin-inline: auto; padding-inline: 16px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; padding-block: 64px 88px; gap: 48px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__visual { min-height: 460px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .cat-card { aspect-ratio: 3 / 4; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card__actions { grid-template-columns: 1fr 1fr; }
  .product-card__actions .btn span { font-size: .82rem; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .product-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding-top: 32px; }
  .gallery--multi { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
  .gallery__thumbs { flex-direction: column; order: -1; }
  .gallery__thumb { flex: 0 0 84px; width: 84px; height: 84px; }
  .product-info { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .cart-layout { grid-template-columns: 1fr 380px; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr 400px; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
  .about-visual { position: sticky; top: calc(var(--header-h) + 24px); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 32px; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
}

@media (min-width: 1200px) {
  .main-nav { gap: 28px; }
  .site-header__cta { display: inline-flex; margin-inline-start: 10px; }
}

@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .trust-strip, .whatsapp-float, .sticky-cart, .announce { display: none !important; }
}
