/* =====================================================================
   LES LUMINAIRES SARL - Feuille de style de la boutique
   1. Variables et base      5. Produits
   2. Boutons et formulaires 6. Pages boutique
   3. En-tete et navigation  7. Panier et commande
   4. Accueil                8. Compte, footer, responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. VARIABLES ET BASE
   --------------------------------------------------------------------- */
:root {
    --green-900: #064e2b;
    --green-800: #0b5d33;
    --green-700: #0f6b3a;
    --green-600: #15803d;
    --green-500: #16a34a;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;

    --yellow-500: #facc15;
    --yellow-400: #fde047;
    --yellow-100: #fef9c3;

    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;

    --red-500: #dc2626;
    --red-50:  #fef2f2;
    --blue-500: #0284c7;
    --blue-50:  #f0f9ff;
    --orange-500: #ea580c;

    --white: #ffffff;

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .07);
    --shadow:    0 6px 20px rgba(15, 23, 42, .09);
    --shadow-lg: 0 18px 44px rgba(15, 23, 42, .14);

    --container: 1280px;
    --header-h: 74px;

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-800);
    background: var(--ink-50);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink-900); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.muted     { color: var(--ink-500); }
.text-sm   { font-size: .86rem; }
.text-xs   { font-size: .78rem; }
.text-right{ text-align: right; }
.text-center { text-align: center; }
.strong    { font-weight: 700; }
.nowrap    { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .wrap { flex-wrap: wrap; }

.section { padding: 46px 0; }
.section-tight { padding: 30px 0; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 18px; margin-bottom: 26px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green-600); margin-bottom: 6px;
}
.section-head .eyebrow::before {
    content: ""; width: 22px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--yellow-500));
}
.section-link {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
    color: var(--green-700); font-size: .92rem; transition: gap var(--transition);
}
.section-link:hover { gap: 11px; }

/* ---------------------------------------------------------------------
   2. BOUTONS, BADGES, FORMULAIRES
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: .93rem; font-weight: 600; cursor: pointer; text-align: center;
    transition: all var(--transition); background: var(--ink-100); color: var(--ink-800);
    line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 4px 14px rgba(15, 107, 58, .28); }
.btn-primary:hover { background: var(--green-800); box-shadow: 0 8px 22px rgba(15, 107, 58, .34); }

.btn-accent { background: var(--yellow-500); color: var(--ink-900); box-shadow: 0 4px 14px rgba(250, 204, 21, .35); }
.btn-accent:hover { background: var(--yellow-400); }

.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }

.btn-outline { background: transparent; border-color: var(--ink-300); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }

.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--ink-100); }

.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 8px 14px; font-size: .84rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
    letter-spacing: .02em; background: var(--ink-100); color: var(--ink-600);
}
.badge.success { background: var(--green-100); color: var(--green-700); }
.badge.warn    { background: var(--yellow-100); color: #92400e; }
.badge.danger  { background: var(--red-50); color: var(--red-500); }
.badge.info    { background: var(--blue-50); color: var(--blue-500); }
.badge.primary { background: #ede9fe; color: #6d28d9; }
.badge.muted   { background: var(--ink-100); color: var(--ink-500); }

.field { margin-bottom: 16px; }
.field > label,
.label {
    display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-700);
}
.label .req, .field > label .req { color: var(--red-500); }
.label.mb-0 { margin-bottom: 0; }

.input, .select, .textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--ink-200);
    border-radius: var(--radius-sm); background: #fff; transition: all var(--transition);
    font-size: .93rem; color: var(--ink-900);
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(22, 163, 74, .13);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.textarea { resize: vertical; min-height: 110px; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
    padding-right: 38px;
}
.field-error { border-color: var(--red-500) !important; }
.error-text { display: block; margin-top: 5px; font-size: .79rem; color: var(--red-500); font-weight: 500; }
.help-text  { display: block; margin-top: 5px; font-size: .79rem; color: var(--ink-500); }

.checkbox, .radio {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: .9rem; color: var(--ink-700);
}
.checkbox input, .radio input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green-600); cursor: pointer; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Cartes */
.card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.card-pad { padding: 22px; }
.card-head {
    padding: 16px 22px; border-bottom: 1px solid var(--ink-200);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 1.05rem; }

/* Alertes / messages flash */
.flash-stack { position: fixed; top: 86px; right: 20px; z-index: 900; display: grid; gap: 10px; max-width: 380px; }
.alert {
    display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px;
    border-radius: var(--radius); background: #fff; border-left: 4px solid var(--ink-300);
    box-shadow: var(--shadow); font-size: .9rem; animation: slideIn .32s ease;
}
.alert .ico { margin-top: 1px; }
.alert.success { border-left-color: var(--green-500); color: var(--green-800); }
.alert.error   { border-left-color: var(--red-500); color: #991b1b; }
.alert.warning { border-left-color: var(--yellow-500); color: #92400e; }
.alert.info    { border-left-color: var(--blue-500); color: #075985; }
.alert button  { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-400); padding: 0; }
@keyframes slideIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

.notice {
    display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius);
    background: var(--blue-50); color: #075985; font-size: .9rem; border: 1px solid #bae6fd;
}
.notice.warn { background: var(--yellow-100); color: #92400e; border-color: #fde68a; }
.notice.success { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }

/* ---------------------------------------------------------------------
   3. EN-TETE ET NAVIGATION
   --------------------------------------------------------------------- */
.topbar {
    background: var(--ink-900); color: var(--ink-300);
    font-size: .8rem; padding: 7px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color var(--transition); }
.topbar a:hover { color: var(--yellow-500); }
.topbar .sep { color: var(--ink-700); }
.topbar strong { color: var(--yellow-500); }

.site-header {
    position: sticky; top: 0; z-index: 500; background: #fff;
    border-bottom: 1px solid var(--ink-200); transition: box-shadow var(--transition);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-main {
    display: flex; align-items: center; gap: 26px; height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo {
    width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff;
    border: 1px solid var(--ink-200); padding: 3px;
}
.brand-mark {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: var(--yellow-500); flex: none; box-shadow: 0 4px 12px rgba(15, 107, 58, .3);
}
.brand-mark .ico { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.04rem; color: var(--green-800); letter-spacing: -.02em; }
.brand-tag  { font-size: .69rem; color: var(--ink-500); letter-spacing: .06em; text-transform: uppercase; }

.search-form { flex: 1; max-width: 560px; position: relative; }
.search-box { display: flex; align-items: center; background: var(--ink-100); border: 1.5px solid transparent; border-radius: 999px; transition: all var(--transition); }
.search-box:focus-within { background: #fff; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.search-box input { flex: 1; border: 0; background: none; padding: 11px 6px 11px 18px; outline: none; font-size: .91rem; }
.search-box button {
    border: 0; background: var(--green-700); color: #fff; width: 40px; height: 40px;
    border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin: 3px;
    transition: background var(--transition);
}
.search-box button:hover { background: var(--green-800); }

.suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
    border: 1px solid var(--ink-200); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 60; display: none;
}
.suggestions.is-open { display: block; }
.suggestion {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-bottom: 1px solid var(--ink-100); transition: background var(--transition);
}
.suggestion:last-child { border-bottom: 0; }
.suggestion:hover { background: var(--ink-50); }
.suggestion img { width: 40px; height: 40px; object-fit: contain; border-radius: 7px; background: var(--ink-50); }
.suggestion-name { font-size: .87rem; font-weight: 600; }
.suggestion-price { font-size: .82rem; color: var(--green-700); font-weight: 700; margin-left: auto; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-btn {
    display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: var(--radius-sm);
    background: none; border: 0; cursor: pointer; position: relative; transition: background var(--transition);
    color: var(--ink-700);
}
.header-btn:hover { background: var(--ink-100); color: var(--green-700); }
.header-btn .label { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.header-btn .label small { font-size: .68rem; color: var(--ink-500); }
.header-btn .label span { font-size: .84rem; font-weight: 600; }
.cart-count {
    position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--yellow-500); color: var(--ink-900); border-radius: 999px;
    font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}

.menu-toggle { display: none; }

/* Barre de navigation */
.nav-bar { background: var(--green-700); color: #fff; }
.nav-bar .container { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-list .nav-link { white-space: nowrap; }

/* Menu "a priorite" : les categories s'effacent selon la largeur disponible
   (elles restent accessibles dans "Tous les produits"). */
@media (max-width: 1319px) { .nav-cat-3 { display: none; } }
@media (max-width: 1139px) { .nav-cat-2 { display: none; } .cta-long { display: none; } }
@media (max-width: 959px)  { .nav-cat-1 { display: none; } }
.nav-list > li { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 7px; padding: 13px 14px;
    font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .92);
    transition: all var(--transition); border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(0, 0, 0, .14); border-bottom-color: var(--yellow-500); }
.nav-link .ico { width: 17px; height: 17px; }

.nav-cta {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
    background: var(--yellow-500); color: var(--ink-900); padding: 8px 16px;
    border-radius: 999px; font-weight: 700; font-size: .84rem; transition: all var(--transition);
    white-space: nowrap;
}
.nav-cta:hover { background: var(--yellow-400); transform: translateY(-1px); }

/* Mega menu */
.mega {
    position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff;
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
    padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition); z-index: 80; border: 1px solid var(--ink-200); border-top: 0;
}
.nav-list > li:hover .mega { opacity: 1; visibility: visible; transform: none; }
.mega a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm); font-size: .87rem; color: var(--ink-700);
    transition: all var(--transition);
}
.mega a:hover { background: var(--green-50); color: var(--green-700); }
.mega a .count { font-size: .74rem; color: var(--ink-400); }

/* Menu mobile */
.mobile-nav {
    position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); background: #fff; z-index: 1000;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--ink-200); background: var(--green-700); color: #fff;
}
.mobile-nav-head button { background: none; border: 0; color: #fff; cursor: pointer; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px; }
.mobile-nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500;
}
.mobile-nav a:hover { background: var(--ink-100); }
.mobile-nav .sub { padding-left: 20px; }
.mobile-nav .sub a { font-size: .86rem; color: var(--ink-600); padding: 9px 14px; }
.mobile-nav .group-title {
    padding: 14px 14px 6px; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink-400); font-weight: 700;
}
.overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 990;
    opacity: 0; visibility: hidden; transition: all var(--transition); backdrop-filter: blur(2px);
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* Fil d'Ariane */
.breadcrumb { padding: 14px 0; font-size: .83rem; color: var(--ink-500); }
.breadcrumb ol { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb .sep { color: var(--ink-300); display: flex; }
.breadcrumb .current { color: var(--ink-800); font-weight: 600; }

/* ---------------------------------------------------------------------
   4. ACCUEIL
   --------------------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--green-900), var(--green-700) 55%, var(--green-600)); color: #fff; position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; right: -140px; top: -120px; width: 480px; height: 480px;
    border-radius: 50%; background: radial-gradient(circle, rgba(250, 204, 21, .22), transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 54px 0; position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .13);
    padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    color: var(--yellow-400); margin-bottom: 18px; border: 1px solid rgba(250, 204, 21, .3);
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--yellow-500); }
.hero p { color: rgba(255, 255, 255, .84); font-size: 1.04rem; max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--yellow-500); font-weight: 800; }
.hero-stat span { font-size: .8rem; color: rgba(255, 255, 255, .7); }

.hero-card {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-xl); padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.hero-features { display: grid; gap: 12px; }
.hero-feature {
    display: flex; align-items: center; gap: 13px; background: rgba(255, 255, 255, .09);
    border-radius: var(--radius); padding: 12px 14px; transition: all var(--transition);
}
.hero-feature:hover { background: rgba(255, 255, 255, .17); transform: translateX(4px); }
.hero-feature .ico-wrap {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--yellow-500); color: var(--green-900); flex: none;
}
.hero-feature strong { display: block; font-size: .91rem; color: #fff; }
.hero-feature span { font-size: .78rem; color: rgba(255, 255, 255, .72); }

/* Bandeau de reassurance */
.reassurance { background: #fff; border-bottom: 1px solid var(--ink-200); }
.reassurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.reassurance-item {
    display: flex; align-items: center; gap: 13px; padding: 20px 16px;
    border-right: 1px solid var(--ink-100);
}
.reassurance-item:last-child { border-right: 0; }
.reassurance-item .ico-wrap {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-50); color: var(--green-700); flex: none;
}
.reassurance-item strong { display: block; font-size: .9rem; }
.reassurance-item span { font-size: .78rem; color: var(--ink-500); }

/* Grille des categories */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    padding: 22px 18px; text-align: center; transition: all var(--transition); position: relative; overflow: hidden;
}
.category-card::before {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--yellow-500));
    transform: scaleX(0); transition: transform var(--transition);
}
.category-card:hover { border-color: var(--green-200, #bbf7d0); box-shadow: var(--shadow); transform: translateY(-4px); }
.category-card:hover::before { transform: scaleX(1); }
.category-card .ico-wrap {
    width: 56px; height: 56px; margin: 0 auto 13px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green-50), var(--green-100)); color: var(--green-700);
    transition: all var(--transition);
}
.category-card:hover .ico-wrap { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: var(--yellow-400); }
.category-card .ico { width: 27px; height: 27px; }
.category-card h3 { font-size: .93rem; margin-bottom: 4px; }
.category-card span { font-size: .78rem; color: var(--ink-500); }

/* Banniere promo */
.promo-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.promo-card {
    border-radius: var(--radius-lg); padding: 28px; color: #fff; position: relative; overflow: hidden;
    min-height: 168px; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
}
.promo-card:nth-child(1) { background: linear-gradient(135deg, var(--green-800), var(--green-600)); }
.promo-card:nth-child(2) { background: linear-gradient(135deg, #b45309, var(--yellow-500)); color: var(--ink-900); }
.promo-card:nth-child(3) { background: linear-gradient(135deg, #0c4a6e, var(--blue-500)); }
.promo-card::after {
    content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.promo-card h3 { color: inherit; font-size: 1.22rem; margin-bottom: 7px; position: relative; }
.promo-card p { font-size: .88rem; opacity: .9; margin-bottom: 15px; position: relative; }
.promo-card .btn { align-self: flex-start; position: relative; }

/* Compte a rebours / bandeau plat */
.strip-banner {
    background: linear-gradient(120deg, var(--ink-900), var(--green-800));
    border-radius: var(--radius-lg); padding: 30px 34px; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.strip-banner h2 { color: #fff; margin-bottom: 6px; }
.strip-banner p { color: rgba(255, 255, 255, .78); margin: 0; }

/* Marques */
.brand-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-chip {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius);
    padding: 18px 12px; display: grid; place-items: center; min-height: 82px;
    transition: all var(--transition); text-align: center;
}
.brand-chip:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.brand-chip img { max-height: 42px; width: auto; object-fit: contain; }
.brand-chip span { font-weight: 700; color: var(--ink-600); font-size: .86rem; }

/* ---------------------------------------------------------------------
   5. PRODUITS
   --------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #bbf7d0; }

.product-media {
    position: relative; aspect-ratio: 1 / 1; background: var(--ink-50);
    display: grid; place-items: center; overflow: hidden; padding: 14px;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }

.product-flags { position: absolute; top: 10px; left: 10px; display: grid; gap: 5px; z-index: 2; }
.flag {
    padding: 3px 9px; border-radius: 6px; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--ink-700);
}
.flag.sale { background: var(--red-500); }
.flag.new  { background: var(--green-600); }
.flag.top  { background: var(--yellow-500); color: var(--ink-900); }
.flag.out  { background: var(--ink-500); }

.product-quick {
    position: absolute; top: 10px; right: 10px; display: grid; gap: 6px;
    opacity: 0; transform: translateX(8px); transition: all var(--transition); z-index: 2;
}
.product-card:hover .product-quick { opacity: 1; transform: none; }
.product-quick button, .product-quick a {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink-200);
    background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink-600);
    transition: all var(--transition); box-shadow: var(--shadow-xs);
}
.product-quick button:hover, .product-quick a:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }

.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .72rem; color: var(--green-600); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.product-name {
    font-size: .92rem; font-weight: 600; color: var(--ink-900); line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.product-card:hover .product-name { color: var(--green-700); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.stars { display: inline-flex; align-items: center; gap: 1px; }
.star { color: var(--ink-300); font-size: .86rem; line-height: 1; }
.star.on { color: var(--yellow-500); }
.stars-count { font-size: .74rem; color: var(--ink-400); margin-left: 4px; }

.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 11px; flex-wrap: wrap; }
.price-now { font-size: 1.08rem; font-weight: 800; color: var(--green-700); }
.price-old { font-size: .84rem; color: var(--ink-400); text-decoration: line-through; }
.price-off { font-size: .72rem; font-weight: 700; color: var(--red-500); background: var(--red-50); padding: 2px 7px; border-radius: 5px; }

.product-stock { font-size: .76rem; display: flex; align-items: center; gap: 5px; margin-bottom: 11px; }
.product-stock.ok  { color: var(--green-600); }
.product-stock.low { color: var(--orange-500); }
.product-stock.no  { color: var(--red-500); }
.product-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.product-actions { display: flex; gap: 7px; }
.product-actions form { flex: 1; }
.product-actions .btn { flex: 1; }
.filters-toggle { display: none; }

/* Ligne de produit (vue liste) */
.product-row {
    display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; background: #fff;
    border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 16px;
    transition: all var(--transition);
}
.product-row:hover { box-shadow: var(--shadow-sm); border-color: #bbf7d0; }
.product-row .product-media { aspect-ratio: 1; border-radius: var(--radius); }
.product-row .product-right { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 190px; }

/* Fiche produit */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.gallery-main {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    aspect-ratio: 1; display: grid; place-items: center; padding: 26px; overflow: hidden;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 74px; height: 74px; border: 2px solid var(--ink-200); border-radius: var(--radius);
    background: #fff; padding: 6px; cursor: pointer; transition: all var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--green-600); }

.product-detail h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-500); margin-bottom: 18px; }
.product-meta .sep { color: var(--ink-300); }

.price-block {
    background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid var(--green-100);
    border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 20px;
}
.price-block .price-now { font-size: 2rem; }
.price-block .unit { font-size: .84rem; color: var(--ink-500); }
.price-block .saving { font-size: .84rem; color: var(--red-500); font-weight: 600; margin-top: 4px; }

.qty-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.qty-picker button {
    width: 40px; height: 44px; border: 0; background: var(--ink-50); cursor: pointer;
    display: grid; place-items: center; color: var(--ink-600); transition: all var(--transition);
}
.qty-picker button:hover { background: var(--green-50); color: var(--green-700); }
.qty-picker input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 700; outline: none; }

.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.buy-row .btn { flex: 1; min-width: 160px; }

.product-highlights { display: grid; gap: 10px; margin-bottom: 22px; }
.highlight { display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: var(--ink-50); border-radius: var(--radius); font-size: .87rem; }
.highlight .ico { color: var(--green-600); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink-200); margin-bottom: 24px; overflow-x: auto; }
.tab {
    padding: 12px 20px; font-weight: 600; font-size: .92rem; color: var(--ink-500);
    border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; background: none;
    border-top: 0; border-left: 0; border-right: 0; white-space: nowrap; transition: all var(--transition);
}
.tab:hover { color: var(--green-700); }
.tab.is-active { color: var(--green-700); border-bottom-color: var(--green-600); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--ink-200); font-size: .89rem; }
.spec-table th { width: 40%; color: var(--ink-600); font-weight: 600; background: var(--ink-50); }

.review-item { padding: 18px 0; border-bottom: 1px solid var(--ink-200); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--green-100); color: var(--green-700);
    display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}

/* ---------------------------------------------------------------------
   6. PAGES BOUTIQUE
   --------------------------------------------------------------------- */
.page-head {
    background: linear-gradient(135deg, var(--ink-900), var(--green-800));
    color: #fff; padding: 34px 0;
}
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 680px; }

.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }

.filters { position: sticky; top: calc(var(--header-h) + 14px); }
.filter-block { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; }
.filter-head {
    padding: 13px 17px; font-weight: 700; font-size: .88rem; display: flex;
    align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink-100);
    cursor: pointer; user-select: none;
}
.filter-body { padding: 14px 17px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.filter-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 7px 10px; border-radius: var(--radius-sm); font-size: .86rem; color: var(--ink-600);
    transition: all var(--transition);
}
.filter-list a:hover, .filter-list a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 600; }
.filter-list .count { font-size: .74rem; color: var(--ink-400); }
.filter-list .sub { padding-left: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .input { padding: 8px 10px; font-size: .85rem; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
    padding: 12px 18px; margin-bottom: 18px; flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: .87rem; color: var(--ink-600); }
.shop-toolbar .tools { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: flex; gap: 2px; background: var(--ink-100); border-radius: var(--radius-sm); padding: 3px; }
.view-toggle button {
    width: 32px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer;
    display: grid; place-items: center; color: var(--ink-500); transition: all var(--transition);
}
.view-toggle button.is-active { background: #fff; color: var(--green-700); box-shadow: var(--shadow-xs); }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    background: #fff; border: 1px solid var(--ink-200); border-radius: 999px; font-size: .8rem;
}
.chip a { display: flex; color: var(--ink-400); }
.chip a:hover { color: var(--red-500); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center;
    border: 1px solid var(--ink-200); border-radius: var(--radius-sm); background: #fff;
    font-size: .88rem; font-weight: 600; color: var(--ink-600); transition: all var(--transition);
}
.pagination a:hover { border-color: var(--green-600); color: var(--green-700); }
.pagination .is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

.empty-state {
    text-align: center; padding: 64px 24px; background: #fff;
    border: 1px dashed var(--ink-300); border-radius: var(--radius-lg);
}
.empty-state .ico-wrap {
    width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--ink-100); display: grid; place-items: center; color: var(--ink-400);
}
.empty-state .ico { width: 34px; height: 34px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-500); max-width: 420px; margin: 0 auto 20px; }

/* Article / page CMS */
.prose { max-width: 860px; font-size: .97rem; line-height: 1.75; color: var(--ink-700); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--green-700); text-decoration: underline; }
.prose blockquote {
    margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--green-500);
    background: var(--green-50); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--ink-200); padding: 10px 12px; text-align: left; }
.prose th { background: var(--ink-50); }

/* ---------------------------------------------------------------------
   7. PANIER ET COMMANDE
   --------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 26px; align-items: start; }

.cart-item {
    display: grid; grid-template-columns: 94px 1fr auto; gap: 16px; padding: 16px;
    border-bottom: 1px solid var(--ink-200); align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-thumb {
    width: 94px; height: 94px; background: var(--ink-50); border-radius: var(--radius);
    display: grid; place-items: center; padding: 8px; border: 1px solid var(--ink-100);
}
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-info h3 { font-size: .95rem; margin-bottom: 4px; }
.cart-info .sku { font-size: .76rem; color: var(--ink-400); }
.cart-line-total { font-weight: 800; color: var(--green-700); font-size: 1.02rem; white-space: nowrap; }
.cart-remove { background: none; border: 0; color: var(--ink-400); cursor: pointer; padding: 6px; transition: color var(--transition); }
.cart-remove:hover { color: var(--red-500); }

.summary { position: sticky; top: calc(var(--header-h) + 14px); }
.summary-line { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: .91rem; }
.summary-line.total {
    border-top: 2px solid var(--ink-200); margin-top: 10px; padding-top: 16px;
    font-size: 1.16rem; font-weight: 800; color: var(--ink-900);
}
.summary-line.total span:last-child { color: var(--green-700); }
.summary-line .free { color: var(--green-600); font-weight: 700; }

.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form .input { flex: 1; }
.coupon-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--green-50); border: 1px dashed var(--green-500); border-radius: var(--radius);
    padding: 10px 14px; font-size: .86rem; margin: 14px 0;
}

/* Etapes de commande */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-num {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink-200); color: var(--ink-500); font-weight: 800; font-size: .86rem; flex: none;
    transition: all var(--transition);
}
.step.is-active .step-num { background: var(--green-700); color: #fff; }
.step.is-done .step-num { background: var(--green-100); color: var(--green-700); }
.step-label { font-size: .85rem; font-weight: 600; color: var(--ink-500); }
.step.is-active .step-label { color: var(--ink-900); }
.step-line { flex: 1; height: 2px; background: var(--ink-200); margin: 0 12px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }

.option-grid { display: grid; gap: 12px; }
.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.option {
    position: relative; display: flex; gap: 14px; padding: 16px; border: 2px solid var(--ink-200);
    border-radius: var(--radius); cursor: pointer; transition: all var(--transition); background: #fff;
}
.option:hover { border-color: var(--green-300, #86efac); background: var(--green-50); }
.option input { position: absolute; opacity: 0; }
.option input:checked ~ .option-body { color: inherit; }
.option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .1); }
.option .ico-wrap {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--ink-100); color: var(--ink-600); flex: none; transition: all var(--transition);
}
.option:has(input:checked) .ico-wrap { background: var(--green-700); color: #fff; }
.option-body strong { display: block; font-size: .94rem; margin-bottom: 3px; }
.option-body span { font-size: .8rem; color: var(--ink-500); line-height: 1.45; display: block; }
.option-badge {
    position: absolute; top: 12px; right: 12px; font-size: .68rem; font-weight: 800;
    background: var(--yellow-500); color: var(--ink-900); padding: 2px 8px; border-radius: 5px;
}

.checkout-section { margin-bottom: 26px; }
.checkout-section > h2 {
    font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--ink-200);
}
.checkout-section > h2 .num {
    width: 26px; height: 26px; border-radius: 50%; background: var(--green-700); color: #fff;
    display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}

.mini-order { max-height: 300px; overflow-y: auto; }
.mini-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ink-100); align-items: center; }
.mini-line:last-child { border-bottom: 0; }
.mini-line img { width: 46px; height: 46px; object-fit: contain; background: var(--ink-50); border-radius: 8px; padding: 4px; }
.mini-line .name { font-size: .84rem; font-weight: 600; line-height: 1.35; }
.mini-line .qty { font-size: .76rem; color: var(--ink-500); }
.mini-line .amount { margin-left: auto; font-size: .86rem; font-weight: 700; white-space: nowrap; }

/* Confirmation */
.confirm-hero { text-align: center; padding: 40px 20px 30px; }
.confirm-icon {
    width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--green-100); color: var(--green-600); display: grid; place-items: center;
    animation: pop .45s cubic-bezier(.34, 1.56, .64, 1);
}
.confirm-icon .ico { width: 42px; height: 42px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.confirm-ref {
    display: inline-flex; align-items: center; gap: 10px; background: var(--ink-900); color: #fff;
    padding: 11px 22px; border-radius: var(--radius); font-weight: 800; letter-spacing: .06em; font-size: 1.05rem;
}

/* Paiement */
.pay-channel {
    display: flex; gap: 16px; padding: 18px; border: 2px solid var(--ink-200);
    border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); background: #fff;
    position: relative;
}
.pay-channel input { position: absolute; opacity: 0; }
.pay-channel:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.pay-channel .logo {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; flex: none; font-weight: 800;
}
.pay-number {
    font-size: 1.16rem; font-weight: 800; color: var(--ink-900); letter-spacing: .04em;
    display: flex; align-items: center; gap: 9px;
}
.copy-btn {
    background: var(--ink-100); border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer;
    font-size: .72rem; font-weight: 700; color: var(--ink-600); transition: all var(--transition);
}
.copy-btn:hover { background: var(--green-600); color: #fff; }

/* Suivi de commande */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--ink-200); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px;
    border-radius: 50%; background: #fff; border: 3px solid var(--ink-300);
}
.timeline-item.is-done::before { border-color: var(--green-500); background: var(--green-500); }
.timeline-item .when { font-size: .76rem; color: var(--ink-400); }
.timeline-item strong { display: block; font-size: .91rem; }
.timeline-item p { font-size: .84rem; color: var(--ink-500); margin: 3px 0 0; }

.order-progress { display: flex; gap: 6px; margin: 22px 0; }
.progress-step { flex: 1; text-align: center; }
.progress-bar { height: 5px; border-radius: 3px; background: var(--ink-200); margin-bottom: 9px; }
.progress-step.is-done .progress-bar { background: var(--green-500); }
.progress-step.is-current .progress-bar { background: var(--yellow-500); }
.progress-step span { font-size: .74rem; color: var(--ink-500); font-weight: 600; }
.progress-step.is-done span, .progress-step.is-current span { color: var(--ink-800); }

/* ---------------------------------------------------------------------
   8. COMPTE, TABLES, FOOTER
   --------------------------------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; }
.account-nav a {
    display: flex; align-items: center; gap: 11px; padding: 13px 18px; font-size: .9rem;
    border-bottom: 1px solid var(--ink-100); transition: all var(--transition); color: var(--ink-600);
}
.account-nav a:last-child { border-bottom: 0; }
.account-nav a:hover { background: var(--ink-50); color: var(--green-700); }
.account-nav a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 600; border-left: 3px solid var(--green-600); }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 20px; }
.stat-card .ico-wrap {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-50); color: var(--green-700); margin-bottom: 12px;
}
.stat-card .value { font-size: 1.55rem; font-weight: 800; color: var(--ink-900); line-height: 1.1; }
.stat-card .label { font-size: .82rem; color: var(--ink-500); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.table th {
    text-align: left; padding: 12px 14px; font-size: .74rem; font-weight: 700; color: var(--ink-500);
    text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink-200); white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--ink-100); vertical-align: middle; }
.table tbody tr:hover { background: var(--ink-50); }
.table tbody tr:last-child td { border-bottom: 0; }

.auth-wrap { max-width: 460px; margin: 44px auto; }
.auth-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; }
.auth-card > p { text-align: center; color: var(--ink-500); margin-bottom: 26px; font-size: .9rem; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-400); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }

/* Newsletter */
.newsletter {
    background: linear-gradient(120deg, var(--green-800), var(--green-600));
    border-radius: var(--radius-xl); padding: 38px; color: #fff; text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255, 255, 255, .84); max-width: 520px; margin: 0 auto 22px; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form .input { border: 0; }

/* Pied de page */
.site-footer { background: var(--ink-900); color: var(--ink-400); margin-top: 60px; }
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 48px 0 34px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-tag { color: var(--yellow-500); }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.footer-title { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-list a { font-size: .88rem; transition: all var(--transition); display: inline-flex; align-items: center; gap: 7px; }
.footer-list a:hover { color: var(--yellow-500); padding-left: 4px; }
.footer-contact { display: grid; gap: 13px; }
.footer-contact-item { display: flex; gap: 11px; font-size: .88rem; align-items: flex-start; }
.footer-contact-item .ico { color: var(--yellow-500); margin-top: 2px; }
.footer-contact-item strong { color: #fff; display: block; font-size: .92rem; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08);
    display: grid; place-items: center; transition: all var(--transition);
}
.socials a:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem;
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span {
    padding: 4px 10px; background: rgba(255, 255, 255, .08); border-radius: 6px;
    font-size: .72rem; font-weight: 700; color: var(--ink-300);
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center; z-index: 400;
    box-shadow: 0 8px 26px rgba(37, 211, 102, .45); transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .ico { width: 28px; height: 28px; }

.back-to-top {
    position: fixed; right: 20px; bottom: 86px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink-900); color: #fff; display: grid; place-items: center; z-index: 400;
    border: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* Panier lateral */
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 400px); background: #fff;
    z-index: 1000; transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer-head {
    padding: 18px 20px; border-bottom: 1px solid var(--ink-200);
    display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { margin: 0; font-size: 1.05rem; }
.drawer-head button { background: none; border: 0; cursor: pointer; color: var(--ink-500); padding: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--ink-200); background: var(--ink-50); }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .brand-strip { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .footer-grid > div:nth-child(3) { display: none; }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: block; }
    .filters-toggle { display: inline-flex; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .product-layout { grid-template-columns: 1fr; gap: 28px; }
    .gallery-main { aspect-ratio: 4 / 3; max-height: 420px; width: 100%; }
    .gallery-thumbs { justify-content: center; }
    .account-layout { grid-template-columns: 1fr; }
    .promo-strip { grid-template-columns: 1fr; }
    .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
    .reassurance-item { border-right: 0; border-bottom: 1px solid var(--ink-100); }
}

@media (max-width: 860px) {
    .nav-bar { display: none; }
    .menu-toggle { display: flex; }
    .search-form { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 12px; }
    .header-main { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
    .header-btn .label { display: none; }
    .topbar-left .hide-sm, .topbar-right .hide-sm { display: none; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .footer-grid > div:nth-child(3) { display: block; }
    .option-grid.cols-2 { grid-template-columns: 1fr; }
    .product-row { grid-template-columns: 110px 1fr; }
    .product-row .product-right { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .product-grid, .product-grid.cols-3, .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-strip { grid-template-columns: repeat(3, 1fr); }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 32px 0; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-thumb { width: 70px; height: 70px; }
    .cart-item > :last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
    .newsletter-form { flex-direction: column; }
    .steps .step-label { display: none; }
    .product-body { padding: 12px; }
    .product-name { font-size: .85rem; }
    .flash-stack { left: 14px; right: 14px; max-width: none; top: 78px; }
    .footer-grid { grid-template-columns: 1fr; }
    .strip-banner { padding: 24px; }
}

/* Impression */
@media print {
    .topbar, .site-header, .nav-bar, .site-footer, .whatsapp-float, .back-to-top,
    .breadcrumb, .no-print { display: none !important; }
    body { background: #fff; }
}

/* =====================================================================
   9. ESPACE CLIENT 2.1 : SUIVI, MESSAGERIE, NOTIFICATIONS, FAVORIS
   ===================================================================== */
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }
.link-green { color: var(--green-700); font-weight: 600; }
.link-green:hover { text-decoration: underline; }
.page-head .link-green { color: var(--yellow-400); }
.text-danger { color: var(--red-500) !important; }
.text-dark { color: var(--ink-900); }
.d-block { display: block; }
.badge.lg { padding: 6px 13px; font-size: .8rem; }
.eyebrow-sm { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.card-title { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sub-title { font-size: .92rem; margin: 22px 0 12px; color: var(--ink-700); }
.stack { display: grid; gap: 16px; align-content: start; }
[hidden] { display: none !important; }

/* En-tete : cloche et favoris */
.header-icon { position: relative; padding: 9px; }
.cart-count.is-alert { background: var(--red-500); color: #fff; }
.cart-count.is-soft { background: var(--green-600); color: #fff; }

/* Navigation laterale du compte */
.account-side { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 14px); }
.account-id {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff;
    border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
}
.account-id strong { display: block; font-size: .93rem; line-height: 1.3; }
.avatar {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: #fff; font-weight: 800; letter-spacing: .02em;
}
.account-nav a span:first-of-type { flex: 1; }
.account-nav a.is-logout { color: var(--red-500); }
.nav-count {
    min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red-500); color: #fff;
    font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; margin-left: auto;
}
.account-main { display: grid; gap: 20px; align-content: start; min-width: 0; }
.account-main > .card, .account-main > .notice { margin: 0; }

.stat-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
a.stat-card { transition: all var(--transition); }
a.stat-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-card .ico-wrap.is-blue { background: var(--blue-50); color: var(--blue-500); }
.stat-card .ico-wrap.is-yellow { background: var(--yellow-100); color: #a16207; }
.stat-card .value.value-sm { font-size: 1.15rem; }

/* Commande en cours (tableau de bord) */
.active-order { border-color: var(--green-100); box-shadow: 0 10px 30px rgba(15, 107, 58, .08); }
.active-order .card-head h2 { font-size: 1.2rem; }
.active-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 14px 16px; background: var(--ink-50); border-radius: var(--radius); }
.active-meta span { display: block; }
.active-meta strong { font-size: .92rem; }

.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }

.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li + li { border-top: 1px solid var(--ink-100); }
.row-list a { display: flex; align-items: center; gap: 12px; padding: 13px 20px; transition: background var(--transition); }
.row-list a:hover { background: var(--ink-50); }
.row-list .is-unread a { background: var(--green-50); }
.row-list .is-unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); margin-left: 7px; vertical-align: middle; }
.row-icon {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
    background: var(--ink-100); color: var(--ink-600);
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .88rem; }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-links a {
    display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg); transition: all var(--transition); color: var(--green-700);
}
.quick-links a:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-links strong { display: block; font-size: .88rem; color: var(--ink-900); }
.quick-links small { color: var(--ink-500); font-size: .76rem; }

/* Couleurs par type de notification */
.type-order    { background: var(--green-50) !important; color: var(--green-700) !important; }
.type-tracking { background: var(--blue-50) !important; color: var(--blue-500) !important; }
.type-payment  { background: #fef3c7 !important; color: #a16207 !important; }
.type-message  { background: #ede9fe !important; color: #6d28d9 !important; }
.type-promo    { background: #fce7f3 !important; color: #be185d !important; }
.type-alert    { background: var(--red-50) !important; color: var(--red-500) !important; }
.type-account, .type-info { background: var(--ink-100) !important; color: var(--ink-600) !important; }

/* Etapes de progression */
.stepper {
    --progress: 0;
    list-style: none; margin: 4px 0 22px; padding: 0; display: flex; justify-content: space-between; position: relative;
}
.stepper::before, .stepper::after {
    content: ""; position: absolute; top: 19px; left: 10%; right: 10%; height: 4px; border-radius: 4px; background: var(--ink-200);
}
.stepper::after { right: auto; width: calc(80% * var(--progress) / 100); background: linear-gradient(90deg, var(--green-500), var(--green-600)); transition: width .6s ease; }
.stepper li { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stepper-dot {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff;
    border: 3px solid var(--ink-200); color: var(--ink-400); transition: all var(--transition);
}
.stepper-label { font-size: .76rem; font-weight: 600; color: var(--ink-500); line-height: 1.25; }
.stepper li.is-done .stepper-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.stepper li.is-current .stepper-dot { background: var(--yellow-500); border-color: var(--yellow-400); color: var(--ink-900); box-shadow: 0 0 0 6px rgba(250, 204, 21, .25); }
.stepper li.is-done .stepper-label, .stepper li.is-current .stepper-label { color: var(--ink-900); }
.stepper-cancelled {
    display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 18px;
    border-radius: var(--radius); background: var(--red-50); color: #991b1b; border: 1px solid #fecaca;
}
.stepper-cancelled strong, .stepper-cancelled span { display: block; }

/* Historique de suivi */
.track-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.track-timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--ink-200); }
.track-event { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.track-event:last-child { padding-bottom: 0; }
.track-icon {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; z-index: 1;
    background: #fff; border: 2px solid var(--ink-200); color: var(--ink-500);
}
.track-event.is-latest .track-icon { background: var(--green-600); border-color: var(--green-600); color: #fff; box-shadow: 0 0 0 5px var(--green-100); }
.track-event.event-cancelled .track-icon, .track-event.event-issue .track-icon, .track-event.event-attempt .track-icon { border-color: #fecaca; color: var(--red-500); }
.track-event.is-latest.event-cancelled .track-icon, .track-event.is-latest.event-issue .track-icon { background: var(--red-500); border-color: var(--red-500); color: #fff; box-shadow: 0 0 0 5px var(--red-50); }
.track-body { flex: 1; min-width: 0; padding-top: 6px; }
.track-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.track-head strong { font-size: .92rem; }
.track-event:not(.is-latest) .track-head strong { font-weight: 600; color: var(--ink-700); }
.track-head time { font-size: .76rem; color: var(--ink-400); white-space: nowrap; }
.track-place { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ink-500); margin-top: 2px; }
.track-body p { margin: 4px 0 0; font-size: .85rem; color: var(--ink-600); }

.tracking-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-500); background: var(--ink-50); border: 1px dashed var(--ink-300); border-radius: 999px; padding: 5px 6px 5px 14px; }
.tracking-chip strong { color: var(--ink-900); }

.shipping-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.shipping-info > div { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; background: var(--ink-50); border-radius: var(--radius); }
.shipping-info .ico { color: var(--green-700); margin-top: 3px; }
.shipping-info small { display: block; font-size: .72rem; color: var(--ink-500); }
.shipping-info strong, .shipping-info a { font-size: .88rem; }

/* Liste des commandes */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
    background: #fff; border: 1px solid var(--ink-200); color: var(--ink-600); transition: all var(--transition);
}
.pill-tabs a span { font-size: .72rem; background: var(--ink-100); border-radius: 999px; padding: 1px 7px; color: var(--ink-500); }
.pill-tabs a:hover { border-color: var(--green-500); color: var(--green-700); }
.pill-tabs a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pill-tabs a.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.mini-search { display: flex; gap: 6px; }
.mini-search .input { padding: 8px 12px; min-width: 220px; }

.order-card-body { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.thumbs { display: flex; align-items: center; }
.thumbs img, .thumb-more {
    width: 54px; height: 54px; border-radius: 12px; object-fit: contain; background: var(--ink-50);
    border: 2px solid #fff; box-shadow: var(--shadow-xs); margin-left: -10px; padding: 4px;
}
.thumbs img:first-child { margin-left: 0; }
.thumb-more { display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-600); background: var(--ink-100); }
.order-card-meta { display: flex; gap: 12px 26px; flex-wrap: wrap; flex: 1; }
.order-card-meta span, .order-card-meta strong { display: block; }
.mini-progress { height: 5px; border-radius: 5px; background: var(--ink-100); margin: 16px 0 14px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--yellow-500)); border-radius: 5px; }
.order-card-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.order-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.action-list { display: grid; gap: 8px; }
.cancel-box { display: none; border-color: #fecaca; }
.cancel-box.is-open, .cancel-box:target { display: block; }

/* Notifications */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li + li { border-top: 1px solid var(--ink-100); }
.notif-list a { display: flex; gap: 14px; padding: 16px 20px; transition: background var(--transition); }
.notif-list a:hover { background: var(--ink-50); }
.notif-list .is-unread a { background: linear-gradient(90deg, var(--green-50), #fff 70%); box-shadow: inset 3px 0 0 var(--green-500); }
.notif-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.notif-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.notif-head { display: flex; justify-content: space-between; gap: 12px; }
.notif-head strong { font-size: .93rem; }
.notif-list li:not(.is-unread) .notif-head strong { font-weight: 600; color: var(--ink-700); }
.notif-head time { font-size: .76rem; color: var(--ink-400); white-space: nowrap; }
.notif-text { font-size: .86rem; color: var(--ink-600); }
.notif-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notif-meta .link-green { display: inline-flex; align-items: center; gap: 4px; }

/* Messagerie */
.conv-list { list-style: none; margin: 0; padding: 0; }
.conv-list li + li { border-top: 1px solid var(--ink-100); }
.conv-list a { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; transition: background var(--transition); }
.conv-list a:hover { background: var(--ink-50); }
.conv-list .is-unread a { background: var(--green-50); }
.conv-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--ink-100); color: var(--ink-600);
}
.conv-avatar.is-shop { background: var(--green-700); color: #fff; }
.conv-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.conv-head { display: flex; justify-content: space-between; gap: 10px; }
.conv-head strong { font-size: .93rem; }
.conv-head time { font-size: .76rem; color: var(--ink-400); white-space: nowrap; }
.conv-last { font-size: .86rem; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }

.chat { overflow: hidden; }
.chat-thread {
    max-height: 560px; overflow-y: auto; padding: 20px; display: grid; gap: 10px;
    background: linear-gradient(180deg, var(--ink-50), #fff);
}
.chat-day { text-align: center; margin: 6px 0; }
.chat-day span { font-size: .72rem; font-weight: 700; color: var(--ink-500); background: var(--ink-100); padding: 3px 10px; border-radius: 999px; }
.chat-msg { display: flex; }
.chat-msg.is-mine { justify-content: flex-end; }
.chat-bubble {
    max-width: min(78%, 560px); padding: 10px 14px 7px; border-radius: 16px; background: #fff;
    border: 1px solid var(--ink-200); box-shadow: var(--shadow-xs); position: relative;
}
.chat-msg.is-shop .chat-bubble { border-top-left-radius: 4px; }
.chat-msg.is-mine .chat-bubble { background: var(--green-700); border-color: var(--green-700); color: #fff; border-top-right-radius: 4px; }
.chat-author { display: block; font-size: .74rem; font-weight: 700; color: var(--green-700); margin-bottom: 2px; }
.chat-text { font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-bubble time { display: block; text-align: right; font-size: .68rem; opacity: .65; margin-top: 3px; }
.chat-form { padding: 14px 20px 18px; border-top: 1px solid var(--ink-200); background: #fff; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; }
.chat-input .textarea { min-height: 48px; max-height: 220px; }

/* Carnet d'adresses */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.address-card {
    background: #fff; border: 1.5px solid var(--ink-200); border-radius: var(--radius-lg); padding: 16px 18px;
    display: flex; flex-direction: column; transition: border-color var(--transition);
}
.address-card.is-default { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-50); }
.address-card.is-editing { border-color: var(--yellow-500); }
.address-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.address-head strong { display: inline-flex; align-items: center; gap: 6px; }
.address-actions { display: flex; gap: 6px; margin-top: auto; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--ink-100); }

.address-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.address-pick { position: relative; cursor: pointer; }
.address-pick input { position: absolute; opacity: 0; pointer-events: none; }
.address-pick span {
    display: block; padding: 11px 14px; border: 1.5px solid var(--ink-200); border-radius: var(--radius); background: #fff;
    transition: all var(--transition); height: 100%;
}
.address-pick strong { display: block; font-size: .88rem; }
.address-pick small { color: var(--ink-500); font-size: .78rem; }
.address-pick input:checked + span { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.address-pick input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }

.account-offer { margin-top: 6px; padding: 14px 16px; border-radius: var(--radius); background: var(--green-50); border: 1px dashed var(--green-500); }
.pref-box { padding: 14px 16px; background: var(--ink-50); border-radius: var(--radius); margin-bottom: 18px; }
.pref-box .help-text { margin-top: 2px; }

/* Activation apres commande */
.activate-card { border: 1.5px solid var(--green-500); background: linear-gradient(135deg, var(--green-50), #fff 60%); }
.activate-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.activate-head h2 { font-size: 1.12rem; margin-bottom: 4px; }
.activate-head .ico-wrap { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-700); color: #fff; flex: none; }

/* Captcha du formulaire de contact */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { width: 190px; height: 60px; border-radius: var(--radius-sm); border: 1.5px solid var(--ink-200); background: var(--ink-50); user-select: none; }
.captcha-refresh {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink-200); background: #fff; cursor: pointer;
    display: grid; place-items: center; color: var(--ink-600); transition: all var(--transition);
}
.captcha-refresh:hover { border-color: var(--green-500); color: var(--green-700); }
.captcha-refresh.is-spinning .ico { animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.captcha-question { font-weight: 700; padding: 10px 14px; background: var(--ink-100); border-radius: var(--radius-sm); }
.captcha-input { max-width: 190px; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.captcha-input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 400; }

/* Favoris */
.wish-btn { cursor: pointer; }
.product-quick .wish-btn.is-on, .product-quick form .wish-btn.is-on { background: var(--red-500); border-color: var(--red-500); color: #fff; }
.product-quick .wish-btn.is-on .ico, .wish-link.is-on .ico { fill: currentColor; }
.product-quick form { display: contents; }
.wish-inline { margin: -6px 0 18px; }
.wish-link {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0;
    font-weight: 600; font-size: .9rem; color: var(--ink-600); transition: color var(--transition);
}
.wish-link:hover { color: var(--red-500); }
.wish-link.is-on { color: var(--red-500); }

/* Suivi public */
.track-search { max-width: 760px; margin: 0 auto 28px; }
.track-result { max-width: 1080px; margin-inline: auto; display: grid; gap: 20px; }
.track-result .card-head h2 { font-size: 1.25rem; }

@media (max-width: 1180px) {
    .quick-links { grid-template-columns: repeat(2, 1fr); }
    .stat-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .account-side { position: static; }
    .account-nav { display: flex; overflow-x: auto; scrollbar-width: thin; }
    .account-nav a { border-bottom: 0; border-right: 1px solid var(--ink-100); white-space: nowrap; flex: none; }
    .account-nav a.is-active { border-left: 0; box-shadow: inset 0 -3px 0 var(--green-600); }
    .account-id { display: none; }
    .dash-grid, .order-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .stat-cards.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .quick-links { grid-template-columns: 1fr; }
    .stepper-label { font-size: .66rem; }
    .stepper-dot { width: 34px; height: 34px; }
    .stepper::before, .stepper::after { top: 15px; }
    .mini-search, .mini-search .input { width: 100%; min-width: 0; }
    .chat-bubble { max-width: 90%; }
    .chat-input { flex-direction: column; align-items: stretch; }
    .order-card-actions { justify-content: stretch; }
    .order-card-actions .btn { flex: 1; }
    .row-side .badge { display: none; }
    .header-icon { padding: 7px; }
}

/* ---------------------------------------------------------------------
   LOGOS DES MARQUES PARTENAIRES
   --------------------------------------------------------------------- */
.brand-chip img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Page "Nos marques" */
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brand-card {
    background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 20px 16px;
    text-align: center; transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.brand-card:hover { border-color: var(--green-500); box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-card-logo {
    height: 64px; width: 100%; display: grid; place-items: center; margin-bottom: 10px;
    padding: 6px 10px; background: #fff; border-radius: var(--radius-sm);
}
.brand-card-logo img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand-initials {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green-50); color: var(--green-700); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em;
}
.brand-card h3 { font-size: .98rem; margin: 0; }
.brand-count { font-size: .8rem; color: var(--ink-500); }

/* Filtre du catalogue */
.filter-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.filter-brand img { height: 18px; width: 40px; object-fit: contain; object-position: left center; flex: none; mix-blend-mode: multiply; }

/* Fiche produit */
.brand-inline { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.brand-inline img { height: 22px; width: auto; max-width: 68px; object-fit: contain; mix-blend-mode: multiply; }
.brand-inline:hover strong { color: var(--green-700); }

/* En-tete d'une page de marque */
.page-head-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.page-head-brand h1, .page-head-brand p { margin: 0; }
.brand-badge {
    background: #fff; border-radius: var(--radius); padding: 10px 14px; display: grid; place-items: center;
    box-shadow: var(--shadow-sm); flex: none;
}
.brand-badge img { height: 46px; max-width: 150px; width: auto; object-fit: contain; }

@media (max-width: 1180px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  {
    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .brand-badge img { height: 34px; max-width: 110px; }
}
