.root {
    font-size: 16px;


}
@font-face {
    font-family: 'Texte';
    src: url(fonts/Inter_18pt-Regular.ttf);
}
@font-face {
    font-family: 'Titre';
    src: url(fonts/Poppins-Medium.ttf);
}


html,
body {
    min-height: 98vh;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: #FDF7F2;
    color: #3E4751;
}

.menu {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 1rem;

}

.menu a {
    text-decoration: none;
    font-size: 18px;
    color: #3E4751;
}

.menu .sucre a {
    color: #D42816;
}

.menu .sale a {
    color: #637F43;
}

.menu a:hover,
.menu li.active a {
    text-decoration: underline;

}

#main {
    flex-grow: 1;
    margin: auto;
    padding: 100px 100px 100px 300px;
    font-size: 16px;

}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 26px;
    margin-top: 50px;
}

.wrapper {
    font-size: 114Opx;
    margin: auto;
}

/* header */

#header,
#footer {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    background: #fff;
    box-shadow: 0 0 0.2rem black;
}

nav {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;

}

#header input {
    background-image: url(les_images/search.svg);
    background-repeat: no-repeat;
    background-position: right;
    border-radius: 5px;
    width: 300px;
    height: 30px;
    border: 1px solid #333;

}

/* main */


.recettes {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.recette {
    width: 360px;
    height: 360px;
    border-radius: 0.5rem;
    box-sizing: border-box;
    cursor: pointer;

}

.recette-sucre {
    background-color: #FCE4EC;
    box-shadow: 0 0 0.2rem rgb(224, 116, 116);
}

.recette-sale {
    background-color: #EEF7E8;
    box-shadow: 0 0 0.2rem rgb(60, 117, 85);

}

.recette-titre {
    text-align: center;
    font-size: 20px;

}

img {
    border-radius: 0.5rem 0.5rem 0rem 0rem;

}

.carre-contenu {
    padding: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.field input {
    border: 1px solid #333;
    border-radius: 5px;
    height: 25px;
}


.field textarea {
    border: 1px solid #333;
    border-radius: 5px;
    height: 150px;
}

.col {
    width: 48%;
}

.row {
    display: flex;
    gap: 2rem;
}

[type="submit"] {
    width: 100%;
    height: 30px;
    background: unset;
    border: unset;
    background-color: #333;
    color: #FFF;
    cursor: pointer;
    box-shadow: 0 0 .1rem #000;
}

[type="submit"]:hover {
    color: #333;
    background-color: #FFF;
    border: 1px solid #333;
    box-shadow: 0 0 .2rem #000;
    transform: translate(2px, 2px);
}

@media screen and (max-width: 1200px){
    
    :root{
        font-size: 16px;
    }

    .wrapper{
        width: auto;
        margin: unset;
        padding: 0 2rem;
    }
}


@media screen and (max-width: 476px){

    #header,#footer {
        flex-direction: column;
        align-items: center;
        
    }
    nav{
        align-self: stretch;
        display: flex;
        justify-content: space-between;
    }
    #header input {
        display: none;
    }
   #main{
   padding: 2rem;
}
.row {
    display: flex;
    flex-direction: column;
    width: 200%;
}
}
    
@media print{
    #header{
        display: none;
    }
}