/* ══════════════════════════════════════
   SECTION AVIS CLIENTS
══════════════════════════════════════ */

#section-avis {
    background: #000;
    color: #fff;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.titre-avis {
    text-align: center;
    color: #d4af37;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.separation {
    width: 60px;
    height: 2px;
    background: #d4af37;
    margin: 0 auto 40px auto;
}

/* ── Formulaire ── */
.form-container {
    max-width: 520px;
    margin: 0 auto 50px auto;
    background: #111;
    padding: 35px 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

/* ── Étoiles ── */
.stars-input {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1;
}

.star-btn {
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
    margin: 0 4px;
    user-select: none;
    display: inline-block;
}

.star-btn.active {
    color: #d4af37;
}

/* ── Champs texte ── */
.input-style {
    width: 100%;
    background: #000;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 12px 15px;
    margin-bottom: 15px;
    outline: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: border-color 0.3s;
}

.input-style:focus { border-color: #906543; }
.input-style::placeholder { color: #555; }
textarea.input-style { resize: vertical; min-height: 100px; }

/* ── Bouton publier ── */
.btn-luxe {
    width: 100%;
    background: #906543;
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
    border-radius: 2px;
    margin-top: 5px;
}

.btn-luxe:hover { background: #fff; color: #000; }
.btn-luxe:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════
   GRILLE DES 5 AVIS
══════════════════════════════════════ */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.avis-card {
    background: #111;
    padding: 25px 20px;
    border-left: 3px solid #906543;
    border-radius: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(144, 101, 67, 0.1);
}

.avis-stars {
    font-size: 20px;
    color: #906543;
}

.etoiles-vides { color: #333; }

.avis-nom {
    color: #906543;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.avis-date {
    color: #666;
    font-size: 0.78rem;
    font-style: italic;
}

.avis-texte {
    color: #ccc;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Bouton Voir plus ── */
.btn-voir-plus {
    background: transparent;
    color: #9b5300;
    border: 1px solid #9b5300;
    padding: 12px 35px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 2px;
    margin-top: 10px;
}

.btn-voir-plus:hover {
    background: #9b5300;
    color: #000;
}

/* ══════════════════════════════════════
   POPUP TOUS LES AVIS
══════════════════════════════════════ */

.popup-tous-avis-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-tous-avis-content {
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-tous-avis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: #111;
    flex-shrink: 0;
}

.popup-tous-avis-header h3 {
    color: #d4af37;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.fermer-popup-avis {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s;
}

.fermer-popup-avis:hover { color: #9b5300; }

.popup-avis-grid {
    overflow-y: auto;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    align-content: start;
}

/* Scrollbar stylée */
.popup-avis-grid::-webkit-scrollbar { width: 6px; }
.popup-avis-grid::-webkit-scrollbar-track { background: #111; }
.popup-avis-grid::-webkit-scrollbar-thumb { background: #9b5300; border-radius: 3px; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 600px) {
    .avis-grid {
        grid-template-columns: 1fr;
    }

    .popup-avis-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .popup-tous-avis-content {
        max-height: 90vh;
    }

    .titre-avis { font-size: 1.4rem; }
}

/* ── Section avis — fond blanc texte noir ── */
#section-avis {
    background: #fff !important;
    color: #292a29 !important;
}

.titre-avis {
    color: #906543 !important;
}

.separation {
    background: #906543 !important;
}

.form-container {
    background: #f7f5f2 !important;
    border: 1px solid #e8e0d5 !important;
}

.input-style {
    background: #fff !important;
    border: 1px solid #e8e0d5 !important;
    color: #292a29 !important;
}

.input-style::placeholder {
    color: #aaa !important;
}

.star-btn {
    color: #ddd !important;
}

.star-btn.active {
    color: #906543 !important;
}

.avis-card {
    background: #f7f5f2 !important;
    border-left: 3px solid #906543 !important;
}

.avis-nom {
    color: #906543 !important;
}

.avis-texte {
    color: #444 !important;
}

.avis-date {
    color: #999 !important;
}

.etoiles-vides {
    color: #ddd !important;
}

.upload-label {
    background: #fff !important;
    border: 1px dashed rgba(144,101,67,0.4) !important;
    color: #555 !important;
}

.upload-label:hover {
    border-color: #906543 !important;
    color: #906543 !important;
}

.upload-limits {
    color: #aaa !important;
}

/* ── UPLOAD ZONE ── */
.avis-upload-zone {
    margin: 12px 0;
}

.btn-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #1a1a1a;
    border: 1px dashed #906543;
    color: #906543;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-upload-label:hover {
    background: #906543;
    color: #fff;
}

.avis-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
}

.preview-thumb img,
.preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-error {
    color: #e74c3c;
    font-size: 0.85rem;
}

/* ── MEDIAS DANS LES CARTES AVIS ── */
.avis-medias {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.avis-media-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid #333;
}

.avis-media-thumb img,
.avis-media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.avis-media-thumb:hover .media-overlay {
    opacity: 1;
}

/* ── POPUP MEDIA ── */
#media-popup-contenu img,
#media-popup-contenu video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    display: block;
}