/* ============================================================
   avis.css — AvoloPay Customer Reviews Page Design System
   ============================================================ */

:root {
    --primary-color: var(--primary, #0ea5e9);
    --secondary-color: var(--accent, #38bdf8);
    --text-light: var(--text-primary, #ffffff);
    --text-muted: var(--text-secondary, rgba(255, 255, 255, 0.72));
    --card-bg: var(--bg-surface, rgba(15, 23, 42, 0.65));
    --card-border: var(--border-color, rgba(255, 255, 255, 0.08));
}

/* Main content styling */
#main_content {
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 85% 60%, rgba(56, 189, 248, 0.08) 0%, transparent 55%),
        var(--bg-base, #070b14);
    color: var(--text-primary, #f8fafc);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

#main_content section {
    width: 100%;
}

/* Reviews container */
#STAT {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

#STAT h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary, linear-gradient(135deg, #38bdf8, #0ea5e9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.avis-subtitle {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Reviews Grid */
.S_blocs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    width: 100%;
    text-align: left;
}

/* Review Card */
.review-item.S_bloc {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl, 20px);
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md, 0 10px 25px rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.review-item.S_bloc:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow, rgba(56, 189, 248, 0.35));
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(14, 165, 233, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-user {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary, #ffffff);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
}

.review-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-rating {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 2px 6px rgba(234, 179, 8, 0.4));
}

.review-comment {
    color: var(--text-secondary, rgba(255, 255, 255, 0.82));
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    word-break: break-word;
}

/* Call to action */
.review-cta-wrap {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.btn-add-review {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-primary, linear-gradient(135deg, #38bdf8, #0ea5e9));
    color: #0b1329;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full, 9999px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    transition: all 0.3s ease;
}

.btn-add-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.5);
    color: #040d1a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    #main_content {
        padding-top: 85px;
    }

    #STAT h3 {
        font-size: 2.2rem;
    }

    .S_blocs {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #STAT {
        padding: 1rem;
    }
}