.donnee{
    background: rgba(18,115,235,0.1);
    border: 1px solid #b9bbbe;
    border-radius: 10px;
    margin-bottom: 10px;
}
.hidden { display: none; }
.preview img, .preview iframe {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.form-control,.form-select{
    color: #6c757d;
    border: 1px solid #b9bbbe;
    border-radius: 10px;
    height: 40px;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
    background: transparent;
}
input:hover{
    border: 1px solid black;
}
select:hover{
    border: 1px solid black;
}
.form-control:focus{
    box-shadow: 0 0 10px#008081 !important;
    border-color:#008081 !important;
}
.form-select:focus{
    box-shadow: 0 0 10px#008081 !important;
    border-color:#008081 !important;
}
.radio-container {
    display: flex;
    gap: 10px;
}

.form-label{
    font-size: 0.8em !important;
}
.label_check {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100px;
    justify-content: center;
    text-align: center;
    transition: background 0.3s, border 0.3s;
}

input[type="radio"] {
    display: none; /* Masque les boutons radio natifs */
}

input[type="radio"]:checked + label {
    box-shadow: 0 0 10px#008081 !important;
    border-color:#008081 !important;
    font-weight: bold;
}
.info-finance{
    width: 94%;
    border-radius: 15px;
    border: 1px solid #b9bbbe;
    padding: 15px;
    box-shadow: 0 0 10px #b9bbbe;
    justify-content: center;
    margin: 0 auto;
    margin-top: 30px;
}
.assurance-card{
    border-radius: 15px;
    border: 1px solid #b9bbbe;
    cursor: pointer;
    transition: background 0.3s, border 0.3s;
}

.assurance-card:has(.assurance-input:checked) {
    box-shadow: 0 0 10px#008081 !important;
    border-color:#008081 !important;
}
@media (min-width: 992px) { /* Pour les écrans larges (desktop) */
    .sim-container {
        position: relative;
    }

    .simulator-card {
        border-radius: 15px;
        background: rgba(18,115,235,0.1);
        border: 1px solid#008081 !important;

    }
    .img-smile{
        display: block;
    }
}

@media (max-width: 991px) { /* Pour les écrans plus petits (tablettes et smartphones) */
    .simulator-card {
        position: static;
        width: 100%;
        background: rgba(18,115,235,0.1);
        border: 1px solid#008081 !important;
        border-radius: 15px;
    }
    .img-smile{
        display: block;
    }
}
.simulator-header{
    justify-content: center;
}
.simulator-result{
    padding: 10px;
    color: white;
    border-radius: 15px;
    background:#008081 !important;
    height: auto;
}
.accordion{
    background:#008081 !important;
}
.accordion-button{
    background:#008081 !important;
    color: white;
}
.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: inherit !important;
}
.btn-apply{
    background: white;
    border-radius: 10px;
    color:#008081;
    border: 1px solid #b9bbbe;
}
.alert-result {
    display: none;
    position: fixed;
    top: 20px; /* Ajuste selon l'espacement voulu */
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    z-index: 1050; /* S'assure que l'alerte est bien au-dessus des autres éléments */
    padding: 20px;
}

.alert {
    width: 100%; /* Prend la largeur définie par .alert-result */
    background: red;
    color: white;
    text-align: center; /* Centre le texte */
    padding: 15px;
    border-radius: 5px; /* Pour un effet plus esthétique */
}
.btn-submit {
    display: flex;

}

.btn-submit .btn {
    border: none;
    font-size: 16px;
    padding: 10px 20px;
    position: relative;
}

.btn-credit {
    background-color:#008081 !important;
    border-radius: 5px 0 0 5px;
    width: 100%;
    color:white;
    box-shadow: none !important;
}
.btn-credit:hover{
    color:white !important;
}

.btn-simulate {
    background-color: rgba(18, 115, 235, 0.1);
    color:#008081 !important;
    width: 100%;
    border-radius: 0 5px 5px 0;
    border: none;
    position: absolute;
    box-shadow: none !important;
}
.btn-credit::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 0;
    color: white ;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 20px solid#008081 !important;
    z-index: 1;
}

.btn-simulate {
    margin-left: -25px;
    padding-left: 30px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}
.loader-container img {
    width: 100px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cacher {
    opacity: 0;
    pointer-events: none;
}