/* bootstrap-correctifs-lg.css */
/* Correctif pour bugs sur bootstrap généré par bootstrap.build */

.alert {
    display: flex;
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement le contenu */
    position: relative; /* Conserve le positionnement pour le bouton de fermeture */
    padding-right: 3rem; /* Crée de l'espace pour le bouton de fermeture */
}


.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25em 0.75em;
    background-color: transparent;
    border: 0;
    appearance: none;
    cursor: pointer;
    opacity: 0.5;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: 1;
}

.btn-close::before {
    content: "\00d7"; /* Le caractère '×' (multiplication) */
    font-size: 1.5em;
}

/* Force un switch visuel même si Bootstrap est incomplet */
.form-switch .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 2.5em;
    height: 1.3em;
    background-color: #ccc;
    border-radius: 2em;
    position: relative;
    transition: background-color 0.3s;
    cursor: pointer;
}

.form-switch .form-check-input::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: 0.15em;
    width: 1em;
    height: 1em;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.form-switch .form-check-input:checked {
    background-color: #0d6efd;
}

.form-switch .form-check-input:checked::before {
    transform: translateX(1.2em);
}


/*.accordion-button {*/
/*    background-color: var(--bs-light);*/
/*    color: var(--bs-dark);*/
/*}*/

/*.accordion-button {*/
/*    display: block;*/
/*    width: 100%;*/
/*}*/

/*accordion-button {*/
/*    display: flex;*/
/*    width: 100%;*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*}*/


.accordion-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background-color: var(--bs-accordion-btn-bg);
    color: var(--bs-accordion-btn-color);
    border: 0;
    border-radius: 0;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,<svg fill='currentColor' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease-in-out;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}