/* Layout des avantages */
.avantages {
    display: flex;
    gap: 40px;
}

.avantages-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.avantage-item {
    padding: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.avantage-item.active {
    background-color: #E6EDFF38;
}

.avantage-text {

    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.avantage-icon{
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.avantage-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avantage-item.active .avantage-progress-bar {
    opacity: 1;
}

.avantage-progress-fill {
    height: 100%;
    background-color: #2260FF;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.avantages-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    position: relative;
}
.avantage-button{
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap : 10px;
}
.avantage-button img{
    width:15px;
}

.avantage-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avantage-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.avantage-content.active {
    opacity: 1;
}

.avantage-description {
    order: 1;
    padding: 0 40px;
    text-align: center;
    font-size: 20px;
    line-height: 1.4;
    color: #2260FF;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.avantage-image {
    order: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.price_container{
    padding-top: 30px;
    display: grid;
    grid-template-columns: 2fr repeat(5, 3fr);
    min-width: 0; /* Permet au conteneur de se rétrécir */
    overflow-x: auto; /* Scroll horizontal */
}

/* Largeur minimum pour les colonnes */
.price_container .package{
    min-width: 200px;
    display : grid;
    grid-template-rows: 1fr 2fr auto;
}
.price_container .package.titles{
    min-width: 150px;
}
.price_container .package .package_body{
    display : grid;
    grid-template-rows: repeat(5, 50px);
    gap: 10px;
    place-items: center;
}
.price_container .package:not(.titles){
    padding: 30px 20px 40px 20px;
    box-shadow: 0px 4px 20px 0px #D8E3FE4D;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0; /* Empêche la réduction de taille */

    & .package_header{
        text-align: center;
        padding-bottom: 25px;
        border-bottom: 2px solid #D8E3FE;
        & .package_name{
            font-size: 17px;
            color:#0D0D1B;
            font-weight:400;
        }
        & .package_price{
            font-size: 22px;
            color:#0D0D1B;
            font-weight:700;
        }
        & .package_description{
            margin-top: 20px;
            font-size: 17px;
            color:#0D0D1B8A;
            font-weight:400;
        }
    }
    & .package_body{
        padding-bottom: 50px;
        padding-top: 10px;
        border-bottom: 2px solid #D8E3FE;
        & div{
            font-size: 22px;
            color:#0D0D1B;
            font-weight:500;
        }
    }
    & .package_footer{
        text-align: center;
        padding-top: 30px;
        & .btn{
            width: 100%;
            padding:12px 20px;
            border-radius: 50px;
            justify-content: center;
            font-size: 17px;
            font-weight:600;
            &:hover{
                text-decoration: none;
            }

        }
    }
}
.standard10{
    background-color: #F6F9FF;
}
.standard10::before, .premium100::before{
    content: '';
    background-image: url('../images/crown.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -30px;
    left: calc(50% - 27px);
    width: 54px;
    height: 54px;

}
.premium100{
    background-color: #CAD9FE;
    .package_header{
        border-color:#fff;
    }
    .package_body{
        border-color:#fff;
    }
}
.premium50 .package_name, .premium100 .package_name{
    color:#2260FF!important;
    font-weight:600!important;
}
.premium100::before{
    background-image: url('../images/crown_b.png');
}

.titles .package_body div{
    background-color: #F8FAFF;
    border-radius : 5px 0 0 5px;
    font-size: 17px;
    font-weight:500;
    display: flex;
    width:100%;
    height:100%;
    align-items: center;
    justify-content: center;
    color:#0D0D1B;
}

/* Amélioration du scroll horizontal */
.price_container {
    scrollbar-width: thin;
    scrollbar-color: #D8E3FE #F8FAFF;
}

.price_container::-webkit-scrollbar {
    height: 8px;
}

.price_container::-webkit-scrollbar-track {
    background: #F8FAFF;
    border-radius: 4px;
}

.price_container::-webkit-scrollbar-thumb {
    background: #D8E3FE;
    border-radius: 4px;
}

.price_container::-webkit-scrollbar-thumb:hover {
    background: #2260FF;
}


/* Responsive */
@media (max-width: 950px) {
    .avantages {
        flex-direction: column;
        gap: 30px;
    }
    
    .avantage-button {
        display: none;
    }
    
    .avantages-right {
        order: -1;
    }
    
    .avantage-image-container {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .avantage-description {
        order: 1;
        padding: 0 20px;
        text-align: center;
        font-size: 16px;
        margin-bottom: 15px;
        flex-shrink: 0;
    }
    
    .avantage-image {
        order: 2;
        flex-shrink: 0;
    }
    
    .avantages-left {
        position: relative;
        overflow: hidden;
        touch-action: pan-y; /* Permet le scroll vertical mais optimise le swipe horizontal */
    }
    
    .avantage-item {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.5s ease;
        margin-bottom: 0;
    }
    
    .avantage-item.active {
        position: relative;
        left: 0;
        opacity: 1;
        transform: translateX(0);
    }
    
    .avantage-item.slide-out-left {
        left: -100%;
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .avantage-item.slide-out-right {
        left: 100%;
        transform: translateX(100%);
        opacity: 0;
    }
    
    .avantage-item.slide-in-left {
        left: 100%;
        transform: translateX(100%);
        opacity: 0;
    }
    
    .avantage-item.slide-in-right {
        left: -100%;
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .avantage-item.slide-in-left.active {
        left: 0;
        transform: translateX(0);
        opacity: 1;
    }
    
    .avantage-item.slide-in-right.active {
        left: 0;
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Indicateurs de navigation mobile */
    .avantages-mobile-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }
    
    .avantage-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ddd;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .avantage-dot.active {
        background-color: #2260FF;
    }
    
}
