html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}
main {
    position: relative;
    margin-top: 45px;
    /* padding-bottom: 100px; */
    margin-bottom: 793px;
    min-height: 100vh;
    background-color: cadetblue;

}


/* CSS POUR LE HEADER : */
header {
    display: flex;
    flex-direction: row;
    background-color: rgb(236, 134, 51);
    justify-content: space-evenly;
    position: fixed;
    height: 45px;
    top: 0px;
    left: 0;
    z-index: 500;
    width: 100%;

}
footer {
    display: flex;
    flex-direction: column;

    background-color: rgb(131, 9, 9);
    width: 100%;
    position: relative;
    bottom: 0;



}
.logo-header {
    position: absolute;
    top: 5px;
    width: 50px;
    height: 50px;
}
.header-menu   {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    
}
.header-menu ul  {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}
.header-menu li {
    list-style-type: none;

}

.footer-infos {
    display: flex;
    flex-direction: column;
    align-items: center;


}

.footer-buttons {
    display: flex;
    flex-direction: column;
    /* justify-content: space-evenly; */
    gap: 10px;
    align-items: center
    ;
}

.front-page-button {
color: #fff;
background-color: #1265b9;
width: 300px;
min-height: 40px;
padding: 0;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
font-weight: 500;
font-size: 16px;
line-height: 20px;
letter-spacing: .05em;
/* text-transform: uppercase; */
transition: all .35s ease-in-out;
}
.front-page-button:hover {
color: #fff;
background-color: #22507e;
transition: all .35s ease-in-out;
}

.footer-title {
color: #000000;
font-weight: 600;
font-size: 20px;
line-height: 25px;
margin: 10px;
}

.footer-text {
color: #000000;
font-weight: 400;
font-size: 16px;
line-height: 25px;
/* margin: 14px 0 41px; */
}

.footer-container {
display: flex;
flex-direction: column;
align-items: flex-start;
width: 300px;
min-height: 120px;
}

.footer-logo {
align-items: center;
padding-top: 20px;
box-sizing:border-box ;
}

.footer-menu ul {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
/* width: 100%; */
gap: 60px;
}
.footer-btn-icons{
    width: 20px;
    height: 20px;
}
.logo-footer {
    width: 130px;
    height: 130px;
}


/* AVANT CETTE LIGNE C'EST LE CSS POUR HEADER ET FOOTER */
/* APRES CETTE LIGNE C'EST LE CSS POUR LA PAGE D'ACCEUIL */


#homepage {
        position: relative;
        font-family: 'Arial', sans-serif;
        background: linear-gradient(to top right, rgb(209, 209, 209), rgb(182, 182, 182));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100vh;
        margin: 0;    
}

#homehead {
    width: 100vw;
    background-image: url('/sources/img/homepage_head_800-1920.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; /* Changed to relative to position the pseudo-element correctly */
    top: 0px;
    height: auto; /* Set by JavaScript */
    overflow: hidden; /* Ensures the pseudo-element doesn't exceed the div */
}

#homehead::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
    z-index: 1; /* Ensure it's above the background image but below the content */
}

#direct-links {
    position: relative;
    top: -40px;
    width: 80vw;
    /* height: 40vh; */
    display: flex;
    flex-direction: row;
	align-items: center;
	justify-content: space-around;
    background-color: rgb(255, 255, 255);
    z-index: 50;
}

.links-cards {
    text-align: center;
    padding: 10px;
}

.home-actualites {
    display: flex;
    width: 100%;
    align-items: center;
    background: #F8F8F8;
    flex-wrap: wrap;
}

 /* Extra small devices */
@media (max-width: 320px){

}
/* Small devices */
@media (min-width: 321px) and (max-width: 768px){

}
/* Medium  devices */
@media (min-width: 769px) and (max-width: 992px){
.footer-infos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 10px;

}
.footer-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center
    ;
}
}
/* Large  devices */
@media (min-width: 993px) and (max-width: 1200px){
.footer-infos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center ;
    padding-top: 10px;
}
.footer-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center
    ;
}
}
/* Extra large  devices */
@media (min-width: 1201px) {
.footer-infos {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 10px;
}
.footer-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center
    ;
}
}