/* Fichier : assets/css/components/offres.css */
/* Styles pour la section des offres d'abonnement */

.offres-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.offres-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.offres-section h2 i {
    color: #ffd700;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Carrousel Container */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.carousel-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: -moz-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: -o-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), -webkit-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), -moz-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), -o-transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    will-change: transform;
    position: relative;
    left: 0;
}

/* Cartes d'offres */
.offer-card {
    min-width: calc(25% - 15px);
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(25% - 15px);
    -moz-box-flex: 0;
    flex: 0 0 calc(25% - 15px);
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    -webkit-box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    -moz-box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    flex-direction: column;
    height: 550px;
    width: calc(25% - 15px) !important; /* Force la largeur sur tous les navigateurs */
    box-sizing: border-box;
}

.offer-card:hover {
    -webkit-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.offer-card.popular {
    border-color: var(--primary-color);
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 3;
}

.offer-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.offer-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.2rem;
    color: #666;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: #666;
}

.discount {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.features li {
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
}

.features i {
    color: #28a745;
    font-size: 0.9rem;
    width: 16px;
}

.btn-offer {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    margin-top: auto;
}

.btn-offer:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Contrôles du carrousel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    -webkit-box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 1.2rem;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-color);
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.2);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    border-color: white;
}

/* Footer des offres */
.offres-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.offres-footer p {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

/* Styles spécifiques pour Firefox */
@-moz-document url-prefix() {
    .carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important;
    }
    
    .offer-card {
        flex: 0 0 calc(25% - 15px) !important;
        width: calc(25% - 15px) !important;
    }
}

/* Styles spécifiques pour Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .carousel-track {
            display: -webkit-box !important;
            -webkit-box-orient: horizontal !important;
        }
        
        .offer-card {
            width: calc(25% - 15px) !important;
            margin-right: 15px;
        }
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .offer-card {
        min-width: calc(33.33% - 15px);
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(33.33% - 15px);
        -moz-box-flex: 0;
        flex: 0 0 calc(33.33% - 15px);
        width: calc(33.33% - 15px) !important;
    }
}

@media (max-width: 992px) {
    .offer-card {
        min-width: calc(50% - 15px);
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 15px);
        flex: 0 0 calc(50% - 15px);
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .offer-card {
        min-width: calc(100% - 20px);
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
        height: auto;
    }
    
    .offres-section h2 {
        font-size: 1.8rem;
    }
    
    .carousel-controls {
        padding: 0 5px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .offres-section {
        padding: 2rem 0;
    }
    
    .carousel-container {
        padding: 0 10px;
    }
    
    .offer-card {
        padding: 1.5rem 1rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
}
