/* ============================================================
   SECTION TÉMOIGNAGES - ELLES ME FONT CONFIANCE
   Carrousel 3D avec fond blanc
   ============================================================ */

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

.testimonials-section {
    position: relative;
    width: 100%;
    background-color: var(--site-white, #FFFFFF);
    padding: 6rem 0;
    overflow: hidden;
}

/* ============================================================
   CONTAINER
   ============================================================ */

.testimonials-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================================
   EN-TÊTE AVEC TITRE DÉCORATIF
   ============================================================ */

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Titre décoratif en arrière-plan - Birthstone Bounce */
.testimonials-title-decorative {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Birthstone Bounce', cursive;
    font-size: 128px;
    font-weight: 400;
    color: var(--color-primary);
    opacity: 0.3;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

/* Titre principal - Lexend Deca */
.testimonials-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 0 5px #FFFFFF, 0 0 10px #FFFFFF, 0 0 15px #FFFFFF, 0 0 20px #FFFFFF, 0 0 25px #FFFFFF, 0 0 30px #FFFFFF, 0 0 35px #FFFFFF, 0 0 40px #FFFFFF, 0 0 50px #FFFFFF, 0 0 60px #FFFFFF, 0 0 70px #FFFFFF, 0 0 80px #FFFFFF, 0 0 100px rgba(255, 255, 255, 0.85), 0 0 120px rgba(255, 255, 255, 0.7), 0 0 140px rgba(255, 255, 255, 0.5), 0 0 160px rgba(255, 255, 255, 0.3);
}

.testimonials-description {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================================
   CARROUSEL WRAPPER
   ============================================================ */

.testimonials-carousel-wrapper {
    position: relative;
    padding: 2rem 0 4rem;
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    perspective: 1500px;
    min-height: 500px;
    position: relative;
}

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

.testimonial-card {
    position: absolute;
    background: var(--site-white, #FFFFFF);
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 70%;
    max-width: 700px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
}

/* Carte active (centre) */
.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    pointer-events: auto;
    filter: blur(0);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Carte suivante (droite) */
.testimonial-card.next {
    opacity: 0.5;
    transform: translateX(40%) scale(0.85) rotateY(-10deg);
    z-index: 2;
    filter: blur(2px);
}

/* Carte précédente (gauche) */
.testimonial-card.prev {
    opacity: 0.5;
    transform: translateX(-40%) scale(0.85) rotateY(10deg);
    z-index: 2;
    filter: blur(2px);
}

/* Cartes cachées */
.testimonial-card.hidden {
    opacity: 0;
    transform: scale(0.7);
    z-index: 1;
}

/* ============================================================
   CONTENU DES CARTES
   ============================================================ */

/* Étoiles */
.testimonial-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.star-icon {
    width: 24px;
    height: 24px;
    /* Jaune-dore hardcode (comme l'accueil) — pas de --color-secondary
       qui est orange dans le config */
    color: #FFB428;
    fill: currentColor;
}

/* Texte du témoignage */
.testimonial-text {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 0 2rem 0;
    font-style: italic;
}

/* Bouton "Lire la suite" : uniquement utile sur mobile (voir breakpoint
   768px), cache par defaut sur desktop ou le texte s'affiche toujours en
   entier. */
.testimonial-read-more {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin: -1.25rem 0 1.5rem;
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #00AAAA);
    cursor: pointer;
}

/* Profil */
.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-family: var(--font-heading, 'Lexend Deca', sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Vert d'eau au repos (comme sur l'accueil) — hardcode pour ne pas
       dependre de --color-primary qui peut ne pas etre defini partout */
    background: #00AAAA;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 170, 0.3);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.carousel-nav:hover {
    /* Jaune-dore au hover (comme etoiles + accueil) */
    background: #FFB428;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 180, 40, 0.4);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* ============================================================
   INDICATEURS
   ============================================================ */

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 170, 170, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    /* Vert d'eau (comme la fleche au repos) — hardcode */
    background: #00AAAA;
    width: 40px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(0, 170, 170, 0.6);
}

/* ============================================================
   RESPONSIVE - TABLETTE
   ============================================================ */

@media (max-width: 1024px) {
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-container {
        padding: 0 1.5rem;
    }

    .testimonials-header {
        margin-bottom: 3rem;
    }

    .testimonials-title-decorative {
        font-size: 100px;
    }

    .testimonials-title {
        font-size: 38px;
    }

    .testimonial-card {
        width: 80%;
        padding: 35px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }
}

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

@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-container {
        padding: 0 1rem;
    }

    .testimonials-header {
        margin-bottom: 2.5rem;
    }

    .testimonials-title-decorative {
        font-size: 70px;
    }

    .testimonials-title {
        font-size: 28px;
    }

    .testimonials-description {
        font-size: 1rem;
    }

    .testimonials-carousel {
        min-height: 450px;
    }

    .testimonial-card {
        width: 90%;
        padding: 30px;
        border-radius: 30px;
    }

    /* Sur mobile, on cache les cartes latérales */
    .testimonial-card.next,
    .testimonial-card.prev {
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }

    /* Les temoignages varient beaucoup en longueur (de ~180 a plus de 500
       caracteres) : en plein texte sur un ecran etroit, les plus longs
       s'enroulent sur beaucoup de lignes et rendent la carte demesuree.
       On tronque a 4 lignes avec un bouton "Lire la suite" pour garder une
       hauteur de carte compacte et previsible sur mobile. */
    .testimonial-text {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .testimonial-text.is-expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .testimonial-read-more {
        display: inline-block;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

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

@media (max-width: 480px) {
    .testimonials-section {
        padding: 2rem 0;
    }

    .testimonials-title-decorative {
        font-size: 50px;
    }

    .testimonials-title {
        font-size: 24px;
    }

    .testimonial-card {
        width: 95%;
        padding: 25px;
        border-radius: 25px;
    }

    .testimonials-carousel {
        min-height: 400px;
    }

    .testimonial-text {
        font-size: 0.9375rem;
    }

    .star-icon {
        width: 20px;
        height: 20px;
    }
}
