/* Disposition principale avec Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Affiche à gauche, Formations à droite */
    gap: 20px;
    align-items: flex-start; /* Aligner les éléments en haut */
}

/* Style de l'affiche */
.affiche img {
    max-width: 100%; /* Limite la largeur */
    height: auto; /* Conserve les proportions */
    display: block;
}

/* Style de l'affiche */
.temps img {
    max-width: 70%; /* Limite la largeur */
    height: auto; /* Conserve les proportions */
    display: block;
}

/* Style des formations */
.formations {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacement entre les formations */
}

/* Correction : fond transparent ou avec une couleur adaptée */
.formation {
    padding: 20px;
    border: 1px solid #444; /* Bordure subtile avec une couleur foncée */
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1); /* Fond transparent ou semi-transparent */
    color: #fff; /* Assurer que le texte est bien visible */
}

/* Bustes en CSS */
.buste {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 40px; /* Taille totale du buste (tête + torse) */
}

.buste::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: #444; /* Couleur de la tête */
    border-radius: 50%; /* Cercle pour la tête */
    transform: translateX(-50%);
}

.buste::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 24px;
    height: 20px;
    background-color: #444; /* Couleur du torse */
    border-radius: 10px 10px 0 0; /* Courbe en haut pour donner la forme des épaules */
    transform: translateX(-50%);
}

/* Styles pour les bustes pris */
.pris {
    background-color: none; /* Aucun fond */
}

.pris::before, .pris::after {
    background-color: red; /* Buste pris en rouge */
}

/* Styles pour les bustes libres */
.libre {
    background-color: none; /* Aucun fond */
}

.libre::before, .libre::after {
    background-color: green; /* Buste libre en vert */
}

/* Boutons */
button {
    background-color: #f0ad4e;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #e09d3d; /* Changement de couleur au survol */
}

/* Formulaire de réservation */
#reservation_form {
    background-color: rgba(0, 0, 0, 0.1); /* Fond harmonisé */
    color: #fff; /* Texte blanc pour une meilleure lisibilité */
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
    border: 1px solid #444;
}

#reservation_form input, 
#reservation_form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #222; /* Fond sombre pour harmoniser */
    color: white;
}

#reservation_form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

#reservation_form button:hover {
    background-color: #218838;
}

/* Liste des formations sélectionnées */
#formation_selectionnee {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

#formation_selectionnee li {
    padding: 5px 0;
    border-bottom: 1px solid #444; /* Ligne pour séparer les formations sélectionnées */
}

/* Prix total */
#prix_total {
    font-weight: bold;
    font-size: 1.2em;
    color: #fff;
}

/* Responsive design pour les petits écrans */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }

    .formations {
        margin-top: 20px;
    }
}

/* Disposition pour la section "Maps" et "PDF" */
.maps-pdf-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes : carte à gauche, PDF à droite */
    gap: 20px;
    margin-top: 30px; /* Espacement au-dessus de la section */
}

/* Centrer le texte "Localisation" */
.text-center {
    text-align: center;
}

/* Style de la section Maps */
.maps iframe, .pdf-viewer iframe {
    width: 100%; /* Laisser l'iframe prendre tout l'espace disponible */
    height: 450px;
    border-radius: 5px;
}

/* Style de la visionneuse PDF */
.pdf-viewer {
    text-align: center;
}

.pdf-viewer h2 {
    margin-bottom: 10px;
}