/* ==========================================================================
   Feuille de style pour le formulaire de réservation (css/reservation.css)
   ========================================================================== */

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333333;
    line-height: 1.6;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* --- Titre Principal --- */
h1 {
    font-size: 2rem;
    color: #1a252f;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color:  #ee790b;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* --- Message de Succès --- */
p[style*="color:green"], .alert-success {
    background-color: #d4edda !important;
    color:  #ee790b!important;
    border: 1px solid #c3e6cb;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- Structure du Formulaire --- */
form {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 520px;
    border: 1px solid #eef2f5;
    display: flex;
    flex-direction: column;
}

/* --- Labels (Libellés) --- */
label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    margin-top: 14px;
    font-size: 0.95rem;
    display: block;
}

label:first-of-type {
    margin-top: 0;
}

/* --- Champs de saisie (Inputs) --- */
input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333;
    background-color: #f8fafc;
    transition: all 0.25s ease-in-out;
    outline: none;
}

/* Focus & Hover sur les inputs */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
    border-color:  #ee790b;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.15);
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="date"]:hover {
    border-color: #94a3b8;
}

/* --- Bouton de Soumission --- */
button[type="submit"] {
    background-color:  #ee790b;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 28px;
    transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px  #ee790b;
}

button[type="submit"]:hover {
    background-color:  #ee790b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px  #ee790b;
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px  #ee790b;
}

/* --- Responsive (Mobiles & Tablettes) --- */
@media (max-width: 600px) {
    body {
        padding: 20px 12px;
    }

    form {
        padding: 25px 20px;
    }

    h1 {
        font-size: 1.6rem;
    }
}