/* ===== RESET ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f9fafb;
    color: #1f2937;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER PC ===== */

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.shop-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.shop-logo img {
    height: 70px;
}

.shop-search-wrapper {
    flex: 1;
    margin: 0 2rem;
}

.shop-search {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 0.6rem 1rem;
    border-radius: 999px;
}

.shop-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
}

.shop-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.shop-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.shop-header-link {
    font-size: 1rem;
    font-weight: 600;
}

.shop-cart-count {
    background: red;
    color: white;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 4px;
}

/* ===== BANDE ANNONCE PC ===== */
.annonce-bar.desktop-only {
    background: #1d4ed8;
    color: white;
    text-align: center;
    padding: 0.6rem;
    font-size: 1rem;
}

/* ===== CATÉGORIES PC ===== */
.cat-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
}

.cat-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.7rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.15s ease-in-out;
}

.cat-item:hover {
    transform: scale(1.03);
}

.cat-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cat-item span {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- PRODUITS EN 3 COLONNES (HOME) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 8px;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.product-card .price {
    font-weight: bold;
    margin: 10px 0;
}

.btn-product {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
}

/* --- BLOC CATÉGORIES HOME --- */
.home-categories {
    margin-top: 50px;
    padding: 20px;
}

.home-categories ul {
    list-style: none;
    padding: 0;
}

.home-categories li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* --- FOOTER BLEU SIMPLE (si utilisé) --- */
.footer-blue {
    background: #007bff;
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer-blue ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-blue li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.6rem;
        background: white;
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-menu-btn {
        font-size: 1.8rem;
        font-weight: 700;
    }

    .mobile-logo-link {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .mobile-logo {
        height: 55px;
    }

    .mobile-icon {
        font-size: 1.8rem;
    }

    /* Barre de recherche mobile */
    .mobile-search {
        width: 92%;
        margin: 0.5rem auto;
        padding: 0.7rem 1rem;
        background: #f3f4f6;
        border-radius: 999px;
    }

    .mobile-search input {
        width: 90%;
        border: none;
        background: transparent;
        font-size: 1.1rem;
    }

    /* Bande annonce mobile */
    .annonce-bar.mobile-only {
        margin-top: 0.4rem;
        padding: 0.6rem;
        background: #1d4ed8;
        color: white;
        text-align: center;
        font-size: 0.95rem;
    }

    /* Bande info mobile */
    .mobile-info-bar {
        display: flex;
        justify-content: space-around;
        padding: 0.6rem 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-info-bar span,
    .mobile-info-bar a {
        font-size: 0.9rem;
    }

    /* Catégories mobile */
    .cat-title {
        font-size: 1.4rem;
        margin: 1rem 0;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .cat-item img {
        height: 110px;
    }

    .cat-item span {
        padding: 0.6rem 0;
        font-size: 1rem;
    }

    /* Correction décalage mobile */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body * {
        box-sizing: border-box !important;
    }
}

/* ===== MENU PC ALIGNÉ ===== */

.shop-subnav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.menu-left,
.menu-center,
.menu-right {
    flex: 1;
    display: flex;
}

.menu-left {
    justify-content: flex-start;
}

.menu-center {
    justify-content: center;
}

.menu-right {
    justify-content: flex-end;
}

.shop-subnav-button {
    padding: 10px 18px;
    background: #0a1a3a;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s ease;
}

.shop-subnav-button:hover {
    background: #132b5c;
}

/* Espacement premium entre Accueil et Nouveautés */
.menu-center-spaced {
    gap: 40px;
}

/* ===== BANDE D’ANNONCE 4K ===== */
.top-banner {
    width: 100%;
    background: #0a1a3a;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 16px;
}

.top-banner-text {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: slide-left 12s linear infinite;
}

@keyframes slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== FOOTER PREMIUM DESKTOP ===== */

.footer-desktop {
    background: #0a1a3a;
    padding: 40px 20px;
    color: #dce3f5;
    border-top: 3px solid #1e2f5a;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-col ul li a {
    color: #dce3f5;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Ligne finale footer desktop */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #bfc7dd;
    padding-top: 15px;
    border-top: 1px solid #ffffff33;
}

/* ===== FOOTER MOBILE — VERSION FINALE ===== */

.footer-mobile {
    background: #0a1a3a;
    padding: 30px 20px;
    color: #dce3f5;
    border-top: 3px solid #1e2f5a;
    box-sizing: border-box;
}

.footer-mobile-columns {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-mobile-col {
    width: 45%;
    min-width: 130px;
}

.footer-mobile-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-mobile-col ul li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
}

.payment-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.payment-icons img {
    width: 45px;
    height: auto;
}

.footer-mobile-bottom {
    text-align: center;
    font-size: 13px;
    color: #bfc7dd;
    padding-top: 15px;
    border-top: 1px solid #ffffff33;
    margin-top: 25px;
}

/* Petits écrans footer mobile */
@media (max-width: 380px) {
    .footer-mobile-columns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .footer-mobile-col {
        width: 100%;
        text-align: center;
    }
}

/* ===== PRODUITS SIMILAIRES ===== */

.similaire-titre {
    margin-top: 40px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.similaire-liste {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.similaire-item {
    width: 140px;
    text-align: center;
}

.similaire-item img {
    width: 100%;
    border-radius: 8px;
}

/* ===== FIX RECHERCHE — GRILLE PRODUITS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.products-grid .product-card {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

/* ===== FIX FOOTER GLOBAL ===== */
.shop-footer {
    background: #0a1a3a;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}
/* ===== BOUTON AJOUTER AU PANIER (VERT FLUO) ===== */
.btn-add-cart {
    display: inline-block;
    padding: 14px 22px;
    background: #39ff14; /* Vert fluo */
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    border: 2px solid #1f8f0a;
    margin-top: 18px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.btn-add-cart:hover {
    background: #32e212;
    transform: scale(1.04);
}
table.panier-table td,
table.panier-table th {
    color: #000 !important;
    font-weight: 600;
}
/* Texte du panier uniquement */
.cart-container li,
.cart-container li *,
.cart-container p,
.cart-container p *,
.cart-container strong {
    color: #000 !important;
    font-weight: 600;
}
/* Rendre toute la carte cliquable */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Effet hover moderne */
.product-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
