﻿/* ======================================= */
/*   Feuille de style pour temoignages.html    */
/* ======================================= */

/* --- Hero Section SpÃ©cifique --- */
.hero-testimonials {
    background-image: url('image/banner_4.png');
    height: 52vh;
    min-height: 320px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* --- Section Affichage des TÃ©moignages --- */
.testimonials-display-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.testimonials-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: left;
}
.testimonial-display-card {
    border: 1px solid var(--border-color);
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.testimonial-card-stars {
    color: var(--primary-color);
}
.testimonial-card-author {
    font-weight: bold;
    color: var(--text-color);
}

/* --- Section Formulaire de TÃ©moignage --- */
.testimonial-form-section {
    padding: 80px 20px;
    text-align: center;
}
.testimonial-form-container {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}
.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: var(--text-color);
}
.testimonial-form input[type="text"],
.testimonial-form input[type="email"],
.testimonial-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial-form input:focus, .testimonial-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 138, 120, 0.2);
}
.testimonial-form textarea {
    min-height: 120px;
    resize: vertical;
}
.form-submit-group {
    text-align: right;
}

/* --- SystÃ¨me de notation par Ã©toiles --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Important pour l'effet CSS */
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 5px;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
/* Logique d'affichage des Ã©toiles au survol et Ã  la sÃ©lection */
.star-rating:not(:hover) input:checked ~ label,
.star-rating:hover input:hover ~ label {
    color: var(--primary-color);
}
.star-rating input:checked + label:hover,
.star-rating input:checked ~ label:hover,
.star-rating label:hover ~ input:checked ~ label {
    color: #e5a089; /* Couleur de survol plus claire */
}
.rating-instruction {
    color: #888;
    font-style: italic;
    margin-bottom: 20px;
}
