:root {
    --primary: #e67e22;
    --secondary: #27ae60;
    --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: #27ae60;
    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.8rem;
    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: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.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: #27ae60;
    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: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.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;
    }
}

/* Hero Section avec Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-1 {
    background: rgba(0, 0, 0, 0.5) url('../images/ban.png');
    background-size: cover;
    background-position: center;
}

.slide-2 {
    background: rgba(0, 0, 0, 0.5) url('../images/bann.png');
    background-size: cover;
    background-position: center;
}

.slide-3 {
    background: rgba(0, 0, 0, 0.5) url('../images/banniere.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease;
    color: white;
    text-align: center;
    margin: 0 auto;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.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(255, 255, 255, 0.3);
    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(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Animation pour le contenu du slider */
.slide .hero-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 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 */
.categories {
    padding: 5rem 10%;
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    height: 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--secondary);
}

.category-content {
    padding: 1rem;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.category-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: bold;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Animation d'entrée pour les cartes */
.category-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.8rem;
    }

    .category-card {
        height: 70px;
    }

    .category-content h3 {
        font-size: 0.9rem;
    }
}

/* Products Section - MODIFICATIONS PRINCIPALES */
.products {
    padding: 3rem 5%;
    background: white;
}

/* MODIFICATION: Afficher 3 produits par ligne sur PC */
.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;
}

.product-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.product-img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-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;
}

/* Remplacer les boutons par des icônes */
.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-icon:hover {
    background: #d35400;
    transform: scale(1.1);
}

.action-icon.out-of-stock {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Ajustements pour tablette */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
        gap: 1.2rem;
    }
    
    .product-img {
        height: 180px;
    }
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .product-img {
        height: 150px;
        padding: 10px;
    }
    
    .product-info h5 {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .action-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-img {
        height: 120px;
        padding: 8px;
    }
    
    .product-info h5 {
        font-size: 0.85rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .action-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* MODIFICATION PRINCIPALE: Réduction du badge "Promo Flash" */
.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 plus petit aussi */
.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;
}

.stock-info {
    font-size: 0.8rem !important;
    margin: 5px 0 !important;
}

/* Ajustements pour les prix */
.original-price {
    font-size: 0.8em;
}

.promo-price {
    font-size: 1em;
}

/* Newsletter */
.newsletter {
    background: var(--secondary);
    padding: 5rem 10%;
    text-align: center;
    color: white;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #333;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 10% 2rem;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #777;
}

/* Styles spécifiques à la page de détails */
.product-details {
    padding: 5rem 10%;
    background: white;
}

.details-container {
    display: flex;
    gap: 3rem;
}

.product-gallery {
    flex: 1;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary);
}

.product-info-details {
    flex: 1;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-price-details {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 200;
    margin-bottom: 1.5rem;
}

.product-category {
    display: inline-block;
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: var(--light);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-details {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .details-container {
        flex-direction: column;
    }

    .product-title {
        font-size: 2rem;
    }
}

/* Menu déroulant vertical */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    top: 100%;
    left: 0;
    border-radius: 4px;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
}

/* Style pour aucun produit */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.no-products p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Animation pour les cartes */
.animated {
    animation: fadeInUp 0.5s ease-out;
}

/* Ajout de la flèche */
.dropdown>a .fa-caret-down {
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover>a .fa-caret-down {
    transform: rotate(180deg);
}

/* Style pour le défilement fluide */
html {
    scroll-behavior: smooth;
}

/* Ajustement pour la section produits avec header fixe */
#products {
    scroll-margin-top: 100px;
}

/* Styles pour la section Contact */
.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(230, 126, 34, 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;
}

.countdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.countdown h4 {
    margin-bottom: 10px;
    color: #e74c3c;
}

#countdown-timer {
    font-size: 1.2rem;
    font-weight: bold;
}

#countdown-timer span {
    display: inline-block;
    min-width: 40px;
    padding: 5px;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    margin: 0 5px;
}

/* Version alternative pour promo badge si nécessaire */
.promo-badge-alt {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6em;
    margin-left: 10px;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 0.8em;
}

.promo-price {
    color: #e74c3c;
    font-weight: 100;
}

.cart-btn {
    position: relative;
}

.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;
}

.cart table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart th,
.cart td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart th {
    background-color: #f5f5f5;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.checkout-form {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-row-checkout {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-checkout {
    flex: 1;
}

.form-group-checkout label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group-checkout input,
.form-group-checkout select,
.form-group-checkout textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input select {
    flex: 1;
}

.phone-input input {
    flex: 3;
}

.original-price-small {
    text-decoration: line-through;
    color: #999;
    font-size: 0.5em;
}

/* Notifications des commandes récentes */
.recent-order-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #e67e22;
    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;
}

.action-btn {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    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: 32px;
}

.action-btn.view-details {
    background: #3498db;
    color: white;
}

.action-btn.view-details:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.action-btn.add-to-cart {
    background: #e67e22;
    color: white;
}

.action-btn.add-to-cart:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.action-btn.out-of-stock {
    background: #95a5a6;
    color: white;
    cursor: not-allowed;
}

.action-btn i {
    font-size: 0.7rem;
}

/* 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;
    }
}