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

html, body {
    font-family: "Inter", Arial, sans-serif;
    background: #ffffff;
    color: #222;
}


/* =======================================================
   CONTAINER
======================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* =======================================================
   HEADER
======================================================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =======================================================
   LOGO
======================================================= */
.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo {
    width: auto;
    object-fit: contain;
    display: block;
}

/* =======================================================
   BURGER (MOBILE ONLY)
======================================================= */
.burger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    
}

/* =======================================================
   NAV DESKTOP — MEGA MENU
======================================================= */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mega-menu-root {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.mega-menu-item {
    position: relative;
}

/* Lien principal */
.mega-menu-item > a {
    text-decoration: none;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.25s ease;
}

.mega-menu-item > a:hover {
    background: #e5e7eb;
}

/* =======================================================
   MEGA PANEL (DESKTOP ONLY)
======================================================= */
.mega-menu-item:hover .mega-panel,
.mega-menu-item.open .mega-panel {
    display: flex;
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1300px;
    margin-top: 10px;

    display: none;
    padding: 24px 26px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    z-index: 3000;
    gap: 32px;

    animation: fadeInUp 0.18s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Grille icônes */
.mega-icons-grid {
    flex: 1.4;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 22px 26px;
}

.mega-icon-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mega-icon-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: #f3f3f3;
}

.mega-icon-card span {
    font-size: 13px;
    color: #111827;
}

.mega-icon-card:hover {
    background: #f9fafb;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Colonne droite */
.mega-links {
    flex: 0.8;
    border-left: 1px solid #e5e7eb;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
}

.mega-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-links a {
    text-decoration: none;
    font-size: 14px;
    color: #1f2937;
}

/* =======================================================
   HOME — CATEGORIES
======================================================= */
.home-category-list {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.home-category-item img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

/* =======================================================
   HOME — PRODUITS (STYLE CATALOGUE MODERNE)
======================================================= */
.home-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 36px 28px;
    padding: 30px 0;
}

/* PRODUIT = PAS DE CARTE */
.home-product-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.home-product-item:hover {
    transform: translateY(-2px);
}

/* IMAGE */
.home-product-item img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* TITRE */
.home-product-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* PRIX */
.home-product-item .price,
.home-product-item p strong {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 6px 0;
}

/* DESCRIPTION */
.home-product-item .desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* BOUTON ACHETER — PLAT & MODERNE */
.home-product-item .btn-buy {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px; /* plat */
    text-align: center;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease;
}

.home-product-item .btn-buy:hover {
    background: #1d4ed8;
}

/* CATEGORIE */
.home-product-item .product-category {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}



/* =======================================================
   FOOTER
======================================================= */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    background: #f1f1f1;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* =======================================================
   MENU MOBILE
======================================================= */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 3000;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    padding: 18px 16px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-list a {
    text-decoration: none;
    color: #111827;
    font-size: 16px;
    padding: 8px 0;
}

/* =======================================================
   RESPONSIVE — TABLETTE
======================================================= */
@media (max-width: 992px) {
    .mega-panel {
        display: none !important;
    }
}

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

    .desktop-nav {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        margin: 0 auto;
    }
}

/* =======================================================
   DESKTOP ONLY
======================================================= */
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* =======================================================
   BOUTON ACHETER (GLOBAL)
======================================================= */
.product-buy-btn,
.home-product-item .btn-buy,
.home-product-item a.buy-btn,
.home-product-item button {
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    background: #2563eb;
    color: #ffffff !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

@media (max-width: 768px) {
    .home-product-item a,
    .home-product-item button {
        display: block;
    }
}

/* =======================================================
   BOUTONS MODERNES (PANIER / CTA)
======================================================= */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

/* Bouton principal */
.btn-buy.primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.btn-buy.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

/* Bouton secondaire */
.btn-buy.secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-buy.secondary:hover {
    background: #d1d5db;
}

/* =======================================================
   PANIER — CARTES PRODUITS (BLANC OK)
======================================================= */
.cart-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =======================================================
   HOME — PRODUITS (SANS CARTE / SANS FOND)
======================================================= */
.home-product-item {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}



.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =======================================================
   PANIER — TOTAL
======================================================= */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
}

/* =======================================================
   PANIER — ICÔNE + BADGE
======================================================= */
.header-cart {
    position: relative;
}

.cart-link {
    font-size: 22px;
    text-decoration: none;
    color: #111827;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-actions {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ==============================
   PANIER — QUANTITÉ
============================== */

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    text-decoration: none;
}

.qty {
    font-size: 16px;
    font-weight: 600;
}

.cart-remove {
    display: inline-block;
    margin-top: 8px;
    color: #dc2626;
    font-size: 14px;
    text-decoration: none;
}

/* =======================================================
   PANIER — SUPPRIMER (ROUGE MODERNE)
======================================================= */
.cart-remove {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-remove:hover {
    color: #dc2626; /* rouge un peu plus foncé au hover */
    text-decoration: underline;
}

/* =======================================================
   PANIER — BOUTON SUPPRIMER (ROUGE MODERNE)
======================================================= */
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 16px;
    background: #ef4444;          /* rouge moderne */
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-remove:hover {
    background: #dc2626;          /* hover doux */
    transform: translateY(-1px);
}

/* =======================================================
   FIX MENU MOBILE — CONTENU INVISIBLE
======================================================= */
.mobile-menu-panel {
    overflow-y: auto;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
}

.mobile-menu-list li a:hover {
    background: #f1f5f9;
}

/* =======================================================
   CARTES PRODUITS — STYLE MODERNE
======================================================= */

.product-card,
.home-product-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.product-card:hover,
.home-product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.home-product-item img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* TITRE */
.home-product-item h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 40px;
}

/* PRIX */
.price,
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* ANCIEN PRIX (si un jour) */
.price-old {
    font-size: 14px;
    text-decoration: line-through;
    color: #9ca3af;
}

/* =======================================================
   BOUTONS — FLAT MODERNE
======================================================= */

.btn-buy {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

/* BLEU PRINCIPAL */
.btn-buy.primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-buy.primary:hover {
    background: #1e4fd8;
    box-shadow: 0 8px 20px rgba(37,99,235,.35);
}

/* GRIS SECONDARY */
.btn-buy.secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-buy.secondary:hover {
    background: #d1d5db;
}
/* =======================================================
   PANIER — + / -
======================================================= */

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.qty-btn:hover {
    background: #1e4fd8;
}

.qty {
    font-size: 16px;
    font-weight: 600;
}

/* =======================================================
   PANIER — BOUTON SUPPRIMER
======================================================= */

.btn-remove {
    margin-top: 12px;
    padding: 10px 14px;
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .2s ease;
}

.btn-remove:hover {
    background: #dc2626;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 24px;
}

/* ================= COOKIE POPUP RGPD ================= */

.cookie-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cookie-box {
    background: #ffffff;
    max-width: 650px;
    width: 90%;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: fadeInScale 0.3s ease;
}

.cookie-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.cookie-box a {
    color: #007bff;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.cookie-actions .accept {
    background: #007bff;
    color: #fff;
}

.cookie-actions .refuse {
    background: #e0e0e0;
    color: #333;
}

.cookie-actions .settings {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================= FICHE PRODUIT ================= */

.product-page {
    max-width: 780px;          /* ✅ largeur resserrée pro */
    margin: 40px auto;
    padding: 0 20px;
}

.product-wrapper {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

/* Image à gauche */
.product-image {
    flex: 0 0 200px;           /* ✅ image équilibrée */
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Infos à droite */
.product-info {
    flex: 1;
    max-width: 460px;          /* ✅ zone texte compacte */
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-short-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 25px;
}

/* Description en dessous */
.product-description {
    margin-top: 50px;
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
    max-width: 820px;          /* ✅ pas pleine largeur */
}

.product-description h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .product-wrapper {
        flex-direction: column;
    }

    .product-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .product-info {
        max-width: 100%;
    }

    .product-description {
        max-width: 100%;
    }
}

/* ===== Quantité produit (bleu pro) ===== */

.product-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 25px 0;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #cfe0f5;
    background: #eef5ff;
    color: #1e6fd9;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #dceaff;
}

#qty-input {
    width: 50px;
    height: 38px;
    border-top: 1px solid #cfe0f5;
    border-bottom: 1px solid #cfe0f5;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 15px;
    background: #fff;
    color: #1e6fd9;
    font-weight: 500;
}

/* ===== ACTIONS PRODUIT ===== */

.product-actions {
    display: flex;
    align-items: center;
    gap: 25px; /* 👈 espace entre quantité et bouton */
    margin-top: 15px;
}

/* ===== BOUTON AJOUT PANIER ===== */

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 30px;

    background-color: #0d6efd;      /* bleu clair pro */
    color: #fff;

    border: none;
    border-radius: 6px;             /* 👈 arrondi léger */
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}

.add-to-cart-btn:hover {
    background-color: #0b5ed7;
}

.add-to-cart-btn:active {
    background-color: #0a58ca;
    transform: translateY(1px);     /* effet pro subtil */
}

.cart-icon {
    font-size: 18px;
    line-height: 1;
}

/* ===== CARTES PRODUITS : BOUTON VOIR ===== */

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    display: block;
}

/* Overlay caché */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Apparition au survol */
.home-product-item:hover .product-overlay {
    opacity: 1;
}

/* Bouton Voir le produit */
.btn-view-product {
    background: #0d6efd;
    color: #fff;
    padding: 12px 22px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn-view-product:hover {
    background: #0b5ed7;
}

/* ===== PRIX TOTAL PRODUIT ===== */

.product-total-price {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.product-total-price strong {
    font-size: 17px;
    font-weight: 600;
    color: #1e6fff; /* bleu doux, cohérent avec le bouton */
}

/* ===== ZONE ACTION PRODUIT ===== */

.product-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

/* Bloc quantité + total */
.product-qty {
    display: flex;
    align-items: center;
}

.product-total-price {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.product-total-price strong {
    font-size: 15px;
    color: #0d6efd; /* bleu doux pro */
}

/* ================= HEADER AJUSTEMENTS ================= */

.site-header {
    padding: 18px 0; /* fait descendre légèrement le menu */
}

/* Grille douce sans casser l'existant */
.header-grid {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 20px;
}

/* ================= SEARCH BAR ================= */

.header-search-wrapper {
    display: flex;
    justify-content: center;
}

.header-search {
    display: flex;
    width: 100%;
    max-width: 420px;
}

.header-search input {
    flex: 1;
    height: 38px;
    border: 1px solid #ddd;
    border-right: none;
    padding: 0 12px;
    font-size: 14px;
}

.header-search button {
    width: 42px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
}

/* ================= ICONES DROITE ================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon {
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ================= HEADER SHOPIFY STYLE ================= */

.site-header {
    border-bottom: 1px solid #eee;
}

/* ----- Ligne haute ----- */
.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 0;
}

/* ----- Logo ----- */
.header-left {
    display: flex;
    align-items: center;
}

/* ----- Search center ----- */
.header-center {
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 520px;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 6px 14px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    padding: 6px 10px;
}

.search-bar button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

/* ----- Right icons ----- */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon {
    font-size: 20px;
    text-decoration: none;
    position: relative;
}

/* Badge panier */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #1e88e5;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ----- Menu en dessous ----- */
.header-bottom {
    border-top: 1px solid #eee;
}

.header-bottom .mega-menu-root {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 12px 0;
}

/* ======== HEADER GLOBAL ======== */
.site-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ======== HEADER TOP ======== */
.header-top.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* ===== LOGO ===== */
.header-left .logo {
    font-weight: 700;
    font-size: 1.6rem;
    color: #222;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo {
    height: 40px; /* max 40px height for logo */
    object-fit: contain;
}

/* ===== SEARCH BAR ===== */
.header-center {
    flex: 1 1 320px; /* take available space */
    min-width: 280px;
    display: flex;
    justify-content: center;
}
.search-bar {
    display: flex;
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.08);
    border: 1px solid #ddd;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}
.search-bar:focus-within {
    box-shadow: 0 0 10px #007bffaa;
    border-color: #007bff;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    font-family: inherit;
}
.search-bar input[type="text"]::placeholder {
    color: #aaaaaa;
    font-style: italic;
}

/* Search button with clear shape and hover effect */
.search-bar button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 0 18px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
    user-select: none;
}
.search-bar button:hover,
.search-bar button:focus {
    background-color: #0056b3;
    outline: none;
}

/* ===== HEADER RIGHT: ACTION ICONS ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-icon {
    font-size: 1.4rem;
    color: #444;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-icon:hover,
.header-icon:focus {
    background-color: #007bff;
    color: #fff;
    outline: none;
}

/* Cart badge styling */
.cart-link {
    position: relative;
}
.cart-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 9999px;
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    text-align: center;
}

/* ===== HEADER BOTTOM (MEGA MENU) ===== */
.header-bottom {
    background-color: #fafafa;
    border-top: 1px solid #e6e6e6;
    box-shadow: inset 0 1px 0 #fff;
}
.desktop-nav.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mega menu root list style */
.mega-menu-root {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
}

/* Each mega menu item */
.mega-menu-item {
    position: relative;
}
.mega-menu-item > a {
    color: #444;
    text-decoration: none;
    padding: 8px 4px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.mega-menu-item > a:hover,
.mega-menu-item > a:focus {
    color: #007bff;
    background-color: #e7f1ff;
    outline: none;
}

/* Mega panel dropdown */
.mega-panel {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
    border-radius: 8px;
    padding: 16px 24px;
    width: max-content;
    min-width: 320px;
    display: none;
    z-index: 10;
}
.mega-menu-item:hover > .mega-panel,
.mega-menu-item:focus-within > .mega-panel {
    display: flex;
    gap: 24px;
}

/* Mega icons grid */
.mega-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    min-width: 200px;
}

/* Mega icon card */
.mega-icon-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #444;
    border-radius: 8px;
    transition: background-color 0.25s ease;
    padding: 8px;
    align-items: center;
}
.mega-icon-card:hover,
.mega-icon-card:focus {
    background-color: #f0f8ff;
    outline: none;
}

/* Image in mega icon card */
.mega-icon-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
}

/* Mega links column */
.mega-links {
    min-width: 160px;
}
.mega-links h4 {
    margin-bottom: 8px;
    font-weight: 700;
    color: #222;
}
.mega-links ul {
    padding-left: 16px;
    margin: 0;
    list-style-type: disc;
}
.mega-links ul li {
    margin-bottom: 6px;
}
.mega-links ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.mega-links ul li a:hover,
.mega-links ul li a:focus {
    color: #007bff;
    outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-top.container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .header-left {
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }
    .header-center {
        flex-basis: 100%;
        order: 3;
    }
    .header-right {
        order: 2;
        gap: 16px;
    }
    .search-bar {
        max-width: 100%;
        border-radius: 24px;
    }
    .mega-menu-root {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .mega-menu-root {
        flex-direction: column;
        align-items: center;
    }
    .mega-menu-item > a {
        padding: 8px 12px;
        display: block;
        width: 100%;
        text-align: center;
    }
    .mega-panel {
        position: static;
        box-shadow: none;
        width: 100%;
        flex-direction: column;
        padding: 12px 0;
        display: none !important; /* hide mega menu on small */
    }
}

/* ===== FIX FINAL : HAMBURGER DESKTOP ===== */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =======================================================
   FOOTER MODERNE — DEALOTRONIC
======================================================= */

.footer {
    background: #0f172a; /* bleu nuit pro */
    color: #e5e7eb;
    margin-top: 60px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 50px 18px 40px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-col ul li a:hover {
    color: #60a5fa; /* bleu doux */
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: #cbd5f5;
}

/* Paiements */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #cbd5f5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
