/**
 * Fichier: css/promotions.css
 * Ajouté le: 2026-01-21 06:23:36
 */

/* ======================= STYLES SPÉCIFIQUES PAGE PROMOTIONS ======================= */

/* Hero section spécifique */
.promos-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/promotions-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 1.5rem;
}

/* Filtres de promotions */
.promotions-filters {
    background-color: var(--background-cream);
    padding: 2rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="range"] {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 0.9rem;
    background-color: white;
    color: var(--text-tertiaire);
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input[type="range"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.filter-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #eee;
    outline: none;
    padding: 0;
    margin: 10px 0;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.2);
}

.filter-range-value {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex: 1;
    min-width: 150px;
}

/* Affichage des promotions */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.promotion-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promotion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-footer {
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
}

/* Style pour promotion expirée */
.promotion-card.expired {
    opacity: 0.7;
}

.promotion-card.expired::after {
    content: 'Terminé';
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Animation des pourcentages */
.promotion-discount {
    transition: all 0.3s ease;
}

.promotion-card:hover .promotion-discount {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px rgba(255, 230, 109, 0.5);
}

/* Section de top promotions */
.top-promos-section {
    padding: 3rem 0;
    background-color: var(--background-cream);
    margin: 3rem 0;
}

.top-promos-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.promos-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-promo-card {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 0 1rem;
    min-width: 280px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-control:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Page détail promotion */
.promo-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.promo-detail-image {
    flex: 2;
    min-width: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.promo-detail-image img {
    width: 100%;
    height: auto;
}

.promo-detail-discount {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.promo-detail-info {
    flex: 3;
    min-width: 300px;
}

.promo-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.promo-meta-item {
    background-color: var(--background-cream);
    padding: 0.7rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.promo-meta-item i {
    color: var(--primary-color);
}

.promo-detail-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.promo-detail-shop {
    background-color: var(--background-cream);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.promo-shop-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.promo-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-shop-info {
    flex: 1;
    min-width: 200px;
}

.promo-shop-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.promo-shop-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.promo-coupon {
    background-color: white;
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.promo-coupon-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    padding: 0.8rem;
    background-color: var(--background-cream);
    border-radius: 8px;
    margin: 1rem 0;
    display: inline-block;
}

.promo-related-section {
    margin: 3rem 0;
}

.promo-related-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .promotions-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .slider-promo-card {
        flex: 0 0 calc(50% - 2rem);
    }
    
    .promo-detail-discount {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .slider-promo-card {
        flex: 0 0 calc(100% - 2rem);
    }
}

@media screen and (max-width: 576px) {
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .promotion-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .promo-detail-discount {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
    
    .promo-coupon-code {
        font-size: 1.2rem;
        width: 100%;
    }
}
/* Style pour le formulaire de newsletter */
.newsletter-section {
    background-color: #f9f9f9;
    padding: 3rem 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    color: #333;
    background-color: white;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.newsletter-form input[type="email"]::placeholder {
    color: #999;
    transition: color 0.3s ease;
}

.newsletter-form input[type="email"]:focus::placeholder {
    color: #ccc;
}

.newsletter-form button {
    padding: 15px 25px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
        max-width: 90%;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        border-radius: 0;
    }
}
.newsletter-unsubscribe-link {
    margin-top: 10px;
    text-align: center;
}

.newsletter-unsubscribe-link a {
    color: #666;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsletter-unsubscribe-link a:hover {
    color: #4CAF50;
    text-decoration: underline;
}