/* ==========================================
   SYSTÈME D'ÉVALUATION INNOVX - CSS MODERNE
   Thème: Noir / Jaune
   ========================================== */

/* Reset et base */
* {
    box-sizing: border-box;
}

/* Conteneur principal */
.reviews-container {
    background: #000000;
    color: #ffffff;
    padding: 60px 20px;
    min-height: 100vh;
}

.reviews-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================== */
/* STATISTIQUES GLOBALES */
/* ========================================== */

.reviews-stats-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 3px solid #FFD73A;
    border-radius: 25px;
    padding: 50px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 215, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.reviews-stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 58, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.reviews-stats-section > * {
    position: relative;
    z-index: 1;
}

.average-rating {
    font-size: 5rem;
    font-weight: 900;
    color: #FFD73A;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 215, 58, 0.5);
    line-height: 1;
}

.average-rating small {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.total-reviews {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 15px 0 0 0;
}

.recommendation-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255, 215, 58, 0.4);
}

/* ========================================== */
/* DISTRIBUTION DES NOTES */
/* ========================================== */

.rating-distribution {
    background: #111111;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 2px solid rgba(255, 215, 58, 0.2);
}

.rating-distribution h3 {
    color: #FFD73A;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.rating-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rating-bar-wrapper:hover {
    background: rgba(255, 215, 58, 0.05);
    transform: translateX(5px);
}

.rating-bar-wrapper .stars {
    font-size: 1.2rem;
    color: #FFD73A;
    min-width: 80px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.rating-bar-container {
    flex: 1;
    height: 25px;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD73A 0%, #FF8C00 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 58, 0.5);
}

.rating-bar-wrapper .percentage {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    min-width: 60px;
    text-align: right;
    font-weight: bold;
}

.rating-bar-wrapper .count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 80px;
    text-align: right;
}

/* ========================================== */
/* FILTRES ET TRI */
/* ========================================== */

.reviews-filters {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 2px solid rgba(255, 215, 58, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: #FFD73A;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.filter-group select {
    width: 100%;
    background: #000;
    border: 2px solid rgba(255, 215, 58, 0.3);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    outline: none;
    border-color: #FFD73A;
    box-shadow: 0 0 10px rgba(255, 215, 58, 0.3);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 215, 58, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    background: rgba(255, 215, 58, 0.2);
}

.filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.filter-checkbox label {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.btn-filter-apply {
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 58, 0.5);
}

/* ========================================== */
/* LISTE DES AVIS */
/* ========================================== */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 2px solid rgba(255, 215, 58, 0.3);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #FFD73A, #FF8C00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 58, 0.4);
    border-color: #FFD73A;
}

.review-card:hover::before {
    opacity: 1;
}

/* En-tête de l'avis */
.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #FFD73A;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(255, 215, 58, 0.3);
}

.review-user-info {
    flex: 1;
    min-width: 150px;
}

.review-username {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.review-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.badge-verified {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

.badge-verified::before {
    content: '✓';
    font-size: 1.1rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5rem;
    color: #FFD73A;
    margin-left: auto;
}

/* Contenu de l'avis */
.review-title {
    color: #FFD73A;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.review-comment {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    font-size: 1.05rem;
    margin: 0 0 25px 0;
    text-align: justify;
}

/* Images de l'avis */
.review-images {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.review-image-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 58, 0.3);
    transition: all 0.3s ease;
}

.review-image-wrapper:hover {
    transform: scale(1.05);
    border-color: #FFD73A;
    box-shadow: 0 5px 20px rgba(255, 215, 58, 0.5);
}

.review-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Actions sur l'avis */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-review-action {
    background: rgba(255, 215, 58, 0.1);
    border: 2px solid rgba(255, 215, 58, 0.3);
    color: #FFD73A;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-review-action:hover {
    background: #FFD73A;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 58, 0.4);
}

.btn-review-action.voted {
    background: #FFD73A;
    color: #000;
    border-color: #FFD73A;
}

.btn-report {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.btn-report:hover {
    background: #dc3545;
    color: white;
}

/* Réponse InnovX */
.admin-response {
    background: linear-gradient(135deg, rgba(255, 215, 58, 0.15), rgba(255, 140, 0, 0.1));
    border-left: 5px solid #FFD73A;
    padding: 25px;
    margin-top: 25px;
    border-radius: 12px;
    position: relative;
}

.admin-response::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.1;
}

.response-badge {
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(255, 215, 58, 0.4);
}

.response-badge::before {
    content: '🏢';
    font-size: 1.1rem;
}

.response-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    margin: 15px 0 10px 0;
}

.response-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-style: italic;
}

/* ========================================== */
/* PAGINATION */
/* ========================================== */

.reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 30px;
}

.pagination-btn {
    background: rgba(255, 215, 58, 0.1);
    border: 2px solid rgba(255, 215, 58, 0.3);
    color: #FFD73A;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background: #FFD73A;
    color: #000;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    border-color: #FFD73A;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ========================================== */
/* FORMULAIRE DE SOUMISSION */
/* ========================================== */

.submit-review-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 3px solid #FFD73A;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(255, 215, 58, 0.3);
}

.submit-review-header {
    text-align: center;
    margin-bottom: 40px;
}

.submit-review-header h2 {
    color: #FFD73A;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 900;
}

.submit-review-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.form-review {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    color: #FFD73A;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label .required {
    color: #FF8C00;
    font-size: 1.3rem;
}

.form-control {
    width: 100%;
    background: #111111;
    border: 2px solid rgba(255, 215, 58, 0.3);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #FFD73A;
    box-shadow: 0 0 15px rgba(255, 215, 58, 0.3);
    background: #0a0a0a;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.form-help-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

.char-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: right;
    margin-top: -8px;
}

.char-counter.warning {
    color: #FF8C00;
}

.char-counter.valid {
    color: #28a745;
}

/* Sélecteur d'étoiles */
.rating-selector {
    display: flex;
    gap: 10px;
    font-size: 2.5rem;
}

.rating-star {
    cursor: pointer;
    color: rgba(255, 215, 58, 0.3);
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 58, 0));
}

.rating-star:hover,
.rating-star.active {
    color: #FFD73A;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 58, 0.8));
}

/* Upload d'images */
.image-upload-wrapper {
    border: 3px dashed rgba(255, 215, 58, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background: rgba(255, 215, 58, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-upload-wrapper:hover {
    border-color: #FFD73A;
    background: rgba(255, 215, 58, 0.1);
}

.image-upload-wrapper input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: #FFD73A;
    margin-bottom: 15px;
}

.upload-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.upload-limit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 58, 0.3);
}

.preview-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.preview-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Checkbox conditions */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 215, 58, 0.05);
    border: 2px solid rgba(255, 215, 58, 0.2);
    border-radius: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
}

.form-checkbox label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    cursor: pointer;
    font-weight: normal;
}

/* Bouton de soumission */
.btn-submit-review {
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(255, 215, 58, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-review:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 58, 0.6);
}

.btn-submit-review:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================== */
/* MESSAGES ET NOTIFICATIONS */
/* ========================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.notification.warning {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Messages d'erreur de formulaire */
.form-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-error::before {
    content: '⚠';
    font-size: 1.1rem;
}

/* ========================================== */
/* BOUTON "LAISSER UN AVIS" */
/* ========================================== */

.btn-leave-review {
    background: linear-gradient(135deg, #FFD73A, #FF8C00);
    color: #000;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(255, 215, 58, 0.4);
    margin-bottom: 40px;
}

.btn-leave-review:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 58, 0.6);
}

.btn-leave-review::before {
    content: '⭐';
    font-size: 1.4rem;
}

/* ========================================== */
/* ÉTATS VIDES */
/* ========================================== */

.no-reviews {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 2px solid rgba(255, 215, 58, 0.3);
    border-radius: 20px;
}

.no-reviews-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-reviews h3 {
    color: #FFD73A;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-reviews p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 768px) {
    .reviews-stats-section {
        padding: 30px 20px;
    }
    
    .average-rating {
        font-size: 3.5rem;
    }
    
    .average-rating small {
        font-size: 1.8rem;
    }
    
    .rating-distribution {
        padding: 25px 20px;
    }
    
    .reviews-filters {
        padding: 20px;
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .review-card {
        padding: 25px 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-rating {
        margin-left: 0;
    }
    
    .review-actions {
        flex-direction: column;
    }
    
    .btn-review-action {
        width: 100%;
        justify-content: center;
    }
    
    .submit-review-container {
        padding: 30px 20px;
    }
    
    .submit-review-header h2 {
        font-size: 2rem;
    }
    
    .btn-submit-review {
        font-size: 1.1rem;
    }
    
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .average-rating {
        font-size: 2.5rem;
    }
    
    .rating-bar-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .review-images {
        gap: 10px;
    }
    
    .review-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
}

/* ========================================== */
/* LOADING STATES */
/* ========================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 215, 58, 0.2);
    border-top-color: #FFD73A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================== */
/* ANIMATIONS */
/* ========================================== */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}









