body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    background: #f4f6f9;
}



/* ----------- SIDEBAR ----------- */
.sidebar {
    width: 220px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    padding: 20px 10px;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    transition: background 0.3s;
    border-radius: 6px;
}

.sidebar ul li a:hover {
    background-color: #34495e;
}

/* Logo en bas */
.sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
}

/* ----------- MAIN CONTENT ----------- */
.main-content {
    margin-left: 240px;
    padding: 20px;
    flex: 1;
    transition: margin-left 0.3s ease-in-out;
}

.form-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.form-container .form-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* ----------- TABLEAUX UNIFORMES ----------- */
table {
    border-collapse: collapse;
    width: 90%;
    margin: 30px auto;
    cursor: pointer;
    font-family: Arial, sans-serif;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

table th,
table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

table th {
    background-color: #f1f3f6;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table tr:hover {
    background-color: #f9fbfd;
}

table thead select {
    width: 100%;
    font-size: 12px;
}

/* ----------- TITRES ----------- */
h2 {
    text-align: center;
    margin-top: 40px;
    font-family: Arial, sans-serif;
    color: #2c3e50;
}

/* ----------- FILTRES ----------- */
.filters {
    text-align: center;
    margin: 15px 0 5px;
}

/* ----------- BOUTONS UNIFORMES ----------- */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0056b3, #003d80);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #565e64);
    color: #fff;
}

/* ----------- BOUTONS DÉTAIL PROSPECT ----------- */
.button-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.button-row button,
.button-row input[type="submit"] {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.button-row button:hover,
.button-row input[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.button-row button:active,
.button-row input[type="submit"]:active {
    transform: translateY(1px);
}

.button-row button.secondary {
    background-color: #6c757d;
}

.button-row button.secondary:hover {
    background-color: #5a6268;
}

/* Card formulaire */
.form-card {
    max-width: 700px;
    margin: 10px auto 30px auto;
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Groupes de champs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Inputs et textarea */
.form-card input[type="text"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0,123,255,0.3);
}

.form-card .button-row input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.form-card .button-row input[type="submit"]:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0056b3, #003d80);
}

/* Centrer "Afficher X entrées" */
.dataTables_length {
    float: none !important;
    text-align: center;
    margin: 0 auto 10px;
}

.dataTables_length label {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centrer le champ "Rechercher" */
.dataTables_filter {
    float: none !important;
    text-align: center;
    margin: 0 auto 10px;
}

.dataTables_filter label {
    display: flex;
    justify-content: center;
    align-items: center;
}
.date-group {
    display: none; /* caché par défaut */
    margin-top: 10px;
}
/* Par défaut, on affiche sur PC */
td.fc-list-event-time{
    display: none;
}
td.fc-list-event-graphic {
  display: table-cell;
}


/* Version bureau : laisse de la place pour la sidebar */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 768px) {

    /* Sidebar cachée sur mobile */
    .sidebar {
        display: none;
    }

    .table-container {
        width: 100%;
        font-size: 10px;
        overflow-x: auto;
    }
 td.fc-list-event-time,
  td.fc-list-event-graphic {
    display: none;
  }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 20px;
        border-radius: 12px;
        padding: 0;
        background: linear-gradient(180deg, #ffffff, #f9fafb);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
    }

    tr::before {
       /* content: "";*/
        display: block;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #007BFF, #00c6ff);
    }

    td {
        border: none;
        padding: 12px 14px;
        text-align: left;
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        font-size: 15px;
        line-height: 1.4em;
        word-wrap: break-word;
        white-space: normal;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.5px;
        color: #007BFF;
        min-width: 100px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    td span, 
    td div, 
    td {
        flex: 1;
        word-break: break-word;
    }

    td:last-child {
        border-bottom: none;
    }

    input[type="text"], select {
        width: 100%;
        padding: 10px;
        margin-bottom: 12px;
        box-sizing: border-box;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .button-row {
        flex-direction: column;
        gap: 10px;
    }

    .button-row button,
    .button-row input[type="submit"] {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 80px; /* espace pour la barre */
    }

    /* Barre de navigation mobile */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        z-index: 1000;
        box-shadow: 0 -3px 6px rgba(0,0,0,0.2);
    }

    .bottom-nav .nav-left,
    .bottom-nav .nav-center,
    .bottom-nav .nav-right {
        display: flex;
        align-items: center;
    }

    .bottom-nav .nav-center {
        display: flex;
        flex-direction: row; /* force horizontal */
        gap: 8px;            /* espace entre les boutons */
        flex-wrap: nowrap;    /* empêche le retour à la ligne */
        justify-content: center;
        flex: 1;              /* occupe l’espace central */
    }

    .bottom-nav .nav-center a {
        flex-shrink: 0;       /* empêche le rétrécissement */
        white-space: nowrap;  /* garde le texte sur une ligne */
    }

    .bottom-nav a {
        color: white;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background 0.3s, transform 0.2s;
        font-size: 14px;
        text-align: center;
    }

    .bottom-nav a:hover {
        background-color: #34495e;
        transform: scale(1.05);
    }

    /* Menu ⋮ */
    .bottom-nav .more-menu {
        position: relative;
        z-index: 1000;
    }

    .bottom-nav .more-btn i {
        font-size: 20px;          /* même taille que les autres icônes */
    }
    .bottom-nav .more-btn {
        /* width: 50px;  retirer */
        /* height: 50px; retirer */
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        background: none;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        padding: 8px 12px; /* comme les autres boutons */
    }


    .bottom-nav .more-btn:hover {
        background-color: #34495e;
    }

    .bottom-nav .dropdown {
        position: fixed; /* flottant au-dessus de la barre */
        bottom: 60px;
        right: 10px;
        display: none;
        flex-direction: column;
        min-width: 160px;
        border-radius: 8px;
        background-color: #2c3e50;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 1001;
    }

    .bottom-nav .dropdown a {
        color: white;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background 0.2s;
    }

    .bottom-nav .dropdown a:hover {
        background-color: #34495e;
    }

    .bottom-nav .dropdown.show {
        display: flex;
    }

    /* Cacher le menu burger si inutilisé */
    .menu-toggle {
        display: none;
    }

    .form-card {
        padding: 20px;
        margin: 20px 10px;
    }

    .form-container .form-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .main-content .header-container {
        flex-direction: column;  /* empile verticalement les éléments */
        align-items: center;     /* centre les éléments horizontalement */
    }

    .main-content .header-container a.btn {
        position: static;        /* supprime le positionnement absolu */
        margin-top: 10px;        /* espace entre le titre et le bouton */
    }

    /* FullCalendar : titres multi-lignes */
    .fc-event-title {
        white-space: normal !important; /* autorise plusieurs lignes */
        overflow: visible !important;
        text-overflow: clip !important;
    }
        /* FullCalendar en mobile */
    #calendar {
        padding: 10px;
        margin: 10px;
        max-width: 100%;
        font-size: 14px; /* réduire la taille globale */
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
    }

    .fc-toolbar-title {
        font-size: 18px !important; /* titre plus petit */
        text-align: center;
    }

    .fc .fc-button {
        padding: 6px 10px;
        font-size: 13px;
    }

    /* Forcer l’affichage multi-ligne des titres d’événements */
    .fc-event-title {
        white-space: normal !important;
        font-size: 12px;
        line-height: 1.2em;
    }
    /* Supprime la mention "Toute la journée" dans la vue liste */
/* Masque toute la colonne des horaires dans la vue liste */
.fc .fc-list-event-time {
  display: none !important;
}


}
