/* ═══════════════════════════════════════════════════════
   VPX Markets — main.css
   ═══════════════════════════════════════════════════════ */

/* ── Variables (surchargeables par l'admin via :root inline) ── */
:root {
    /* ── Palette Urban Bold validée ── */
    --color-primary:     #111111;
    --color-primary-2:   #222222;
    --color-accent:      #ff3c00;
    --color-accent-dark: #cc3000;
    --color-accent-light:#ff6633;
    --color-bg:          #f5f5f5;
    --color-surface:     #ffffff;
    --color-border:      #e5e5e5;
    --color-text:        #111111;
    --color-text-muted:  #666666;
    --color-muted:       #666666;
    --color-bg-alt:      #f0f0f0;
    --color-success:     #059669;
    --color-error:       #dc2626;
    --color-warning:     #d97706;
    --color-info:        #2563eb;
    --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius:            6px;
    --radius-lg:         12px;
    --shadow-sm:         0 1px 3px rgba(0,0,0,.10);
    --shadow-md:         0 4px 16px rgba(0,0,0,.14);
    --shadow-lg:         0 12px 40px rgba(0,0,0,.18);
    --transition:        0.15s ease;
    --container-width:   1200px;
    --header-height:     64px;
}

/* ── Accessibilité — focus visible ── */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
#main-content { flex: 1; padding-top: var(--header-height); }

/* ── Header (2 barres : blanc + noir) ── */
:root { --header-height: 118px; /* ligne1 70px + ligne2 48px */ }

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Ligne 1 — fond blanc */
.header-top {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}
.header-top-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}
/* Separateur visuel entre recherche et icônes */
.header-icons { margin-left: auto; }

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -1px;
    text-transform: uppercase;
}
.logo-accent { color: var(--color-accent); }

/* Barre de recherche large */
.header-search {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    flex: 1;
    max-width: 520px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255,60,0,.1);
}
.header-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    font-family: inherit;
    min-width: 0;
}
.header-search-input::placeholder { color: #999; }
.header-search-input::-webkit-search-cancel-button { display: none; }
.header-search-btn {
    background: var(--color-accent);
    border: none;
    color: #fff;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.header-search-btn:hover { background: var(--color-accent-dark); }

/* Icônes droite (compte / favoris / panier) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.header-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: var(--color-text);
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}
.header-icon-btn:hover { color: var(--color-accent); }
.header-icon-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    line-height: 1;
}
.cart-icon-wrap { position: relative; display: flex; }
.cart-count {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.header-auth-links { display: flex; align-items: center; gap: 0.5rem; }

/* Sélecteurs langue/devise (sur fond blanc) */
.header-selector { position: relative; }
.header-sel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: var(--color-text);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.header-sel-btn:hover { border-color: var(--color-accent); background: #fff; }
.selector-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    z-index: 1200;
    overflow: hidden;
}
.selector-dropdown.open { display: block; }
.selector-dropdown li { border-top: 1px solid var(--color-border); }
.selector-dropdown li:first-child { border-top: none; }
.selector-dropdown a,
.selector-dropdown button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    background: none;
    border: none;
    font-size: 0.9rem;
    text-align: left;
    transition: background var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.selector-dropdown a:hover,
.selector-dropdown button:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.selector-dropdown .active { font-weight: 700; color: var(--color-accent); }
.dropdown-divider { border-top: 2px solid var(--color-border) !important; }

/* Ligne 2 — fond noir — nav catégories */
.header-nav {
    background: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
}
.header-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}
.main-nav a {
    color: rgba(255,255,255,.8);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-bottom-color: var(--color-accent);
}
.nav-flash-link {
    color: var(--color-accent) !important;
    font-weight: 700 !important;
}
.nav-flash-link:hover { border-bottom-color: var(--color-accent) !important; }

/* ── Sélecteur générique (hors header) ── */
.selector { position: relative; }
.selector-btn { cursor: pointer; }

/* ── Boutons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
}
.btn-primary  { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-secondary{ background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-danger   { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.btn-sm  { padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn-lg  { padding: 0.8rem 1.75rem; font-size: 1.05rem; }
.btn-full{ width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Formulaires ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
.form-control {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255,60,0,.12); }
.form-control.is-invalid { border-color: var(--color-error); }
.form-error { font-size: 0.82rem; color: var(--color-error); margin-top: 0.3rem; }

/* ── Alertes ── */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    border: 1px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* ── Cards ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }

/* ── Footer ── */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,.75);
    padding: 2rem 0;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 0.82rem; margin-top: 0.4rem; color: rgba(255,255,255,.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: 0.85rem; transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }

/* ── Badges statut commande ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-paid      { background: #d1fae5; color: #065f46; }
.badge-shipping  { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #f3f4f6; color: #374151; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-refunded  { background: #ede9fe; color: #5b21b6; }

/* ── Grid produits ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--color-bg);
}
.product-card-body { padding: 1rem; }
.product-card-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.product-card-price { color: var(--color-accent); font-weight: 700; font-size: 1.05rem; }
.product-card-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* ── Mobile menu toggle (dans header-top, fond blanc) ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 7px;
    flex-shrink: 0;
}
.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ══════════════════════════════════════════════════════════
   FICHE PRODUIT
   ══════════════════════════════════════════════════════════ */
.breadcrumb {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.product-gallery {}
.product-gallery-main {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-text-muted);
}
.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: border-color var(--transition);
}
.product-thumb:hover, .product-thumb.active { border-color: var(--color-accent); }

.product-info { padding-top: 0.5rem; }
.product-brand {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.product-stock {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.product-stock.in-stock { background: #d1fae5; color: #065f46; }
.product-stock.out-of-stock { background: #fee2e2; color: #991b1b; }

.variant-group-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-btn {
    padding: 0.35rem 0.85rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.variant-btn:hover:not(:disabled) { border-color: var(--color-accent); }
.variant-btn.selected { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); font-weight: 700; }
.variant-btn:disabled, .variant-btn.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.product-actions { margin-top: 1.25rem; }
.product-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* ── Utilitaires ── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.justify-between { justify-content: space-between; }
.align-center    { align-items: center; }
.flex-wrap       { flex-wrap: wrap; }
.w-100 { width: 100%; }
.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;
}

/* ══════════════════════════════════════════════════════════
   CATALOGUE — Layout & Filtres
   ══════════════════════════════════════════════════════════ */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}
.catalog-filters {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
.filter-section { margin-bottom: 1.5rem; }
.filter-section:last-child { margin-bottom: 0; }
.filter-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}
.filter-link {
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--color-text);
    transition: background var(--transition), color var(--transition);
    margin-bottom: 0.1rem;
}
.filter-link:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.filter-link.active {
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    color: var(--color-accent);
    font-weight: 600;
}

.catalog-main { min-width: 0; }
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.catalog-count {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ══════════════════════════════════════════════════════════
   CARTES PRODUIT — Badges & placeholders
   ══════════════════════════════════════════════════════════ */
.product-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img-link { display: block; overflow: hidden; background: var(--color-bg-alt); }
.product-card-img-link:hover .product-card-img { transform: scale(1.04); }
.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}
.product-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-border);
}
/* SVG placeholder icon */
.product-card-img-placeholder::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    background: var(--color-border);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}
.product-card-body {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}
.product-card-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.4;
    transition: color var(--transition);
    /* 2-line clamp */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card-title:hover { color: var(--color-accent); }
.product-card-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: auto;
}
.product-card-price .price-current { color: var(--color-accent); }
.product-card-price .price-original { text-decoration: line-through; font-size: 0.8rem; font-weight: 400; color: var(--color-text-muted); }
.product-card-price .price-badge { background: var(--color-accent); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 3px; }
.product-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.6rem;
}
.product-card-actions .btn { flex: 1; }

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.badge-featured { background: var(--color-primary); color: #fff; }
.badge-out-of-stock { background: #888; color: #fff; }
.badge-flash { background: var(--color-accent); color: #fff; }
.badge-new { background: var(--color-info); color: #fff; }
.badge-promo { background: var(--color-accent); color: #fff; font-weight: 800; }

/* ── Bouton icône ── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.btn-icon:hover { background: var(--color-bg); color: var(--color-accent); border-color: var(--color-accent); }
.btn-icon.is-favorited { color: var(--color-accent); border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-btn:hover { border-color: var(--color-accent); color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.page-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 700; }

/* ── États vides ── */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}
.empty-state p { font-size: 1rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════
   PANIER
   ══════════════════════════════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-alt);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-text-muted);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.cart-item-name:hover { color: var(--color-accent); }
.cart-item-variant {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}
.cart-item-price {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.qty-btn:hover { border-color: var(--color-accent); background: var(--color-bg); }
.cart-item-total {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}
.cart-summary { position: sticky; top: calc(var(--header-height) + 1rem); }
.cart-summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
    color: var(--color-text-muted);
}
.cart-summary-total {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════
   COMPTE CLIENT — Layout & Sidebar
   ══════════════════════════════════════════════════════════ */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
.account-main { min-width: 0; }

/* Sidebar client */
.client-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
.client-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--color-primary);
    color: #fff;
}
.client-sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.client-sidebar-name {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-sidebar-email {
    font-size: 0.75rem;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-sidebar-nav { padding: 0.5rem 0; }
.client-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.client-sidebar-link:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.client-sidebar-link.active {
    background: color-mix(in srgb, var(--color-accent) 8%, transparent);
    color: var(--color-accent);
    font-weight: 600;
    border-left-color: var(--color-accent);
}
.client-sidebar-icon { flex-shrink: 0; width: 20px; display: flex; align-items: center; justify-content: center; }
.client-sidebar-link-logout { color: var(--color-error); margin-top: 0.25rem; border-top: 1px solid var(--color-border); }
.client-sidebar-link-logout:hover { background: #fee2e2; color: var(--color-error); }

/* Stats compte */
.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.account-stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}
.account-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.account-stat-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Onglets compte */
.account-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 1.5rem;
}
.account-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}
.account-tab:hover { color: var(--color-accent); }
.account-tab.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.account-tab-content { /* visibility controlled via JS display:none */ }

/* Form rows (compte + admin) */
.admin-form { display: flex; flex-direction: column; gap: 0; }
.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ══════════════════════════════════════════════════════════
   TABLEAUX (commandes, admin)
   ══════════════════════════════════════════════════════════ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--color-bg-alt); }

/* ══════════════════════════════════════════════════════════
   SECTION TITRES (page sections)
   ══════════════════════════════════════════════════════════ */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════════════
   SKIP LINK (accessibilité)
   ══════════════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ══════════════════════════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   FLASH MESSAGE (toast)
   ══════════════════════════════════════════════════════════ */
#vpx-flash {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--color-text);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}
#vpx-flash.show { transform: translateX(-50%) translateY(0); }
#vpx-flash.flash-success { background: var(--color-success); }
#vpx-flash.flash-error   { background: var(--color-error); }
#vpx-flash.flash-warning { background: var(--color-warning); }
#vpx-flash.flash-info    { background: var(--color-info); }

/* ══════════════════════════════════════════════════════════
   FOOTER ENRICHI
   ══════════════════════════════════════════════════════════ */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0 2rem;
}
.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,.55);
    margin-bottom: 0.75rem;
}
.footer-col-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col-links a { color: rgba(255,255,255,.65); font-size: 0.85rem; }
.footer-col-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255,255,255,.45);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 200px 1fr; gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .product-detail-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; /* top bar seulement, nav collapse */ }

    /* Hero mobile */
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 0; gap: 1.5rem; min-height: auto; }
    .hero-flash-sidebar { max-height: 280px; }
    .hero-actions { justify-content: center; }

    /* Perks */
    .perks-grid { grid-template-columns: 1fr 1fr; }
    .perk-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
    .perk-item:nth-child(even) { border-bottom: none; }

    /* CTA */
    .cta-inner { flex-direction: column; text-align: center; }
    .btn-cta { width: 100%; text-align: center; }

    /* Header top : cacher langue/devise, afficher burger */
    .mobile-menu-toggle { display: flex; }
    .header-sel-btn { font-size: 0.72rem; padding: 0.25rem 0.45rem; }
    .header-icon-label { display: none; }
    .header-search { max-width: 100%; }

    /* Nav bar — collapse en mobile */
    .header-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 999; }
    .header-nav.nav-open { display: block; }
    .main-nav { flex-direction: column; gap: 0; }
    .main-nav a { padding: 0.9rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); border-left: none; }

    /* Catalogue mobile */
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .catalog-filters {
        position: static;
        display: none;
    }
    .catalog-filters.open { display: block; }

    /* Panier mobile */
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary { position: static; }
    .cart-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    /* Fiche produit mobile */
    .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-title { font-size: 1.3rem; }

    /* Compte mobile */
    .account-layout {
        grid-template-columns: 1fr;
    }
    .client-sidebar { position: static; }
    .account-stats { grid-template-columns: repeat(3, 1fr); }
    .admin-form-row { grid-template-columns: 1fr; }

    /* Footer mobile */
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .perks-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .header-actions { gap: 0.4rem; }
    .account-stats { grid-template-columns: 1fr; }
    .admin-form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-item-qty { width: 100%; justify-content: flex-start; }
    .cart-item-total { width: 100%; text-align: left; }
    .pagination .page-btn { min-width: 34px; height: 34px; font-size: 0.82rem; }
}

@media (max-width: 375px) {
    .products-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    .hero-title { font-size: 1.9rem; }
    .login-box { padding: 2rem 1.25rem; margin: 1.5rem auto; }
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS E-COMMERCE — BOUCLE 7
   ══════════════════════════════════════════════════════════ */

/* Entrée douce des cartes produits */
.product-card {
    animation: card-in 0.3s ease both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hover bouton principal */
.btn-primary:active, .btn-hero-primary:active, .btn-cta:active {
    transform: scale(0.97);
}

/* Transition badge flash */
.badge-flash, .badge-promo {
    animation: badge-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,60,0,0); }
    50%      { box-shadow: 0 0 0 4px rgba(255,60,0,.25); }
}

/* Ajout panier — feedback visuel */
.btn.cart-added {
    animation: cart-pop 0.35s ease;
}
@keyframes cart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Cart count update */
#cart-count.updated {
    animation: count-bounce 0.4s ease;
}
@keyframes count-bounce {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.4); }
}

/* Focus input micro-interaction */
.form-control {
    transition: border-color var(--transition), box-shadow var(--transition), transform 0.1s ease;
}
.form-control:focus { transform: translateY(-1px); }

/* Transition skeleton / chargement différé */
.product-card-img[loading="lazy"] {
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-border) 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toast entrée */
#vpx-flash.show {
    animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes toast-in {
    from { transform: translateX(-50%) translateY(120%) scale(0.9); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

/* Sidebar client lien hover */
.client-sidebar-link {
    transition: background var(--transition), color var(--transition), border-color var(--transition), padding-left 0.15s ease;
}
.client-sidebar-link:hover { padding-left: 1.45rem; }
.client-sidebar-link.active { padding-left: 1.45rem; }

/* Mobile menu slide */
.main-nav {
    transition: opacity 0.2s ease;
}
.main-nav.nav-open { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 320px) {
    .container { padding: 0 0.75rem; }
    .hero-title { font-size: 1.6rem; }
    .btn-hero-primary, .btn-hero-outline { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
    .account-stats { grid-template-columns: 1fr; }
}

@media (min-width: 1920px) {
    :root { --container-width: 1400px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ══════════════════════════════════════════════════════════
   CLASSES MANQUANTES — ajoutées BOUCLE 2
   ══════════════════════════════════════════════════════════ */

/* ── Utilitaires manquants ── */
.mb-4 { margin-bottom: 2rem; }
.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: #047857; border-color: #047857; color: #fff; }

/* ── Login / Register card ── */
.login-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 440px;
    margin: 3rem auto;
    box-shadow: var(--shadow-md);
}
.login-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    text-align: center;
}
.login-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ── Formulaire : rangée 2 colonnes (front) ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ── Sélecteur compte (header) ── */
.account-selector { position: relative; }
.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}
.account-btn:hover { background: rgba(255,255,255,.18); }

/* ── Hero section accueil ── */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 60%, #1a0a00 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,60,0,.12) 100%);
    pointer-events: none;
}

/* ── Grille 4 colonnes (alternatives) ── */
.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .products-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Commandes client ── */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.order-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--color-bg-alt);
}
.order-card-body {
    padding: 1rem 1.25rem;
}
.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    flex-wrap: wrap;
}

/* ── Détail commande : liste articles ── */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
}
.order-item-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--color-bg-alt);
}
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-weight: 600; font-size: 0.9rem; }
.order-item-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.2rem; }
.order-item-price { font-weight: 700; white-space: nowrap; }

/* ── Notifications ── */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}
.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface)); }
.notification-item:hover { background: var(--color-bg-alt); }
.notif-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}
.notif-body { font-size: 0.85rem; color: var(--color-text-muted); }
.notif-date { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.btn-mark-read {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition), border-color var(--transition);
}
.btn-mark-read:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ── Pages légales ── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    line-height: 1.8;
    font-size: 0.95rem;
    color: var(--color-text);
}
.legal-content h1 { font-size: 1.75rem; font-weight: 900; margin-bottom: 0.5rem; }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.5rem; color: var(--color-text); }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════
   HOME PAGE — sections
   ══════════════════════════════════════════════════════════ */

/* ══ Hero ══════════════════════════════════════════════════ */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: stretch;
    padding: 3.5rem 0;
    min-height: 440px;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    background: rgba(255,60,0,.12);
    border: 1px solid rgba(255,60,0,.3);
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    width: fit-content;
}
.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.hero-title-accent {
    display: block;
    color: var(--color-accent);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: #fff;
    color: var(--color-text);
    border: 2px solid #fff;
    padding: 0.85rem 1.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-hero-primary:hover { background: #f0f0f0; border-color: #f0f0f0; color: var(--color-text); }
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
    padding: 0.85rem 1.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: #fff; }

/* Flash deals sidebar dans le hero */
.hero-flash-sidebar {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hero-flash-header {
    background: rgba(255,255,255,.07);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-flash-header-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.6);
}
.hero-flash-dot {
    width: 8px; height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-flash-list { flex: 1; overflow-y: auto; }
.hero-flash-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: background var(--transition);
}
.hero-flash-item:last-child { border-bottom: none; }
.hero-flash-item:hover { background: rgba(255,255,255,.05); }
.hero-flash-thumb {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255,255,255,.1);
}
.hero-flash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-flash-info { flex: 1; min-width: 0; }
.hero-flash-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}
.hero-flash-price {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.hero-flash-current { font-size: 0.92rem; font-weight: 800; color: #fff; }
.hero-flash-original { font-size: 0.75rem; color: rgba(255,255,255,.4); text-decoration: line-through; }
.hero-flash-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    flex-shrink: 0;
}
.hero-flash-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    color: rgba(255,255,255,.3);
    text-align: center;
    font-size: 0.85rem;
}

/* Perks bar — fond ORANGE #ff3c00 */
.perks-bar {
    background: var(--color-accent);
    padding: 0.85rem 0;
    border-top: none;
}
.perks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.perk-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.4rem 0.75rem;
    border-right: 1px solid rgba(255,255,255,.25);
}
.perk-item:last-child { border-right: none; }
.perk-icon { display: flex; align-items: center; flex-shrink: 0; opacity: 0.9; }
.perk-item strong { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px; }
.perk-item small { display: none; }

/* Section layout commun */
.home-section { padding: 3.5rem 0; }
.home-section-alt { background: var(--color-bg-alt); }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.section-title-accent {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent);
    text-transform: uppercase;
}
.section-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.75; color: var(--color-accent); }

/* Flash section */
.flash-section {
    background: #1a0500;
    padding: 3.5rem 0;
    border-top: 3px solid var(--color-accent);
}
.countdown-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-variant-numeric: tabular-nums;
}
.flash-section .section-title-accent { color: #fff; }
.flash-section .section-title-accent span { color: var(--color-accent); }

/* Catégories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.category-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-card-img {
    height: 110px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a0a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-placeholder { font-size: 2.5rem; }
.category-card-name {
    padding: 0.65rem 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text);
}

/* CTA */
.cta-section {
    background: var(--color-primary);
    padding: 3.5rem 0;
    border-top: 3px solid var(--color-accent);
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-title { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.cta-sub { color: rgba(255,255,255,.75); font-size: 1rem; }
.btn-cta {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-cta:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

/* ── Alias product-card-name → product-card-title (les deux coexistent) ── */
.product-card-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.35rem;
    line-height: 1.4;
    transition: color var(--transition);
}
.product-card-name:hover { color: var(--color-accent); }
