html, body {
    height: 100%;
}

body {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
}

main {
    flex: 1 0;
}

.bg-primary-custom {
    background-color: #4d5bd3 !important;
}

.text-primary-custom {
    color: #4d5bd3 !important;
}

.btn-primary-custom {
    background-color: #4d5bd3;
    border-color: #4d5bd3;
    color: white;
}
.btn-primary-custom:hover {
    background-color: #3c47b2;
    border-color: #3c47b2;
}

.bg-dark-custom {
    background-color: #1E2253 !important;
}
.text-dark-custom {
    color: #1E2253 !important;
}

.bg-success-custom {
    background-color: #66DD96 !important;
}
.text-success-custom {
    color: #66DD96 !important;
}

.btn-success-custom {
    background-color: #66DD96;
    border-color: #66DD96;
    color: #ffffff;
}
.btn-success-custom:hover {
    background-color: #4fcf83;
    border-color: #4fcf83;
}

.btn-dark-custom {
    background-color: #1E2253;
    border-color: #1E2253;
    color: #ffffff;
}

.btn-dark-custom:hover,
.btn-dark-custom:focus {
    background-color: #16193f;
    border-color: #16193f;
    color: #ffffff;
}

.btn-dark-custom:active {
    background-color: #10122f;
    border-color: #10122f;
    color: #ffffff;
}

.border-dashed {
    border-bottom: 2px dashed white;
}

.rounded-custom {
    border-radius: 2rem !important;
}

.check-list {
    li {
        display: flex;
        align-items: flex-start;

        span {
            margin-left: 10px;
        }
    }
}

.form-floating>.form-control {
    padding: .75rem;
    height: calc(3rem + 2px);
}

.form-floating label {
    padding: .75rem;
}

.form-check {
    align-items: flex-start;
    .form-check-input {
        min-width: 20px;
        margin-top: 0;
    }
}

p {
    line-height: 24px;
}

.bg-lag {
    background-image: url('/frontend/assets/images/maintenance/bg-mobile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

@media screen and (min-width: 992px) {
    .bg-lag {
        background-image:
            url('/frontend/assets/images/maintenance/LiseAndGo-choix_vehicules.webp'),
            url('/frontend/assets/images/maintenance/bg-desktop.webp');
        background-repeat: no-repeat, no-repeat;
        background-size: auto 90%, cover;
        background-position: bottom left 35%, center;
    }
}

.accordion-item {
    background-color: transparent !important;
    border: none !important;
}

.accordion-button {
    background-color: transparent !important;
    padding: 1rem 0;
}

.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: inherit;
}

.accordion-body {
    padding: 1rem 0;
}

/* Surcharge des styles Tailwind pour l'accordéon */
.accordion-collapse.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

.accordion-collapse.collapse:not(.show) {
    display: none !important;
}

/* Styles pour le bouton de l'accordéon */
.listing-accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    color: inherit;
    text-align: left;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,border-radius .15s ease;
}

.listing-accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' 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'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform .2s ease-in-out;
}

.listing-accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}
