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

/* --- Body --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* --- Container --- */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Liens simples */
.nav-right a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
}

.nav-right a:hover {
    color: #f4f4f9 !important;
}

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

.dropbtn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #34495e;
    min-width: 150px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

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

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

/* --- Formulaires --- */
form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

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

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
}

/* Boutons compacts */
form input[type="submit"],
button,
form button {
    padding: 6px 12px;   /* hauteur réduite */
    border: none;
    border-radius: 5px;
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.3s ease;
}

form input[type="submit"]:hover,
button:hover,
form button:hover {
    background-color: #1a252f;
}

/* Help text sous les champs */
form .help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Messages d'erreur sous les champs */
form .field-error {
    font-size: 0.875rem;
    color: #d9534f;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* ===== Formulaire ===== */
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form input[type="email"],
form select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form input[type="checkbox"],
form input[type="radio"] {
    margin-right: 8px;
}

/* Inputs readonly ont le même background et border que le form */
form input[readonly] {
    background-color: #fafafa;
    border: 1px solid #ddd;
    color: #333;
    cursor: not-allowed;
}

/* Détails prix */
#pricing-details {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Flatpickr container */
.flatpickr-calendar {
    margin-top: 10px;
}

/* --- Messages --- */
.alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error, .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #2c3e50;
    color: white;
}

.help-text { color: #6c757d; font-size: 0.875rem; margin-top: -5px; margin-bottom: 10px; }
.field-error { color: #d9534f; font-size: 0.875rem; margin-top: -5px; margin-bottom: 10px; }

/* Table listant les prix */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #2c3e50;
    color: white;
}

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

table a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    color: #16a085;
}

.option-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.option-label input {
    margin-right: 8px;
}

.room-type-group {
    margin-bottom: 15px;
}

.radio-line {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 6px;
}

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

/* Boutons spécifiques pour actions */
.btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
    line-height: 1.2;
    border-radius: 4px;
}

.btn-primary {
    background-color: #2c3e50;
    color: white;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
}

.btn-primary:hover {
    background-color: #1a252f;
}

.btn-danger:hover {
    background-color: #c9302c;
}

