.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
    max-width: 600px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-right: auto;
}

.form-group input[type="text"],
.form-group select,
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"] {
    flex: 1;
    min-width: 200px;
    padding: 0.6em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    max-width: 450px;
}

form button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 0.5em 1em;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
}

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

.customForm {
    align-items: center;
    max-width: 600px;
    margin: auto;
}

.map-container {
    margin-top: 1.5em;
    margin-bottom: 2em;
}

#map {
    height: 400px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button {
    padding: 0.5em 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}



.form-title {
    text-align: center;
    color: #333;
    margin-bottom: 1em;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 1em;
    color: #333;
}

.main-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.top-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.btn-link {
    background-color: #1976d2;
    color: white;
    padding: 0.25em 0.8em;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    line-height: 1.4;
    height: 2em;
}

.btn-link:hover {
    background-color: #125aa0;
}

/* Pour le bouton déconnexion */
button.btn-link {
    font: inherit;
    background-color: #1976d2;
    color: white;
    padding: 0.25em 0.8em;
}

nav.top-buttons {
    max-width: 750px;
    /* max-height: 50px; */
    margin: 0 auto 2em auto;
    padding: 1em;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
    text-align: center;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #ccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 1200px;
    margin: 1em auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

tr:hover {
    background-color: #f9f9f9;
}

.toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8em;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px;
    padding: 0.5em 1em;
}

.filter-form {
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin: 0;
}

.filter-form input {
    padding: 0.4em 0.6em;
    font-size: 0.95em;
    height: 2.2em;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.btn-edit,
.btn-delete {
    padding: 0.4em 0.8em;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.btn-edit {
    background-color: #e0f0ff;
    color: #005a9c;
}

.btn-edit:hover {
    background-color: #c2e0ff;
}

.btn-delete {
    background-color: #ffe0e0;
    color: #c70000;
}

.btn-delete:hover {
    background-color: #ffc2c2;
}

.btn {
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    padding: 0.5em 1em;
    font-size: 1em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* height: 2.2em;
    line-height: 2.2em; */
    box-sizing: border-box;
    /* vertical-align: middle; */
}

.btn + .btn {
    margin-left: 0.5em; /* ou 8px, selon votre préférence */
}

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

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}