html {
    scroll-padding-top: 200px;
}
#simulateur {
    padding-top: 50px;
    text-align: center;
}

.simulateur_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.simulateur_wrapper {
    padding-top: 100px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.mention {
    margin-top: 75px;
}
.classement {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
}
#default-message {
    display: block;
    color: #007AFF;
    font-size: 20px;
    text-align: center;
}
.entrees_wrapper {
    display: flex;
    flex-direction: column;
    width: 40%;
}

.form_container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.input_wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.notes {
    width: 100%;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px -10px 25px 0px rgba(0, 76, 158, 0.06);
    color: #B1BECD;
    padding: 25px;
}

.input_content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

label {
    font-size: 16px;
    color: #000;
    font-weight: 600;
}

select {
    width: 100%;
    border-radius: 10px;
    background: #FFF;
    border: none;
    box-shadow: 0px 0px 25px 0px rgba(0, 76, 158, 0.08);
    color: #B1BECD;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 12px 24px 12px 12px;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"%3E%3Cpath fill="none" stroke="%23666" stroke-width="2" d="M1 1l5 5 5-5"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

select:focus {
    outline: none;
}
/* Style général pour le menu déroulant personnalisé */
.dropdown {
    position: relative;
    width: 200px;
    margin: 10px 0;
}

.dropdown-selected {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 5px;
    color: #333;
}

.dropdown-options {
    display: none; /* Masque les options par défaut */
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 100%;
    max-height: 200px; /* Limite la hauteur */
    overflow-y: auto; /* Permet le défilement si le menu est trop grand */
}

.dropdown-option {
    padding: 10px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #48DE5A; /* Couleur de fond au survol */
    color: #fff;
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 3px;
    background: #F0F0F0;
    border-radius: 5px;
    outline: none;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -15px;
    width: 100%;
}

.slider-ticks span {
    font-size: 12px;
    color: #666;
    width: 15px;
}

.btn_chart {
    color: #fff;
    background-color: #007AFF;
    gap: 10px;
}

.chart_wrapper {
    width: 60%;
    background: #FFF;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0px -10px 25px 0px rgba(0, 76, 158, 0.06);
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart_title {
    font-size: 20px;
    color: #000;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

#charts {
    width: auto;
    height: auto;
}

canvas {
    background-color: #fff;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 737 / 368;
}

#chart-legend-container {
    display: flex;
    gap: 25px;
    justify-content: center;
}
#chart-legend-container div {
    display: flex;
    gap: 5px;
}
/* Rejoignez une communauté d’étudiants investis */
.simulateur_text_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.simulateur_content_1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 10px 45px 45px;
    gap: 50px;
}

.simulateur_content_1_title {
    font-size: 20px;
}

.simulateur_text_1 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 65%;
}

.simulateur_iphone {
    height: 400px;
    display: flex;
    justify-content: center;
    width: 225px;
    position: relative;
    overflow: hidden;
}

.simulateur_iphone img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    top: 100%;
}
.simulateur_iphone img.anim-iphone-simulateur {
    animation: 1s cubic-bezier(0.14, .38, .19, .99) anim-iphone-simulateur both;
}
.simulateur_content_1 {
    width: 60%;
}
.simulateur_content_2 {
    width: 40%;
}
.simulateur_content_2 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.simulateur_content_1, .simulateur_content_2, .simulateur_content_2_text1, .simulateur_content_2_text2  {
    opacity: 0;
    transform: translateY(40px);
}
.simulateur_content_2 {
    animation-delay: 0.5s;
}
.simulateur_content_2_text1 {
    animation-delay: 0.5s;
}
.simulateur_content_2_text2 {
    animation-delay: 1s;
}
.simulateur_content_2_title {
    font-size: 25px;
}

.simulateur_content_2 div {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.simulateur_content_2 div p {
    color: #7A8795;
}

.btn_share_chart {
    display: none;
    color: #fff;
    background-color: #007AFF;
    gap: 10px;
}
.btn_share_chart:hover {
    background-color: #268EFF;
    transform: translateY(-3px);
}
@keyframes anim-iphone-simulateur {
    100% {
        opacity: 1;
        top: 50%;
    }
}

@media screen and (max-width: 1440px)  {
    #chart-legend-container label {
        font-size: 14px;
    }
    .simulateur_text_wrapper {
        gap: 50px;
    }

    .simulateur_content_1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
    }
}
@media screen and (max-width: 1280px) {
    .chart_wrapper {
        padding: 10px;
    }
    .simulateur_text_wrapper {
        flex-direction: column;
    }
    .simulateur_content_1 {
        padding: 25px 10px 25px 25px;
    }
    .simulateur_content_1, .simulateur_content_2 {
        width: 100%;
    }
}
@media screen and (max-width: 1024px) {
    .header_nav_simulateur {
        height: calc(100dvh - 81px);
    }
    .simulateur_wrapper {
        flex-direction: column;
        gap: 50px;
    }
    .entrees_wrapper, .chart_wrapper {
        width: 100%;
    }
    .chart_wrapper {
        padding: 10px;
        min-height: 200px;
    }
    html {
        scroll-padding-top: 125px;
    }
}

@media screen and (max-width: 768px) {
    .simulateur_text_1 {
        width: 65%;
    }
    .simulateur_iphone {
        height: 350px;
    }
}

@media screen and (max-width: 560px) {
    .simulateur_content_1 {
        padding: 15px 15px 0 15px;
        flex-direction: column;
    }
    .simulateur_content_2_title {
        font-size: 22px;
    }
    .simulateur_text_1 {
        width: 100%;
    }

    .simulateur_iphone {
        width: 110%;
    }

    .simulateur_iphone img {
        height: auto;
        width: 90%;
        object-fit: contain;
        position: absolute;
        top: 0%;
        left: 55%;
        transform: translate(-50%, 0%);
    }
    @keyframes anim-iphone-simulateur {
        100% {
            opacity: 1;
            top: 0%;
        }
    }
    .input_wrapper {
        flex-direction: column;
    }
    .btn_chart {
        width: 100%;
    }
    .header_nav_simulateur {
        height: calc(100dvh - 81px);
    }
    #chart-legend-container label {
        font-size: 10px;
    }
    #charts {
        width: 100%;
        max-width: 100%;
        height: 100%; 
        position: relative;
    }     
    canvas {
        width: 100% !important;
        height: auto !important; 
        aspect-ratio: 4/5;
    }
    .mention {
        text-align: left;
    }
    .btn_share_chart {
        display: block;
    }
}