.main-content {
    max-width: 90%;
    margin: 0 auto;
}

/* Style pour la grille */

.grid-container {
    display: grid;
    grid-template-columns: 2fr 2fr; 
    grid-template-rows: 2fr;
    min-height: 80vh;
    border: none;
    padding: 2vh;
    padding-left: 4vh;
    padding-right: 4vh;
    row-gap: 1rem;
    column-gap: 2rem;
    overflow: hidden;
}

/* Media Queries pour la mise en page mobile */

@media (max-width: 915px) {

    .boximageprofil {
        width: 80%;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Une seule colonne pour les écrans étroits */
        grid-template-rows: auto 1fr auto; /* Légère modification pour le placement du footer */
        padding-left: 2vh;
        padding-right: 2vh;
    }

    .main-content {
        grid-column: 1 / span 1; /* Occupe la colonne unique */
    }

}


/* Style pour l'image de profil */

.boximageprofil {
    max-width: 50vh;
    max-height: 50vh;
    aspect-ratio: 1/1;
    border : none;
	box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    border-radius: 50%;
    overflow: hidden;
}

.imageprofil {
	width: 100%;
    height: 100%;
    display: flex;
    object-fit: contain;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.imageprofil img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Style pour la biographie */

.boxbiographie {
	max-width: 100%;
    border : none;
    box-sizing: border-box;
    display: flex;
    flex-flow: column wrap;
    margin: 20px auto;
    padding: 20px;
    justify-content: center;
}

.boxbiographie p {
    text-align: justify;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    margin: 0;
    padding: 0;
    line-height: 20px;
    margin-bottom: 2vh;

}

/* Style pour la boîte de contact */ 

.boxcontact {
    min-width: 100%;
    align-items: center;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    margin-top: 20px;
    overflow: hidden;
    justify-content: center;
    border: none;
}

h1 {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 16px;
}

form {
    min-width: 80%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #e5bfea;
    margin-bottom: 40px;
    margin-right: 20px;
    margin-left: 20px;
    box-sizing: border-box;
}

.labelcontact label {
    display: block;
    margin-bottom: 5px;
    box-sizing: border-box;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    margin-top: 4px;
    border: 1px solid #e5bfea;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    max-height: 30vh; 
    overflow: auto;
    resize: none;
}

button {
    background-color: #e5bfea;
    color: #390042;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: 'PoliceTexte', sans-serif;
}

button:hover {
    background-color: ;
    color: white;
}

/* Style pour les évènements */

.boxevent {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    border: none;
}

.boxevent p {
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 20px;
    margin-bottom: 2vh;
}

.eventpast {
    opacity: 40%;
    text-decoration-color: #390042;
}

.eventpast a:link, a:visited {
    text-decoration: underline;
    text-decoration-color: #390042;
    color: #390042;
}

.eventpast a:hover {
    color: #e5bfea;
}

.eventnow {
    background-color: #e5bfea;
}

.eventnow a:hover {
    background-color: white;
    z-index: 99;
}

.eventnow a:link, a:visited {
    text-decoration-color: #390042;
    color: #390042;
}

.eventfuture a:link, a:visited {
    text-decoration: underline;
    color: #390042;
}

.eventfuture a:hover {
    background-color: #e5bfea;
}