/* Variables de couleurs */
:root {
    --red: #E60000;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --light-gray: #e0e0e0;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-white {
    background-color: var(--black);
    color: var(--red);
}

.btn-white:hover {
    background-color: var(--light-gray);
}

.btn-link {
    color: var(--red);
    font-weight: 600;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
}

.logo-red {
    color: var(--red);
}

.logo-white {
    color: var(--white);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

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

.search-bar form {
    display: flex;
}

.search-bar input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart-icon {
    position: relative;
}

.cart-icon a {
    color: var(--white);
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--red);
    color: var(--white);
    font-size: 0.8rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-auth {
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-auth:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-link {
    background-color: var(--red);
}

/* Bannière */
.banner {
    margin-bottom: 40px;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--red);
    margin: 10px auto;
}

/* Catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}

/* Produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.btn-wishlist, .btn-quickview {
    background-color: var(--white);
    color: var(--dark-gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.btn-wishlist:hover, .btn-quickview:hover {
    background-color: var(--red);
    color: var(--white);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price {
    color: var(--red);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

/* Promo section */
.promo-section {
    margin: 40px 0;
}

.promo-banner {
    background-color: var(--red);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.promo-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.promo-banner p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--dark-gray);
}

.author-info h4 {
    margin-bottom: 5px;
}

.rating {
    color: #ffc107;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--red);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slide-content {
        left: 5%;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .main-nav li {
        margin: 0 8px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
}
/* ================================================== */
/* CORRECTIONS MENU MOBILE */
/* ================================================== */

/* Masquer le menu mobile et l'overlay sur desktop */
.mobile-menu,
.mobile-overlay {
    display: none;
}

/* Bouton toggle menu mobile - caché sur desktop */
.mobile-menu-toggle {
    display: none;
}

/* Afficher le menu mobile seulement sur mobile */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: var(--black); /* Icône ou texte en noir */
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--black);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-overlay {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: var(--white);
    }
    
    .mobile-menu-header .logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--black);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-nav {
        padding: 20px;
    }
    
    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav li {
        margin-bottom: 10px;
    }
    
    .mobile-nav a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: var(--black);
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.3s;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background-color: #f8f9fa;
        color: var(--red);
    }
    
    .mobile-nav a i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-auth {
        padding: 20px;
        border-top: 1px solid #eee;
    }
    
    .mobile-user-info {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .mobile-user-info i {
        font-size: 2rem;
        color: var(--red);
        margin-right: 15px;
    }
    
    .mobile-user-links {
        margin-bottom: 20px;
    }
    
    .mobile-user-links a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: var(--dark-gray);
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.3s;
    }
    
    .mobile-user-links a:hover {
        background-color: #f8f9fa;
        color: var(--red);
    }
    
    .mobile-user-links a i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-logout {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: #dc3545;
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.3s;
    }
    
    .mobile-logout:hover {
        background-color: #f8d7da;
    }
    
    .mobile-logout i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
    }
    
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-mobile-auth {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        border: 2px solid var(--red);
        color: var(--red);
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.3s;
        font-weight: 500;
    }
    
    .btn-mobile-auth:hover {
        background-color: var(--red);
        color: var(--white);
    }
    
    .btn-mobile-register {
        background-color: var(--red);
        color: var(--white);
    }
    
    .btn-mobile-register:hover {
        background-color: #cc0000;
        border-color: #cc0000;
    }
    
    /* Désactiver le scroll quand le menu mobile est ouvert */
    body.no-scroll {
        overflow: hidden;
    }
    
    /* Cacher la navigation principale sur mobile */
    .main-nav {
        display: none;
    }
}

/* Media query pour les très petits écrans */
@media (max-width: 576px) {
    .mobile-menu {
        width: 100%;
        max-width: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-bar {
        max-width: 150px;
    }
}

/* ================================================== */
/* CORRECTIONS HEADER EXISTANT */
/* ================================================== */

/* S'assurer que la navigation desktop est visible sur desktop */
@media (min-width: 993px) {
    .main-nav {
        display: block !important;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}

/* Correction pour l'affichage du header sur mobile */
@media (max-width: 992px) {
    .header .container {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-bar {
        flex: 1;
        max-width: 200px;
    }
    
    .search-bar input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .cart-icon {
        position: relative;
    }
    
    .cart-link {
        display: flex;
        align-items: center;
        color: var(--white);
        text-decoration: none;
        position: relative;
    }
    
    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--red);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: bold;
    }
    
    .cart-text {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .search-bar {
        display: none;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}
/* Styles pour la pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: var(--red);
    color: var(--red);
}

.pagination-link.active {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pagination-link.prev,
.pagination-link.next {
    background-color: var(--gray);
}

.pagination-link.prev:hover,
.pagination-link.next:hover {
    background-color: var(--red);
    color: var(--white);
}

/* Message quand aucun produit */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--dark-gray);
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 10px;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .pagination-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
    
    .pagination-link.prev,
    .pagination-link.next {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-numbers {
        order: 2;
    }
    
    .pagination-link.prev,
    .pagination-link.next {
        order: 1;
        width: 100%;
        max-width: 200px;
    }
}
/* Bouton WhatsApp principal */
.whatsapp-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background-color: var(--red); /* conserve la couleur de base */
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
    font-weight: bold;
}

.whatsapp-btn:hover {
    background-color: var(--red); /* version plus foncée au survol */
    color: #fff;
    text-decoration: none;
}

.whatsapp-btn i {
    margin-right: 8px;
}

/* Bouton dans l'image du produit */
.btn-whatsapp {
    background-color: var(--red); /* Couleur officielle WhatsApp */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}


.btn-whatsapp:hover {
    background-color: #1ebe5d;
    text-decoration: none;
}

/* Bouton rouge dans la section produit */
.whatsapp-btn-full {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    background-color: var(--red); /* Rouge principal */
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn-full i {
    margin-right: 8px;
    font-size: 1rem;
}

.whatsapp-btn-full:hover {
    background-color: var(--red); /* Rouge plus foncé au survol */
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* Section recherche produit */
.search-product-section {
    background: #f9f9f9;
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.search-form-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form-home input[type="text"],
.search-form-home select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 250px;
    max-width: 100%;
}

.search-form-home .btn-search {
    background: var(--red);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form-home .btn-search:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .search-form-home {
        flex-direction: column;
        gap: 15px;
    }
    .search-form-home input[type="text"],
    .search-form-home select {
        width: 100%;
    }
}

.product-description {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0 10px;
    line-height: 1.4;
}
