/* 
 * Fichier : carousel.css
 * Description : Styles spécifiques pour le carrousel des services
 * Date : [Date actuelle]
 */

/* ===== SECTION CARROUSEL DES SERVICES ===== */
.services-carousel-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
}

.services-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.service-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.service-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.service-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-slide-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.service-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-slide:hover .service-slide-image img {
    transform: scale(1.05);
}

.service-number {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.service-slide-info {
    padding: 40px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-slide-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-slide-info p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--success-color);
    margin-right: 10px;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-service:hover {
    background-color: #004494;
    transform: translateX(5px);
}

.btn-service i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-service:hover i {
    transform: translateX(5px);
}

/* ===== CONTRÔLES DU CARROUSEL ===== */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 0 20px;
}

.carousel-prev,
.carousel-next {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    outline: none;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== STATISTIQUES DU CARROUSEL ===== */
.carousel-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-text {
    color: var(--gray-color);
    font-weight: 500;
}

/* ===== SECTION AVANTAGES ===== */
.advantages-section {
    padding: 100px 0;
    background-color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background-color: #f9f9f9;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== SECTION TÉMOIGNAGES ===== */
.testimonials-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.testimonials-slider {
    max-width: 800px;
    margin: 50px auto 0;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
}

.testimonial-content {
    position: relative;
    margin-bottom: 30px;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-color);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== SECTION CTA ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-section .btn {
    margin: 0 10px;
}

.cta-section .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .service-slide-content {
        grid-template-columns: 1fr;
    }
    
    .service-slide-image {
        height: 300px;
    }
    
    .carousel-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-carousel-section {
        padding: 60px 0;
    }
    
    .service-slide-info {
        padding: 30px 20px;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .service-slide-info h3 {
        font-size: 1.5rem;
    }
    
    .service-number {
        font-size: 2rem;
        top: 15px;
        left: 15px;
    }
    
    .testimonial {
        padding: 30px 20px;
        margin: 0 10px;
    }
}