/*
    ==============================
    🎥 SECTION TÉMOIGNAGES VIDÉO
    ==============================
*/

/* ========================================
   SECTION PRINCIPALE
======================================== */

.temoignages-section {
    padding: var(--space-l) 0 calc(var(--space-xl) * 2) 0;
    background: var(--color-white);
}

.temoignages-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.temoignages-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.temoignages-title {
    font-family: var(--font-primary), sans-serif;
    font-size: var(--font-heading-2);
    font-weight: 400;
    color: var(--color-grey-800);
    margin: 0;
    line-height: 1.2;
}

/* ========================================
   SECTION VIDÉOS
======================================== */

.video-testimonials {
    display: grid;
    gap: var(--space-l);
    margin-top: var(--space-xl);
}

.video-testimonials[style*="display: none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.video-testimonials h3 {
    text-align: center;
    font-family: var(--font-primary), sans-serif;
    font-size: var(--font-heading-3);
    font-weight: 600;
    color: var(--color-grey-800);
    margin: 0 0 var(--space-l) 0;
}

/* ========================================
   CARROUSEL VIDÉOS
======================================== */

.video-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--space-s);
}

.video-carousel-container {
    position: relative;
    padding: 0 calc(var(--space-xl) + var(--space-s));
    display: flex;
    justify-content: center;
}

.video-grid {
    display: flex;
    align-items: flex-start;
    gap: var(--space-m);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-s);
    position: relative;
    width: 100%;
}

.video-grid::-webkit-scrollbar {
    display: none;
}

/* ========================================
   THUMBNAILS VIDÉO
======================================== */

.video-thumbnail {
    position: relative;
    border-radius: var(--space-s);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: var(--animation-default-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    flex: 0 0 auto;
}

.video-thumbnail.duplicate {
    opacity: 1;
}

.video-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--font-heading-4);
    transition: var(--animation-default-transition);
}

.video-thumbnail:hover .video-play-overlay {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   BOUTONS DE NAVIGATION
======================================== */

.video-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--space-xl) * 1.2);
    height: calc(var(--space-xl) * 1.2);
    background: var(--color-white);
    border: 1px solid var(--color-grey-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--animation-default-transition);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-grey-600);
}

.video-nav-button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.05);
}

.video-nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.95);
}

.video-nav-button:disabled:hover {
    background: var(--color-white);
    border-color: var(--color-grey-300);
    color: var(--color-grey-600);
    transform: translateY(-50%) scale(0.95);
}

.video-nav-prev {
    left: 0;
}

.video-nav-next {
    right: 0;
}

.video-nav-button svg {
    width: var(--space-m);
    height: var(--space-m);
    fill: currentColor;
}

/* ========================================
   RESPONSIVE : MOBILE
======================================== */

@media only screen and (max-width: 767px) {
    .video-carousel-container {
        padding: 0 calc(var(--space-l) + var(--space-s));
        display: flex;
        justify-content: center;
    }
    
    .video-nav-button {
        width: var(--space-xl);
        height: var(--space-xl);
    }
    
    .video-nav-button svg {
        width: var(--space-m);
        height: var(--space-m);
    }
}

/* ========================================
   RESPONSIVE : TABLETTE
======================================== */

@media only screen and (min-width: 768px) {
    .video-carousel-container {
        padding: 0 calc(var(--space-xl) * 1.5);
        display: flex;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE : DESKTOP
======================================== */

@media only screen and (min-width: 1024px) {
    .temoignages-container {
        gap: calc(var(--space-xl) * 1.5);
    }
    
    .temoignages-title {
        font-size: var(--font-heading-2);
    }
    
    .video-carousel-container {
        padding: 0 calc(var(--space-xl) * 2);
        display: flex;
        justify-content: center;
    }
    
    .video-nav-button {
        width: calc(var(--space-xl) * 1.5);
        height: calc(var(--space-xl) * 1.5);
    }
    
    .video-nav-button svg {
        width: var(--space-l);
        height: var(--space-l);
    }
} 