/*
    ==========================================================
    PROJECT : SITE-GENERIQUE
    FILE    : css/main-testimonials.css
    AUTH    : Renaud
    CREATED : 26 février 2026
    UPDATED : 26 mars 2026
    ==========================================================
*/

/**
*   @project        SITE-GENERIQUE
*   @description    Layout de la section témoignages clients.
*                   Gère uniquement le conteneur, le header et la grille.
*                   Les styles des cards sont dans card-testimonial.css.
*
*   @file           css/main-testimonials.css
*
*   @see            includes/main-testimonials.php
*   @see            css/card-testimonial.css
*/


/* --- BLOCK : Main Testimonials --- */
.main-testimonials {
    /* PLACEMENT */
    padding: 2.5rem 0;

    /* VISUEL */
    background-color: var(--color-grey-230);
}


/* --- ELEMENT : Container --- */
.main-testimonials__container {
    /* PLACEMENT */
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* --- ELEMENT : Header --- */
.main-testimonials__header {
    /* PLACEMENT */
    margin-bottom: 2rem;
    text-align: center;
}


/* --- ELEMENT : Title (H2) --- */
.main-testimonials__title {
    /* PLACEMENT */
    display: inline-block;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;

    /* VISUEL */
    border-bottom: 3px solid var(--color-blue-090);

    /* TEXTE */
    font-family: var(--font-family-sans);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-grey-060);
}


/* --- ELEMENT : Subtitle --- */
.main-testimonials__subtitle {
    /* PLACEMENT */
    max-width: 600px;
    margin: 0 auto;

    /* TEXTE */
    font-family: var(--font-family-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-grey-090);
}


/* --- ELEMENT : Grid --- */
.main-testimonials__grid {
    /* PLACEMENT */
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    gap: 25px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Deux colonnes (< 1350px) */
@media (max-width: 1350px) {
    .main-testimonials__grid {
        /* PLACEMENT */
        grid-template-columns: repeat(2, 300px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-testimonials {
        /* PLACEMENT */
        padding: 2rem 0;
    }

    .main-testimonials__header {
        /* PLACEMENT */
        margin-bottom: 1.5rem;
    }

    .main-testimonials__grid {
        /* PLACEMENT */
        grid-template-columns: 300px;
        gap: 25px;
    }
}