/**
 * Styles pour la section Avis / Témoignages
 * Design avec défilement automatique en 2 rangées (marquee)
 */

/* ============================================
   SECTION AVIS
   ============================================ */

.avis-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: transparent;
}

.avis-section .container {
    position: relative;
    z-index: 2;
}

/* Label */
.avis-label {
    display: inline-block;
    background: rgba(255, 179, 71, 0.15);
    color: #FFB347;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(255, 179, 71, 0.3);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.15);
}

/* Titre */
.avis-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Sous-titre */
.avis-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3.5rem;
}

.avis-subtitle span {
    color: #4A9EFF;
    font-weight: 600;
}

/* ============================================
   CONTENEUR MARQUEE
   ============================================ */

.avis-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Dégradés sur les côtés pour effet fade */
.avis-marquee-container::before,
.avis-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.avis-marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 25, 47, 1) 0%, transparent 100%);
}

.avis-marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 25, 47, 1) 0%, transparent 100%);
}

/* Rangée de marquee */
.avis-marquee-row {
    display: flex;
    width: fit-content;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

/* Animation vers la gauche */
.avis-marquee-row.scroll-left {
    animation: scrollLeft 45s linear infinite;
}

/* Animation vers la droite */
.avis-marquee-row.scroll-right {
    animation: scrollRight 45s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Pause au hover */
.avis-marquee-container:hover .avis-marquee-row {
    animation-play-state: paused;
}

/* ============================================
   CARTE TÉMOIGNAGE - STYLE COMPACT
   ============================================ */

.avis-card {
    flex-shrink: 0;
    width: 380px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.avis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.avis-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 179, 71, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 179, 71, 0.1);
}

/* Contenu de la carte */
.avis-content {
    position: relative;
    z-index: 1;
}

/* Citation */
.avis-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

.avis-quote strong {
    color: #ffffff;
    font-weight: 600;
}

/* Footer de la carte avec auteur et étoiles */
.avis-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Auteur */
.avis-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.avis-author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4A9EFF, #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
    transition: all 0.3s ease;
}

.avis-card:hover .avis-author-avatar {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(74, 158, 255, 0.4);
}

.avis-author-info {
    display: flex;
    flex-direction: column;
}

.avis-author-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.avis-author-company {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Étoiles */
.avis-stars {
    display: flex;
    gap: 0.2rem;
}

.avis-stars i {
    color: #FFB347;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 3px rgba(255, 179, 71, 0.4));
}

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

@media (max-width: 1199.98px) {
    .avis-card {
        width: 340px;
    }
    
    .avis-marquee-container::before,
    .avis-marquee-container::after {
        width: 100px;
    }
}

@media (max-width: 991.98px) {
    .avis-section {
        padding: 80px 0;
    }

    .avis-card {
        width: 320px;
        padding: 1.5rem;
    }
    
    .avis-quote {
        font-size: 0.9rem;
        min-height: 100px;
        -webkit-line-clamp: 4;
    }
    
    .avis-marquee-row {
        gap: 1.25rem;
    }
    
    .avis-marquee-row.scroll-left {
        animation-duration: 35s;
    }
    
    .avis-marquee-row.scroll-right {
        animation-duration: 35s;
    }
}

@media (max-width: 767.98px) {
    .avis-section {
        padding: 60px 0;
    }

    .avis-title {
        font-size: 1.8rem;
    }
    
    .avis-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .avis-card {
        width: 300px;
        padding: 1.25rem;
    }
    
    .avis-quote {
        font-size: 0.85rem;
        min-height: 90px;
    }
    
    .avis-author-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .avis-author-name {
        font-size: 0.9rem;
    }
    
    .avis-author-company {
        font-size: 0.75rem;
    }
    
    .avis-stars i {
        font-size: 0.8rem;
    }
    
    .avis-marquee-container::before,
    .avis-marquee-container::after {
        width: 50px;
    }
    
    .avis-marquee-row.scroll-left {
        animation-duration: 30s;
    }
    
    .avis-marquee-row.scroll-right {
        animation-duration: 30s;
    }
}

@media (max-width: 575.98px) {
    .avis-label {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .avis-card {
        width: 280px;
    }
    
    .avis-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .avis-stars {
        margin-left: 52px;
    }
    
    .avis-marquee-container::before,
    .avis-marquee-container::after {
        width: 30px;
    }
}
