/* Bubble Slider Container */
.bubble-slider-container {
    position: relative;
    overflow: visible; /* Permet aux boutons de navigation de scale sans être coupés */
}

.bubble-slider-header {
    text-align: center;
    margin-bottom: 60px;
}

.bubble-slider-main-title {
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    padding-bottom: 0;
}

.bubble-slider-main-title .highlight {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    margin: 0 5px;
}

/* Slider Wrapper */
.bubble-slider-wrapper {
    overflow-y: visible; /* Permet aux boutons de navigation d'être visibles verticalement */
    padding-bottom: 80px;
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.bubble-slider-track {
    display: flex;
    align-items: stretch;
    padding-left: 48px;
    padding-right: 48px;
    transition: transform 0.5s ease-in-out;
}

/* Bubble Item */
.bubble-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.bubble-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
}

.bubble-link:hover {
    transform: scale(1.05);
}

.bubble-circle {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.bubble-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bubble-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bubble Title */
.bubble-title {
    position: absolute;
    width: 100%;
    bottom: 0;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
    padding-bottom: 0;
    transform: translateY(50%);
    pointer-events: none; /* Permet aux clics de passer à travers */
}

/* Navigation */
.bubble-slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 70px;
    position: relative;
    z-index: 10;
}

.nav-arrow {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #FFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0; /* Empêche la déformation */
}

.nav-arrow:hover {
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    transform: none;
}

.nav-arrow svg {
    width: 70px;
    height: 70px;
}

/* Responsive */

/* Desktop (3,5 slides visibles) */
@media (min-width: 1025px) {
    .bubble-slider-track {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Tablette (3+ slides visibles) */
@media (max-width: 1024px) and (min-width: 769px) {
    .bubble-slider-main-title {
        font-size: 36px !important;
    }

    .bubble-slider-track {
        padding-left: 40px;
        padding-right: 40px;
        gap: 25px !important;
    }

    .bubble-item {
        width: 240px !important;
        min-width: 240px !important;
    }

    .bubble-circle {
        width: 240px !important;
        height: 240px !important;
    }

    .bubble-title {
        font-size: 22px !important;
        max-width: 240px;
    }

    .bubble-slider-navigation {
        margin-top: 24px;
    }
}

/* Mobile (2,4 slides visibles) */
@media (max-width: 768px) {
    .bubble-slider-wrapper {
        padding-bottom: 60px;
    }

    .bubble-slider-container {
        padding: 40px 15px;
    }

    .bubble-slider-main-title {
        font-size: 30px !important;
        letter-spacing: 1px;
    }

    .bubble-slider-header {
        margin-bottom: 40px;
    }

    .bubble-slider-track {
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px !important;
    }

    .bubble-item {
        width: 180px !important;
        min-width: 180px !important;
    }

    .bubble-circle {
        width: 180px !important;
        height: 180px !important;
    }

    .bubble-title {
        font-size: 18px !important;
        max-width: 180px;
    }

    .bubble-slider-navigation {
        margin-top: 0px;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
    }

    .nav-arrow svg {
        width: 30px;
        height: 30px;
    }
}

/* Petits mobiles (2,4 slides visibles optimisé) */
@media (max-width: 480px) {
    .bubble-slider-container {
        padding: 0px 15px;
    }

    .bubble-slider-header {
        margin-bottom: 24px;
    }

    .bubble-slider-main-title .highlight {
        padding: 4px 12px;
    }

    .bubble-slider-track {
        padding-left: 15px;
        padding-right: 15px;
        gap: 24px !important;
    }

    .bubble-item {
        width: 180px !important;
        min-width: 180px !important;
    }

    .bubble-circle {
        width: 180px !important;
        height: 180px !important;
    }

    .bubble-title {
        font-size: 20px !important;
        max-width: 180px;
    }

    .nav-arrow {
        width: 45px;
        height: 45px;
    }

    .nav-arrow svg {
        width: 25px;
        height: 25px;
    }
}
