/* ============================================
   OCI Express - Page Avis / Temoignages
   Design editorial premium avec animations
   de scroll, carrousel et section video
   ============================================ */

/* ── Animations de revelation au scroll ── */
@keyframes avisRevealUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes avisRevealScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes avisPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes avisGoldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes avisFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.avis-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.avis-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ameliore ── */
.avis-hero {
    position: relative;
    overflow: hidden;
}

.avis-hero .hero-content {
    position: relative;
}

.avis-hero__quote {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: clamp(12rem, 20vw, 22rem);
    color: rgba(212, 175, 55, 0.04);
    line-height: 0.8;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.avis-hero__quote--left {
    top: 10%;
    left: 5%;
}

.avis-hero__quote--right {
    bottom: 5%;
    right: 5%;
    transform: rotate(180deg);
}

.avis-hero h1 {
    position: relative;
    z-index: 1;
}

.avis-hero .hero-subtitle {
    position: relative;
    z-index: 1;
}

/* ── Bandeau de statistiques ── */
.avis-stats {
    position: relative;
    padding: 0;
    margin-top: -2rem;
    z-index: 2;
}

.avis-stats__strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.95), rgba(18, 20, 26, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem 3rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(212, 175, 55, 0.05) inset;
    max-width: 800px;
    margin: 0 auto;
}

.avis-stats__item {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1.5rem;
}

.avis-stats__value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.avis-stats__label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

.avis-stats__divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.4), transparent);
    flex-shrink: 0;
}

/* ── En-tetes de section ── */
.avis-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.avis-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto 0;
}

.avis-section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--foreground);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.avis-section-header p {
    color: var(--muted-foreground);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Cartes de temoignages premium ── */
.review-card {
    position: relative;
    background: linear-gradient(165deg, rgba(26, 29, 42, 0.9), rgba(18, 20, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.review-card::after {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

.review-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(212, 175, 55, 0.06);
    transform: translateY(-6px);
}

.review-card .stars {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
    filter: saturate(0.85);
}

.review-card .review-title {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.review-card .review-content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.review-card .review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.review-card .source-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.review-card a.source-tag:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.5);
}

/* ── Carrousel ameliore ── */
.testimonials-carousel-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 20px 0;
}

.testimonials-carousel-wrapper::before,
.testimonials-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--background), transparent);
}

.testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--background), transparent);
}

.carousel-btn {
    background: rgba(18, 20, 26, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    width: 48px;
    height: 48px;
    z-index: 10;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

/* ── Section video premium ── */
.avis-video-section {
    margin-top: 5rem;
    margin-bottom: 5rem;
    position: relative;
}

.avis-video-frame {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

/* Ornements dores aux coins */
.avis-video-frame::before,
.avis-video-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 6;
    pointer-events: none;
}

.avis-video-frame::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    border-radius: 20px 0 0 0;
}

.avis-video-frame::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    border-radius: 0 0 20px 0;
}

.avis-video-frame .video-container {
    border-radius: var(--radius-lg);
}

.avis-video-frame .play-button {
    animation: avisPulseRing 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ── Formulaire d'avis premium ── */
.avis-form-section {
    position: relative;
    background: linear-gradient(165deg, rgba(26, 29, 42, 0.8), rgba(18, 20, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 5rem;
    overflow: hidden;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.avis-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--gold) 50%, transparent 90%);
}

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

.avis-form-section .review-form label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.avis-form-section .review-form input[type="text"],
.avis-form-section .review-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 14px 18px;
    color: var(--foreground);
    font-size: 0.95rem;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.avis-form-section .review-form input[type="text"]:focus,
.avis-form-section .review-form textarea:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.avis-form-section .review-form textarea {
    min-height: 140px;
    resize: vertical;
}

.avis-form-section .star-rating label {
    font-size: 2.25rem;
    transition: all 0.2s ease, transform 0.15s ease;
}

.avis-form-section .star-rating label:hover {
    transform: scale(1.2);
}

.avis-form-section .submit-review-btn {
    border-radius: var(--radius);
    padding: 18px;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.avis-form-section .submit-review-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.avis-form-section .submit-review-btn:hover::after {
    left: 100%;
}

/* ── Avis des clients premium ── */
.avis-reviews-section {
    position: relative;
    background: linear-gradient(165deg, rgba(26, 29, 42, 0.6), rgba(18, 20, 30, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.avis-reviews-section .client-reviews-grid {
    margin-top: 0;
}

.avis-reviews-section .client-review-card {
    background: linear-gradient(165deg, rgba(30, 33, 48, 0.8), rgba(20, 22, 32, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.avis-reviews-section .client-review-card::before {
    content: '\201C';
    position: absolute;
    bottom: -10px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(212, 175, 55, 0.04);
    line-height: 1;
    pointer-events: none;
}

.avis-reviews-section .client-review-card:hover {
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(212, 175, 55, 0.04);
    transform: translateY(-4px);
}

.avis-reviews-section .client-review-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.avis-reviews-section .client-review-content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.avis-reviews-section .client-review-stars {
    font-size: 0.9rem;
    letter-spacing: 3px;
}

.avis-reviews-section .new-review-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Boite d'appel a l'action premium ── */
.avis-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 29, 42, 0.95), rgba(22, 24, 36, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    margin-top: 5rem;
    overflow: hidden;
}

.avis-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.04), transparent 60%);
    pointer-events: none;
}

.avis-cta h2 {
    font-family: 'Playfair Display', serif;
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    position: relative;
}

.avis-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
}

.avis-cta .btn {
    position: relative;
}

/* ── Message si aucun avis ── */
.avis-reviews-section .no-reviews-message {
    padding: 4rem 2rem;
}

.avis-reviews-section .no-reviews-message svg {
    color: rgba(212, 175, 55, 0.3);
}

.avis-reviews-section .no-reviews-message p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .avis-stats__strip {
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 2rem;
        max-width: 320px;
    }

    .avis-stats__item {
        padding: 0.75rem 0;
    }

    .avis-stats__divider {
        width: 48px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    }

    .avis-stats__value {
        font-size: 2rem;
    }

    .avis-hero__quote {
        font-size: 10rem;
        opacity: 0.5;
    }

    .avis-video-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .avis-form-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .avis-reviews-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .avis-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }

    .avis-video-frame::before,
    .avis-video-frame::after {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .avis-stats__strip {
        max-width: 280px;
    }

    .review-card {
        min-width: 280px;
        max-width: 280px;
        padding: 24px;
    }

    .review-card::after {
        font-size: 3.5rem;
    }
}

/* --- Tres petits ecrans (360px) --- */
@media (max-width: 360px) {
    .avis-hero h1 {
        font-size: 1.3rem;
    }

    .avis-section-header h2 {
        font-size: 1.2rem;
    }

    .avis-section-header p {
        font-size: 0.88rem;
    }

    .avis-stats__strip {
        max-width: 260px;
        padding: 1.25rem 1.5rem;
    }

    .avis-stats__value {
        font-size: 1.75rem;
    }

    .avis-stats__label {
        font-size: 0.72rem;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .avis-form-section {
        padding: 1.5rem 1rem;
    }

    .avis-reviews-section {
        padding: 1.5rem 1rem;
    }

    .avis-cta {
        padding: 2rem 1rem;
    }

    .avis-cta h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   ACCESSIBILITE - REDUCTION DES ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .avis-reveal {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .avis-video-frame .play-button {
        animation: none !important;
    }

    .review-card {
        transition-duration: 0.01ms !important;
    }

    .review-card:hover {
        transform: none;
    }

    .review-card::before {
        transition-duration: 0.01ms !important;
    }

    .carousel-btn {
        transition-duration: 0.01ms !important;
    }

    .avis-form-section .star-rating label {
        transition-duration: 0.01ms !important;
    }

    .avis-form-section .star-rating label:hover {
        transform: none;
    }

    .avis-form-section .submit-review-btn::after {
        transition-duration: 0.01ms !important;
    }

    .avis-reviews-section .client-review-card {
        transition-duration: 0.01ms !important;
    }

    .avis-reviews-section .client-review-card:hover {
        transform: none;
    }

    .avis-stats__value {
        background-size: 100% auto;
    }

    .avis-scroll-cue {
        transition-duration: 0.01ms !important;
    }

    .avis-scroll-cue:hover {
        transform: none;
    }
}

/* ── Date de l'avis ── */
.review-date {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
