/* ==========================================================================
   BizFlow — Boutique (refonte premium)
   Feuille unique de la boutique publique. Les couleurs de marque viennent du
   thème actif du client (includes/theme_engine.php : --primary-green,
   --dark-green, --light-green...) ; tout le reste (neutres, typographie,
   espacements) est défini ici. Mobile d'abord, propriétés logiques (RTL).
   ========================================================================== */

/* ---------- 1. Jetons ---------- */
:root {
    --brand: var(--primary-green, #0d9488);
    --brand-strong: var(--dark-green, #0f766e);
    --brand-soft: var(--light-green, #ccfbf1);
    --brand-tint: #f6faf9;
    --on-brand: #ffffff;

    --canvas: #faf8f5;
    --surface: #ffffff;
    --surface-2: #f3f0eb;
    --ink: #1c1917;
    --ink-2: #44403c;
    --muted: #6f6962;
    --line: #e8e3dc;
    --line-strong: #d6cfc5;

    --sale: #b42318;
    --success: #157f3c;
    --warning: #a15c07;
    --wa: #128c4a;
    --wa-strong: #0e7a40;

    --font-body: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Fraunces', 'Cairo', Georgia, 'Times New Roman', serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --pill: 999px;

    --shadow-1: 0 1px 2px rgb(28 25 23 / 0.05), 0 2px 10px rgb(28 25 23 / 0.04);
    --shadow-2: 0 18px 40px -18px rgb(28 25 23 / 0.28);
    --shadow-3: 0 30px 70px -30px rgb(28 25 23 / 0.38);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --gutter: 16px;
    --header-h: 64px;
    --container: 1280px;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        /* Fond de bouton garanti lisible avec un texte blanc, quel que soit le thème */
        --brand-strong: color-mix(in srgb, var(--dark-green, #0f766e) 86%, #000);
        --brand-soft: color-mix(in srgb, var(--primary-green, #0d9488) 11%, var(--canvas));
        --brand-tint: color-mix(in srgb, var(--primary-green, #0d9488) 5%, var(--surface));
    }
}

:root[data-theme="dark"] {
    --canvas: #12110f;
    --surface: #1b1917;
    --surface-2: #24211e;
    --ink: #f4f1ec;
    --ink-2: #d7d1c9;
    --muted: #a59e95;
    --line: #2f2b27;
    --line-strong: #3f3a35;
    --sale: #f97066;
    --success: #4ade80;
    --warning: #fbbf24;
    --brand-tint: #1f1d1a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-2: 0 18px 40px -18px rgb(0 0 0 / 0.7);
    --shadow-3: 0 30px 70px -30px rgb(0 0 0 / 0.8);
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root[data-theme="dark"] {
        --brand-soft: color-mix(in srgb, var(--primary-green, #0d9488) 18%, var(--canvas));
        --brand-tint: color-mix(in srgb, var(--primary-green, #0d9488) 7%, var(--surface));
    }
}

[dir="rtl"] {
    --font-body: 'Cairo', 'Inter', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-display: 'Cairo', 'Fraunces', Georgia, serif;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- 2. 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(--canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--ink); }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
    background: var(--ink); color: var(--canvas); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.flip-rtl { display: inline-block; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }
[dir="rtl"] .display { letter-spacing: 0; font-weight: 700; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brand-strong);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
:root[data-theme="dark"] .eyebrow { color: var(--brand-soft); filter: brightness(1.8); }

/* ---------- 3. Boutons ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid var(--btn-bd); border-radius: var(--pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn i { font-size: 0.95em; }
.btn--primary { --btn-bg: var(--brand-strong); --btn-fg: var(--on-brand); --btn-bd: var(--brand-strong); }
.btn--primary:hover { box-shadow: 0 12px 26px -12px var(--brand); filter: brightness(1.06); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--canvas); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bd: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: var(--surface-2); transform: none; }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-strong); --btn-bd: var(--wa-strong); }
.btn--danger-link { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--muted); min-height: 40px; padding-inline: 8px; font-weight: 500; }
.btn--danger-link:hover { --btn-fg: var(--sale); transform: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
    color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
    transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 12px; }

/* ---------- 4. Bandeau d'annonce + en-tête ---------- */
.announce {
    background: var(--ink); color: var(--canvas);
    font-size: 13px; letter-spacing: 0.01em;
}
:root[data-theme="dark"] .announce { background: var(--surface-2); color: var(--ink-2); }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 38px; overflow: hidden; }
.announce__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.announce__item i { opacity: 0.75; font-size: 12px; }
.announce__item + .announce__item { display: none; }
@media (min-width: 760px) { .announce__item + .announce__item { display: inline-flex; } }

.site-header {
    position: sticky; top: 0; z-index: 900;
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    background: var(--canvas);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
    .site-header { background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgb(28 25 23 / 0.35); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-inline-end: auto; }
.brand__logo {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line); overflow: hidden;
    display: grid; place-items: center;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.1;
    letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tagline {
    font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 46vw;
}
@media (max-width: 479px) {
    .site-header__inner { gap: 4px; }
    .brand { gap: 8px; }
    .brand__logo { width: 38px; height: 38px; }
    .brand__name { font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .brand__tagline { display: none; }
    .trust__icon { width: 34px; height: 34px; font-size: 14px; }
    .trust__item { gap: 10px; padding: 16px 10px; }
}
@media (min-width: 1024px) {
    .brand__logo { width: 52px; height: 52px; }
    .brand__name { font-size: 22px; }
    .brand__tagline { max-width: 260px; }
}

.main-nav { display: none; }
@media (min-width: 1024px) {
    .main-nav { display: flex; align-items: center; gap: 4px; }
}
.main-nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 14px; border: 0; background: none; border-radius: var(--pill);
    font-size: 15px; font-weight: 500; color: var(--ink-2);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav__link:hover { color: var(--ink); background: var(--surface-2); }
.main-nav__link.is-active { color: var(--ink); }
.main-nav__link.is-active::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand);
}
.main-nav__link .fa-chevron-down { font-size: 10px; transition: transform .25s var(--ease); }

.nav-dropdown { position: relative; }
.nav-dropdown__menu {
    position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 240px; max-height: 70vh; overflow: auto;
    padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-dropdown.is-open .nav-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown.is-open .fa-chevron-down { transform: rotate(180deg); }
.nav-dropdown__item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px; color: var(--ink-2);
}
.nav-dropdown__item:hover { background: var(--surface-2); color: var(--ink); }
.nav-dropdown__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
    position: relative; display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink);
    font-size: 17px; transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.cart-count {
    position: absolute; top: 4px; inset-inline-end: 2px;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--pill);
    background: var(--brand-strong); color: var(--on-brand);
    font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
    box-shadow: 0 0 0 2px var(--canvas);
}
.cart-count[hidden] { display: none; }
.cart-count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.lang-switch { display: none; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; margin-inline: 4px; }
.lang-switch a { padding: 4px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 600; color: var(--muted); }
.lang-switch a.is-active { background: var(--ink); color: var(--canvas); }
.desktop-only { display: none !important; }
@media (min-width: 1024px) {
    .lang-switch { display: inline-flex; }
    .desktop-only { display: inline-grid !important; }
    .mobile-only { display: none !important; }
}

/* Recherche déroulante */
.search-panel { border-top: 1px solid var(--line); background: var(--canvas); }
.search-panel[hidden] { display: none; }
.search-panel__form { display: flex; gap: 10px; padding-block: 14px; }
.search-panel__form .input { flex: 1; }

/* Menu mobile (tiroir) */
.drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(12 10 9 / 0.45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 380px);
    display: flex; flex-direction: column; background: var(--canvas);
    transform: translateX(-100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-3);
}
[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 24px; }
.drawer-link {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: start;
    font-size: 17px; font-weight: 500;
}
.drawer-link.is-active { color: var(--brand-strong); }
:root[data-theme="dark"] .drawer-link.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.drawer-link .fa-chevron-down { font-size: 12px; color: var(--muted); transition: transform .25s var(--ease); }
.drawer-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.drawer-sub > div { overflow: hidden; }
.drawer-sub.is-open { grid-template-rows: 1fr; }
.drawer-sub a { display: block; padding: 11px 14px; color: var(--ink-2); font-size: 15px; border-inline-start: 1px solid var(--line); }
.drawer-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.drawer__foot { display: grid; gap: 10px; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__utils { display: flex; align-items: center; justify-content: space-between; }
.drawer__utils .lang-switch { display: inline-flex; margin: 0; }
body.is-locked { overflow: hidden; }

/* ---------- 5. Sections ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 40px; }
.section--tint { background: var(--surface-2); }
@media (min-width: 1024px) { .section { padding-block: 88px; } .section--tight { padding-block: 56px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.section-head__text { max-width: 640px; display: grid; gap: 10px; }
.section-head h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -0.02em; }
[dir="rtl"] .section-head h2 { letter-spacing: 0; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 16px; }
@media (min-width: 1024px) { .section-head { margin-bottom: 40px; } }

/* Apparition au défilement (activée seulement si JS présent) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: 20px 8px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__media {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    background: var(--media-bg, var(--brand-soft)); aspect-ratio: 1 / 1;
}
/* Entrée : la photo glisse de la droite vers la gauche, puis panoramique lent
   droite -> gauche en continu (photo) ou léger flottement (logo / détourage) */
.hero__media { animation: heroSlideIn 1.1s var(--ease) both; }
.hero__media img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.1) translateX(2.5%);
    animation: heroPan 22s ease-in-out 1.1s infinite alternate;
    will-change: transform;
}
.hero__media.is-cutout img { object-fit: contain; padding: 10%; transform: none; animation: heroFloat 6s ease-in-out 1.1s infinite; }
@keyframes heroSlideIn { from { opacity: 0; transform: translateX(64px); } to { opacity: 1; transform: none; } }
@keyframes heroPan { from { transform: scale(1.1) translateX(2.5%); } to { transform: scale(1.1) translateX(-2.5%); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__content { display: grid; gap: 18px; justify-items: start; }
.hero__content > * { animation: heroUp .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__content > :nth-child(4) { animation-delay: .24s; }
.hero__content > :nth-child(5) { animation-delay: .32s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__collage > * { animation: heroSlideIn 1s var(--ease) both; }
.hero__collage > :nth-child(2) { animation-delay: .12s; }
.hero__collage > :nth-child(3) { animation-delay: .24s; }

/* Bandeau défilant (droite -> gauche) sous le hero */
.marquee { overflow: hidden; border-top: 1px solid var(--line); background: var(--surface); padding-block: 18px; }
.marquee__track { display: flex; width: max-content; direction: ltr; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
    display: inline-flex; align-items: center; padding-right: 36px; white-space: nowrap;
    font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink); unicode-bidi: isolate;
}
.marquee__item::after { content: "✦"; margin-left: 36px; color: var(--brand); font-size: .55em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }
.hero__title {
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(36px, 7.4vw, 72px); line-height: 1.04; letter-spacing: -0.03em;
}
[dir="rtl"] .hero__title { letter-spacing: 0; font-weight: 700; line-height: 1.25; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note i { color: var(--brand); }
@media (min-width: 900px) {
    .hero { padding-block: 32px 16px; }
    .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
    .hero__media { aspect-ratio: 5 / 6; max-height: 720px; }
    .hero--text-right .hero__content { order: 2; }
}
@media (max-width: 899px) { .hero__media { order: -1; } }

/* Hero sans image configurée : composition typographique + produits réels */
.hero--plain .hero__collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero__tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--media-bg, var(--brand-soft)); aspect-ratio: 1; }
.hero__tile:first-child { grid-row: span 2; aspect-ratio: auto; }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__tile.is-cutout img { object-fit: contain; padding: 12%; }
.hero__tile:hover img { transform: scale(1.04); }
.hero--plain .hero__monogram {
    display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--brand-soft);
    font-family: var(--font-display); font-size: clamp(80px, 16vw, 180px); color: var(--brand-strong);
}

/* Rose animée (thème "rose" uniquement) */
.hero-rose { display: inline-block; width: 0.9em; height: 1em; vertical-align: -0.12em; margin-inline-start: 0.15em; overflow: visible; }
.hero-rose .rose-stem { fill: none; stroke: #15803d; stroke-width: 3; stroke-linecap: round; }
.hero-rose .rose-leaf { fill: #22c55e; }
.hero-rose .rose-outer ellipse { fill: var(--brand); opacity: 0.85; }
.hero-rose .rose-inner ellipse { fill: var(--brand-strong); }
.hero-rose .rose-bud { fill: var(--brand-strong); }
.hero-rose .rose-swirl { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 1.4; stroke-linecap: round; }
.hero-rose .rose-outer ellipse, .hero-rose .rose-inner ellipse {
    transform-box: view-box; transform-origin: 32px 30px; transform: rotate(var(--r)) scale(1);
    animation: roseBloom 4.5s ease-in-out infinite;
}
.hero-rose .rose-inner ellipse { animation-delay: .15s; }
@keyframes roseBloom { 0%, 100% { transform: rotate(var(--r)) scale(.55); } 50% { transform: rotate(var(--r)) scale(1); } }

/* ---------- 7. Bande de confiance ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust__item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 12px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--line); }
.trust__item:nth-child(3) { border-inline-start: 0; }
.trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
.trust__icon {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-strong); font-size: 16px;
}
:root[data-theme="dark"] .trust__icon { color: var(--ink); }
.trust__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.trust__desc { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (min-width: 900px) {
    .trust__grid { grid-template-columns: repeat(4, 1fr); }
    .trust__item { padding: 24px 22px; align-items: center; }
    .trust__item:nth-child(3) { border-inline-start: 1px solid var(--line); }
    .trust__item:nth-child(n+3) { border-top: 0; }
    .trust__title { font-size: 15px; }
}

/* ---------- 8. Catégories ---------- */
/* Mobile : carrousel horizontal à défilement aimanté (moins de hauteur) */
.cat-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 4px;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-grid > * { scroll-snap-align: start; }
@media (max-width: 639px) { .cat-card__arrow { display: none; } }
@media (min-width: 640px) {
    .cat-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.cat-card__media { aspect-ratio: 1; background: var(--media-bg, var(--brand-tint)); display: grid; place-items: center; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card__media.is-cutout img { object-fit: contain; padding: 14%; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__initial { font-family: var(--font-display); font-size: 56px; color: var(--brand-strong); opacity: .85; }
.cat-card__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; }
.cat-card__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat-card__count { font-size: 13px; color: var(--muted); }
.cat-card__arrow { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cat-card:hover .cat-card__arrow { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* ---------- 9. Cartes produit ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1180px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }

.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.p-card__media {
    position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--radius); background: var(--media-bg, var(--brand-tint));
}
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.p-card__media.is-cutout img { object-fit: contain; padding: 10%; }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 48px; color: var(--brand-strong); opacity: .5; }
.p-card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; }
.badge {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill);
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-1);
}
.badge--sale { background: var(--sale); color: #fff; }
:root[data-theme="dark"] .badge--sale { color: #1b1917; }
.badge--new { background: var(--ink); color: var(--canvas); }
.badge--low { background: var(--surface); color: var(--warning); }
.p-card__quick {
    position: absolute; inset-inline: 10px; bottom: 10px; z-index: 1;
    opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.p-card:hover .p-card__quick, .p-card:focus-within .p-card__quick { opacity: 1; transform: none; }
@media (hover: none) { .p-card__quick { display: none; } }
.p-card__body { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; flex: 1; }
.p-card__cat { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .p-card__cat { text-transform: none; letter-spacing: 0; }
.p-card__name { font-size: 15px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.p-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.p-card__add {
    position: relative; z-index: 2; flex: none; display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.p-card__add:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); transform: scale(1.05); }
.p-card__add[disabled] { opacity: .4; pointer-events: none; }
.p-card__add.is-done { background: var(--success); border-color: var(--success); color: #fff; }
@media (min-width: 760px) { .p-card__name { font-size: 16px; } }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__now { font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.price__now.is-sale { color: var(--sale); }
.price__old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }

/* ---------- 10. Bande d'appel (WhatsApp) ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--canvas); padding: 36px 24px; }
:root[data-theme="dark"] .cta-band { background: var(--surface-2); color: var(--ink); }
.cta-band::after {
    content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, var(--brand) 0%, transparent 68%); opacity: .55; pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: inherit; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: inherit; opacity: .78; max-width: 560px; margin-top: 8px; }
@media (min-width: 900px) { .cta-band { padding: 56px; } .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- 11. En-tête de page + fil d'Ariane ---------- */
.page-head { padding-block: 28px 8px; }
.page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; }
[dir="rtl"] .page-head h1 { letter-spacing: 0; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
@media (min-width: 1024px) { .page-head { padding-block: 48px 16px; } }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 12. Champs de formulaire ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 12px 16px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
    font-size: 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
    appearance: none; -webkit-appearance: none; padding-inline-end: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2378716c' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
[dir="rtl"] .select { background-position: left 16px center; }
.input-icon { position: relative; }
.input-icon i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.input-icon .input { padding-inline-start: 42px; }

/* ---------- 13. Boutique (liste) ---------- */
.shop-toolbar { display: grid; gap: 14px; margin-block: 8px 28px; }
.shop-toolbar__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shop-toolbar__search { flex: 1 1 260px; }
.shop-toolbar__sort { flex: 0 1 220px; }
.shop-count { font-size: 14px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
    border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface);
    font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.filters-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filters-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-panel summary .fa-chevron-down { font-size: 12px; transition: transform .25s var(--ease); }
.filters-panel[open] summary .fa-chevron-down { transform: rotate(180deg); }
.filters-panel__body { display: grid; gap: 14px; padding: 0 18px 18px; }
.filters-panel__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filters-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 760px) {
    .filters-panel__body { grid-template-columns: 1fr 1fr auto; align-items: end; }
    .filters-panel__prices { grid-column: span 2; }
}

/* ---------- 14. États vides ---------- */
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-size: 26px; }
.empty__icon img { width: 72px; height: 72px; }
.empty h2, .empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.empty p { color: var(--muted); max-width: 440px; }

/* ---------- 15. Fiche produit ---------- */
.pdp { display: grid; gap: 28px; padding-bottom: 24px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.pdp__gallery { display: grid; gap: 12px; }
@media (min-width: 960px) { .pdp__gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.pdp__main {
    position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--media-bg, var(--brand-tint));
    cursor: zoom-in;
}
.pdp__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp__main.is-cutout img { object-fit: contain; padding: 8%; }
.pdp__main.is-zoom img { transform: scale(1.8); }
.pdp__main .p-card__badges { top: 16px; inset-inline-start: 16px; }
.pdp__info { display: grid; gap: 20px; align-content: start; }
.pdp__cat { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .pdp__cat { letter-spacing: 0; }
.pdp__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
[dir="rtl"] .pdp__title { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
.pdp__price .price__now { font-size: 26px; }
.pdp__price .price__old { font-size: 17px; }
.pdp__save { display: inline-flex; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--sale); }
.stock-note { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.stock-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.stock-note.is-low::before { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent); }
.stock-note.is-out::before { background: var(--sale); box-shadow: none; }
.pdp__excerpt { color: var(--ink-2); }
.pdp__buy { display: grid; gap: 12px; padding-block: 4px; }
.pdp__buy-row { display: flex; gap: 12px; }
.pdp__buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--ink); border-radius: var(--pill); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 44px; height: 100%; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty--sm { height: 40px; }
.qty--sm button, .qty--sm input { width: 36px; font-size: 15px; }
.reassure { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.reassure li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.reassure i { flex: none; width: 20px; margin-top: 3px; color: var(--brand); text-align: center; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-bottom: 20px; color: var(--ink-2); line-height: 1.75; }
.accordion__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Barre d'achat collante (mobile) */
.buy-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 800; display: flex; align-items: center; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgb(0 0 0 / .3);
    transform: translateY(110%); transition: transform .35s var(--ease);
}
.buy-bar.is-visible { transform: none; }
.buy-bar__price { display: grid; line-height: 1.2; min-width: 0; }
.buy-bar__name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.buy-bar .btn { flex: 1; }
@media (min-width: 960px) { .buy-bar { display: none; } }

/* ---------- 16. Panier ---------- */
.cart-layout { display: grid; gap: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 400px; gap: 48px; align-items: start; } }
.cart-list { border-top: 1px solid var(--line); }
.cart-line {
    display: grid; grid-template-columns: 88px 1fr; gap: 14px 16px; padding: 18px 0; border-bottom: 1px solid var(--line);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.cart-line.is-removing { opacity: 0; transform: translateX(-16px); }
.cart-line__media { width: 88px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--media-bg, var(--brand-tint)); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__media.is-cutout img { object-fit: contain; padding: 8%; }
.cart-line__main { display: grid; gap: 4px; align-content: start; min-width: 0; }
.cart-line__name { font-weight: 600; line-height: 1.35; }
.cart-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line__unit { font-size: 13px; color: var(--muted); }
.cart-line__controls { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line__subtotal { font-weight: 700; white-space: nowrap; }
@media (min-width: 640px) {
    .cart-line { grid-template-columns: 110px 1fr auto; align-items: center; }
    .cart-line__media { width: 110px; }
    .cart-line__controls { grid-column: auto; justify-content: flex-end; gap: 18px; }
}
.summary { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; } }
.summary h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); }
.summary__row strong { color: var(--ink); font-weight: 600; }
.summary__total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; color: var(--ink); }
.summary__total strong { font-size: 22px; font-weight: 700; }
.summary__note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.summary__note i { margin-top: 3px; color: var(--brand); }
.free-ship { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-sm); background: var(--brand-tint); font-size: 14px; }
.free-ship.is-done { color: var(--success); font-weight: 600; }
.progress { height: 6px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; border-radius: inherit; background: var(--brand); transition: width .5s var(--ease); }

/* ---------- 17. Fenêtres (commande) ---------- */
.modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgb(12 10 9 / .5); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.modal.active { opacity: 1; visibility: visible; }
.modal__dialog {
    width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--canvas);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-3);
    transform: translateY(40px); transition: transform .35s var(--ease);
}
.modal.active .modal__dialog { transform: none; }
@media (min-width: 720px) { .modal { align-items: center; padding: 24px; } .modal__dialog { max-width: 640px; border-radius: var(--radius-lg); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.modal__body { overflow-y: auto; padding: 20px 24px; display: grid; gap: 16px; }
.modal__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.modal__foot .btn { white-space: normal; text-align: center; line-height: 1.25; padding-inline: 18px; }
@media (min-width: 720px) { .modal__foot { display: flex; justify-content: flex-end; padding-inline: 24px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
    position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; font-weight: 500;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option i { width: 20px; text-align: center; color: var(--muted); }
.pay-option.active, .pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option.active i, .pay-option:has(input:checked) i { color: var(--ink); }
.success { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 36px 24px calc(28px + env(safe-area-inset-bottom)); }
.success__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); font-size: 32px; }
.success h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; }
.success p { color: var(--ink-2); max-width: 420px; }
.order-number { font-weight: 700; font-size: 18px; letter-spacing: .04em; padding: 8px 16px; border-radius: var(--pill); background: var(--surface-2); }
.order-number:empty { display: none; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 18. Notifications ---------- */
.toast-stack { position: fixed; z-index: 2000; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: center; pointer-events: none; }
@media (min-width: 720px) { .toast-stack { inset-inline: auto 24px; bottom: 24px; justify-items: end; } [dir="rtl"] .toast-stack { inset-inline: 24px auto; } }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 12px 14px 12px 16px;
    border-radius: var(--radius); background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-3); font-size: 14px;
    animation: toastIn .35s var(--ease);
}
:root[data-theme="dark"] .toast { background: var(--surface-2); color: var(--ink); }
.toast i { font-size: 16px; color: #4ade80; }
.toast.is-error i { color: #f97066; }
.toast a { margin-inline-start: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- 19. Pages de contenu (à propos, retours, contact) ---------- */
.prose { max-width: 720px; display: grid; gap: 28px; padding-bottom: 72px; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); line-height: 1.8; }
.prose section { padding-top: 24px; border-top: 1px solid var(--line); }
.info-card { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.info-card h2, .info-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; }
.info-card p { color: var(--ink-2); }
.info-list { display: grid; gap: 4px; }
.info-list__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list__item:last-child { border-bottom: 0; }
.info-list__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
:root[data-theme="dark"] .info-list__icon { color: var(--ink); }
.info-list__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .info-list__label { letter-spacing: 0; }
.info-list__value { font-weight: 500; word-break: break-word; }
a.info-list__value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-layout { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; } }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 20px; }
.alert ul { padding-inline-start: 18px; list-style: disc; }
.alert--success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.alert--error { background: color-mix(in srgb, var(--sale) 10%, var(--surface)); color: var(--sale); border: 1px solid color-mix(in srgb, var(--sale) 30%, transparent); }
.about-hero { display: grid; gap: 28px; align-items: center; padding-block: 16px 48px; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.about-hero__logo { justify-self: center; display: grid; place-items: center; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); padding: 14%; box-shadow: var(--shadow-2); }
.about-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stats__item { padding: 22px 8px; text-align: center; }
.stats__item + .stats__item { border-inline-start: 1px solid var(--line); }
.stats__num { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 500; color: var(--ink); }
.stats__label { font-size: 13px; color: var(--muted); }
.cards-2 { display: grid; gap: 16px; padding-block: 48px; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- 20. Pied de page ---------- */
.site-footer { margin-top: 24px; background: var(--surface-2); color: var(--ink-2); padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 360px; font-size: 15px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
[dir="rtl"] .footer-title { letter-spacing: 0; font-size: 14px; }
.footer-links { display: grid; gap: 10px; font-size: 15px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { width: 16px; margin-top: 5px; color: var(--muted); text-align: center; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease); }
.socials a:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-bottom__links a:hover { color: var(--ink); }
.footer-bottom__links button { border: 0; background: none; padding: 0; color: var(--sale); font-size: 13px; }
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }

.wa-float {
    position: fixed; z-index: 700; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--wa); color: #fff; font-size: 28px; box-shadow: 0 14px 30px -10px rgb(18 140 74 / .6);
    transition: transform .3s var(--ease), bottom .35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.has-buy-bar .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .has-buy-bar .wa-float { bottom: 24px; } .wa-float { inset-inline-end: 24px; bottom: 24px; } }

/* ---------- 21. Utilitaires ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.stack-sm { display: grid; gap: 8px; }
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } }
