/* === Testimonials Section === */

.testimonials-section {
    background-color: var(--black);
    padding-top: 4em;
    color: var(--white);
    padding-bottom: 11.6em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background-color: var(--white);
    min-width: 0;
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem; /* 24px */
    padding: 2rem; /* 32px */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* La section est en noir (var(--black) → blanc), on remet noir DANS la carte blanche */
    color: var(--black);
}

.testimonial-card .quote,
.testimonial-card .author-name {
    color: var(--black);
}

.testimonial-card .author-title {
    color: var(--grey-text);
}

.testimonial-card .quote {
    overflow-wrap: anywhere;
}


.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars img {
    width: 0.75rem;
    height: 0.75rem;
}

.quote {
    font-family: 'RMNeue-Regular', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}


.author-info-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: 'RMMono', sans-serif;
    font-weight: bold;
    margin: 0;
    font-size: 1rem;
}

.author-title {
    font-family: 'RMMono', sans-serif;
    color: var(--grey-text);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

/* Sociétés confirmées par l’agence : logos officiels, sans toucher aux effets. */
.testimonial-card .testimonial-author {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.testimonial-card .testimonial-author > div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.testimonial-card .testimonial-company-mark {
    display: flex;
    align-items: center;
    order: -1;
    width: 3rem;
    max-width: 28%;
    height: 3rem;
    flex: 0 0 3rem;
}

.testimonial-card .testimonial-company-mark img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Le JPEG CAPEB inclut des marges blanches : seul cet espace vide est masqué.
   Le fichier, les proportions, le logo et sa signature restent intacts. */
.testimonial-card .testimonial-company-mark--capeb {
    position: relative;
    overflow: hidden;
}

.testimonial-card .testimonial-company-mark--capeb img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
}

.testimonial-card .testimonial-company-mark--gest-on-line img {
    width: 100%;
    height: auto;
}

/* La dernière carte est un encart éditorial, pas un quatrième témoignage. */
.testimonial-card--more {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    justify-content: space-between;
    gap: 1.5rem;
}

.testimonial-card--more .stars {
    margin-bottom: 0;
}

.testimonial-card--more .stars img {
    width: 0.875rem;
    height: 0.875rem;
    filter: brightness(0);
}

.testimonial-card--more .testimonial-more-title {
    flex-grow: 0;
    margin: 0;
    font-size: clamp(1.3rem, 1.8vw, 2.15rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.testimonial-more-note {
    margin: 0;
    font-family: 'RMMono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding-top: 3em;
        padding-bottom: 5em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .quote {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}
