/* ============================================
   POKÉDEX MARKET - Styles v7.0
   ============================================ */

:root {
    --primary: #e8a500;
    --primary-dark: #c78f00;
    --secondary: #2563eb;
    --dark: #1a1a2e;
    --light: #f5f6fa;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--light);
    color: var(--gray-700);
    min-height: 100vh;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--dark) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand img {
    height: 32px;
}
.nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--primary) !important;
}

/* CART ICON - TRÈS VISIBLE */
.cart-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    color: var(--dark) !important;
    font-size: 1.25rem;
    margin-left: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}
.cart-icon-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    color: #fff !important;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark);
}

/* ============================================
   CARD BOX - Composant produit
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.card-box {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    border: 1px solid var(--gray-200);
}
.card-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-box-image {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-box-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.card-box:hover .card-box-image img {
    transform: scale(1.05);
}

.card-box-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}
.card-box-badges .badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.card-box-quick-view {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.card-box:hover .card-box-quick-view {
    opacity: 1;
    transform: scale(1);
}
.card-box-quick-view:hover {
    background: var(--primary);
    color: #fff;
}

.card-box-body {
    padding: 1rem;
}

.card-box-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    min-height: 1.25em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-box-title a {
    color: #1e293b;
    text-decoration: none;
}
.card-box-title a:hover {
    color: var(--primary);
}
.card-box-number {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.8rem;
}

.card-box-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.condition-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--gray-200);
    color: var(--gray-700);
}
.condition-M { background: #dcfce7; color: #166534; }
.condition-NM { background: #dbeafe; color: #1e40af; }
.condition-EX { background: #fef9c3; color: #854d0e; }
.condition-GD { background: #fed7aa; color: #9a3412; }
.condition-LP, .condition-PL { background: #fecaca; color: #991b1b; }

.language-tag {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.card-box-seller {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--gray-500);
}
.card-box-seller a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}
.card-box-seller a:hover {
    text-decoration: underline;
}
.seller-rating {
    color: var(--warning);
    margin-left: 0.25rem;
}
.seller-sales {
    color: var(--gray-500);
    font-size: 0.7rem;
}

.card-box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.card-box-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

.card-box-actions {
    display: flex;
    gap: 0.5rem;
}
.card-box-actions .btn {
    padding: 0.4rem 0.6rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--gray-200);
}
.modal-title {
    font-weight: 600;
}

/* Offer Modal */
#offerModalBody .offer-modal-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}
#offerModalBody .offer-modal-image {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
#offerModalBody .offer-modal-image img {
    max-width: 100%;
    max-height: 250px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-warning {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    font-weight: 600;
}
.btn-warning:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
}
.btn-outline-primary:hover {
    background: var(--secondary);
    color: #fff;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--primary);
}

/* ============================================
   PRICE MARKET BOX
   ============================================ */
.price-market-box {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d4a 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
}
.price-market-box h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}
.price-market-values {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.price-market-values div {
    flex: 1;
}
.price-market-values .value {
    font-size: 1.25rem;
    font-weight: 700;
}
.price-market-values .label {
    font-size: 0.75rem;
    opacity: 0.7;
}
.price-market-values .value.min { color: var(--success); }
.price-market-values .value.avg { color: var(--primary); }
.price-market-values .value.max { color: var(--danger); }

/* ============================================
   FORMS
   ============================================ */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 165, 0, 0.15);
}

/* ============================================
   ALERTS & BADGES
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-sm);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border: none;
    color: var(--gray-700);
    margin: 0 2px;
    border-radius: var(--radius-sm);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--dark);
}
.pagination .page-link:hover {
    background: var(--gray-200);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    margin-top: 3rem;
}
footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
footer a:hover {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .card-box-image {
        height: 150px;
    }
    .card-box-price {
        font-size: 1rem;
    }
    #offerModalBody .offer-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d4a 100%);
    color: #fff;
    padding: 3rem 0;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}
.hero-search {
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-search .input-group {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-search .form-control {
    padding: 1rem 0.5rem;
}
.hero-search .form-control:focus {
    box-shadow: none;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--primary);
}

/* ============================================
   EXPANSION CARDS
   ============================================ */
.expansion-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}
.expansion-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--gray-700);
}
.expansion-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expansion-icon img {
    max-width: 40px;
    max-height: 40px;
}
.expansion-code {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}
.expansion-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.expansion-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   SELLER CARDS
   ============================================ */
.seller-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    position: relative;
}
.seller-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--gray-700);
}
.seller-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
}
.seller-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.seller-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.seller-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.seller-rating {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.seller-stats {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--dark);
}
.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.cta-content h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.cta-content .btn {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}
.cta-content .btn:hover {
    background: #000;
}

/* ============================================
   RESPONSIVE HERO
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .hero-stat-value {
        font-size: 1.5rem;
    }
}

/* ============================================
   GRADE BADGE & EMPTY STATE
   ============================================ */
.grade-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.empty-state p {
    color: var(--gray-500);
    margin: 0;
}

/* Card Box improvements */
.card-box-actions .btn-negotiate {
    border-color: var(--secondary);
    color: var(--secondary);
}
.card-box-actions .btn-negotiate:hover {
    background: var(--secondary);
    color: #fff;
}

.card-box .card-box-seller {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.card-box .card-box-seller a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}
.card-box .card-box-seller a:hover {
    text-decoration: underline;
}

/* ============================================================
   THÈME POKÉMON IMMERSIF  (override global — v8)
   ============================================================ */
:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #3b4cca;        /* bleu Pokémon */
    --poke-red: #ee1515;
    --poke-yellow: #ffcb05;
    --poke-blue: #3b4cca;
    --electric: #f7d02c;
    --dark: #14152b;
    --energy: linear-gradient(135deg, #f7d02c 0%, #f59e0b 45%, #ee1515 100%);
    --energy-cool: linear-gradient(135deg, #3b4cca 0%, #6d28d9 55%, #ee1515 100%);
    --shadow-lg: 0 18px 50px rgba(20,21,43,0.18);
    --radius: 14px;
}

/* Fond pointillé subtil */
body {
    background-color: #eef1f7;
    background-image: radial-gradient(circle at 1px 1px, rgba(59,76,202,0.06) 1px, transparent 0);
    background-size: 22px 22px;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: linear-gradient(90deg, #14152b 0%, #1d1f44 100%) !important;
    border-bottom: 3px solid transparent;
    border-image: var(--energy) 1;
    box-shadow: 0 4px 24px rgba(20,21,43,0.35);
}
.navbar-brand { letter-spacing: .3px; text-shadow: 0 0 18px rgba(247,208,44,.35); }
.nav-link:hover { color: var(--electric) !important; }

/* ---------- HERO IMMERSIF ---------- */
.hero-section {
    background: var(--energy-cool);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
}
.hero-section::before {            /* Pokéball filigrane */
    content: "";
    position: absolute;
    right: -70px; top: -70px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #14152b 0 34px, transparent 35px),
        radial-gradient(circle, #fff 0 22px, transparent 23px),
        linear-gradient(#ee1515 0 50%, #fff 50% 100%);
    border: 12px solid #14152b;
    opacity: .14;
    transform: rotate(12deg);
    pointer-events: none;
}
.hero-section::after {             /* halo électrique */
    content: "";
    position: absolute;
    left: -120px; bottom: -160px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(247,208,44,.35), transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-weight: 800;
    letter-spacing: -.5px;
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-title .accent,
.hero-title b { color: var(--electric); }
.hero-stat-value { color: var(--electric); text-shadow: 0 0 16px rgba(247,208,44,.4); }
.cta-banner { background: var(--energy-cool) !important; position: relative; overflow: hidden; }

/* ---------- TITRES DE SECTION ---------- */
.section-title {
    position: relative;
    padding-left: .85rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 1.1em;
    border-radius: 4px;
    background: var(--energy);
}
.section-title i { color: var(--poke-red); }

/* ---------- CARTE PRODUIT (holographique) ---------- */
.card-box {
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    isolation: isolate;
}
.card-box::before {               /* liseré énergie en haut */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--energy);
    opacity: 0;
    transition: opacity .25s;
    z-index: 3;
}
.card-box:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.card-box:hover::before { opacity: 1; }
.card-box-image {
    background: linear-gradient(135deg, #eef2ff 0%, #e4e9f5 100%);
    overflow: hidden;
}
.card-box-image::after {          /* reflet holographique au survol */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(247,208,44,.25) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .7s ease;
    pointer-events: none;
}
.card-box:hover .card-box-image::after { transform: translateX(120%); }

/* Badge d'extension type "chip" brillant */
.card-box-badges .badge.bg-dark {
    background: linear-gradient(135deg, #1d1f44, #14152b) !important;
    border: 1px solid rgba(247,208,44,.5);
    box-shadow: 0 2px 8px rgba(20,21,43,.4);
    letter-spacing: .5px;
}
.card-box-price { color: var(--success); text-shadow: 0 0 1px rgba(16,185,129,.2); }

/* ---------- BOUTONS ÉNERGIE ---------- */
.btn-warning {
    background: var(--energy);
    border: none;
    color: #14152b;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-warning:hover {
    filter: brightness(1.05);
    color: #14152b;
    box-shadow: 0 6px 20px rgba(238,21,21,.35);
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
}
.btn-primary:hover { background: #2f3da8; border-color: #2f3da8; }
.btn-success { box-shadow: 0 4px 14px rgba(16,185,129,.3); }

/* ---------- FOOTER ---------- */
footer, .site-footer, .footer {
    background: linear-gradient(90deg, #14152b 0%, #1d1f44 100%) !important;
    border-top: 3px solid transparent;
    border-image: var(--energy) 1;
}

/* ---------- CARTES / EN-TÊTES ---------- */
.card { border-radius: var(--radius); }
.currency-selector,
.navbar .form-control { border-radius: 10px; }

/* ---------- LIGNE PANIER (compacte, 2 colonnes) ---------- */
.cart-line {
    position: relative;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .75rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    height: 100%;
    transition: box-shadow .2s, opacity .25s;
}
.cart-line:hover { box-shadow: 0 6px 18px rgba(20,21,43,.10); }
.cart-line-img {
    flex: 0 0 auto;
    width: 56px; height: 78px;
    border-radius: 8px;
    background: linear-gradient(135deg,#eef2ff,#e4e9f5);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.cart-line-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-line-info { flex: 1 1 auto; min-width: 0; }
.cart-line-title {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    color: #1e293b;
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-line-title:hover { color: var(--primary); }
.cart-line-meta { display: flex; align-items: center; gap: .3rem; margin: .25rem 0 .5rem; flex-wrap: wrap; }
.cart-line-meta .badge { font-size: .6rem; }
.cart-line-qty { display: flex; align-items: center; gap: .25rem; }
.cart-line-qty input {
    width: 38px; text-align: center;
    border: 1px solid var(--gray-200); border-radius: 6px;
    padding: .15rem; font-size: .85rem;
}
.qty-btn {
    width: 26px; height: 26px;
    border: 1px solid var(--gray-200);
    background: var(--gray-100);
    border-radius: 6px;
    font-weight: 700; line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.qty-btn:hover { background: var(--electric); border-color: var(--electric); }
.cart-line-right {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .1rem;
    min-width: 72px;
}
.cart-line-price { font-weight: 800; color: var(--success); font-size: .95rem; }
.cart-line-del {
    margin-top: .35rem;
    border: none; background: transparent;
    color: var(--danger); cursor: pointer;
    font-size: 1rem; line-height: 1;
    padding: .2rem;
    border-radius: 6px;
    transition: background .15s;
}
.cart-line-del:hover { background: #fee2e2; }

/* ============================================================
   MODERNISATION  (v9 — typographie & finitions nouvelle génération)
   ============================================================ */
:root {
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(20,21,43,.07);
    --shadow-lg: 0 24px 60px rgba(20,21,43,.16);
}
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .navbar-brand, .card-box-price, .display-4, .display-5 {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Navbar « verre » au défilement */
.navbar.sticky-top {
    background: rgba(20,21,43,.85) !important;
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}

/* Champs de formulaire modernes */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: var(--gray-200);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(245,158,11,.20);
}

/* Boutons : douceur & réactivité */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { border-radius: 14px; }
.btn-sm { border-radius: 9px; }

/* Cartes & conteneurs */
.card { border-radius: var(--radius); border-color: var(--gray-200); }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown-menu { border-radius: 14px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; }
.badge { border-radius: 8px; }
.alert { border-radius: 12px; border: none; }

/* Sélecteurs langue/devise dans la navbar */
.navbar .form-select {
    background-color: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 600;
}
.navbar .form-select option { color: #14152b; }

/* Liens plus nets */
a { transition: color .15s; }

/* Grille cartes : plus aérée sur grand écran */
@media (min-width: 1200px) {
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
}

