

/* Hero */

.hero{
    width: 100%;
    height: 90vh;
    overflow: hidden;
    background-color: #ffffff;
    filter: brightness(1);
}
.hero .texte{
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    
}
.hero h2{
    padding-left: 5vw;
    padding-top: 1vw;
    position: absolute; 
    font-size: clamp(40px, 4vw, 60px);
    color: #232754;
    z-index: 11;
}
.hero h3{
    padding-left: 5vw;
    padding-top: clamp(70px, 10vw, 110px);
    position: absolute;
    font-size: clamp(15px, 2vw, 25px);
    font-weight: lighter;
    color: #232754;
    z-index: 11;
}
.fond{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 10;
}
.hero img{
    position: absolute;
    bottom: 0;
    right: -5%;
    width: 110%;
}
.hero a{
    font-style: italic;
    font-weight: lighter;
    text-decoration: underline;
    font-size: clamp(10px, 1vw, 20px);
}

/* En-tête */
    
nav{
    background-color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
    padding-right: 20px;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(35, 39, 84, 0.4);
}
.logo{
    height: 60px;
}
a{
    z-index: 100;
    text-decoration: none;
    color: #232754;
}
nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* Corps */

body{
    margin-top: 80px;
    background-color: #f0f0f0;
    font-family: 'outfit', sans-serif;
    margin: 0;
    padding: 0;
    color: #232754;
}
main{
    max-width: 1200px;
    margin: auto;    
    background-color: #f0f0f0;
    padding-top: 10vh;
    padding-bottom: 15vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    grid-gap: 3%;
}
main section{
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
main img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.croquis{
    display: none;
}


/*Descriptions dynamiques*/

section:hover .image.visible{
    opacity: 0.2;
}
section:hover .description{
    opacity: 1;
}
section{
    position: relative
}
.description{
    text-align: end;
    position: absolute;
    top: 0;
    right: 1vw;
    display: flex;
    flex-direction: column;
    opacity : 0;
    width: 90%;
}
.description h2,.description h3,.description h4{
    margin: 0;
    padding: 0;
    text-align: end;
}
.description h2{
    font-size: 3cqw;
}
.description h3{
    font-size: 2cqw;
}
.description h4{
    font-size: 2cqw;
    font-weight:lighter;
}
h1{
    position: absolute;
    opacity: 0;
}

/* Pied de page*/

footer{
    margin-top: 50px;
    margin-bottom: -6px;
    background-color: rgb(35, 39, 84);
    height: 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
footer p{
    font-weight: 200;
    font-size: 0.8em;
    color: white;
}
footer a{
    color: white;
    text-decoration: none;
}
.logo-blanc{
    height: 50px;
    margin-left: 5vw;
}
.logo-reseaux{
    height: 20px;
    width: 20px;
    margin-right: 30px;
}

/*Effet fondu*/

.image{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.image.visible{
    opacity: 1;
    transform: translateY(0);
}
.image.once-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bordures 

.description{
    border: 3px solid rgb(0, 231, 23);
}
section{
    border: 3px solid rgb(255, 2, 2);
}
div{
    border: 3px solid rgb(0, 231, 23);
}
H1, h2, h3, h4{
    border: 3px solid rgb(62, 0, 231);
}
p{
    border: 3px solid rgba(231, 212, 0);
}

*/