section {
    padding: 10vh 14vw;
    min-height: 90vh;
}

section .header {
    text-align: center;
}

section > .latests {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 6rem 0;
}

section .card {
    background: var(--c-light-black);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

section .card > .top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 125px;
}

section .card > .top > ul.stars {
    display: flex;
    gap: 5px;
}

section .card > .top > ul.stars > li.star {
    width: 20px;
    height: 20px;
    background: url(../Components/FullStar.svg) center no-repeat;
    background-size: contain;
}

section .card > .top > p {
    font-family: 'Outfit', sans-serif;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

section .card > .top > span.subTitle {
    margin-bottom: 0;
}

section .card hr {
    margin: 1.5rem 0;
    border: solid 0.5px var(--c-dark-grey);
}

section .card p.who {
    color: var(--c-grey);
    font-size: 1.1rem;
    font-weight: 400;
}

section .card p.who span {
    color: var(--c-white);
}

section > .allReviews > .text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section > .allReviews > .text > select {
    color: var(--c-white);
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    height: min-content;
    border: none;
    background: var(--c-dark-grey);
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    border-right: 16px solid transparent;
    transition: all .3s ease-in-out;
}

section > .allReviews > .text > select:hover {
    background: var(--c-light-black);
}

section > .allReviews > .text > select:focus {
    outline: none;
}

section > .allReviews > .text > select > option:hover {
    background: var(--c-secondary);
}

section > .allReviews > .reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

section > .allReviews > .reviews > .card > .top > p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}


/* !MOBILE RESPONSIVE */
@media screen and (max-width: 992px) {
    section {
        padding: 10vh 7vw;
    }

    section .card {
        padding: 1.5rem;
    }

    section .header {
        text-align: left;
    }

    section > .allReviews > .reviews,
    section > .latests {
        grid-template-columns: repeat(1, 1fr);
    }

    section > .allReviews > .text {
        display: block;
    }
}









/* =========================================
   STYLE DE LA MODALE (Amélioré)
========================================= */
.modal {
    display: none; 
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fond un peu plus sombre */
    backdrop-filter: blur(8px); /* Flou plus prononcé */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--c-light-black);
    padding: 4rem 3rem; /* Espacement intérieur plus généreux */
    border-radius: 15px;
    width: 100%;
    max-width: 650px;
    position: relative;
    border: 1px solid var(--c-dark-grey);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); /* Ombre pour la profondeur */
    animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Animation plus fluide */
    overflow: hidden; /* Pour que le guillemet ne dépasse pas */
}

/* Grand guillemet décoratif en arrière-plan */
.modal-content::before {
    content: '“';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
    font-size: 12rem;
    color: var(--c-main);
    opacity: 0.08; /* Très discret */
    line-height: 1;
    pointer-events: none;
}

#modal-body {
    position: relative;
    z-index: 1; /* Garde le texte au-dessus du guillemet */
}

/* Style de la catégorie */
.modal-content #modal-category {
    color: var(--c-main);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Style du texte de l'avis */
.modal-content #modal-text {
    font-size: 1.35rem; /* Texte plus grand pour la lecture */
    line-height: 1.7;
    margin: 0 0 2rem 0;
    color: var(--c-white);
    font-family: 'Outfit', sans-serif;
    font-style: italic; /* Donne un effet "citation" */
    font-weight: 300;
}

/* Séparateur élégant */
.modal-content hr {
    border: none;
    border-top: 1px solid var(--c-dark-grey);
    margin: 2rem 0 1.5rem 0;
    width: 50px; /* Ligne plus courte pour le style */
}

/* Style de l'auteur */
.modal-content #modal-author {
    color: var(--c-grey);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.modal-content #modal-author::before {
    content: '— '; /* Tiret cadratin avant le nom */
    color: var(--c-main);
}

/* Bouton fermer */
.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--c-grey);
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    color: var(--c-main);
    transform: rotate(90deg); /* Petite interaction au survol */
}

/* Animation d'apparition */
@keyframes modalAppear {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Ajustements pour mobile */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 3rem 2rem;
    }
    
    .modal-content #modal-text {
        font-size: 1.15rem;
    }
    
    .modal-content::before {
        font-size: 9rem;
        top: 0;
        left: 10px;
    }
}










section .card {
    cursor: pointer;
    transition: all 0.2s ease;
}
section .card:hover {
    background: #1d1d1d;
}


/* FORMULAIRE D'AVIS */
.review-form-container {
    background: var(--c-dark-black);
    padding: 3rem 0;
    margin-bottom: 4rem;
}

.review-form-container .text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.review-form {
    background: var(--c-light-black);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid var(--c-dark-grey);
}

.hidden-honeypot {
    display: none !important;
}

.review-form .input-row {
    display: flex;
    gap: 1.5rem;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    background: var(--c-input-background);
    color: var(--c-white);
    border: 1px solid transparent;
    padding: 15px 20px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: var(--c-input-text);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--c-main);
}

.review-form button {
    background: var(--c-main);
    color: var(--c-dark-black);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    align-self: flex-end;
}

.review-form button:hover {
    background: var(--c-secondary);
    color: var(--c-white);
}

/* Messages de retour (succès/erreur) */
.msg-success, .msg-error {
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 500;
}
.msg-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}
.msg-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}


@media screen and (max-width: 768px) {
    .review-form {
        padding: 1rem;
    }
    
    .review-form .input-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .review-form button {
        align-self: stretch; /* Le bouton prend toute la largeur sur mobile */
    }
}