/* ========================================
   PROMO SLIDER PRO - STYLE MODERNE ELECSTORE
   ======================================== */

:root {
    --primary-red: #C3002F;
    --primary-red-hover: #a00026;
    --dark-grey: #1a1a1a;
    --light-grey: #f4f4f4;
    --border-color: rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   SECTION PROMOTIONS
   ======================================== */
.promo-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ed 100%);
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(195,0,47,0.1) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
}

.promo-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   EN-TÊTE DE SECTION
   ======================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(195,0,47,0.1);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-grey);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   SLIDER WRAPPER
   ======================================== */
.promo-slider-wrapper {
    position: relative;
    margin-top: 50px;
}

.promo-slider-container {
    position: relative;
    overflow: hidden;
}

/* ========================================
   SLIDES
   ======================================== */
.promo-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.promo-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   GRILLE DE PRODUITS
   ======================================== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   CARTE PRODUIT
   ======================================== */
.promo-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}

.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Badge de réduction */
.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(195,0,47,0.4);
}

/* ========================================
   IMAGE PRODUIT
   ======================================== */
.promo-image {
    width: 100%;
    height: 280px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.promo-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s;
}

.promo-card:hover .promo-image img {
    transform: scale(1.08);
}

.promo-placeholder {
    font-size: 4rem;
    color: #ccc;
}

/* ========================================
   OVERLAY HOVER AVEC BOUTON DÉTAILS
   ======================================== */
.promo-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.promo-card:hover .promo-image-overlay {
    opacity: 1;
    visibility: visible;
}

.view-details-btn {
    background: white;
    color: var(--dark-grey);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
}

.promo-card:hover .view-details-btn {
    transform: translateY(0);
}

.view-details-btn:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(195,0,47,0.4);
}

.view-details-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ========================================
   CONTENU PRODUIT
   ======================================== */
.promo-content {
    padding: 30px;
}

.promo-category {
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-grey);
    min-height: 60px;
    line-height: 1.3;
}

/* ========================================
   PRIX
   ======================================== */
.promo-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   TIMER
   ======================================== */
.promo-timer {
    background: rgba(195,0,47,0.08);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-red);
}

/* ========================================
   BOUTON AJOUTER AU PANIER
   ======================================== */
.add-to-cart-btn {
    width: 100%;
    background: var(--dark-grey);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-to-cart-btn:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(195,0,47,0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.promo-navigation {
    position: absolute;
    top: 50%;
    left: -25px;
    right: -25px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.promo-nav-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--dark-grey);
}

.promo-nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(195,0,47,0.3);
}

.promo-nav-btn:active {
    transform: scale(1.05);
}

.promo-nav-btn svg {
    stroke: currentColor;
    width: 24px;
    height: 24px;
}

/* ========================================
   INDICATEURS
   ======================================== */
.promo-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.promo-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.promo-indicator.active {
    background: var(--primary-red);
    width: 32px;
    border-radius: 5px;
}

.promo-indicator:hover {
    background: rgba(195, 0, 47, 0.6);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablettes (2 colonnes) */
@media (max-width: 1024px) {
    .promo-section {
        padding: 80px 5%;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .promo-navigation {
        left: -15px;
        right: -15px;
    }
    
    .promo-nav-btn {
        width: 50px;
        height: 50px;
    }
}

/* Tablettes Portrait (2 colonnes) */
@media (max-width: 768px) {
    .promo-section {
        padding: 60px 5%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .promo-grid {
        gap: 20px;
    }
    
    .promo-image {
        height: 220px;
    }
    
    .promo-content {
        padding: 25px;
    }
    
    .promo-title {
        font-size: 1.15rem;
        min-height: 50px;
    }
    
    .price-new {
        font-size: 1.5rem;
    }
    
    .promo-navigation {
        left: -10px;
        right: -10px;
    }
    
    .promo-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .promo-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .view-details-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Mobile (1 colonne) */
@media (max-width: 640px) {
    .promo-section {
        padding: 50px 4%;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .promo-image {
        height: 250px;
    }
    
    .promo-badge {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .promo-navigation {
        display: none;
    }
    
    .promo-indicators {
        margin-top: 30px;
        gap: 8px;
        padding: 10px 16px;
    }
    
    .promo-indicator {
        width: 8px;
        height: 8px;
    }
    
    .promo-indicator.active {
        width: 24px;
    }
    
    .view-details-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .promo-content {
        padding: 20px;
    }
    
    .promo-title {
        font-size: 1.1rem;
    }
    
    .price-old {
        font-size: 1rem;
    }
    
    .price-new {
        font-size: 1.4rem;
    }
    
    .add-to-cart-btn {
        padding: 13px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
.promo-nav-btn:focus,
.promo-indicator:focus,
.add-to-cart-btn:focus,
.view-details-btn:focus {
    outline: 3px solid rgba(195, 0, 47, 0.4);
    outline-offset: 3px;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .promo-slide,
    .promo-card,
    .promo-image img,
    .add-to-cart-btn,
    .promo-nav-btn,
    .promo-indicator,
    .promo-image-overlay,
    .view-details-btn {
        animation: none !important;
        transition: none !important;
    }
}