@import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&family=Roboto:wght@300&display=swap');

:root{
    --body-font: 'Roboto', sans-serif;
    --title-font: 'ADLaM Display', cursive;
    --global-padding: 0.5rem 2.5rem;
    --background-color: #EDFFEA;
    --background-color-darker: #c0fbb4;
    --background-color-darkest: #58854fFE;
    --text-color-green: #049B00; 
    --text-color-black: #000;
    --text-color-grey: #373a3c;
    --shadow: 3px 3px 3px #aaa;
    --radius: 50px 50px 50px 180px;
    --inverted-radius: 50px 180px 50px 50px;

    --tablet: 989px;
    --mobile: 768px;
}

*{
    box-sizing: border-box;
    font-family: var(--body-font);
    color: var(--text-color-black);
    transition: all 0.75s ease-in-out;
}

html {
    scroll-behavior: smooth;
  }

h1,h2,h3,h4,h5,h6{
    font-family: var(--title-font);
    font-weight:normal;
}

body{
    margin:0;
    padding:0;
    background-color: var(--background-color);
}

header{
    position: relative;
    padding: var(--global-padding);
    background-color: var(--background-color);
    display:flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

header i{
    color: var(--text-color-black);
    cursor: pointer;
}

header img {
    height: 100px;
}

header nav{
    display:flex;

}

header nav ul{
    margin:0;
    padding:0;
    display:flex;
    gap:20px;
}

header nav ul li{
    list-style-type: none;
    font-weight:600;
}

header nav ul li a{
    font-family: var(--title-font);
    transition: color 0.5s ease-in-out;
    letter-spacing: 0.11rem;
}

header nav ul li a:hover{
    color: var(--text-color-green);
}

.jumbotron{
    width:96%;
    height: 50vh;
    margin:auto;
    margin-top: 2.5rem;
}

.jumbotron div{
    width:100%;
    height:100%;
    border-radius: var(--radius);
    background: var(--text-color-black);
    padding: 5rem 7.5rem;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position:relative;
}

.jumbotron div h1{
    position:relative;
    margin-top:0;
    padding-top:0;
    z-index:2;
    color:white;
    text-align:initial;
    font-size:3rem;
}

.jumbotron div p{
    position:relative;
    font-size:1.8rem;
    z-index:2;
    color:white;
    width:50%;
}

.jumbotron img{
   position:absolute;
   opacity: 0.75;
   z-index:1;
   width:100%;
   height:100%;
   object-fit: cover;
   object-position: top;
   top:0; left:0; right:0; 
   bottom:0;
   border-radius: var(--radius);
}

.about{
    background:var(--background-color-darker);
    display:flex;
    justify-content: flex-end;
    width:100%;
    margin: 5rem auto;
    padding: 5rem 5rem;

    height: 60vh;
}

.about .img-container{
    width:60%;
    height:100%;
    padding: 0 5rem;
    position:absolute;
    left:1rem;

}

.about .img-container img{
    width:100%;
    height:70%;
    aspect-ratio: 3/2;
    object-fit:cover;
    border-radius: var(--inverted-radius);
    box-shadow: var(--shadow);
    transition: all 0.5s ease-in-out;

}

.about .text-container{
    width: 40%;
    padding: 0 5rem;
}

.competences{
    width:100%;
    margin: 0rem auto;
    padding: 5rem 5rem;

    /* Commenter si inversion section */
    margin-top: 10rem;
}

.competences-container{
    margin: 0rem auto;
    padding: 0rem 0rem;
    display:flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.compt-details{
    width:75%;
    display:flex;
    flex-wrap: wrap;
    gap:20px;
}

.compt-info{
    background: var(--background-color-darker);
    border-radius:25px;
    width:40%;
    padding: 1rem 2.5rem;
}

.compt-details .item{
    flex-basis: 29.1%;
}

.icon-frame {
    width: 6rem;
    height: 6rem;
    border-radius:25px;
    padding: 0.5rem;
    background: var(--background-color-darkest);
    display:flex;
    align-items: center;
    justify-content: center;
}

.realisations{
    width:100%;
    margin: 0rem auto;
    padding: 5rem 5rem;
    display:flex;
    flex-direction: column;
}


.realisations-container{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    width: 100%;
}

.realisations-container figure{
    padding: 0;
    margin: 0;
    height: auto;
    flex-basis: 30.5%;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-sizing: border-box;
    border-radius: 50px;
    box-shadow: 3px 3px 3px #333;
}

.realisations-container figure img{
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50px;
}

.realisations-container figure video{
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50px;
}

footer{
    background: var(--background-color-darkest);
    width:100%;
    padding: 2.5rem 5rem;
    min-height:25vh;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

footer .contact {
    display:flex;
    gap: 50px;
}

footer .sitemap{

}

footer .sitemap ul{
    list-style-type: none;
    padding:0;
    margin:0;
}

footer .sitemap ul li {
    margin-bottom:0.85rem;
}

footer .sitemap ul li a {
    color: white;
    letter-spacing: 0.11rem;
}

footer p {
    color: white;
    font-size: 1rem;
}

footer h2 {
    font-size: 1.6rem;
}

.m-only{
    display:none !important;
}

.d-only{
    display:block;
}

a, a:visited, a:focus {
    text-decoration: none;
    color: var(--text-color-black);
    cursor: pointer;
}

b, strong, u, h2{
    color: var(--text-color);
    font-weight:normal;
}

p, a, span, label, ul, li, h2 {
    font-size: 1.15rem;
    font-weight:normal;
}

p{
    color:var(--text-color-grey);
    line-height: 2rem;
    letter-spacing: 0.11rem;
}

h1{
    text-align:initial;
    margin-top:0px;
    font-size:2.2rem;
}

.bold{
    font-weight: 600;
}

i{
    font-size: 3rem;
    color:white;
}

@media screen and (max-width:1480px){
    .about .img-container{
        width:50%;
        padding: 0 1rem;
        left: 4rem;
    }

    .about .text-container{
        width: 40%;
        padding: 0 2.5rem;
    }

    .compt-details .item{
        flex-basis: 48%;
    }

    .realisations-container figure{
        flex-basis: 47%;
    }
}

@media screen and (max-width:1180px){
    header i{
        color: var(--text-color-black);
        cursor: pointer;
        font-size:2rem;
    }
    
    header img {
        height: 65px;
    }

    .jumbotron{
        width:100%;
        height: 60vh;
        min-height: 400px;
        margin-top: 0;
        margin-left:auto;
        margin-right:0;
    }
    
    .jumbotron div{
        width:100%;
        height:100%;
        background: var(--text-color-black);
        padding: 2.5rem 3rem;
        border-radius:0;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        position:relative;
    }
    
    .jumbotron div h1{
        position:relative;
        margin-top:0;
        padding-top:0;
        font-size:3rem;
        z-index:2;
        color:white;
    }
    
    .jumbotron div p{
        position:relative;
        font-size:1.8rem;
        z-index:2;
        color:white;
        width:75%;
    }
    
    .jumbotron img{
       position:absolute;
       opacity: 0.75;
       z-index:1;
       width:100%;
       height:100%;
       object-fit: cover;
       object-position: top;
       top:0; left:0; right:0; bottom:0;
       border-radius:0;
    }

    .about{
        display:flex;
        flex-direction: column;
        width:100%;
        margin: 0rem auto;
        padding:5rem 1.5rem;
        height: auto;
    }
    
    .about .img-container{
        width:100%;
        aspect-ratio: 5/3;
        padding: 0 2.5rem;
        margin-bottom: 2.5rem;
        overflow:hidden;
        position:relative;
        left:0;
    }
    
    .about .img-container img{
        width:100%;
        height:100%;
        margin:auto;
        padding:0 0;
        object-fit:cover;
        border-radius:50px;
        box-shadow: var(--shadow);
    
    }

    .about .text-container{
        width: 100%;
        padding: 0 2.5rem;
    }

    .competences{
        width:100%;
        margin: 0rem auto;
        padding: 2.5rem 2.5rem;
    }

    .competences-container{
        margin: 0rem auto;
        padding: 0rem 0rem;
        display:flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap:30px;
    }

    
    .compt-details{
        width:100%;
        display:flex;
        flex-wrap: wrap;
        flex-direction: column;
        gap:20px;
    }

    .compt-details .item{
        gap:20px;
        flex-basis: 29.1%;
    }

    .compt-info {
        width:100%;
    }


    .icon-frame {
        width: 6rem;
        height: 6rem;
        border-radius:25px;
        padding: 0.5rem;
        background: var(--background-color-darkest);
        display:flex;
        align-items: center;
        justify-content: center;
    }

    .m-only{
        display:block !important;
    }
    
    .d-only{
        display:none;
    }

    h1{
        text-align:initial;
        margin-top:0px;
    }

    p, a, span, label, ul, li, h2 {
        font-size: 1rem
    }

    .realisations{
        width:100%;
        margin: 0rem auto;
        padding: 5rem 2.5rem;
        display:flex;
        flex-direction: column;
    }

    .realisations-container figure{
        flex-basis: 45.8%;
    }

}

@media screen and (max-width: 768px){
    .jumbotron div p{
        position:relative;
        font-size:1.8rem;
        z-index:2;
        color:white;
        width:90%;
    }

    .about{
        display:flex;
        flex-direction: column;
        width:100%;
        margin: 0rem auto;
    }
    
    .about .img-container{
        width:100%;
        padding: 0 1.5rem;
        margin-bottom: 2.5rem;
        overflow:hidden;
    }
    
    .about .img-container img{
        width:100%;
        height:100%;
        margin:auto;
        padding:0 0;
        object-fit:cover;
        border-radius:50px;
        box-shadow: var(--shadow);
    
    }
    
    .about .text-container{
        width: 100%;
        padding: 0 1.5rem;
    }

    .icon-frame {
        width: 6rem;
        height: 6rem;
        border-radius:25px;
        padding: 0.5rem;
        background: var(--background-color-darkest);
        display:flex;
        align-items: center;
        justify-content: center;
    }

    .realisations-container figure{
        flex-basis: 100%;
    }

    footer{
        flex-direction: column;
        padding: 2.5rem 1.5rem;
    }

    footer .sitemap{
        width:100%;
    }
}

.menu{
    position:fixed;
    top:0px;
    left:-500px;
    width:300px;
    display:flex;
    flex-direction: column;
    height:100vh;
    padding: 2rem;
    z-index:6;
    background: var(--background-color-darkest);

}

.menu h2{
    font-size:1.6rem;
}

.menu  ul{
    list-style-type: none;
    padding:0;
    margin:0;
}

.menu ul li {
    margin-bottom:1.25rem;
}

.menu ul li a {
    color: white;
    letter-spacing: 0.11rem;
    transition: all 0.2s ease-in-out;
    padding-bottom:0.5rem;
}

.menu ul li a:hover {
    border-bottom: 2px solid white;
    letter-spacing: 0.11rem;
}

.menu.show{
    left:0px;
}