.container-fluid {
    width: 100%;
    height: 100%;
    padding: 0;
    padding-left: 0px;
    padding-right: 0px;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
    padding-left: 0;
    padding-right: 0;
}

/* Structure principale avec flex */
.bloc-calendar {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Styles pour la sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    background-color: white;
    height: 100vh;
    border-right: 1px solid #e0e0e0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.sidebar.hidden {
    margin-left: -260px;
    min-width: 0;
}

.sidebar-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    background-color: #0a1f44;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #3b5bdb;
}

.sidebar-toggle.sidebar-hidden {
    left: 20px;
}

/* Styles pour le conteneur principal */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background-color: #fff;
    transition: all 0.3s ease;
}

.main-container.full-width {
    width: 100%;
}

/* Ajout du style pour l'overlay du modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}


/* Modification du style du modal - CENTRÉ SANS ANIMATION */
.modal-evenement {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 95%;
    max-width: 750px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    transition: none;
}

.modal-backdrop.visible .modal-evenement {
    transform: translate(-50%, -50%);
}

/* Style pour le modal de détail d'événement */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 800px;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s;
    backdrop-filter: blur(3px);
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.25s 0s;
}

.entete-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    background-color: #0a1f44;
    z-index: 10;
    border-radius: 8px 8px 0 0;
    color: white
}

.titre-modal {
    margin: 0;
    font-size: 20px;
    color: white;
    font-weight: bold;
}

.bouton-fermer {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.contenu-modal {
    padding: 24px;
}

.groupe-formulaire {
    margin-bottom: 24px;
}

.etiquette-formulaire {
    display: block;
    margin-bottom: 8px;
    color: black;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.champ-saisie {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #0a1f44;
    border-radius: 24px;
    font-size: 16px;
    background-color: #f7f7f7;
}

.champ-saisie:focus {
    outline: none;
    border-color: #0a1f44;
}

.conteneur-date-heure {
    display: flex;
    gap: 16px;
}

.conteneur-date-heure>div {
    flex: 1;
}

.duree-rapide {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.bouton-duree {
    background-color: #e6ebff;
    border: none;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    color: #0a1f44;
    font-size: 14px;
    flex: 1;
    min-width: 60px;
    text-align: center;
    transition: all 0.2s ease;
}

.bouton-duree.actif {
    background-color: #0a1f44;
    color: white;
}

.bouton-duree:hover {
    background-color: #d6deff;
}

.badge-organisateur {
    display: inline-flex;
    align-items: center;
    background-color: #e6ebff;
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.badge-organisateur span {
    color: #0a1f44;
    margin-right: 6px;
}

.badge-organisateur button {
    background: none;
    border: none;
    color: #99a6d8;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.lien-supprimer {
    color: #0a1f44;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 8px;
    cursor: pointer;
}

.champ-description {
    min-height: 120px;
    resize: vertical;
}

.selecteur-visibilite {
    position: relative;
}

.selecteur-visibilite .champ-saisie {
    padding-right: 40px;
}

.icone-globe {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.interrupteur {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.interrupteur input {
    opacity: 0;
    width: 0;
    height: 0;
}

.curseur-interrupteur {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e6e6e6;
    transition: .4s;
    border-radius: 30px;
}

.curseur-interrupteur:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.curseur-interrupteur {
    background-color: #0a1f44;
}

input:checked+.curseur-interrupteur:before {
    transform: translateX(30px);
}

.section-visio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.libelle-visio {
    font-weight: 500;
    color: #333;
}

.conteneur-lien-visio {
    position: relative;
    margin-top: 8px;
}

.champ-lien-visio {
    padding-right: 40px;
}

.icone-visio {
    position: absolute;
    right: 16px;
    top: 30%;
    transform: translateY(-50%);
}

.options-visio {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.bouton-service-visio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.bouton-service-visio i {
    margin-right: 5px;
}

.bouton-service-visio.actif {
    border-color: #0a1f44;
    background-color: #e6ebff;
}

.bouton-service-visio:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pied-modal {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #e6e6e6;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 8px 8px;
}

.bouton {
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.bouton-contour {
    background-color: white;
    color: #0a1f44;
    border: 1px solid #0a1f44;
}

.bouton-contour:hover {
    background-color: #f0f4ff;
}

.bouton-primaire {
    background-color: #e6e9f0;
    color: #aaa;
}

.bouton-primaire.actif {
    background-color: #0a1f44;
    color: white;
}

.bouton-primaire.actif:hover {
    background-color: #3b5bdb;
}

/* Styles pour les sections de la sidebar */
.section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

.section-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.select-all {
    color: #0a1f44;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.select-all:hover {
    color: #3b5bdb;
    text-decoration: underline;
}

.sub-item {
    background-color: #cacfd6;
    margin-left: 25px;
    opacity: 0.9;
    /* font-size: 0.95em; */
}

.items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Style pour les checkboxes dans le menu latéral */
.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.item:hover {
    background-color: #f0f4ff;
}

.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
}

.checkbox.checked {
    background-color: #0a1f44;
    border-color: #0a1f44;
}

.checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.item-label {
    color: #595959;
    font-size: 14px;
    flex-grow: 1;
}

.add-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a1f44;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    margin-top: 5px;
    transition: all 0.2s ease;
    border-radius: 20px;
}

.add-button:hover {
    color: #3b5bdb;
    background-color: #f0f4ff;
}

/* Styles pour les onglets */
.tabs-container {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: space-between;
    background-color: #fff;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range {
    display: flex;
    align-items: center;
    border: 1px solid #0a1f44;
    border-radius: 4px;
    padding: 8px 12px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
}

.date-range:hover {
    background-color: #f0f4ff;
}

.date-range input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    width: 180px;
    cursor: pointer;
    font-weight: 500;
}

.date-range button {
    background: none;
    border: none;
    color: #0a1f44;
    cursor: pointer;
}

/*


.tab-button:hover {
    background-color: #e0e0e0;
}

 */

/* .tabs {
    display: flex;
    gap: 5px;
} */

/* .tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
 
background: #f9f9f9;
padding: 0.5rem 0;
border-bottom: 1px solid #ddd;
}
*/

.close-btn-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    position: absolute;
    top: 0;
    right: 0;
    color: #0a1f44;
    display: none;
}

.close-btn-sidebar:hover {
    color: #0a1f44;
}

/* Structure globale */
.mobile-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Bouton menu hamburger */
.menu-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    display: none
}

/* Tabs */
.tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    /* occupe tout l'espace restant */
}

/* .tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
} */

/* .tab-button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;

    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
} */

.tab-button:focus {
    outline: none;
    color: #0a1f44;
}

.tab-button {
    /* background-color: #f0f0f0; */
    background-color: white;
    color: #0a1f44;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    /* color: #666; */

    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    /* padding: 0.5rem 1rem; */
    /* font-size: 1rem; */
    /* color: #333; */
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* empêche le retour à la ligne */
}

/* .tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
} */

.tab-button.active {
    background-color: #0a1f44;
    color: white;
}


.tab-button:hover {
    color: #007bff;
}

/* Icônes */
.tab-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Texte visible par défaut */
.tab-text {
    display: inline;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-imprimer {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #0a1f44;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-imprimer:hover {
    background-color: #3b5bdb;
}

.btn-vue-liste {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: white;
    color: #0a1f44;
    border: 1px solid #0a1f44;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vue-liste:hover {
    background-color: #f0f4ff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    right: 0;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Styles pour les tableaux */
.liste-evenements {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px;
    overflow: auto;
    flex: 1;
}

.table-evenements {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table-evenements th {
    background-color: #f5f7fa;
    padding: 15px 16px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.table-evenements td {
    padding: 15px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.table-evenements tr:hover td {
    background-color: #f9f9f9;
}

.table-calcul-heures,
.table-rdv {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table-calcul-heures th,
.table-rdv th {
    background-color: #f5f7fa;
    padding: 15px 16px;
    text-align: left;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.table-calcul-heures td,
.table-rdv td {
    padding: 15px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.table-evenements tr:hover td {
    background-color: #f9f9f9;
}

.actions-col {
    width: 100px;
    text-align: right;
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.2s ease;
}

.btn-edit:hover,
.btn-delete:hover {
    color: #0a1f44;
}

.message-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    color: #888;
}

.icone-calendrier {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour le calendrier */
.calendar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background-color: #fff;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* utile en mobile si trop serré */
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button1 {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
    cursor: pointer;
}

.current-period {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.timezone {
    font-size: 0.95rem;
    color: #666;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-selector {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

.time-label {
    font-size: 0.9rem;
    color: #444;
}

.view-selector {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

/* .calendar-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
} */

/* .current-period {
    font-size: 18px;
    font-weight: 500;
    margin: 0 10px;
    color: #333;
}

.timezone {
    color: #70757a;
    font-size: 14px;
    margin-left: 10px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
} */

/* .time-label {
    font-size: 14px;
    color: #666;
}

.time-selector {
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.nav-button1 {
    background-color: rgb(220 228 255);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: background-color 0.2s ease;
} */

.nav-button1:hover {
    background-color: #e0e0e0;
}

/* .view-selector {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0a1f44;
    cursor: pointer;
} */

.calendar-body {
    flex: 1;
    overflow: auto;
}

.weekday-header {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #70757a;
    text-transform: uppercase;
    font-weight: 600;
}

/* Month View Styles */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 jours */
    gap: 1px;
}


.month-cell {
    border: 1px solid #ccc;
    padding: 5px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.event-label {
    background-color: #808080;
    color: white;
    margin-top: 2px;
    padding: 3px;
    border-radius: 3px;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* .month-cell {
    border: 1px solid #e0e0e0;
    height: 100px;
    padding: 8px;
    vertical-align: top;
    cursor: pointer;
    transition: background-color 0.2s ease;
} */

.month-cell:hover {
    background-color: #f5f7fa;
}

.date-number {
    font-size: 14px;
    text-align: right;
    padding: 5px;
    color: #333;
}

.today {
    color: #0a1f44;
    font-weight: bold;
}

.today-label {
    font-size: 12px;
    color: #0a1f44;
}

.date-container {
    position: relative;
}

.other-month {
    color: #bbb;
}

/* Week View Styles */
.week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    width: 100%;
}

.week-header {
    background-color: #f3f9ff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #e0e0e0;
}

.week-day-name {
    font-weight: bold;
}

.week-day-date {
    font-size: 14px;
    margin-top: 5px;
}


.month-cell {
    border-bottom: 1px solid #e0e0e0;
    padding: 5px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* .time-slot {
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    padding: 5px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: background-color 0.2s ease;
} */

.time-slot:hover {
    background-color: #f5f7fa;
}

.time-label-slot {
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    padding: 5px;
    font-size: 12px;
    color: #70757a;
    text-align: center;
}

.current-day-column {
    background-color: #f9f9f9;
}

/* Day View Styles */
.day-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    width: 100%;
}

.day-header {
    grid-column: 2;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.day-time-slot {
    border-bottom: 1px solid #e0e0e0;
    padding: 5px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* 
.day-time-slot {
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
} */

.day-time-slot:hover {
    background-color: #f5f7fa;
}

/* Event Styles */
.event-label {
    background-color: #4285f4;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    animation: eventFadeIn 0.3s ease;
    width: 100%;
}

@keyframes eventFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hour-marker {
    position: relative;
    height: 2px;
    background-color: #ff5252;
    width: 100%;
    z-index: 1;
    animation: pulseMarker 2s infinite;
}

@keyframes pulseMarker {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Bouton créer événement - Style amélioré */
.bouton-ajouter-evenement {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a1f44;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    height: 56px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

.bouton-ajouter-evenement .plus-icon {
    font-size: 28px;
    margin-right: 8px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.bouton-ajouter-evenement .texte-bouton {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bouton-ajouter-evenement:hover {
    background-color: #3b5bdb;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    padding: 0 25px;
}

.bouton-ajouter-evenement:hover .plus-icon {
    transform: rotate(90deg);
}

.bouton-ajouter-evenement:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal détail événement */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-content {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options de plage de dates */
.options-plage-dates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.option-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.option-date input[type="radio"] {
    margin: 0;
}

.option-date label {
    cursor: pointer;
    font-size: 15px;
}

/* Styles pour les étapes */
.etapes-creation {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 2px;
    border-bottom: 1px solid #e0e0e0;
}

.etape {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    width: 20%;
    position: relative;
}

.etape:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.numero-etape {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.etape.active .numero-etape {
    background-color: #0a1f44;
}

.etape.complete .numero-etape {
    background-color: #28a745;
}

.nom-etape {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.etape.active .nom-etape {
    color: #0a1f44;
    font-weight: 500;
}

/* Style pour la datatable dans le modal */
#modal-utilisateurs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-utilisateurs .modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    width: 70%;
    max-width: 800px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.filtre-utilisateurs {
    margin-bottom: 15px;
}

#table-utilisateurs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

#table-utilisateurs thead {
    background-color: #3498db;
    color: white;
}

#table-utilisateurs th,
#table-utilisateurs td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

#table-utilisateurs tr:nth-child(even) {
    background-color: #f8f9fa;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

.bouton-pagination {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.bouton-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Style pour le tableau de disponibilité */
.tableau-disponibilite-container {
    position: relative;
}

.loader {
    text-align: center;
    padding: 20px;
    color: #666;
}

.tableau-disponibilite {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tableau-disponibilite th,
.tableau-disponibilite td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.tableau-disponibilite th {
    background-color: #f8f9fa;
    font-size: 13px;
}

.disponible {
    background-color: #d4edda;
    color: #155724;
}

.non-disponible {
    background-color: #f8d7da;
    color: #721c24;
}

.bouton-forcer {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.bouton-forcer:hover {
    background-color: #c82333;
}

/* Conteneur pour chaque étape du formulaire */
.etape-contenu {
    display: none;
}

.etape-contenu.active {
    display: block;
}

/* Récapitulatif de l'événement */
.recap-evenement {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.recap-evenement p {
    margin: 8px 0;
}

/* Bouton ajouter */
.bouton-ajouter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #f0fff5;
    border: 1px dashed #28a745;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #28a745;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bouton-ajouter:hover {
    background-color: #e6ebff;
}

.week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    /* 1ère colonne = heures */
    grid-auto-rows: minmax(60px, auto);
    /* chaque heure fait 60px de haut min */
    gap: 1px;
}

.week-header {
    background-color: #f4f4f4;
    text-align: center;
    font-weight: bold;
    padding: 8px;
    border: 1px solid #ddd;
}

.week-day {
    background-color: #fff;
    border: 1px solid #ddd;
}

.time-label-slot {
    grid-column: 1 / 2;
    background-color: #f0f0f0;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    text-align: right;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;

}

/* .time-label-slot {
    grid-column: 1 / 2;
    background-color: #f0f0f0;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    text-align: right;
} */

.time-slot {
    border: 1px solid #ddd;
    padding: 2px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.time-slot.current-day-column {
    background-color: #e8f4ff;
}

.event-label {
    font-size: 12px;
    margin: 2px 0;
    padding: 4px;
    border-radius: 4px;
    background-color: #888;
    color: white;
    word-wrap: break-word;
    white-space: normal;

}

/* .menu-icon {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: #0a1f44;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 28px;
    padding: 6px 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
} */

/* .tab-button::after {
    content: attr(aria-label);
    display: none;
    position: absolute;
    bottom: -1.5em;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.tab-button:hover::after {
    display: block;
} */

/* Adaptativité */
@media (max-width: 768px) {

    .close-btn-sidebar {
        display: block;
    }

    .calendar-header {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .calendar-nav,
    .time-display,
    .timezone,
    .view-selector,
    .current-period {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .time-display {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .tab-button {
        /* flex-direction: column;
        flex: 0 0 auto;
        /* empêche les boutons de s'étirer ou de se réduire 
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem; */

        flex-direction: column;
        font-size: 0.85rem;
        padding: 0.3rem;
    }

    .tab-text {
        display: none;
    }

    .tab-icon {
        width: 24px;
        height: 24px;
    }

    /* Masquer les cellules des jours hors mois courant */
    .month-cell .date-number.other-month {
        display: none !important;
    }

    /* Masquer aussi les cellules vides associées */
    .month-cell .date-number.other-month:only-child {
        display: none !important;
    }

    /* Réduire l’espace vide de la cellule après suppression du contenu */
    .month-cell:has(.date-number.other-month) {
        display: none !important;
    }

    .weekday-header {
        display: none !important;
    }

    .btn-imprimer {
        display: none !important;
    }

    .menu-icon {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        max-width: 260px;
        width: 80%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-container {
        padding-top: 0px;
        /* éviter recouvrement par menu-toggle */
    }

    .bloc-calendar {
        flex-direction: column;
        height: auto;
    }

    /* .sidebar {
        position: fixed;
        z-index: 100;
        width: 100%;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    } */

    .sidebar.visible {
        transform: translateX(0);
    }

    /* .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: 300px;
    } */

    /* .sidebar {
        transition: transform 0.3s ease, max-height 0.3s ease;
    } */

    .sidebar.hidden {
        transform: translateX(-100%);
        max-height: 0;
    }

    /* .main-container {
        width: 100%;
    } */

    .tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .actions {
        width: 100%;
        justify-content: space-between;
    }

    .conteneur-date-heure {
        flex-direction: column;
        gap: 10px;
    }

    /* .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    } */

    .modal-evenement {
        height: 90vh;
        max-height: 90vh;
        padding: 15px;
    }

    .contenu-modal {
        padding: 16px;
    }

    .champ-saisie {
        font-size: 14px;
        padding: 10px 14px;
    }

    .etapes-creation {
        overflow-x: auto;
        padding: 0 10px;
    }

    .etape {
        min-width: 80px;
    }

    .bouton-ajouter-evenement {
        width: 56px;
        padding: 0;
    }

    .bouton-ajouter-evenement .texte-bouton {
        display: none;
    }

    .bouton-ajouter-evenement .plus-icon {
        margin-right: 0;
    }

    .bouton-ajouter-evenement:hover {
        padding: 0;
    }

    .month-grid {
        grid-template-columns: repeat(2, 1fr);
        /* au lieu de 7 */
        gap: 4px;
    }

    .week-grid {
        display: block;
        /* overflow-x: auto; */
    }

    .week-day {
        min-width: 120px;
    }

    .time-label-slot {
        min-width: 60px;
    }

    /* 
    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    } */



    .btn-imprimer,
    .btn-vue-liste {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (hover: none) {

    .bouton,
    .tab-button,
    .btn-imprimer,
    .btn-vue-liste {
        padding: 14px 20px;
        font-size: 16px;
    }

    .champ-saisie {
        font-size: 16px;
    }
}