:root {
    --primary: #2440bf;
    --secondary: #2440bf;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --accent: #f1c40f;
    --ivory: #fffff0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--ivory);
    color: var(--dark);
    overflow-x: hidden;
}

/* Header */
header {
    background: #2440bf;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styles pour le logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-image img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 50px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: white;
    margin: 0;
}

/* Styles pour la zone client connecté */
.client-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
    color: white;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navigation desktop */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cart-btn {
    background: white;
    color: #9100a4;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
    flex-shrink: 0;
}

.cart-btn:hover {
    transform: scale(1.1);
    background: #f8f8f8;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    order: 1;
    flex-shrink: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: all 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    text-align: right;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.mobile-menu ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    border-radius: 8px;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
    padding: 0.5rem 0;
}

.mobile-dropdown-menu li a {
    padding: 8px 15px;
    color: #333 !important;
    font-weight: 400 !important;
}

.mobile-dropdown-menu li a:hover {
    background: #f0f0f0;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Overlay pour le menu mobile */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
    transition: opacity 0.2s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dropdown mobile en mode accordéon */
.mobile-dropdown .fa-caret-down {
    transition: transform 0.3s ease;
}

.mobile-dropdown .fa-caret-down.rotated {
    transform: rotate(180deg);
}

/* Styles pour les zones client mobile */
.client-welcome-mobile {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.client-welcome-mobile span {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
        justify-self: start;
    }

    .logo {
        order: 2;
        justify-self: center;
    }

    .nav-actions {
        order: 3;
        justify-self: end;
    }

    .desktop-nav,
    .desktop-actions {
        display: none;
    }

    .logo-image {
        width: 58px;
        height: 58px;
    }

    .logo-image img {
        height: 42px;
        max-width: 42px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo-image {
        width: 54px;
        height: 54px;
    }

    .logo-image img {
        height: 38px;
        max-width: 38px;
    }
}

/* Desktop layout normal */
@media (min-width: 769px) {
    .header-container {
        display: flex;
    }

    .desktop-nav,
    .desktop-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* =============================================
   MENU HIERARCHIQUE AVEC SEGMENTS EN DESSOUS
   ============================================= */

/* Conteneur principal du menu */
.multi-level .dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 800px;
    max-width: 1200px;
    top: 100%;
    left: 0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.multi-level:hover .dropdown-menu {
    display: block;
}

/* Layout des 2 colonnes */
.categories-columns {
    display: flex;
    min-height: 450px;
}

/* Première colonne : catégories parentes */
.parent-categories-column {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    max-height: 450px;
}

.parent-category-wrapper {
    position: relative;
}

.parent-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.parent-category-link:hover {
    color: #9100a4;
    background: #f0f0f0;
}

.parent-category-link .fa-chevron-right {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.3s ease;
}

.parent-category-wrapper:hover .parent-category-link .fa-chevron-right {
    color: #9100a4;
    transform: translateX(3px);
}

.parent-category-wrapper.active .parent-category-link {
    color: #9100a4;
    background: #e8f4ff;
    border-right: 3px solid #9100a4;
}

/* Deuxième colonne : sous-catégories avec segments */
.subcategories-column {
    width: 350px;
    background: white;
    padding: 20px;
    overflow-y: auto;
    max-height: 450px;
}

.subcategories-panel {
    display: none;
}

.subcategories-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.subcategories-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9100a4;
}

.subcategories-header h4 {
    color: #9100a4;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Conteneur de sous-catégorie */
.subcategory-wrapper {
    position: relative;
    margin-bottom: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.subcategory-wrapper:hover {
    background: #fafafa;
}

.subcategory-main {
    position: relative;
    z-index: 2;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.subcategory-link:hover {
    color: #9100a4;
    background: #f0f0f0;
}

.subcategory-link .fa-chevron-down {
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.3s ease;
}

.subcategory-wrapper.active .subcategory-link .fa-chevron-down {
    color: #9100a4;
    transform: rotate(180deg);
}

.subcategory-wrapper.active .subcategory-link {
    color: #9100a4;
    background: #e8f4ff;
    font-weight: 600;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid #d0e3ff;
}

/* Dropdown des segments (apparaît en dessous) */
.segments-dropdown {
    display: none;
    position: relative;
    background: #f8f9fa;
    border-radius: 0 0 6px 6px;
    margin-top: -1px;
    padding: 10px 15px 15px 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    border-top: none;
    z-index: 1;
    animation: slideDown 0.3s ease;
}

.subcategory-wrapper.active .segments-dropdown {
    display: block;
}

.segments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
}

.segment-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.segment-link:hover {
    color: #9100a4;
    background: #f0f0f0;
    border-left-color: #9100a4;
    padding-left: 15px;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Style pour le dernier élément */
.parent-category-wrapper:last-child .parent-category-link {
    border-bottom: none;
}

/* Amélioration de la zone de survol */
.subcategory-wrapper {
    position: relative;
}

.subcategory-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Indication qu'il y a des segments */
.subcategory-wrapper.has-segments .subcategory-link {
    position: relative;
}

.subcategory-wrapper.has-segments .subcategory-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9100a4 20%, #9100a4 80%, transparent);
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-columns {
        min-width: 600px;
    }

    .parent-categories-column {
        width: 200px;
    }

    .subcategories-column {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .multi-level .dropdown-menu {
        display: none !important;
    }
}

/* =============================================
   HERO SLIDER CORRIGÉ - Images claires sans transition blanche
   ============================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 120vh;
    overflow: hidden;
    margin-top: 80px;
    background-color: #000; /* Fond noir pour éviter le flash blanc */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Images du slider SANS OPACITÉ - affichage clair */
.slide-1 {
    background-image: url('../images/im1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-2 {
    background-image: url('../images/im2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-3 {
    background-image: url('../images/im3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 90%;
    animation: fadeInUp 1s ease;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent seulement pour le texte */
    border-radius: 10px;
    backdrop-filter: blur(3px);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    word-wrap: break-word;
}

.slider-nav {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2%;
    z-index: 10;
    transform: translateY(50%);
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 12px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Animation pour le contenu du slider */
.slide .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour le slider */
@media (max-width: 1024px) {
    .hero-slider {
        height: 90vh;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }

    .slide {
        padding: 0 5%;
    }

    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .slider-nav {
        padding: 0 2%;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-dots {
        bottom: 20px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        margin-top: 70px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .cta-buttons {
        margin-top: 1rem;
    }

    .slider-nav {
        display: none; /* Cacher les flèches sur mobile */
    }
}

/* Pour les images qui débordent */
.slide img {
    display: none;
}

/* Fallback pour les navigateurs plus anciens */
@media (max-width: 320px) {
    .hero-slider {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }
}

/* =============================================
   BOUTONS RÉDUITS
   ============================================= */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(145, 0, 164, 0.4);
}

.btn-primary:hover {
    background: #7a008a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(145, 0, 164, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 5rem 10%;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    word-wrap: break-word;
    line-height: 1.3;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
}

/* Responsive pour section titles */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.5rem;
        line-height: 1.1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CATEGORIES SECTION CORRIGÉE - LIBELLÉS COMPLETS
   ============================================= */
.categories {
    padding: 5rem 10%;
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--primary);
    border-radius: 12px;
    overflow: visible;
    height: auto;
    min-height: 85px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    text-decoration: none;
    padding: 15px;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--secondary);
}

.category-content {
    padding: 1rem 0.5rem;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.category-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: left;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    padding-right: 10px;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    min-width: 20px;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Compteur de produits */
.category-count {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    font-weight: 400;
    text-align: left;
    line-height: 1.2;
}

/* Ajustement responsive pour catégories */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .category-card {
        min-height: 80px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .categories {
        padding: 3rem 5%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }

    .category-card {
        min-height: 75px;
        padding: 10px;
    }

    .category-content h3 {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .category-count {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .category-card {
        min-height: 70px;
        padding: 8px;
    }

    .category-content h3 {
        font-size: 0.9rem;
    }

    .category-arrow {
        font-size: 1rem;
        min-width: 16px;
    }
}

@media (max-width: 360px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .category-card {
        min-height: 65px;
    }
}

/* Animation d'entrée pour les cartes */
.category-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Products Section */
.products {
    padding: 3rem 5%;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

/* MODIFICATION PRINCIPALE : Hauteur augmentée des conteneurs d'images */
.product-img {
    height: 300px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem 0.5rem;
}

.product-info h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.product-rating {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.action-btn {
    flex: 1;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 30px;
    text-decoration: none;
}

.action-btn.view-details {
    background: #9100a4;
    color: white;
}

.action-btn.view-details:hover {
    background: #7a008a;
    transform: translateY(-2px);
}

.action-btn.add-to-cart {
    background: #9100a4;
    color: white;
}

.action-btn.add-to-cart:hover {
    background: #7a008a;
    transform: translateY(-2px);
}

.action-btn.out-of-stock {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
}

.action-btn i {
    font-size: 0.7rem;
}

/* Ajustements pour tablette */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 1.2rem;
    }

    .product-img {
        height: 270px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 1rem;
    }

    .product-img {
        height: 225px;
        padding: 10px;
    }

    .product-info h5 {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .action-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        min-height: 28px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-img {
        height: 180px;
        padding: 8px;
    }

    .product-info h5 {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
        min-height: 26px;
    }

    .action-btn i {
        display: none;
    }
}

/* Badge promotion */
.promo-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: #e74c3c !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 0.6em !important;
    text-align: center !important;
    min-width: 35px !important;
    line-height: 1.1 !important;
}

.promo-badge small {
    font-size: 0.55em !important;
    line-height: 1 !important;
    display: block !important;
    margin-top: 1px !important;
}

/* Badge de stock */
.stock-badge {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    font-size: 0.6em !important;
    background: #95a5a6;
    color: white;
}

.stock-info {
    font-size: 0.8rem !important;
    margin: 5px 0 !important;
}

.stock-out {
    color: #e74c3c;
    font-weight: bold;
}

.stock-low {
    color: #f39c12;
    font-weight: bold;
}

.stock-ok {
    color: #27ae60;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
}

.promo-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1em;
}

.economie {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.8em;
}

.normal-price {
    font-weight: bold;
    font-size: 1.1em;
}

/* Style pour aucun produit */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-products i {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 15px;
}

.no-products p {
    color: #999;
    margin-bottom: 25px;
}

/* Bouton spécifique pour la section no-products - TAILLE RÉDUITE */
.no-products .btn,
.no-products .btn-primary {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Pour mobile */
@media (max-width: 768px) {
    .no-products .btn,
    .no-products .btn-primary {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .no-products .btn,
    .no-products .btn-primary {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.75rem !important;
    }

    .no-products .btn i {
        font-size: 0.8rem !important;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 10%;
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(145, 0, 164, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Ajustement pour la section contact avec header fixe */
#contact {
    scroll-margin-top: 100px;
}

/* Ajustement pour la section produits avec header fixe */
#products {
    scroll-margin-top: 100px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notifications des commandes récentes */
.recent-order-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #2440bf;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    z-index: 10000;
    max-width: 350px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-order-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.recent-order-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.recent-order-content img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.recent-order-info {
    flex: 1;
}

.recent-order-info p {
    margin: 0;
    line-height: 1.4;
}

.recent-order-info small {
    color: #888;
    font-size: 0.8em;
}

.close-notification {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.close-notification:hover {
    background: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-order-notification {
        max-width: 300px;
        right: 10px;
        left: 10px;
    }
}

/* Styles pour les boutons d'action des produits */
.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Pour les écrans très petits */
@media (max-width: 360px) {
    .action-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .action-btn i {
        display: none;
    }
}

/* Bouton de contact */
.contact-form button[type="submit"] {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Bouton de retour */
.products .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}

/* =============================================
   FOOTER STYLE RÉVISÉ
   ============================================= */

footer {
    background: linear-gradient(135deg, #2440bf 0%, #2440bf 100%);
    color: white;
    padding: 3rem 10% 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

/* Logo du footer */
.footer-col .logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-col .logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2440bf;
    font-size: 1.2rem;
}

.footer-col .logo h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-left: 10px;
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Liens du footer */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-col ul li i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: var(--accent);
}

/* Styles spécifiques pour la colonne catégories */
.footer-col:nth-child(3) ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col:nth-child(3) ul li a {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col:nth-child(3) ul li a:hover {
    border-bottom-color: var(--accent);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--accent);
    color: #2440bf;
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.copyright p {
    margin: 0;
}

.copyright p:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 2.5rem 5% 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col h3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

/* Animation d'apparition */
.footer-col {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour boutons */
@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}