#body_page_infos {
    overflow-y: auto;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Modifier la règle .fond pour permettre le scroll */
.fond {
    position: relative;
    width: 100%;
    height: calc(100vh - 5em);
    padding: 0;
    margin: 0;
    /* Assurer qu'il n'y a pas de marge */
    max-width: 100%;
    overflow: visible;
    z-index: 1;
    background-image: url("../img/cst-fond-index.jpg");
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;


    /* Ajouter ces propriétés pour supprimer tout espace */
    display: block;
    border: none;
}

/* S'assurer que la navbar n'a pas de marge inférieure */
.navbar {
    height: 5em;
    margin-bottom: 0;
    box-sizing: border-box;
}

.info-section:last-child {
    margin-bottom: 3rem;
}

/* Ajuster le conteneur */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* Changer 2rem en 0 pour enlever la marge haute */
    padding: 2rem 1rem 3rem;
}

.header {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

.header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    background-color: #1c1d22;
    color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid #2a2b30;
}

.info-section h2 {
    color: #e40613;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e40613;
    display: flex;
    align-items: center;
}

.info-section h2::before {
    content: "•";
    margin-right: 10px;
    color: #e40613;
}

.horaires {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.groupe {
    flex: 1;
    min-width: 300px;
    background: #232429;
    color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2b30;
    transition: transform 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.groupe:hover {
    transform: translateY(-5px) translateZ(0);
}

.groupe h3 {
    color: #e40613;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.groupe h3::before {
    content: "→";
    color: #e40613;
}

.horaire-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a2b30;
}

.horaire-item:last-child {
    border-bottom: none;
}

.horaire-jour {
    color: #fff;
}

.horaire-heure {
    color: #e40613;
    background-color: rgba(228, 6, 19, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.conditions {
    background-color: #232429;
    color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #e40613;
    margin-top: 1.5rem;
}

.conditions p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.conditions p:last-child {
    margin-bottom: 0;
}

.conditions p::before {
    content: "✓";
    color: #e40613;
    margin-right: 10px;
}

.fichiers-container {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fichier-item {
    background-color: #232429;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2b30;
}

.fichier-item:hover {
    background-color: #2a2b30;
    transform: translateY(-3px);
}

.fichier-icon {
    font-size: 2.5rem;
    color: #e40613;
    margin-bottom: 1rem;
}

.fichier-titre {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.fichier-bouton {
    display: inline-block;
    background-color: #e40613;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.fichier-bouton:hover {
    background-color: #c1050f;
}


/*Style du formulaire*/
.contact-form {
    background-color: #1c1d22;
    color: #fff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2b30;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #2a2b30;
    background-color: #232429;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e40613;
    outline: none;
    box-shadow: 0 0 5px rgba(228, 6, 19, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: #e40613;
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #c1050f;
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Styles pour les messages */
#form-message {
    font-weight: bold;
    text-align: center;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Version mobile */
@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form button {
        width: 100%;
        text-align: center;
    }
}











/*--------------------------Style de la page en dessous de 600px de large--------------------------*/
@media (max-width: 600px) {
    .bloc_bouton_menu_mobile {
        display: block;
    }

    .horaires {
        flex-direction: column;
    }

    .header h1 {
        font-size: 2rem;
    }

    .fichiers-container {
        grid-template-columns: 1fr;
    }

    .fichiers-container {
        grid-template-columns: 1fr;
    }

    .groupe {
        min-width: 100px;
        border-radius: 10px;
        padding: 1.5rem;
    }
}