/* Styles spécifiques pour la page d'avis */
body {
    background-color: #F8FAFC;
    /* Fixed background removed for fluid header gradient */
}

.reviews-header {
    text-align: center;
    position: relative;
    /* Increased spacing to clear header (approx 180px top) */
    padding: 180px 0 120px; 
    
    /* Intensified Fluid Gradient (Double Fade) */
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0) 0%,      /* Transparent Top */
        rgba(37, 99, 235, 0.35) 25%,    /* Peak Royal Blue (Stronger) */
        rgba(59, 130, 246, 0.20) 60%,   /* Soft Lighter Blue */
        rgba(255, 255, 255, 0) 100%     /* Fade to Bottom */
    );
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
}

.review-form-container {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.review-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

.rating-input {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: center;
    flex-direction: row-reverse;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2.5rem;
    color: #64748B; /* Slate 500 - Improved contrast */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #FBBF24;
    transform: scale(1.1);
}

.reviews-list-container {
    max-width: 1000px;
    margin: 0 auto 100px;
}

#reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.review-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
    margin-bottom: 15px;
}

.review-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
}

.review-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.review-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    background: rgba(251, 191, 36, 0.1);
    /* Plus subtil */
    padding: 6px 12px;
    border-radius: 50px;
    /* Pill shape */
    display: inline-flex;
    gap: 4px;
    /* Espace entre les étoiles */
    white-space: nowrap;
    align-items: center;
}

.review-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #64748B; /* Slate 500 - Improved contrast */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 500;
    pointer-events: none;
    /* Let clicks pass to input */
}

.file-upload-label i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Modal Styles */
/* Modal Styles Restyling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Slate 900 with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Higher active index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 0; /* Reset internal padding, handled by body-content */
    border-radius: 32px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-content.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-body-content {
    padding: 48px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close Button Position Adjustment */
.modal-content .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-content .modal-close-btn:hover {
    background: #FF4D4D;
    border-color: #FF4D4D;
    color: white;
    transform: rotate(90deg);
}

/* Icon Animation */
.modal-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-main {
    font-size: 5rem;
    color: #10B981; /* Emerald 500 */
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 50%;
}

.modal-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Typography */
.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-message {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    width: 100%;
}
