body{
    font-size: 0.9rem;
    background-color: #f4f4f4;
}
.menu-container{
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: start;
    gap: 2rem;
}
p{
    margin: 0;
    text-align: justify;
}
.navbar {
    padding: 1rem 2rem;
    background-color: white;
}

#main-container{
    width: 60%;
    height: 100%;
    margin: 3rem auto 15rem auto;
}

ul.summary{
    list-style: none;
    padding: 0;
}

.summary a{
    text-decoration: none;
}

a, a:visited{
    color: black;
}

#welcome-page{
    width: 60%;
    height: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 01.5rem;
}

.offcanvas-header{
    justify-content: end;
}

.accordion-button:focus, .accordion-button:not(.collapsed){
    border-color: transparent;
    background-color: #f7f7f7;
}

.accordion-collapse{
    padding: 1rem;
}

.accordion-flush .accordion-item:first-child {
    border-bottom: 0;
}
h1{
    font-size: 1.3rem;
    text-align: center;
    width: 50%;
    margin: 0 auto 5rem auto;
}
.category{
    background-color: white;
    padding: 0.5rem 1.25rem;
}
.category-title{
    width: 100%;
    font-size: 1rem;
    line-height: normal;
    padding: 1rem 1.25rem;
    color: white;
    background-color: #1f3750;
}

.welcome-page-category{
    width: 100%;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    color: white;
    background-color: #1f3750;
    border-radius: 0.3rem 0.3rem 0 0;
}

.col-6{
    padding: 0;
}


.table > :not(caption) > * > *{
    padding: 0.2rem 0.5rem;
}

.table.custom-table {
    margin-bottom: 0;
    border-collapse: collapse;
    margin: auto;
    
}

.custom-table thead {
    background-color: #f8f9fa;
}

.custom-table th,
.custom-table td {
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.accordion-button{
    color: white;
    background-color: #1f3750;
    line-height: normal;
}

.accordion-button:focus, .accordion-button:not(.collapsed) {
    color: white;
    background-color: #1f3750;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 6l6 6 6-6z'/%3E%3C/svg%3E");
}

.subtitle{
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.subtitle i{
    margin-right: 0.5rem;
    font-size: 0.5rem;
}

#vehicule-details, 
#client-details,
#timeslot-details,
#form-pret-details,
#mission-details,
#planning-details,
#pieces-details,
#vehicules-details {
    position: fixed;             /* reste en place même au scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;                /* prend tout l’écran */
    background-color: rgba(0, 0, 0, 0.7); /* fond noir translucide */
    display: flex;   
    flex-direction: column;            /* permet le centrage */
    justify-content: center;     /* centre horizontalement */
    align-items: center;         /* centre verticalement */
    z-index: 1000;               /* passe devant le reste */
}

#vehicule-details img,
#client-details img,
#timeslot-details img,
#form-pret-details img,
#mission-details img,
#planning-details img,
#pieces-details img,
#vehicules-details img {
    max-width: 90%;              /* ne dépasse pas la largeur de l’écran */
    max-height: 90%;             /* ni la hauteur */
    border-radius: 8px;          /* optionnel, coins arrondis */
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* petite ombre pour le relief */
}

.open-details-link{
    align-self: center;
    cursor: pointer;
}

.open-details-link:hover{
    text-decoration: underline;
}

.close-details-link{
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    cursor: pointer;
    text-decoration: underline;
}