header,
footer {
    position: relative;
    z-index: 100;
}

body {
    background: var(--BG);
    color: var(--Gris3);
    margin-top: 4rem;
    margin-left: 0rem;
    margin-right: 0rem;
    padding: 0;
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}



.corps {
    width: 90%;
    max-width: 1600px;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*border-radius: 8px;*/
}


@media screen and (max-width:768px) {
    body {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 0.95rem;
    }

    h3 {
        font-size: 0.87rem;
    }

    .Marge_main {
        margin-top: 0rem;
    }

    .CacherMobile {
        display: none;
    }

    .corps {
        width: 98%;
        padding: 10px;
    }


    .row .illustration {
        flex-direction: column;
        display: flex;
        width: 40%;

    }

    .row .texte {
        flex-direction: column;
        display: flex;
        width: 60%;
    }
}

@media screen and (min-width:768px) {
    .Marge_main {
        margin-top: 1rem;
    }

    .CacherOrdi {
        display: none;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .row .illustration {
        flex-direction: column;
        display: flex;
        width: 25%;

    }

    .row .texte {
        flex-direction: column;
        display: flex;
        width: 75%;

    }
}


main {
    flex: 1;
    margin-top: 1.5rem;
}


#admin {
    background-color: var(--BGadmin);
}


h4,
h5,
h6 {
    color: var(--Noir);
}


h1 {
    color: var(--Vert3);
    font-weight: bold;
}

h2 {
    color: var(--Bleu3);

}

h3 {
    border-bottom: 2px solid var(--Bleu3);
    color: var(--Bleu2);
    padding-bottom: 10px;
}

h4 {
    font-size: 13px;
    background: var(--bleu3);
    border-bottom: 1px solid #dedede;
}


#admin h1 {
    color: var(--Rouge3);
    font-weight: bold;
}

.Marge_main {
    margin-top: 1rem;
}

p {
    margin: 0px;
}


hr {
    border: none;
    height: 2px;
    background-color: var(--Vert2);
    margin: 10px 0;
}

#admin hr {
    border: none;
    height: 2px;
    background-color: var(--Rouge1);
    margin: 10px 0;
}

.TableTresorie {
    font-size: 1rem;
    border-collapse: collapse;
    border: 1px solid black;
}

.TableTresorie th,
.TableTresorie td {
    border: 1px solid black;
}

.centered-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event {
    border: 1px solid var(--Gris1);
    border-radius: 15px;
    margin-bottom: 10px;
    color: #000000;
    max-width: 300px;
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

@media screen and (max-width: 700px) {

    .link-button,
    .link-header {
        width: calc(100% - 10px);
    }

    .annuaire-carte {
        width: calc(100% - 20px);
    }

    .link-interelu-liste {
        width: 70%;
        margin: 0 auto;
    }
}

@media screen and (min-width: 700px) {

    .link-button,
    .link-header {
        width: 65%;
        margin-left: auto;
        margin-right: auto;
    }

    .annuaire-carte {
        /*width: 400px;*/
        margin-left: auto;
        margin-right: auto;
    }

    .link-interelu-liste {
        width: 50%;
        margin: 0 auto;
    }
}

.link-button {
    /*background-color: var(--Vert1);*/
    border-radius: 5px;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.link-button:hover {
    transform: scale(1.05);
}

.link-button a,
.link-button {
    color: var(--Bleu3);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.link-button:hover a,
.link-button:hover {
    color: var(--Bleu2);
}

.link-button img.photo-circle {
    margin: 5px;
}

.button-texte {
    text-align: center;
    flex-grow: 1;
}

.extra-links {
    display: none;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}

.extra-link {
    margin: 0 5px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.extra-link img {
    width: 35px;
    height: 35px;
    display: block;
    margin: 0 auto;
}

.link-category-title {
    text-align: center;
}

.grid-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    grid-gap: 25px;
    /* Gap between items */
    width: 100%;
    padding: 25px;
    /* Padding around the grid */
    box-sizing: border-box;
    /* Ensures padding is included in width */
}

.gril-menu-lien {
    height: 3rem;
    min-width: 8rem;
}

.gril-menu-lien a,
.gril-menu-lien a button {
    height: 100%;
    width: 100%;
}

textarea {
    height: auto;
    min-height: 50px;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}


.commentaire {
    color: var(--Gris1);
}