/*
 * Vitrine GiselShop — direction « Atelier clair », alignée sur resources/css/tokens.css de l'ERP.
 * La couleur principale et la police viennent de la boutique (ERP › Paramètres › Image de marque),
 * injectées dans le <head> via --gs-primary / --gs-accent / --gs-font.
 */

:root {
    --gs-font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gs-primary: #2e7d46;
    --gs-accent: #2e7d46;
    --gs-primary-ink: #ffffff;
    --gs-primary-soft: color-mix(in srgb, var(--gs-primary) 10%, #fff);
    --gs-primary-hover: color-mix(in srgb, var(--gs-primary) 86%, #000);

    --gs-bg: #f6f7f5;
    --gs-surface: #ffffff;
    --gs-surface-2: #f0f2ef;
    --gs-border: #e2e5e0;
    --gs-border-strong: #cdd2cb;
    --gs-text: #1b1f1c;
    --gs-muted: #5b635d;
    --gs-danger: #b42318;
    --gs-danger-soft: #fdecea;
    --gs-warn: #9a4a06;
    --gs-warn-soft: #fdf0e1;
    --gs-info: #1d5fa8;
    --gs-info-soft: #e7eff9;
    --gs-success: #2e7d46;
    --gs-success-soft: #e6f2e9;
    --gs-promo: #c2410c;

    --gs-radius-sm: 6px;
    --gs-radius: 8px;
    --gs-radius-lg: 12px;
    --gs-radius-xl: 18px;
    --gs-shadow-sm: 0 1px 2px rgba(16, 24, 18, .06);
    --gs-shadow-md: 0 4px 16px rgba(16, 24, 18, .08);
    --gs-shadow-lg: 0 18px 48px rgba(16, 24, 18, .16);
    --gs-focus: 0 0 0 3px color-mix(in srgb, var(--gs-primary) 30%, transparent);

    --gs-container: 1240px;
    --gs-gutter: 16px;
    --gs-header-h: 64px;
    --gs-bottom-nav-h: 0px;
}

@media (min-width: 768px) {
    :root { --gs-gutter: 24px; --gs-header-h: 72px; }
}

@media (max-width: 899px) {
    :root { --gs-bottom-nav-h: 62px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--gs-text);
    background: var(--gs-bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--gs-bottom-nav-h);
}
img { max-width: 100%; display: block; }
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.2; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--gs-focus); border-radius: var(--gs-radius-sm); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
body.is-locked { overflow: hidden; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--gs-container); margin: 0 auto; padding: 0 var(--gs-gutter); }
.muted { color: var(--gs-muted); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--gs-radius);
    font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--gs-primary); color: var(--gs-primary-ink); }
.btn-primary:hover { background: var(--gs-primary-hover); }
.btn-dark { background: var(--gs-text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--gs-surface); border-color: var(--gs-border-strong); color: var(--gs-text); }
.btn-outline:hover { border-color: var(--gs-text); }
.btn-ghost { background: transparent; color: var(--gs-text); }
.btn-ghost:hover { background: var(--gs-surface-2); }
.btn-soft { background: var(--gs-primary-soft); color: var(--gs-primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--gs-primary) 16%, #fff); }
.btn-whatsapp { background: #25d366; color: #0b2e17; }
.btn-whatsapp:hover { background: #1fbe5b; }
.btn-danger-link { background: none; border: 0; color: var(--gs-danger); padding: 0; min-height: 0; font-weight: 500; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: var(--gs-radius-lg); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 999px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent; animation: gs-spin .7s linear infinite;
}
.btn-primary.is-loading::after { border-color: var(--gs-primary-ink); border-right-color: transparent; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after, .btn-soft.is-loading::after { border-color: var(--gs-text); border-right-color: transparent; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

.link { color: var(--gs-primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--gs-muted); }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: 10px 14px;
    background: var(--gs-surface); border: 1px solid var(--gs-border-strong); border-radius: var(--gs-radius);
    transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gs-primary); box-shadow: var(--gs-focus); }
.input[readonly] { background: var(--gs-surface-2); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--gs-danger); }
.field-error { font-size: 13px; color: var(--gs-danger); }
.field-error:empty { display: none; }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.input-group > button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 38px; border: 0; background: none; color: var(--gs-muted); border-radius: var(--gs-radius-sm);
    display: grid; place-items: center;
}
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--gs-primary); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--gs-radius); font-size: 14px; }
.alert .icon { margin-top: 1px; }
.alert-info { background: var(--gs-info-soft); color: var(--gs-info); }
.alert-success { background: var(--gs-success-soft); color: var(--gs-success); }
.alert-danger { background: var(--gs-danger-soft); color: var(--gs-danger); }
.alert-warn { background: var(--gs-warn-soft); color: var(--gs-warn); }

.badge {
    display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px;
    border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
    background: var(--gs-surface-2); color: var(--gs-muted);
}
.badge-promo { background: var(--gs-promo); color: #fff; }
.badge-primary { background: var(--gs-primary-soft); color: var(--gs-primary); }
.badge-success { background: var(--gs-success-soft); color: var(--gs-success); }
.badge-warn { background: var(--gs-warn-soft); color: var(--gs-warn); }
.badge-danger { background: var(--gs-danger-soft); color: var(--gs-danger); }
.badge-info { background: var(--gs-info-soft); color: var(--gs-info); }

.card { background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg); }
.card-pad { padding: 20px; }
@media (min-width: 768px) { .card-pad { padding: 24px; } }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ---------- En-tête ---------- */
.announce { background: var(--gs-text); color: #fff; font-size: 13px; }
.announce .container { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.announce a { color: #fff; opacity: .85; display: inline-flex; gap: 6px; align-items: center; }
.announce a:hover { opacity: 1; }
.announce .announce-links { display: none; gap: 20px; }
@media (min-width: 900px) { .announce .announce-links { display: flex; } }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--gs-surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--gs-border);
}
.header-main { display: flex; align-items: center; gap: 12px; height: var(--gs-header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 18px; }
.brand img { max-height: 42px; max-width: 160px; width: auto; object-fit: contain; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; flex: none;
    display: grid; place-items: center; background: var(--gs-primary); color: var(--gs-primary-ink); font-weight: 700;
}
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search { flex: 1; max-width: 560px; margin: 0 auto; display: none; }
@media (min-width: 900px) { .header-search { display: block; } }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gs-muted); pointer-events: none; }
.search-box input {
    width: 100%; height: 46px; padding: 0 16px 0 44px;
    border: 1px solid var(--gs-border); border-radius: 999px; background: var(--gs-surface-2);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; background: var(--gs-surface); border-color: var(--gs-primary); box-shadow: var(--gs-focus); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { .header-actions { margin-left: 0; } }
.header-action {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    height: 44px; min-width: 44px; padding: 0 10px; justify-content: center;
    border: 0; background: none; border-radius: 999px; font-weight: 500; font-size: 14px;
}
.header-action:hover { background: var(--gs-surface-2); }
.header-action .label { display: none; }
@media (min-width: 1100px) { .header-action .label { display: inline; } }
.header-action.only-mobile { display: inline-flex; }
@media (min-width: 900px) { .header-action.only-mobile { display: none; } }
.header-action.only-desktop { display: none; }
@media (min-width: 900px) { .header-action.only-desktop { display: inline-flex; } }
.cart-count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--gs-primary); color: var(--gs-primary-ink);
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    transform: scale(0); transition: transform .2s;
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: gs-bump .4s; }
@keyframes gs-bump { 40% { transform: scale(1.35); } }

.header-nav { display: none; border-top: 1px solid var(--gs-border); }
@media (min-width: 900px) { .header-nav { display: block; } }
.header-nav .container { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.header-nav .container::-webkit-scrollbar { display: none; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
    border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--gs-muted); white-space: nowrap;
}
.nav-link:hover { color: var(--gs-text); background: var(--gs-surface-2); }
.nav-link.active { color: var(--gs-primary); background: var(--gs-primary-soft); font-weight: 600; }
.nav-sep { width: 1px; height: 20px; background: var(--gs-border); margin: 0 6px; flex: none; }

/* Barre de navigation mobile */
.bottom-nav {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--gs-bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--gs-surface); border-top: 1px solid var(--gs-border);
}
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a, .bottom-nav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; font-size: 11px; font-weight: 500; color: var(--gs-muted);
}
.bottom-nav .active { color: var(--gs-primary); }
.bottom-nav .cart-count { top: 6px; right: calc(50% - 22px); }

/* ---------- Panneaux (panier, menu, recherche, filtres) ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 60; background: rgba(16, 20, 17, .45);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; z-index: 61; top: 0; bottom: 0; right: 0; width: min(420px, 100%);
    display: flex; flex-direction: column; background: var(--gs-surface); box-shadow: var(--gs-shadow-lg);
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
.drawer.from-left { right: auto; left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--gs-border); }
.drawer-head h2 { font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gs-border); display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer-total strong { font-size: 20px; }

.menu-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--gs-border); font-weight: 500; }
.menu-list a .icon:last-child { margin-left: auto; color: var(--gs-muted); }
.menu-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gs-muted); margin: 20px 4px 4px; }

.search-sheet {
    position: fixed; z-index: 61; left: 0; right: 0; top: 0; padding: 14px var(--gs-gutter);
    background: var(--gs-surface); box-shadow: var(--gs-shadow-lg);
    transform: translateY(-110%); transition: transform .25s; visibility: hidden;
}
.search-sheet.is-open { transform: none; visibility: visible; }
.search-sheet form { display: flex; gap: 8px; align-items: center; }

/* Lignes du panier (tiroir et page panier) */
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gs-border); }
.line:last-child { border-bottom: 0; }
.line-media { width: 72px; height: 72px; border-radius: var(--gs-radius); overflow: hidden; background: var(--gs-surface-2); display: grid; place-items: center; color: var(--gs-border-strong); }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-unit { font-size: 13px; color: var(--gs-muted); margin-top: 2px; }
.line-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.line-total { font-weight: 700; white-space: nowrap; }
@media (min-width: 640px) {
    .line.line-lg { grid-template-columns: 96px 1fr; }
    .line.line-lg .line-media { width: 96px; height: 96px; }
}

.qty { display: inline-flex; align-items: center; border: 1px solid var(--gs-border-strong); border-radius: 999px; background: var(--gs-surface); }
.qty button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; border-radius: 999px; color: var(--gs-text); }
.qty button:hover { background: var(--gs-surface-2); }
.qty input { width: 40px; height: 34px; 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-lg button { width: 46px; height: 50px; }
.qty-lg input { width: 48px; height: 50px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
@media (min-width: 768px) { .section { padding: 48px 0; } }
.section-tight { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 700; }
@media (min-width: 768px) { .section-head h2 { font-size: 26px; } }
.section-head p { color: var(--gs-muted); margin-top: 4px; font-size: 14px; }
.section-head .link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 14px; }

.page-head { padding: 24px 0 8px; }
@media (min-width: 768px) { .page-head { padding: 36px 0 12px; } }
.page-head h1 { font-size: 26px; font-weight: 700; }
@media (min-width: 768px) { .page-head h1 { font-size: 32px; } }
.page-head p { color: var(--gs-muted); margin-top: 6px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--gs-muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--gs-text); }
.crumbs .icon { width: 14px; height: 14px; }

/* Accueil */
.hero { padding: 20px 0 8px; }
@media (min-width: 768px) { .hero { padding: 32px 0 8px; } }
.hero-card {
    position: relative; overflow: hidden; border-radius: var(--gs-radius-xl);
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gs-accent) 55%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, var(--gs-primary) 0%, color-mix(in srgb, var(--gs-primary) 70%, #000) 100%);
    color: #fff; padding: 32px 24px;
    display: grid; gap: 24px;
}
@media (min-width: 900px) { .hero-card { grid-template-columns: 1.3fr 1fr; padding: 56px; align-items: center; } }
.hero-card::after {
    content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
    border: 56px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.hero h1 { font-size: 30px; font-weight: 700; margin-top: 14px; letter-spacing: -.02em; }
@media (min-width: 768px) { .hero h1 { font-size: 44px; } }
.hero-text { margin-top: 12px; font-size: 16px; opacity: .9; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-cta .btn-light { background: #fff; color: var(--gs-text); }
.hero-cta .btn-light:hover { background: #f1f1f1; }
.hero-cta .btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero-cta .btn-glass:hover { background: rgba(255, 255, 255, .22); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stat { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--gs-radius-lg); padding: 14px; }
.hero-stat strong { display: block; font-size: 22px; }
.hero-stat span { font-size: 12px; opacity: .85; }
.hero-showcase { position: relative; z-index: 1; display: none; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .hero-showcase { display: grid; } }
.hero-showcase a { aspect-ratio: 1; border-radius: var(--gs-radius-lg); overflow: hidden; background: rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.hero-showcase a:nth-child(2) { transform: translateY(24px); }
.hero-showcase a:nth-child(3) { transform: translateY(-12px); }
.hero-showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-showcase a:hover img { transform: scale(1.05); }

/* Bannières de l'accueil (ERP › Paramètres › Bannières) */
.slider { position: relative; border-radius: var(--gs-radius-xl); overflow: hidden; background: var(--gs-surface-2); aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .slider { aspect-ratio: 16 / 7; } }
@media (min-width: 1024px) { .slider { aspect-ratio: 8 / 3; } }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-content {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px;
    padding: 24px 20px 44px; color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .15) 55%, transparent 100%);
}
@media (min-width: 900px) {
    .slide-content { justify-content: center; padding: 48px 64px; background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .25) 60%, transparent 100%); }
    .slide-content > * { max-width: 560px; }
}
.slide-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
@media (min-width: 768px) { .slide-content h2 { font-size: 42px; } }
.slide-content p { font-size: 15px; opacity: .92; }
@media (min-width: 768px) { .slide-content p { font-size: 18px; } }
.slide-content .btn { margin-top: 6px; }
.slide-content .btn-light { background: #fff; color: var(--gs-text); }
.slide-content .btn-light:hover { background: #f1f1f1; }
.slide-link { position: absolute; inset: 0; }
.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
    display: none; place-items: center; background: rgba(255, 255, 255, .9); color: var(--gs-text); box-shadow: var(--gs-shadow-md);
}
@media (min-width: 900px) { .slider-nav { display: grid; } }
.slider-nav.prev { left: 16px; }
.slider-nav.next { right: 16px; }
.slider-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .25s, background-color .25s; }
.slider-dots button.active { width: 24px; background: #fff; }

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg); }
.perk-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gs-primary-soft); color: var(--gs-primary); flex: none; }
.perk strong { display: block; font-size: 14px; }
.perk span { font-size: 12px; color: var(--gs-muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; flex: none; scroll-snap-align: start;
    border-radius: 999px; background: var(--gs-surface); border: 1px solid var(--gs-border); font-size: 14px; font-weight: 500;
    transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--gs-text); }
.chip.active { background: var(--gs-text); border-color: var(--gs-text); color: #fff; }
.chip small { color: var(--gs-muted); font-weight: 500; }
.chip.active small { color: rgba(255, 255, 255, .7); }

/* Catégories */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.cat-card {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px;
    padding: 18px; border-radius: var(--gs-radius-lg); background: var(--gs-surface); border: 1px solid var(--gs-border);
    transition: border-color .15s, box-shadow .2s, transform .2s; overflow: hidden;
}
.cat-card:hover { border-color: var(--gs-border-strong); box-shadow: var(--gs-shadow-md); transform: translateY(-2px); }
.cat-initial {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 700; font-size: 18px; background: var(--gs-primary-soft); color: var(--gs-primary);
}
.cat-card h3 { font-size: 16px; font-weight: 600; }
.cat-card p { font-size: 13px; color: var(--gs-muted); margin-top: 2px; }
.cat-card .icon-go { position: absolute; right: 16px; top: 18px; color: var(--gs-muted); transition: transform .2s; }
.cat-card:hover .icon-go { transform: translateX(3px); color: var(--gs-text); }
.cat-card.is-empty { opacity: .6; }

/* ---------- Cartes produit ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Liste avec colonne de filtres : une carte de moins que la grille pleine largeur */
@media (min-width: 1024px) { .product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid.cols-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .product-rail { grid-auto-columns: minmax(200px, 31%); gap: 16px; } }
@media (min-width: 1024px) { .product-rail { grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; } }
@media (min-width: 1200px) { .product-rail { grid-auto-columns: calc((100% - 72px) / 5); } }

.p-card { position: relative; display: flex; flex-direction: column; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.p-card:hover { box-shadow: var(--gs-shadow-md); border-color: var(--gs-border-strong); }
@media (hover: hover) { .p-card:hover { transform: translateY(-2px); } }
.p-media { position: relative; display: block; aspect-ratio: 1; background: var(--gs-surface-2); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gs-border-strong); }
.p-placeholder .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.p-placeholder span { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; font-size: 12px; color: var(--gs-muted); }
.p-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.p-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
@media (min-width: 640px) { .p-body { padding: 14px 16px 16px; } }
.p-cat { font-size: 12px; color: var(--gs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-name { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
@media (min-width: 640px) { .p-name { font-size: 15px; } }
.p-name a::after { content: ''; position: absolute; inset: 0; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.price-now { font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (min-width: 640px) { .price-now { font-size: 16px; } }
.price-old { font-size: 13px; color: var(--gs-muted); text-decoration: line-through; white-space: nowrap; }
.price.is-promo .price-now { color: var(--gs-promo); }
.p-add {
    position: relative; z-index: 1; flex: none; width: 40px; height: 40px; border-radius: 999px; border: 0;
    display: grid; place-items: center; background: var(--gs-primary); color: var(--gs-primary-ink);
    transition: background-color .15s, transform .15s;
}
.p-add:hover { background: var(--gs-primary-hover); transform: scale(1.06); }
.p-add.is-loading .icon { opacity: 0; }
.p-add.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gs-primary-ink); border-right-color: transparent; animation: gs-spin .7s linear infinite; }
.p-add.is-done { background: var(--gs-text); }
.p-add[disabled] { background: var(--gs-border-strong); cursor: not-allowed; transform: none; }
.badge-soldout { background: var(--gs-text); color: #fff; }
.p-card.is-soldout .p-media img { filter: grayscale(.6); opacity: .7; }
.variant.is-soldout { opacity: .55; }
.variant.is-soldout span { color: var(--gs-danger); font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.p-buttons { position: relative; z-index: 1; display: flex; gap: 6px; flex: none; }
.p-wa { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #25d366; color: #fff; transition: transform .15s, background-color .15s; }
.p-wa:hover { background: #1fbe5b; transform: scale(1.06); }
.p-wa .icon { width: 20px; height: 20px; }
@media (max-width: 380px) { .p-wa, .p-add { width: 36px; height: 36px; } }

/* ---------- Liste produits ---------- */
.catalog { display: grid; gap: 24px; padding-bottom: 48px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 260px 1fr; gap: 32px; align-items: start; } }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; position: sticky; top: calc(var(--gs-header-h) + 64px); } }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--gs-border); }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.filter-list a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: var(--gs-radius); font-size: 14px; color: var(--gs-muted); }
.filter-list a:hover { background: var(--gs-surface-2); color: var(--gs-text); }
.filter-list a.active { background: var(--gs-primary-soft); color: var(--gs-primary); font-weight: 600; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range .input { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.toolbar .count { font-size: 14px; color: var(--gs-muted); }
.toolbar-actions { display: flex; gap: 8px; align-items: center; }
.toolbar .select { min-height: 40px; padding: 6px 34px 6px 12px; font-size: 14px; width: auto; border-radius: 999px; }
.filter-btn { display: inline-flex; }
@media (min-width: 1024px) { .filter-btn { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--gs-surface); border: 1px solid var(--gs-border); font-size: 13px; }
.active-filters a:hover { border-color: var(--gs-text); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--gs-radius); border: 1px solid var(--gs-border); background: var(--gs-surface); font-size: 14px; font-weight: 500;
}
.pagination a:hover { border-color: var(--gs-text); }
.pagination .current { background: var(--gs-text); border-color: var(--gs-text); color: #fff; }
.pagination .disabled { opacity: .45; }

.empty { text-align: center; padding: 48px 20px; }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-surface-2); color: var(--gs-muted); }
.empty-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.empty h2, .empty h3 { font-size: 20px; }
.empty p { color: var(--gs-muted); margin: 8px auto 20px; max-width: 42ch; }

/* ---------- Fiche produit ---------- */
.pdp { display: grid; gap: 24px; padding: 8px 0 32px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 12px; } }
.gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--gs-header-h) + 64px); } }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--gs-radius-lg); background: var(--gs-surface); border: 1px solid var(--gs-border); overflow: hidden; }
/* Ordinateur : carré limité à la hauteur disponible (en-tête, fil d'Ariane et vignettes déduits) */
@media (min-width: 900px) {
    .gallery-main { width: auto; max-width: 100%; height: clamp(300px, calc(100vh - 330px), 540px); margin: 0 auto; }
    .gallery .thumbs { justify-content: center; }
    .thumb { width: 60px; height: 60px; }
}
.gallery-main img[data-gallery-main] { cursor: zoom-in; }
.gallery-zoom-hint {
    position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--gs-shadow-sm);
    font-size: 12px; font-weight: 600; pointer-events: none;
}

/* Visionneuse plein écran avec zoom */
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(10, 12, 11, .94); color: #fff; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 14px; }
.lightbox-bar button, .lightbox-nav { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.lightbox-bar button:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 0 16px 16px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s ease; user-select: none; -webkit-user-drag: none; }
.lightbox-stage img.is-zoomed { transform: scale(2.4); cursor: zoom-out; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(0, 0, 0, .55); }
.lightbox-bar { position: relative; z-index: 2; background: rgba(10, 12, 11, .94); }
.lightbox-hint { position: relative; z-index: 2; background: rgba(10, 12, 11, .94); padding-top: 10px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-hint { text-align: center; padding: 0 16px 14px; font-size: 13px; opacity: .7; }

/* Infobulle : nom complet d'un produit tronqué */
.gs-tip {
    position: fixed; z-index: 95; max-width: 280px; padding: 8px 10px; border-radius: var(--gs-radius);
    background: var(--gs-text); color: #fff; font-size: 13px; line-height: 1.4; box-shadow: var(--gs-shadow-md);
    pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.gs-tip.is-visible { opacity: 1; transform: none; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .p-badges { top: 14px; left: 14px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--gs-shadow-md); display: grid; place-items: center; }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 72px; height: 72px; border-radius: var(--gs-radius); overflow: hidden; border: 2px solid transparent; background: var(--gs-surface); padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--gs-primary); }

.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--gs-muted); }
.pdp-meta a { color: var(--gs-primary); font-weight: 600; }
.pdp h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .pdp h1 { font-size: 32px; } }
.pdp-price .price-now { font-size: 28px; }
.pdp-price .price-old { font-size: 16px; }
.pdp-lead { color: var(--gs-muted); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--gs-success); }
.stock.low { color: var(--gs-warn); }
.stock.out { color: var(--gs-danger); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; min-width: 96px;
    border: 1.5px solid var(--gs-border-strong); border-radius: var(--gs-radius); background: var(--gs-surface); text-align: left;
    transition: border-color .15s, background-color .15s;
}
.variant:hover { border-color: var(--gs-text); }
.variant.active { border-color: var(--gs-primary); background: var(--gs-primary-soft); }
.variant strong { font-size: 14px; font-weight: 600; }
.variant span { font-size: 12px; color: var(--gs-muted); }
.buy-box { display: grid; gap: 10px; padding: 16px; border-radius: var(--gs-radius-lg); background: var(--gs-surface); border: 1px solid var(--gs-border); }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.assurances { display: grid; gap: 10px; }
.assurance { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.assurance .icon { color: var(--gs-primary); }
.prose { line-height: 1.7; overflow-wrap: anywhere; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; list-style: revert; }
.prose img { border-radius: var(--gs-radius); height: auto; }
.prose a { color: var(--gs-primary); text-decoration: underline; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--gs-muted); }

.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: var(--gs-bottom-nav-h); z-index: 44;
    display: flex; align-items: center; gap: 12px; padding: 10px var(--gs-gutter);
    background: var(--gs-surface); border-top: 1px solid var(--gs-border); box-shadow: 0 -6px 20px rgba(16, 24, 18, .06);
    transform: translateY(120%); transition: transform .25s;
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy .price-now { font-size: 17px; }
.sticky-buy-inner { display: flex; align-items: center; gap: 12px; width: 100%; }
.sticky-buy-thumb, .sticky-buy-now { display: none; }
@media (min-width: 900px) {
    .sticky-buy { padding: 10px 0; }
    .sticky-buy-inner { max-width: var(--gs-container); margin: 0 auto; padding: 0 var(--gs-gutter); gap: 16px; }
    .sticky-buy-thumb { display: block; width: 48px; height: 48px; border-radius: var(--gs-radius); object-fit: cover; border: 1px solid var(--gs-border); background: var(--gs-surface-2); }
    .sticky-buy .small { font-size: 14px; font-weight: 600; color: var(--gs-text); }
    .sticky-buy-now { display: inline-flex; }
}

/* ---------- Panier / commande ---------- */
.steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gs-muted); margin-top: 10px; }
.steps span { display: inline-flex; align-items: center; gap: 6px; }
.steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--gs-surface-2); color: var(--gs-muted); }
.steps .done b, .steps .current b { background: var(--gs-primary); color: var(--gs-primary-ink); }
.steps .current { color: var(--gs-text); font-weight: 600; }
.steps .sep { width: 24px; height: 1px; background: var(--gs-border-strong); }

.checkout { display: grid; gap: 20px; padding-bottom: 48px; }
@media (min-width: 1024px) { .checkout { grid-template-columns: 1fr 400px; gap: 32px; align-items: start; } }
.summary { position: relative; }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--gs-header-h) + 64px); } }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--gs-border); margin-top: 8px; padding-top: 16px; font-size: 17px; font-weight: 700; }
.summary-row.total strong { font-size: 22px; }
.summary-mini { display: grid; gap: 12px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.summary-mini .item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.summary-mini .thumb-sm { position: relative; width: 52px; height: 52px; border-radius: var(--gs-radius); background: var(--gs-surface-2); display: grid; place-items: center; color: var(--gs-border-strong); }
.summary-mini .thumb-sm img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--gs-radius); }
.summary-mini .thumb-sm b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gs-text); color: #fff; font-size: 11px; display: grid; place-items: center; }

.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--gs-border-strong); border-radius: var(--gs-radius-lg); background: var(--gs-surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.pay-option:hover { border-color: var(--gs-text); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option .pay-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--gs-surface-2); flex: none; }
.pay-option strong { display: block; font-size: 15px; }
.pay-option span { font-size: 13px; color: var(--gs-muted); }
.pay-option .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gs-border-strong); flex: none; margin-top: 2px; }
.pay-option:has(input:checked) { border-color: var(--gs-primary); background: var(--gs-primary-soft); }
.pay-option:has(input:checked) .pay-icon { background: var(--gs-primary); color: var(--gs-primary-ink); }
.pay-option:has(input:checked) .radio { border-color: var(--gs-primary); border-width: 6px; }
.pay-option:has(input:focus-visible) { box-shadow: var(--gs-focus); }

.operators { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.operator { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--gs-border-strong); border-radius: var(--gs-radius); cursor: pointer; font-weight: 600; }
.operator input { position: absolute; opacity: 0; }
.operator .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.operator.mtn .dot { background: #ffcc00; color: #1a1a1a; }
.operator.orange .dot { background: #ff7900; color: #fff; }
.operator:has(input:checked) { border-color: var(--gs-primary); background: var(--gs-primary-soft); }

.order-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 20px; }
.order-hero .seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-success-soft); color: var(--gs-success); }
.order-hero .seal.pending { background: var(--gs-warn-soft); color: var(--gs-warn); }
.order-hero .seal .icon { width: 30px; height: 30px; }
.order-hero h1 { font-size: 24px; }
.order-ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; padding: 4px 10px; border-radius: var(--gs-radius-sm); background: var(--gs-surface-2); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 0 8px; }
.timeline div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--gs-muted); position: relative; }
.timeline div::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--gs-border); z-index: 0; }
.timeline div:first-child::before { display: none; }
.timeline b { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-surface-2); border: 2px solid var(--gs-border); }
.timeline .on { color: var(--gs-text); font-weight: 600; }
.timeline .on b { background: var(--gs-primary); border-color: var(--gs-primary); color: var(--gs-primary-ink); }
.timeline .on::before { background: var(--gs-primary); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.dl dt { color: var(--gs-muted); }
.dl dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.creds { display: grid; gap: 6px; padding: 14px; margin-top: 10px; border-radius: var(--gs-radius); background: var(--gs-surface); border: 1px dashed var(--gs-border-strong); font-size: 14px; color: var(--gs-text); }
.creds code { font-weight: 700; font-size: 15px; }

/* ---------- Compte / authentification ---------- */
.auth-wrap { display: grid; place-items: start center; padding: 32px 0 64px; }
.auth-card { width: 100%; max-width: 460px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--gs-surface-2); border-radius: 999px; margin-bottom: 24px; }
.tabs button { height: 40px; border: 0; background: none; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--gs-muted); }
.tabs button.active { background: var(--gs-surface); color: var(--gs-text); box-shadow: var(--gs-shadow-sm); }
.auth-title { text-align: center; margin-bottom: 20px; }
.auth-title h1 { font-size: 24px; }
.auth-title p { color: var(--gs-muted); margin-top: 6px; font-size: 14px; }
.account { display: grid; gap: 20px; padding-bottom: 48px; }
@media (min-width: 1024px) { .account { grid-template-columns: 300px 1fr; gap: 32px; align-items: start; } }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-primary); color: var(--gs-primary-ink); font-weight: 700; font-size: 20px; flex: none; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--gs-border); align-items: center; }
.order-row:last-child { border-bottom: 0; }
.order-row .meta { font-size: 13px; color: var(--gs-muted); }

/* Sections de l'accueil composées dans l'ERP (texte, image et texte, appel à l'action, FAQ, avis, contact) */
.section-perks { padding-top: 8px; }
.block-text { max-width: 760px; }
.block-text.is-wide { max-width: 980px; }
.block-text.is-center { margin: 0 auto; text-align: center; }
.block-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
@media (min-width: 768px) { .block-text h2 { font-size: 30px; } }
.block-text .prose { font-size: 16px; color: var(--gs-text); }

.split { display: grid; gap: 20px; align-items: center; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-xl); overflow: hidden; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 0; } .split.is-reversed .split-media { order: 2; } }
.split-media { aspect-ratio: 4 / 3; background: var(--gs-surface-2); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 24px; }
@media (min-width: 900px) { .split-body { padding: 48px; } }
.split-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .split-body h2 { font-size: 34px; } }
.split-body p { color: var(--gs-muted); font-size: 16px; }

.cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 28px 24px; border-radius: var(--gs-radius-xl); }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; padding: 40px 48px; } }
.cta h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .cta h2 { font-size: 30px; } }
.cta p { margin-top: 6px; opacity: .88; }
.cta-primary { background: linear-gradient(135deg, var(--gs-primary), color-mix(in srgb, var(--gs-primary) 70%, #000)); color: #fff; }
.cta-dark { background: var(--gs-text); color: #fff; }
.cta-soft { background: var(--gs-primary-soft); color: var(--gs-text); border: 1px solid color-mix(in srgb, var(--gs-primary) 18%, transparent); }
.cta .btn-light { background: #fff; color: var(--gs-text); }
.cta .btn-light:hover { background: #f1f1f1; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--gs-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--gs-muted); }

.quotes { display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg); }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote figcaption strong { display: block; font-size: 14px; }
.quote figcaption small { display: block; font-size: 12px; color: var(--gs-muted); }
.stars { color: #e3a008; letter-spacing: 2px; }
.stars span { color: var(--gs-border-strong); }
.avatar-sm { width: 38px; height: 38px; font-size: 15px; }

.contact-block { display: grid; gap: 20px; padding: 28px 24px; background: var(--gs-surface); border: 1px solid var(--gs-border); border-radius: var(--gs-radius-xl); }
@media (min-width: 900px) { .contact-block { grid-template-columns: 1fr auto; align-items: center; padding: 36px 44px; } }
.contact-block h2 { font-size: 24px; font-weight: 700; }
.contact-block p { color: var(--gs-muted); margin-top: 6px; }
.contact-loc { display: flex; align-items: center; gap: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Campagnes de promotion (ERP › Catalogue › Promotions) */
.campaigns { display: grid; gap: 10px; margin: 8px 0 16px; }
@media (min-width: 768px) { .campaigns { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.campaign { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--gs-radius-lg); background: linear-gradient(135deg, #fff4ed, #ffe8d6); border: 1px solid #fed7aa; }
.campaign-badge { flex: none; padding: 8px 12px; border-radius: 12px; background: var(--gs-promo); color: #fff; font-weight: 800; font-size: 18px; }
.campaign strong { display: block; font-size: 16px; }
.campaign-time { font-size: 13px; color: #9a3412; }
.campaign-time b, .offer-ends b { font-variant-numeric: tabular-nums; }
.offer-ends { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff4ed; color: #9a3412; font-size: 14px; font-weight: 500; width: fit-content; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 32px; background: var(--gs-text); color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 56px; padding-bottom: 36px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { max-height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 2px; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
.footer-bottom b { color: #fff; }
.pay-chips { display: flex; gap: 6px; align-items: center; }
.pay-chips span { height: 26px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; }

.wa-fab {
    position: fixed; z-index: 43; right: 16px; bottom: calc(var(--gs-bottom-nav-h) + 16px);
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab .icon { width: 28px; height: 28px; }
body.has-sticky-buy .wa-fab { bottom: calc(var(--gs-bottom-nav-h) + 86px); }

/* ---------- Notifications ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--gs-bottom-nav-h) + 16px); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--gs-radius-lg);
    background: var(--gs-text); color: #fff; box-shadow: var(--gs-shadow-lg); font-size: 14px; pointer-events: auto;
    animation: gs-toast-in .25s ease-out;
}
.toast.is-error { background: var(--gs-danger); }
.toast .toast-action { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.toast.is-leaving { animation: gs-toast-out .2s ease-in forwards; }
@keyframes gs-toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes gs-toast-out { to { opacity: 0; transform: translateY(12px); } }

.modal { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 20, 17, .5); }
.modal-card { position: relative; width: 100%; max-width: 440px; background: var(--gs-surface); border-radius: var(--gs-radius-xl); padding: 28px 24px 24px; box-shadow: var(--gs-shadow-lg); text-align: center; }
.modal-card h2 { font-size: 20px; margin-top: 12px; }
.modal-card p { color: var(--gs-muted); margin-top: 8px; font-size: 14px; }

.skeleton { background: linear-gradient(90deg, var(--gs-surface-2) 25%, #e8ebe7 37%, var(--gs-surface-2) 63%); background-size: 400% 100%; animation: gs-shimmer 1.4s ease infinite; border-radius: var(--gs-radius); }
@keyframes gs-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

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