/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* ========================================
   HERO SECTION STYLES OPTIMIZED
   ======================================== */

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Overlay gradient subtil pour améliorer la lisibilité */
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0,0,0,0.2) 100%);
}

.hero-default {
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

/* Zone de lisibilité derrière le texte - très subtile */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: 120%;
    background: radial-gradient(ellipse at center, 
        rgba(0,0,0,0.3) 0%, 
        transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color, #c9a961);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
    background: white;
    color: var(--accent-color);
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.hero-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.hero-indicators .indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-indicators .indicator:hover {
    background: rgba(255,255,255,0.5);
    border-color: white;
}

/* Hero Navigation Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
}

.hero-nav:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* Hero Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.hero-slide.active .animate-fade {
    animation: fadeIn 1s ease-out;
}

.hero-slide.active .animate-slide {
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-slide.active .animate-slide-delay {
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-slide.active .animate-bounce {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Classe optionnelle pour images très claires */
.hero-slide.light-bg .hero-content::before {
    background: radial-gradient(ellipse at center, 
        rgba(0,0,0,0.5) 0%, 
        transparent 70%);
}

.hero-slide.light-bg .hero-title,
.hero-slide.light-bg .hero-subtitle,
.hero-slide.light-bg .hero-description {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
}

/* Section Styles */
.section-title {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    background: white;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: var(--light-gray, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-placeholder::after {
    content: 'Image bientôt disponible';
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 15px 20px 5px;
    margin: 0;
}

.category-count {
    display: block;
    padding: 0 20px 15px;
    color: #999;
    font-size: 14px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.products-section.bg-light {
    background: #f8f8f8;
}

.products-carousel {
    overflow: hidden;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
}

.product-image {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.badge {

    top: 10px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 2;
    color: white;
}

.badge-featured {
    left: 10px;
    background: var(--accent-color);
}

.badge-new {
    left: 10px;
    background: #4CAF50;
}

.badge-sale {
    right: 10px;
    background: #FF5252;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.btn-quick-add {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-quick-add:hover {
    background: var(--accent-color);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    color: #999;
    font-size: 14px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
}

.btn-newsletter {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.info-section {
    padding: 60px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.info-card {
    text-align: center;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* Fix pour les produits vedettes sur mobile */
@media (max-width: 767px) {
    /* Conteneur des produits vedettes */
    .products-section {
        padding: 40px 0;
    }
    
    .products-section .container {
        padding: 0 10px;
    }
    
    /* Titre de section */
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    /* Grille produits mobile corrigée */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Carte produit - Reset des styles */
    .product-card {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        margin: 0 !important;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Lien produit */
    .product-link {
        display: block;
        text-decoration: none;
        width: 100%;
    }
    
    /* Container image */
    .product-image {
        position: relative;
        width: 100%;
        padding-bottom: 100%;
        background: #f8f8f8;
        overflow: hidden;
    }
    
    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }
    
    /* Badge VEDETTE */
    .badge {

        top: 5px !important;
        left: 5px !important;
        font-size: 9px !important;
        padding: 3px 6px !important;
        border-radius: 3px;
        z-index: 5;
        text-transform: uppercase;
        font-weight: 600;
    }
    
    .badge-featured,
    .badge.VEDETTE,
    span:contains("VEDETTE") {
        background: var(--accent-color, #c9a961) !important;
        color: white !important;
    }
    
    /* Infos produit */
    .product-info {
        padding: 8px !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
        color: #333;
        font-weight: 500;
        min-height: 32px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* Prix */
    .product-price {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        margin-top: auto;
    }
    
    .price-old {
        font-size: 11px !important;
        color: #999;
        text-decoration: line-through;
        order: 1;
    }
    
    .price-current {
        font-size: 14px !important;
        font-weight: bold;
        color: #333;
        order: 2;
    }
    
    /* Actions produit */
    .product-actions {
        padding: 0 8px 8px !important;
    }
    
    .btn-add-cart,
    .btn-quick-add,
    button[onclick*="quickAddToCart"] {
        width: 100% !important;
        padding: 8px !important;
        font-size: 11px !important;
        background: var(--primary-color, #333) !important;
        color: white !important;
        border: none !important;
        border-radius: 5px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
    }
    
    /* Masquer overlay sur mobile */
    .product-overlay {
        display: none !important;
    }
}

/* Ultra petit mobile */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    
    .product-title {
        font-size: 11px !important;
    }
    
    .price-current {
        font-size: 13px !important;
    }
    
    .price-old {
        font-size: 10px !important;
    }
    
    .btn-add-cart,
    .btn-quick-add {
        font-size: 10px !important;
        padding: 6px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .features-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s ease;
}

.notification.error {
    background: #FF5252;
}

.notification.success {
    background: #4CAF50;
}

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