/* === Style général du body === */
body {
    /* Superposition d’un dégradé semi-transparent sur une image de fond */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/image_video.jpg');
    background-size: cover; /* L’image couvre toute la surface */
    background-position: center; /* Centrage de l’image */
    background-repeat: no-repeat; /* Pas de répétition */
    margin: 0;
    padding: 20px;
    display: flex; /* Mise en page en flexbox */
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* === Style du formulaire === */
form {
    background-color: #ccc; /* Couleur de fond grise */
    padding: 20px;
    border: #8c3737 solid 2px; /* Bordure bordeaux */
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

/* === Style des images === */
img {
    width: 100%;
    height: auto;
    border: #8c3737 solid 2px;
    border-radius: 10px;
}

/* === Grille de champs du formulaire === */
.reservation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.reservation div {
    display: flex;
    flex-direction: column;
}

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

/* Champs de saisie et zone de texte */
.reservation input,
textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* === Sélection des heures === */
.heures-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.heure-label {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.2s;
}

.heure-label:hover {
    background-color: #e0e0e0; /* Changement au survol */
}

/* Style de l’heure sélectionnée */
input[type="radio"]:checked+.heure-label {
    background-color: #d1e7dd; /* Vert pâle */
    border-color: #198754; /* Vert foncé */
}

/* Masquer les boutons radio */
input[type="radio"] {
    display: none;
}

/* === Bouton de retour === */
.bas_retour {
    background-color: #8c3737;
    color: white;
    padding: 2px;
}

.bas_retour :hover {
    background-color: #735229;
    color: white;
    padding: 2px;
}

/* Suppression du soulignement des liens */
a {
    text-decoration: none;
}

/* === Responsive: écran ≥ 360px === */
@media (min-width: 360px) {
    .reservation {
        grid-template-columns: 1fr;
    }

    body {
        flex-direction: column;
        align-items: center;
    }

    img {
        order: 2; /* L’image passe après le formulaire */
        width: 73%;
        height: 40%;
        top: -25px;
        object-fit: cover;
        position: relative;
        box-shadow: #8c3737 8px 5px;
    }
}

/* === Responsive: écran ≥ 992px === */
@media (min-width: 992px) {
    body {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 40px;
        flex-direction: row; /* Formulaire et image côte à côte */
    }

    form {
        width: 60%;
    }

    img {
        width: 40%;
        height: auto;
        object-fit: cover;
        position: relative;
        right: 40px;
        box-shadow: #8c3737 8px -5px;
        top: 1px;
    }

    .reservation {
        grid-template-columns: 1fr 1fr; /* Deux colonnes de champs */
        gap: 10px;
    }
}

/* === Responsive: écran ≥ 1400px === */
@media (min-width: 1400px) {
    form {
        width: 65%;
    }

    img {
        position: relative;
        right: 40px;
        width: 35%;
        height: auto;
        object-fit: cover;
        box-shadow: #8c3737 8px -5px;
    }
}
