/* Section principale */
.tpop-content {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-white {
    background-color: #ffffff;
}

/* Titre principal de la section tpop */
.tpop-content .main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.2;
    color: #000;
}

.text-center {
    text-align: center;
}

/* gradient-text défini dans style.css */

/* Conteneur principal desktop */
.wrapper-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Menu de navigation prend toute la première colonne */
.menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-row: 1 / 3;
}

/* Vidéo sur la deuxième colonne, première ligne */
.container-video {
    grid-column: 2;
    grid-row: 1;
}

/* Texte sur la deuxième colonne, deuxième ligne */
.text-container {
    grid-column: 2;
    grid-row: 2;
}

/* Responsive tablette */
@media (max-width: 1200px) and (min-width: 1025px) {
    .wrapper-content {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
    
    .menu-content {
        gap: 25px;
    }
    
    .item-content {
        font-size: 16px;
    }
    
    .text-container .title {
        font-size: 22px;
    }
    
    .text-container .description {
        font-size: 15px;
    }
}

/* Menu de navigation */
.menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wrapper-item {
    position: relative;
    cursor: pointer;
}

.item-content {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.wrapper-item.active .item-content {
    color: #000;
    font-weight: 600;
}

/* Barre de progression */
.progress-bar-container {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    transition: left 0.3s ease;
    width: 0%;
}

.wrapper-item.active .progress-bar {
    width: 100%;
    left: 0 !important;
    animation: progressSlide 5s linear;
}

@keyframes progressSlide {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Conteneur vidéo */
.container-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Vidéos dans la section hero (ne doivent pas être affectées par le JS) */
.container-hero .container-video .video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important; /* Toujours visible */
}

/* Vidéos dans la section interactive (gérées par le JS) */
.tpop-content .container-video .video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tpop-content .container-video .video.fade-in {
    opacity: 1;
}

/* Affichage desktop/mobile des vidéos */
.video-mobile {
    display: none;
}

.video-desktop {
    display: block;
}

@media (max-width: 768px) {
    .video-mobile {
        display: block;
    }
    
    .video-desktop {
        display: none;
    }
}

/* Conteneur texte */
.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.1s;
}

.title.fade-in,
.description.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Bouton gradient */
.gradient-button-white {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gradient-button-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

.mt-3 {
    margin-top: 20px;
}

/* Version mobile - Splide Carousel */
.splide-content {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .wrapper-content {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .splide-content {
        display: block !important;
    }
    
    .tpop-content .main-title {
        font-size: 32px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .tpop-content {
        padding: 50px 0 !important;
    }
    
    .tpop-content .main-title {
        font-size: 26px !important;
        margin-bottom: 20px !important;
        line-height: 1.3;
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    .tpop-content {
        padding: 40px 0 !important;
    }
    
    .tpop-content .main-title {
        font-size: 22px !important;
        line-height: 1.3;
        margin-bottom: 15px !important;
        padding: 0 15px !important;
    }
}

/* Splide Carousel Styles */
.splide-content {
    padding: 20px 0 80px 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.splide__track {
    overflow: visible !important;
}

.splide__list {
    overflow: visible !important;
}

.card-slide {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 20px !important;
    background: transparent !important;
    height: auto !important;
}

.card-slide .video {
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    aspect-ratio: 16/9 !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    opacity: 1 !important;
}

.card-slide .content {
    text-align: center !important;
    padding: 0 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.card-slide h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    color: #000 !important;
    text-align: center !important;
}

.card-slide p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    max-width: 600px !important;
}

.card-slide .gradient-button-white {
    display: inline-block !important;
    text-align: center !important;
}

/* Splide pagination - Points en bas */
.splide__pagination {
    bottom: -50px !important;
    position: relative !important;
    padding: 25px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.splide__pagination__page {
    background: #d0d0d0 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 1 !important;
}

.splide__pagination__page.is-active {
    background: #000 !important;
    width: 8px !important;
    height: 8px !important;
    transform: scale(1) !important;
}

/* Splide arrows */
.splide__arrow {
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.splide__arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.splide__arrow:disabled {
    opacity: 0.3;
}

.splide__arrow svg {
    fill: #000;
    width: 20px;
    height: 20px;
}

.splide__arrow--prev {
    left: 15px;
}

.splide__arrow--next {
    right: 15px;
}

/* Mobile - Afficher les flèches et ajuster */
@media (max-width: 768px) {
    .splide-content {
        padding: 10px 0 70px 0 !important;
    }
    
    .card-slide {
        padding: 0 15px !important;
        gap: 15px !important;
    }
    
    .card-slide .video {
        max-height: 300px !important;
        border-radius: 15px !important;
    }
    
    .card-slide .content {
        padding: 0 !important;
    }
    
    .card-slide h3 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .card-slide p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }
    
    .splide__pagination {
        bottom: -45px !important;
        padding: 15px 0 !important;
    }
    
    .splide__arrow {
        width: 40px !important;
        height: 40px !important;
    }
    
    .splide__arrow--prev {
        left: 10px !important;
    }
    
    .splide__arrow--next {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .card-slide .video {
        max-height: 250px !important;
    }
    
    .card-slide h3 {
        font-size: 18px !important;
    }
    
    .card-slide p {
        font-size: 13px !important;
    }
    
    .gradient-button-white {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* Utilitaires */
.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.mb-6 {
    margin-bottom: 6px;
}