/* ============================================================================
   STYLES - Slider 2 Colonnes - Climatisation Atlas
   ============================================================================ */

/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1F4E78;
    --primary-blue: #2E75B6;
    --light-blue: #D5E8F0;
    --accent-blue: #4A90E2;
    --text-dark: #2C3E50;
    --text-light: #5D6D7B;
    --bg-light: #F8FAFB;
    --border-color: #E1E8ED;
    --white: #FFFFFF;
    --gold: #fbbf24;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ============================================================================
   SECTION PRINCIPALE
   ============================================================================ */

.testimonials-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    font-size: 2.2em;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1em;
    color: var(--text-light);
}

/* ============================================================================
   SLIDER
   ============================================================================ */

.slider-wrapper {
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 4px 15px rgba(31, 78, 120, 0.15);*/
}

.slider-container {
    display: flex;
    width: 100%;
}

/* Grille 2 colonnes — aussi slide du carousel */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 0 0 100%;
    padding: 40px 30px;
    box-sizing: border-box;
}

/* ============================================================================
   CARTES DE TÉMOIGNAGES
   ============================================================================ */

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: var(--light-blue);
    padding: 25px;
    border-radius: 10px;
   
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 117, 182, 0.1);
}

/* Étoiles */
.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.star {
    color: var(--gold);
    font-size: 1.2em;
}

/* Texte du témoignage */
.testimonial-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    font-style: italic;
    border-left: 3px solid var(--primary-blue);
    padding-left: 15px;
}

/* Auteur */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1em;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-dark);
}

.author-info p {
    margin: 3px 0 0 0;
    font-size: 0.8em;
    color: var(--text-light);
}

/* Dots/Indicateurs */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 0;
    background: white;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: var(--primary-blue);
    width: 30px;
    border-radius: 5px;
}

.dot:hover {
    background: var(--light-blue);
}

/* Compteur */
.slider-counter {
    text-align: center;
    padding: 15px 20px;
    background: transparent;
    font-size: 0.85em;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Conseil de glissage */
.swipe-hint {
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    color: var(--text-light);
    background: var(--light-blue);
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

/* ============================================================================
   STATISTIQUES
   ============================================================================ */

.testimonials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================================
   SECTION CTA
   ============================================================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 6px 20px rgba(31, 78, 120, 0.2);
}

.cta-section h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 0.95em;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 0.95em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   RESPONSIVE - TABLET
   ============================================================================ */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 0.85em;
        margin-bottom: 15px;
    }
}

/* ============================================================================
   RESPONSIVE - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    .testimonials-grid .testimonial-card:nth-child(2) {
        display: none;
    }

    .testimonials-section {
        padding: 40px 15px;
    }

    .section-header h2 {
        font-size: 1.6em;
    }

    .section-header p {
        font-size: 0.9em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 15px;
    }

    .testimonial-card {
        padding: 18px;
    }

    .testimonial-text {
        font-size: 0.8em;
        margin-bottom: 12px;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }

    .swipe-hint {
        display: block;
    }

    .testimonials-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
        margin-top: 30px;
    }

    .stat-number {
        font-size: 1.6em;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .cta-section {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .cta-section h3 {
        font-size: 1.3em;
    }

    .cta-section p {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 11px 20px;
    }
}

/* ============================================================================
   RESPONSIVE - PETIT MOBILE
   ============================================================================ */

@media (max-width: 480px) {
    .testimonials-section {
        padding: 30px 12px;
    }

    .section-header h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 0.85em;
    }

    .testimonials-grid {
        padding: 20px 12px;
    }

    .testimonial-card {
        padding: 15px;
    }

    .testimonial-text {
        font-size: 18px;
        margin-bottom: 10px;
        padding-left: 12px;
    }

    .author-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.85em;
    }

    .author-info h4 {
        font-size: 0.85em;
    }

    .author-info p {
        font-size: 0.75em;
    }

    .slider-dots {
        padding: 15px 10px 0;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }

    .slider-counter {
        font-size: 0.8em;
        padding: 12px 15px;
    }

    .swipe-hint {
        padding: 12px;
        font-size: 0.75em;
        margin-top: 12px;
    }
}