/*  =====  Variables =====  */
:root {
    --shadow-lite: 0px 4px 16px -7px rgba(0, 0, 0, 0.3);
    --color-mahalte: #0080a7;
    --color-mahalte-light: #46aece;
    --color-mahalte-hover: #3fb7e2;
    --border-container: 1px solid #eeeeeeee;
    --box-img-shadow: 4px 4px 7px 0 rgba(104, 104, 104, 0.5);
}

body {
    height: 100dvh;
    /* Fixe la hauteur selon la taille réelle de l'écran */
    overflow-x: hidden;
    /* Empêche tout débordement horizontal */
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

.fs-5 {
    font-size: 13px;
}

.btn-primary {
    background-color: var(--color-mahalte);
    border-color: var(--color-mahalte);
}

.btn-primary:hover {
    background-color: var(--color-mahalte-hover);
    border-color: var(--color-mahalte-hover);
}

.text-mh {
    color: var(--color-mahalte);
}

.bg-mh {
    background-color: var(--color-mahalte-light);
}

.navbar {
    background-color: #f8f9fa;
    /* Fond léger */
    border-bottom: 1px solid #ddd;
    /* Bordure subtile */
}

.navbar-brand img {
    max-height: 40px;
    /* Taille du logo */
}

.nav-link {
    color: #333;
    /* Couleur du texte */
}

.nav-link:hover {
    color: #007bff;
    /* Couleur au survol */
}

.navbar-border {
    border-bottom: 1px solid rgba(128, 128, 128, 0.242);
}

.dropdown-menu-user {
    position: relative;
    background: white;
    border: 1px solid #ccc;
    /* Bordure grise autour du menu */
}

/* Triangle blanc */
.dropdown-menu-user::before {
    content: "";
    position: absolute;
    top: -20px;
    /* Ajustement fin pour bien superposer */
    right: 55px;
    /* Position horizontale */
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    /* Triangle blanc */
    display: block;
    width: 0;
    z-index: 2;
    /* S'assurer qu'il passe au-dessus */
}

/* Contour gris du triangle */
.dropdown-menu-user::after {
    content: "";
    position: absolute;
    top: -22px;
    /* Légèrement plus haut pour entourer le triangle */
    right: 54px;
    /* Ajustement horizontal */
    border-width: 11px;
    border-style: solid;
    border-color: transparent transparent #a5a5a5 transparent;
    /* Bordure grise */
    display: block;
    width: 0;
    z-index: 1;
    /* Derrière le triangle blanc */
}

@media (max-width: 991px) {

    /* Mode tablette et mobile */
    .navbar-nav .dropdown-menu-user {
        position: static;
        /* Évite que le menu déborde */
        width: 100%;
        /* Prend toute la largeur */
        text-align: center;
        /* Centrage du texte */
    }

    .dropdown-menu-user::before,
    .dropdown-menu-user::after {
        display: none;
        /* Cache le triangle en mode mobile */
    }
}

.active {
    color: #277891 !important;
}

.active-dropdown {
    color: #277891 !important;
}

.under-title {
    color: #099fcc;
    font-weight: 500;
    text-decoration: underline !important;
}

.under-title:hover {
    color: #4bbdff;
    font-weight: 500;
    text-decoration: underline !important;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.card-login {
    max-width: 400px;
    width: 100%;
    box-shadow: rgba(38, 57, 77, 0.642) 0px 10px 30px -10px;

}

.footer {
    font-weight: 500;
    color: white;
    background-color: var(--color-mahalte);
}

.shadow-lite {
    box-shadow: var(--shadow-lite);
}

.copyright {
    color: #ffffff
}

.copyright:hover {
    color: rgb(0, 64, 255);
}

.form-searchAvailableDates {
    min-height: 250px;
    /* Ajuster en fonction de la hauteur moyenne */
    border: var(--border-container);
    border-radius: 5px;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
}

.shadow {

    border: var(--border-container);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 12px !important;
    border-radius: 5px;
    min-height: 50px;
    /* Ajuste selon la hauteur moyenne de tes conteneurs */
    min-width: 100%;
    /* S'assurer qu'il prend toute la largeur disponible */

}

.content-title {
    background-color: var(--color-mahalte-hover);
    margin: none;
    padding: 10px;
    padding-bottom: 8px;
    color: white !important;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.content {
    padding: 25px;

}

.top-link{
    color: rgb(30, 123, 160);
}
.top-link:hover{
    color: rgb(77, 168, 204);

}

.bold {
    font-weight: 600;
}

.logo {
    height: 45px;
}

.custom-fieldset {
    border: 1px solid #838383;
    padding: 1.3rem;
    border-radius: 0px 15px 0px 15px;
    border-radius: 5px 5px 5px 5px;
}

.custom-legend {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: -4px;
    padding: 0 5px;
    background-color: white;
    float: none;
    width: auto;
    padding-left: 8px;
    padding-right: 8px;
}

.label-under {
    font-size: 13px;
    color: #838383;
    font-style: oblique;
}

.time-fields {
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    opacity: 1;
    max-height: 200px;
    /* Ajustez cette valeur selon la hauteur maximale de vos contenus */
}

.time-fields.collapsed {
    opacity: 0;
    max-height: 0;
}

.modal-title {
    color: white;
}

.card-settings {
    background-color: rgb(255, 248, 248);
    height: 150px;
    min-width: 280px;
    top: 0px;
    transition: background-color 0.2s ease-in-out, height 0.2s ease-in-out, top 0.2s ease-in-out;
    /* Utilisez transition pour des animations simples */
    -moz-user-select: none;
    /* Firefox */
    -webkit-user-select: none;
    /* Chrome, Safari, Opéra depuis la version 15 */
    -ms-user-select: none;
    /* Internet explorer depuis la version 10 et Edge */
    user-select: none;
    /* Propriété standard */
}

.card-settings:hover {
    background-color: var(--color-mahalte-hover);
    color: white;
    box-shadow: 0px 0px 10px 0 rgba(126, 126, 126, 0.5);
    top: -5px;
}

.settings-icon-container {
    height: 40px;
    /* Ajuste la hauteur pour centrer l'icône */
    display: flex;
    align-items: center;
}

.settings-text-border {
    border-left: 1px solid rgb(0, 0, 0);
    padding-left: 10px;
}

.hoursIcon {
    width: 40px;
    /* Utilisez transition pour des animations simples */
    -moz-user-select: none;
    /* Firefox */
    -webkit-user-select: none;
    /* Chrome, Safari, Opéra depuis la version 15 */
    -ms-user-select: none;
    /* Internet explorer depuis la version 10 et Edge */
    user-select: none;
    /* Propriété standard */
}

@media (min-width: 576px) {
    .hoursIcon {
        width: 30px;
    }
}

@media (min-width: 768px) {
    .hoursIcon {
        display: none;
    }
}

@media (min-width: 992px) {
    .hoursIcon {
        display: none;
    }
}

@media (min-width: 1200px) {
    .hoursIcon {
        display: inline;
        width: 40px;
    }
}

.img-preview-site {
    max-width: 250px;
    height: auto;
    box-shadow: var(--box-img-shadow);
    border-radius: 3px;
}

.img-shadow {
    box-shadow: var(--box-img-shadow);
}

.img-contact {
    border-radius: 4px;
}

.border-v-separator {
    border-right: 1px solid rgb(0, 0, 0);
}

table {
    table-layout: fixed;
    width: 100%;
}

th,
td {
    word-wrap: break-word;
    white-space: nowrap;
}

.customTable th:nth-child(2),
.customTable td:nth-child(2),
.customTable th:nth-child(3),
.customTable td:nth-child(3),
.customTable th:nth-child(4),
.customTable td:nth-child(4) {
    max-width: 150px;
    /* Ajustez la largeur pour éviter que le tableau déborde */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575px) {
    td {
        font-size: 13px
    }

    th {
        font-size: 13px
    }
}

@media (min-width: 576px) {
    td {
        font-size: 13px
    }
}

@media (min-width: 768px) {
    td {
        font-size: 14px
    }

    th {
        font-size: 12px
    }
}

@media (min-width: 992px) {
    td {
        font-size: 16px
    }

    th {
        font-size: 16px
    }
}

@media (min-width: 1200px) {
    td {
        font-size: 16px
    }

    th {
        font-size: 16px
    }
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 40px;
    /* Espace pour l'icône */
}

.password-container .toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
}

@media print {
    body * {
        visibility: hidden;
    }

    #printable {
        -webkit-print-color-adjust: exact !important;
        /* Safari/Chrome */
        print-color-adjust: exact !important;
        /* Standard */

        /* Ajout spécifique pour Firefox */
        -moz-print-color-adjust: exact !important;
    }


    #calendar table {
        border: 2px !important;
        border-color: #333 !important;
    }

    .fc-h-event .fc-event-main {
        color: white;
    }

    #calendar td {
        border: 1px solid rgb(0, 0, 0) !important;
    }

    #calendar table {
        border-collapse: collapse;
        width: 100%;
    }

    th,
    td {
        border: 1px solid black !important;
        padding: 8px;
    }

    /* Correction pour Firefox : forcer l'affichage des bordures */
    thead {
        display: table-header-group !important;
    }

    tr {
        page-break-inside: avoid !important;
    }

    /* Correction supplémentaire pour éviter la suppression des bordures */
    table,
    tr,
    th,
    td {
        border: 1px solid black !important;
        border-collapse: separate !important;
        /* Parfois, collapse pose problème sur Firefox */
        border-spacing: 0 !important;
        /* Éviter les espaces entre les cellules */
    }

    #printable-reservationList,
    #printable-reservationList * {
        visibility: visible;
        -webkit-print-color-adjust: exact !important;
        /* Safari/Chrome */
        print-color-adjust: exact !important;
        /* Standard */

        /* Ajout spécifique pour Firefox */
        -moz-print-color-adjust: exact !important;
    }

    #printable-reservationList {
        position: absolute;
        left: 0;
        top: 0;
    }

    table {
        border: 1px solid rgb(59, 59, 59) !important;
    }
}



.text-break {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.img-404 {
    max-width: 500px;
}