@import url('https://fonts.googleapis.com/css2?family=Imperial+Script&family=Lobster&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root{
    --color-primary: #234932;
}

*{
    margin: 0;
    padding: 0;
}

/**systhéme de menu**/

nav{
    background-color:var(--color-primary);
    position: sticky;
    z-index: 1000;
    top: 0;
}

.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: 5dvw;
}

.menu-item{
    list-style: none;
}

.menu-link{
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
}

.menu-link:hover{
    background-color: #fff;
    color:var(--color-primary);
}

.label-toggle{
    color: #fff;   
}

nav:has(#menu-toggle:checked) .menu-container{
    display: flex;
}


@media (max-width: 768px){
    .menu-container{
        display: none;
        flex-direction: column;
        gap: 25px;
        padding: 25px 0;
    }

    .hamburger-group{
        display: flex;
    }

  #menu-toggle{
    display: none;
  }
}

#moi img{
    height: 18rem;
    border-radius: 50%;
     
}

/** 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;
    }
}

/** typographie par défaut **/

h1{
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 5rem;
}

h2{
    color: #275339;
}

p{
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style:normal;
    font-variation-settings:"wdth" 100;
}

li{
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/** classes de disgn **/

.bg-primary{
    background-color: var(--color-primary);
    color: #fff;
}

.bg-dark{
    background-color: #1e2e1e;
    color: #fff;
}

.text-center{
    text-align: center;
}

.v-padding{
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.divider path{
    fill: var(--color-primary);
}

.shadow{
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.title-box{
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
}

/*Composants*/
.card{
    display: flex;
    flex-direction: column;
    gap: 2dvh;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;;
}

.card img{
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: auto;
}
.card h3{
    font-size: clamp(1em, 4dvh, 2em);
    padding: 0 2dvh;
}

.card p{
    padding: 3dvh 2dvh;
    font-size: 1.2rem;
}

.card:hover{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: var(--color-primary);
    color: #fff;
    filter: brightness(1.2);
}

.plus{
    padding: 2dvh;
    color:#3d8d6e;
    list-style: none;
    text-decoration: none;
    width: 20dvw;
    font-size: 1.5em;
}

.plus-1{
    
    background-color: var(--color-primary);
    border-radius: 5px;
    padding: 1dvh;
    margin-left:2dvh ;
    color:#fff;
    list-style: none;
    text-decoration: none;
    text-align: center;
    width: 10dvw;
    font-size: 1.5em;
}

.t-mar{
   height:40rem;
}

@media (max-width: 720px){

    .plus-1{
        font-size: 1rem; ;
    }

    .t-mar{
        height: 10rem;
    }
}


/*skill*/

.skill{
    font-family: "Roboto", sans-serif;
    font-style: 1.5rem;
}

.skill progress{
    width: 100%;
    height: 2dvh;
}

form{
    display: flex;
    flex-direction: column;
    gap: 1dvh;
}

form label{
    font-size: 2em;
    font-family: "Roboto", sans-serif;
}

form input,textarea{
    border-radius: 5px;
    border: 1px solid var(--color-primary);
    font-size: 1.5em;
    padding: 10px 20px;
}


form input{
    height: 5dvh;
}

form textarea{
    height: 35dvh;
}

form button{
    background-color: var(--color-primary);
    color: #fff;
    width: 20dvw;
    font-size: 2em;
    border-radius: 10px;
}



