/*
    ========================================
    SECTION-TESTIMONIALS.CSS
    Auteur                : Renaud
    Création              : 23 novembre 2025
    Dernière modification : 12 décembre 2025
    ========================================
*/
/**
*   @project   DEVENIR-ARTISAN.NET
*   Style de la section Preuve Sociale (Avis clients).
*
*   @file  css/section-testimonials.css
*
*   @see   includes/section-testimonials.php
*   @see   css/main-content.css (Pour la grille et le fond .bg-alt)
*/

/* 
   Note : Le fond gris est géré par la classe utilitaire .bg-alt 
   présente dans le HTML (voir includes/section-testimonials.php)
*/
/* --- BLOCK : Section Testimonials --- */
.section-testimonials {
    /* PLACEMENT */
    display: block;
    position: relative;
    /* Note : Fond gris géré par .bg-alt */
}

/* --- ELEMENT : Grid --- */
.section-testimonials__grid {
    /* PLACEMENT */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}


/* --- BLOCK : Testimonial Card --- */
.testimonial-card {
    /* PLACEMENT */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
    padding: 2rem;

    /* VISUEL */
    background-color: var(--color-background-card); /* Blanc */
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* --- ELEMENT : Quote (Texte) --- */
.testimonial-card__quote {
    /* PLACEMENT */
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;

    /* TEXTE */
    font-family: var(--font-text-body);
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Pseudo-élément : Guillemet décoratif */
.testimonial-card__quote::before {
    /* CONTENU */
    content: "\201C"; /* Guillemet ouvrant */

    /* PLACEMENT */
    position: absolute;
    top: -2rem;
    left: -1rem;
    z-index: -1;

    /* TEXTE */
    font-family: var(--font-heading-main);
    font-size: 5rem;
    line-height: 1;
    color: var(--color-blue-060);
    opacity: 0.15;
}


/* --- ELEMENT : Author (Conteneur bas) --- */
.testimonial-card__author {
    /* PLACEMENT */
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Pousse vers le bas */
    padding-top: 1rem;

    /* VISUEL */
    border-top: 1px solid var(--color-separator);
}

/* --- ELEMENT : Avatar --- */
.testimonial-card__avatar img {
    /* PLACEMENT */
    display: block;
    width: 50px;
    height: 50px;

    /* VISUEL */
    border-radius: 50%;
    border: 2px solid var(--color-grey-220);
    object-fit: cover;
}

/* --- ELEMENT : Info --- */
.testimonial-card__info {
    /* PLACEMENT */
    display: flex;
    flex-direction: column;
}

/* --- ELEMENT : Name --- */
.testimonial-card__name {
    /* TEXTE */
    font-weight: 700;
    font-style: normal;
    font-size: 1rem;
    color: var(--color-headings);
}

/* --- ELEMENT : Role --- */
.testimonial-card__role {
    /* TEXTE */
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- ELEMENT : Rating --- */
.testimonial-card__rating {
    /* PLACEMENT */
    margin-top: 0.2rem;

    /* TEXTE */
    font-size: 0.9rem;
    color: var(--color-yellow-090);
    letter-spacing: 2px;
}

/* --- RESPONSIVE --- */
@media (min-width: 900px) {
    .section-testimonials__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
    }
}