/**
 * Section Témoignages - Avec image de fond et overlay
 * Avis clients avec notes
 */

/* ============================================================
   STRUCTURE PRINCIPALE
   ============================================================ */

.testimonials-section {
    position: relative;
    padding: 6rem 2rem;

    overflow: hidden;
    /* Image de fond */
    background-image: url('../../img/karan-bhatia-ib7jwp7m0iA-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay très foncé par-dessus l'image */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 6, 7, 0.50);
    z-index: 1;
}

/* Texture métallique en overlay */
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/Metal\ scratch\ png\ overlay,\ abstract\ design\ on\ transparent\ background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
}

.testimonials-section__container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* ============================================================
   CROIX DÉCORATIVES
   ============================================================ */

.testimonials-section__cross-top-left {
    position: absolute;
    top: 4rem;
    left: 40rem;
    width: 2px;
    height: 120px;
    background: var(--color-primary);
    z-index: 3;
}

.testimonials-section__cross-top-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 137%;
    transform: translate(-14%, -51%);
    width: 455px;
    height: 2px;
    background: var(--color-primary);
}

.testimonials-section__cross-bottom-right {
    position: absolute;
    bottom: 4rem;
    right: 2rem;
    width: 2px;
    height: 60px;
    background: var(--color-primary);
    z-index: 3;
}

.testimonials-section__cross-bottom-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.testimonials-section__cross-center-right {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    width: 2px;
    height: 100px;
    background: var(--color-primary);
    z-index: 3;
    opacity: 0.7;
}

.testimonials-section__cross-center-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: var(--color-primary);
}

/* ============================================================
   EN-TÊTE DE SECTION
   ============================================================ */

.testimonials-section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-section__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: -0.06em;
    font-family: var(--font-heading);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.testimonials-section__title .highlight {
    color: var(--color-primary);
}

.testimonials-section__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 1rem 0;
    font-family: var(--font-primary);
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.testimonials-section__description {
    font-size: 1.125rem;
    color: var(--color-light);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-primary);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

/* ============================================================
   GRILLE DES TÉMOIGNAGES (3 COLONNES)
   ============================================================ */

.testimonials-section__carousel-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    margin-top: 3rem;
}

.testimonials-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem 0 2rem 0;
}

/* Indicateurs */
.testimonials-section__indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.testimonials-section__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-section__indicator.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.testimonials-section__indicator:hover {
    background: var(--color-primary);
    opacity: 0.7;
}

/* ============================================================
   CARTE TÉMOIGNAGE
   ============================================================ */

.testimonials-section__card {
    position: relative;
    /* Effet Glassmorphism */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px 0 rgba(3, 6, 7, 0.15),
        inset 0 0 0 1px rgba(227, 177, 52, 0.1);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s ease;
    flex: 0 0 calc(33.333% - 1.35rem);
    overflow: hidden;
}

/* Texture métallique sur la carte */
.testimonials-section__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/Metal\ scratch\ png\ overlay,\ abstract\ design\ on\ transparent\ background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.testimonials-section__card > * {
    position: relative;
    z-index: 1;
}

.testimonials-section__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Guillemet décoratif */
.testimonials-section__quote-icon {
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonials-section__quote-icon svg {
    width: 48px;
    height: 48px;
}

/* Texte du témoignage */
.testimonials-section__text {
    font-size: 1.0625rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
    font-family: var(--font-primary);
    font-style: italic;
    flex: 1;
}

/* ============================================================
   NOTE (ÉTOILES)
   ============================================================ */

.testimonials-section__rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
}

.testimonials-section__star {
    color: rgba(227, 177, 52, 0.3);
    transition: color 0.3s ease;
}

.testimonials-section__star.filled {
    color: var(--color-primary);
}

/* ============================================================
   AUTEUR
   ============================================================ */

.testimonials-section__author {
    border-top: 2px solid rgba(227, 177, 52, 0.2);
    padding-top: 1.5rem;
}

.testimonials-section__author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 0.25rem 0;
    font-family: var(--font-primary);
}

.testimonials-section__author-role {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
    font-family: var(--font-primary);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .testimonials-section {
        padding: 4rem 1.5rem;
    }

    /* Masquer les croix sur mobile */
    .testimonials-section__cross-top-left,
    .testimonials-section__cross-bottom-right,
    .testimonials-section__cross-center-right {
        display: none;
    }

    .testimonials-section__header {
        margin-bottom: 3rem;
    }

    .testimonials-section__title {
        font-size: 2rem;
    }

    .testimonials-section__subtitle {
        font-size: 1.125rem;
    }

    .testimonials-section__description {
        font-size: 1rem;
    }

    .testimonials-section__carousel-wrapper {
        margin-top: 2rem;
    }

    .testimonials-section__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-section__card {
        padding: 2rem;
        gap: 1.25rem;
    }

    .testimonials-section__quote-icon svg {
        width: 36px;
        height: 36px;
    }

    .testimonials-section__text {
        font-size: 1rem;
    }

    .testimonials-section__rating {
        font-size: 1.125rem;
    }

    .testimonials-section__author {
        padding-top: 1.25rem;
    }

    .testimonials-section__author-name {
        font-size: 1rem;
    }

    .testimonials-section__author-role {
        font-size: 0.875rem;
    }
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-section {
        padding: 5rem 2rem;
    }

    .testimonials-section__title {
        font-size: 2.5rem;
    }

    .testimonials-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================================
   RESPONSIVE - LARGE DESKTOP
   ============================================================ */

@media (min-width: 1280px) {
    .testimonials-section {
        padding: 10rem 3rem;
    }

    .testimonials-section__container {
        max-width: 1600px;
    }

    .testimonials-section__header {
        margin-bottom: 5rem;
    }

    .testimonials-section__title {
        font-size: 3.5rem;
    }

    .testimonials-section__subtitle {
        font-size: 1.75rem;
    }

    .testimonials-section__description {
        font-size: 1.25rem;
    }

    .testimonials-section__card {
        padding: 3rem;
    }

    .testimonials-section__text {
        font-size: 1.125rem;
    }
}
