/* ============================================
   SIIBON FACTORY FOOD — E-commerce Haut de Gamme
   ============================================ */

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #ef4444;
    --green: #164d25;
    --gold: #f59e0b;
    --dark: #0f172a;
    --dark2: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Inter',sans-serif; color:#1e293b; background:#fff; overflow-x:hidden; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }
.container { max-width:1280px; margin:0 auto; padding:0 24px; }
.red { color:var(--red); }
.section { padding:72px 0; }
.bg-light { background:var(--gray-light); }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    background: var(--dark);
    padding: 8px 0;
    overflow: hidden;
}
.topbar-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.topbar-inner span {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-inner i { color: var(--gold); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.nav-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.nav-logo span {
    font-size: 16px;
    font-weight: 400;
    color: var(--dark);
    white-space: nowrap;
}
.nav-logo strong {
    font-weight: 800;
    color: var(--red);
}

/* BARRE DE RECHERCHE */
.nav-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 6px 0 18px;
    transition: all 0.2s;
    position: relative;
}
.nav-search:focus-within {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(220,38,38,0.08);
}
.nav-search > i {
    color: var(--gray);
    font-size: 15px;
    margin-right: 10px;
    flex-shrink: 0;
}
.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    outline: none;
    padding: 10px 0;
}
.nav-search input::placeholder { color: var(--gray); }
.nav-search button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-search button:hover { background: var(--red-dark); }

/* SEARCH RESULTS DROPDOWN */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray-light); }
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.search-result-item .s-nom { font-size: 13px; font-weight: 600; }
.search-result-item .s-prix { font-size: 12px; color: var(--red); font-weight: 700; }

/* NAV ACTIONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-cart {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 50%;
    color: var(--dark);
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
}
.nav-cart:hover { background: var(--red); color: #fff; }
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
.btn-order {
    background: var(--red);
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-order:hover { background: var(--red-dark); transform: translateY(-1px); }

/* HAMBURGER */
.sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: var(--gray-light);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--red); color: #fff; }

/* ============================================
   SIDEBAR MOBILE
   ============================================ */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 300px;
    height: 100vh;
    background: var(--dark);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar.active { transform: translateX(0); }
.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(220,38,38,0.1);
}
.sidebar-logo { width: 36px; height: 36px; object-fit: contain; }
.sidebar-header h2 { font-size: 14px; font-weight: 600; color: #fff; }
.sidebar-search {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-search i { color: var(--gray); font-size: 14px; }
.sidebar-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-left-color: var(--red);
}
.sidebar-link i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-link.order-link {
    margin: 16px 20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius);
    border-left: none;
    justify-content: center;
    font-weight: 600;
}
.sidebar-link.order-link:hover { background: var(--red-dark); transform: translateY(-1px); }
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: var(--dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    max-width: 620px;
    color: #fff;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.4);
    color: #fcd34d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
    animation: fadeInUp 0.6s ease both;
}
.hero-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-content h1 span { color: var(--red); }
.hero-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.btn-hero-primary {
    background: var(--red);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(220,38,38,0.4);
}
.btn-hero-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); }
.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev:hover, .hero-next:hover { background: var(--red); }
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 80px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ============================================
   CATÉGORIES BAR
   ============================================ */
.categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cats-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--dark);
    min-width: 90px;
}
.cat-item:hover, .cat-item.active {
    border-color: var(--red);
    background: rgba(220,38,38,0.04);
    color: var(--red);
}
.cat-icon {
    width: 40px; height: 40px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--red);
    transition: all 0.2s;
}
.cat-item:hover .cat-icon, .cat-item.active .cat-icon {
    background: var(--red);
    color: #fff;
}
.cat-item span { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-head {
    text-align: center;
    margin-bottom: 48px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220,38,38,0.08);
    color: var(--red);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(220,38,38,0.15);
}
.section-head h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--dark);
}
.section-head h2 span { color: var(--red); }

/* ============================================
   PROMOTIONS
   ============================================ */
.promos-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 20px;
}
.promo-card {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
    transition: transform 0.3s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card.big { min-height: 240px; }
.promo-content { position: relative; z-index: 2; flex: 1; }
.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.3);
}
.promo-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.promo-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 14px;
}
.promo-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.promo-price .old {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: line-through;
}
.promo-price .new {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}
.promo-btn:hover { background: rgba(255,255,255,0.35); }
.promo-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-left: 20px;
}
.promo-card.big .promo-img { width: 180px; height: 180px; }

/* ============================================
   FILTRES PRODUITS
   ============================================ */
.filtres-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: center;
}
.filtre-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: #fff;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.filtre-btn:hover { border-color: var(--red); color: var(--red); }
.filtre-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================
   PRODUITS GRID
   ============================================ */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.produit-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.25s;
    position: relative;
    cursor: pointer;
}
.produit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.produit-card.hidden { display: none; }
.produit-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gray-light);
}
.produit-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.produit-card:hover .produit-img img { transform: scale(1.06); }
.produit-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.produit-card:hover .produit-overlay { opacity: 1; }
.btn-quick-add {
    background: #fff;
    color: var(--red);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    transform: translateY(8px);
    transition: all 0.25s;
}
.produit-card:hover .btn-quick-add { transform: translateY(0); }
.btn-quick-add:hover { background: var(--red); color: #fff; }
.produit-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
}
.produit-badge.badge-promo { background: var(--gold); color: #fff; }
.produit-badge.badge-premium { background: var(--dark); }
.produit-info { padding: 14px; }
.produit-cat {
    font-size: 10px;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 5px;
}
.produit-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.produit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.produit-prix { display: flex; align-items: baseline; gap: 6px; }
.prix-actuel { font-size: 15px; font-weight: 800; color: var(--red); }
.prix-ancien { font-size: 11px; color: var(--gray); text-decoration: line-through; }
.produit-stars { display: flex; gap: 1px; }
.produit-stars i { font-size: 10px; }
.voir-plus { text-align: center; margin-top: 40px; }
.btn-voir-plus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--red);
    color: var(--red);
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-voir-plus:hover { background: var(--red); color: #fff; }

/* ============================================
   BANDEAU CONFIANCE
   ============================================ */
.bandeau-confiance {
    background: var(--dark);
    padding: 32px 0;
}
.confiance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.confiance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.confiance-item:last-child { border-right: none; }
.confiance-item > i {
    font-size: 28px;
    color: var(--gold);
    flex-shrink: 0;
}
.confiance-item div { display: flex; flex-direction: column; gap: 2px; }
.confiance-item strong { font-size: 14px; font-weight: 700; color: #fff; }
.confiance-item span { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ============================================
   CONTACT
   ============================================ */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-info .section-tag { margin-bottom: 12px; }
.contact-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--dark);
}
.contact-info h2 span { color: var(--red); }
.contact-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.contact-item > i {
    width: 42px; height: 42px;
    background: rgba(220,38,38,0.08);
    color: var(--red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-item div { display: flex; flex-direction: column; gap: 2px; }
.contact-item strong { font-size: 13px; font-weight: 700; color: var(--dark); }
.contact-item a, .contact-item span { font-size: 13px; color: var(--gray); }
.contact-item a:hover { color: var(--red); }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.contact-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.contact-form-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}
.contact-form-wrap .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
    background: var(--gray-light);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--red);
    background: #fff;
}
.contact-form-wrap textarea { margin-bottom: 16px; resize: none; }
.btn-submit {
    width: 100%;
    padding: 13px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-submit:hover { background: var(--red-dark); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); color: #fff; padding: 56px 0 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand img { width: 48px; margin-bottom: 12px; }
.footer-brand h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: all 0.2s;
}
.social-links a:hover { background: var(--red); color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; gap: 8px;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li { font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}

/* ============================================
   PANIER FLOTTANT
   ============================================ */
.panier-flottant {
    position: fixed;
    right: 0; top: 0;
    width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 3000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.panier-flottant.active { transform: translateX(0); display: flex !important; }
.panier-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
    display: none;
}
.panier-overlay.active { display: block; }
.panier-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panier-header h4 { font-size: 16px; font-weight: 700; color: var(--dark); }
.panier-header button {
    background: var(--gray-light);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray);
    transition: all 0.2s;
}
.panier-header button:hover { background: var(--red); color: #fff; }
.panier-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.panier-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.panier-item-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.panier-item-info { flex: 1; }
.panier-item-info .p-nom { font-size: 13px; font-weight: 600; color: var(--dark); }
.panier-item-info .p-prix { font-size: 12px; color: var(--red); font-weight: 700; }
.panier-item-del {
    background: none; border: none;
    color: var(--gray); cursor: pointer;
    font-size: 14px; padding: 4px;
    transition: color 0.2s;
}
.panier-item-del:hover { color: var(--red); }
.panier-vide {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}
.panier-vide i { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.3; }
.panier-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}
.btn-valider-panier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-valider-panier:hover { background: var(--red-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .produits-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .promos-grid { grid-template-columns: 1fr 1fr; }
    .promo-card.big { grid-column: span 2; }
    .produits-grid { grid-template-columns: repeat(3, 1fr); }
    .confiance-grid { grid-template-columns: repeat(2, 1fr); }
    .confiance-item { border-right: none; }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .topbar-inner { gap: 16px; }
    .nav-search { display: none; }
    .btn-order { display: none; }
    .sidebar-toggle { display: flex; }
    .hero { height: 460px; }
    .hero-content { padding: 0 24px; }
    .hero-dots { left: 24px; }
    .categories-bar { top: 70px; overflow-x: auto; }
    .cats-grid { flex-wrap: nowrap; justify-content: flex-start; padding: 0 4px; }
    .cat-item { min-width: 80px; padding: 8px 14px; }
    .promos-grid { grid-template-columns: 1fr; }
    .promo-card.big { grid-column: span 1; }
    .promo-img { width: 100px; height: 100px; }
    .promo-card.big .promo-img { width: 120px; height: 120px; }
    .produits-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .produit-img { height: 140px; }
    .confiance-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .panier-flottant { width: 100%; }
    .contact-form-wrap .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero { height: 400px; }
    .hero-content h1 { font-size: 30px; }
    .hero-btns { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .produits-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .produit-img { height: 120px; }
    .produit-info { padding: 10px; }
    .produit-info h4 { font-size: 12px; }
    .prix-actuel { font-size: 13px; }
    .confiance-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .container { padding: 0 16px; }
}

/* ============================================
   BARRE DE RECHERCHE MOBILE
   ============================================ */
.mobile-search-bar {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mobile-search-inner {
    display: flex;
    align-items: center;
    background: var(--gray-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 6px 0 16px;
    transition: all 0.2s;
}
.mobile-search-inner:focus-within {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.mobile-search-inner > i {
    color: var(--gray);
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}
.mobile-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    outline: none;
    padding: 10px 0;
}
.mobile-search-inner input::placeholder { color: var(--gray); }
.mobile-search-inner button {
    background: var(--red);
    color: #fff;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.mobile-search-inner button:hover { background: var(--red-dark); }

@media (max-width: 768px) {
    .mobile-search-bar { display: block; }
    /* Décaler la barre catégories pour tenir compte de la recherche mobile */
    .categories-bar { top: calc(70px + 58px); }
}
