@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Outfit:wght@100..900&display=swap');

:root{
    --color-primary:rgb(102, 153, 189);
    --bg-primary-text:white;
}

*{
    margin: 0;
    padding: 0;
}

nav{
    background-color: var(--color-primary)
}

.menu-container, .hamburger-group{
    display: flex;
    min-height:10dvh;
    justify-content: space-evenly;
    align-items: center;
    font-size: 2em;
}

.hamburger-group{
    display: none;
    justify-content: end;
    padding-right: 3dvw;
}

.menu-item{
    list-style: none;
}

.menu-link{
    color: rgb(250, 250, 250);
    text-decoration: none;
    padding:  5px 15px;
    border-radius: 5px;
    transition: background-color 350ms;
}

.menu-link:hover{
    background-color: rgb(255, 255, 255);
    color: gray;
}

.label-toggle{
    color: white;
}

@media (max-width:800px){
    .menu-container{
        display: none;
        flex-direction: column;
        gap: 20px;
        padding: 25px 0;
    }

    .hamburger-group{
        display: flex;
    }
}

nav:has(#menu-toggle:checked) .menu-container{
    display: flex;
}

#menu-toggle{
    display:none;
}

nav{
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/** système de grilles **/

.grid{
    display: grid;
    grid-template-columns: 1fr;
    padding: 5dvh 10dvw;
    gap: 20px;
}

@media(min-width: 768px){
    .grid-2-1{
        grid-template-columns: 2fr 1fr;
    }
    .grid-1-1-1{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.bg-primary{
    background-color: var(--color-primary);
    color: var(--bg-primary-text);
}

.bg-dark{
    background-color: black;
    color: white;
}

p{
    font-size: clamp(1em, 4vh, 1.5em);
    font-family: "Outfit", sans-serif;
}

h1{
    font-size: clamp(1em, 5vh, 3em);
    font-family: "Lexend", sans-serif; 
    font-weight: 400;
}

/* spacing */
.v-padding{
    padding-top: 5vh;
    
}

.text-center{
    text-align: center;
}
.divider path{
    fill: var(--color-primary);
}

.shadow{
    filter: drop-shadow(0 5px 10px rgba(82, 82, 82, 0.438) );
}

.title-box{
    font-size: 2rem;
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.small{
    font-size: 1rem;
    font-weight: 75;
}

.card{
    display: flex;
    flex-direction: column;
    gap: 2dvh;
    border-radius: 10px;
    box-shadow: rgb(87, 87, 87) 0px 4px 19px; 
}
.card img{
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: auto;
}
.card h3{
    font-size: clamp(1em, 4vh, 2em);
    padding: 0 2dvh;
}
.card p{
    font-size: 1em;
    padding: 2dvh;
}
.card:hover{
    background-color: var(--color-primary);
    color: white;
    filter: brightness(1.2);
}
/*skill*/
.skill{
    font-size:2em ;
    font-family: "Lexend", sans-serif;
}

.skill progress{
    
    width: 100%;
    height: 2dvh;
}

/* form */
form{
    display: flex;
    flex-direction: column;
    gap: 1dvh;
}

label{
    font-size: 1em;
    font-family: "Outfit", sans-serif;

}
input, textarea{
border-radius: 5px;
border: 1px solid rgb(93, 145, 189);
padding: 2px 10px;
}

input{
    height: 3dvh;
}

textarea{
    height: 20dvh;
}

button{
    background-color: var(--color-primary);
    color: white;
    padding: 10px;
    font-size: 1em;
    max-width: 200px;
    border-radius: 10px;
}
.card a{
    text-decoration: none;
    color: black;
}
.card a:hover{
    text-decoration: none;
    color: var(--bg-primary-text);
}
.BottomFooter{
    padding-top: 15px;
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 5dvh;
    
}
.BottomFooter a{
    text-decoration: none;
    color: rgb(255, 255, 255);
}
.BottomFooter a:hover{
    text-decoration: underline;
}
.mentions{
    display: flex;
    flex-direction: column;
    padding: 0px 30px 65dvh 70px ;
    background-color: rgb(255, 255, 255);
    gap: 10px;
    font-size: 13px;
}
.profil{

    width: 20dvb; 
    max-width: 500px;   
    margin: 0 ;            
    display: flex;
    justify-self: center;
}
.profil img{
     max-width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}
@media(min-width: 768px){
    .profil{
        width: 25dvb; 
        padding-left: 0px;
        display: unset;
    }
}
.flèche{
    padding: 40px;
}
.flèche img{
    width: 40px;
}