 /* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Basic styling for navigation */
nav {
    position: relative;
    background-color: #333;
    color: #fff;
    padding: 10px;
}

.nav-links, nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #007BFF;
    padding: 0;
    margin: 0;
}

.nav-links li, nav ul li {
    position: relative;
    margin: 10px;
}

.nav-links a, nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 4px;
}

nav ul li a {
    color: black;
}

.nav-links a:hover, nav ul li a:hover, nav ul li a.active {
    background-color: #0056b3;
    color: white;
}

/* Dropdown styling */
.dropdown-content, .dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
     z-index: 1000; /* Assure que le menu dropdown soit au-dessus du tableau */
    flex-direction: column;
}

.dropdown-content a, .dropdown-content a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
}

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

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

/* Burger menu styling */
.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

.btn-supprimer {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #f44336;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.btn-supprimer:hover {
    background-color: #d32f2f;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links, nav ul {
        display: none;
        flex-direction: column;
        width: 80%;
        background-color: #333;
        position: absolute;
        top: 50px;
        left: 0;
	z-index: 1000; /* Assure que le menu burger soit au-dessus du tableau */
    }

    .nav-links.show, nav ul.show {
        display: flex;
    }

    .nav-links li, nav ul li {
        text-align: center;
        display: block;
        margin: 5px 0;
    }

    .nav-links a, nav ul li a {
        padding: 15px;
        border-top: 1px solid #444;
    }

    .burger-menu {
        display: flex;
    }

    table, thead th, tbody td {
        display: block;
        width: 100%;
    }

    thead th {
        display: none;
    }

   tbody td {
        text-align: left;
        padding-left: 15px;
        position: relative;
        border: 1px solid #ddd;
    }

 tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        text-align: left;
        font-weight: bold;
    }

    form {
        width: 90%;
    }

    form input[type="submit"],
    form input[type="text"],
    form input[type="email"],
    form input[type="password"] {
        width: 100%;
    }
}

/* Conteneur pour centrer le formulaire */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

.content {
    margin: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th, tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

thead th {
    background-color: #f2f2f2;
}

.reserved {
    margin-top: 5px;
    font-size: 0.9em;
}

/* Styles pour le tableau du calendrier */
 tbody td {
        text-align: left;
        padding-left: 15px;
        position: relative;
        border: 1px solid #ddd;
    }

/* Styles pour les dates */
.date {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Styles pour les réservations */
.reservation {
    font-size: 0.9em;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    color: #778078;
}

/* Classes pour les couleurs des réservations */
.reservation.green {
    background-color: #4CAF50;
    color: white;
}

.reservation.red {
    background-color: #F44336;
    color: white;
}

.reservation.orange {
    background-color: #FFA500;
    color: white;
}

/* Message pour aucune réservation */
td div {
    text-align: center;
    color: #1c0b0b;
}

/* Style pour la pagination */
a.pagination {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

a.pagination:hover {
    background-color: #0056b3;
}

form {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

.suggestions-box {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    background-color: white;
    width: 100%;
}

.suggestion {
    padding: 8px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f0f0f0;
}


/* Menu styles */
.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    float: left;
}

.menu > li > a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.menu > li > a:hover, .dropdown:hover .dropbtn {
    background-color: #111;
}

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

/* Print styles */
@media print {
    .print-button {
        display: none;
    }
}