* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sofia', sans-serif;
}

body {
    background: #f4e7d1;
    font-family: "Nunito", sans-serif;
}


/* ---------------------- HEADER---------------------- */


.titre1 {
    width: fit-content;
    display: flex;
    /* justify-content: left; */
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-family: 'Gravitas One', cursive;
    font-size: 2em;
    color: #5a3e2b;
    margin: 2em 1em 1.5em 1em;
}

header img {
    height: 6em;
    margin-left: auto;
    margin-right: auto;
}

nav {
    display: grid;
    grid-template-columns: 5fr 1fr;
    overflow: hidden;
    padding: 1em;
}

nav a {
    color: #5a3e2b;
    background-color: #d2a679;
    text-align: center;
    float: left;
    padding: 0.55em 1em;
    margin: 0.5em;
    text-decoration: none;
    font-family: "Nunito", sans-serif;
    font-weight: 1000;
    border-radius: 0.2em;
}

nav a:hover,
.activer {
    color: #f4e7d1;
    background-color: #c84052;
    box-shadow: 4px 4px 10px rgba(90, 62, 43, 1);
}

.droit {
    margin-left: auto;
}

.image1 {
    width: 10em;
    bottom: 0%;
    right: 0%;
    position: fixed;
}

.flag {
    position: absolute;
    top: 1em;
    right: 2em;
}

.flag img {
    width: 3.5em;
    height: auto;
    margin-left: 0.3em;
}


/* ---------------------- CONTENT quadrillages ---------------------- */


.content {
    display: flex;
    flex-wrap: wrap;
    /* Permet le retour à la ligne */
    justify-content: center;
    /* Centre les sections */
    margin: 1em 3em;
}

section div {
    color: #5a3e2b;
    border-radius: 3px;
    border-width: 5px;
    margin: 2em;
    padding: 1em;
    overflow: hidden;
    display: block;
    width: 24em;
    text-align: center;
    justify-content: center;
    float: left;
}

section div:hover {
    background-color: #ebcb8b;
    box-shadow: 4px 4px 10px rgba(90, 62, 43, 1);
}

section img {
    border-radius: 0.2em;
    border-style: solid;
    border-color: #c84052;
    width: 17em;
    height: 17em;
    text-align: center;
    justify-content: center;
}

section div h2 {
    margin-bottom: 0.3em;
    font-family: "Leckerli One", cursive;
    font-size: 2em;
    height: 2.5em;
}


/* ---------------------- CONTENT detail recette ---------------------- */


section div:hover {
    box-shadow: none;
}

#conteneur {
    background-color: #ebcb8b;
    width: 90em;
    margin: 2em 0em;
}

#conteneur div {
    background-color: #ebcb8b;
    width: 100%;
    margin: 0em;
    padding: 2em 5em 2em 5em;
    justify-content: left;
}

#conteneur h2 {
    margin-bottom: 0.2em;
    font-family: "Leckerli One", cursive;
    font-size: 2.5em;
    height: 2.5em;
    height: fit-content;
}

#conteneur h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 1000;
    font-size: larger;
    width: fit-content;
    margin: 2em 0%;
    margin-right: auto;
}

#conteneur h4 {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    width: fit-content;
    margin: 1em 0%;
    margin-right: auto;
}

#conteneur ul li, span {
    margin: 0em 1.5em;
    font-family: "Nunito", sans-serif;
    font-size: medium;
    font-weight: 400;
    text-align: center;
    align-items: center;        /* centre horizontalement */
    display: inline-flex;       /* on passe en flex */
    flex-direction: column;
    gap: 0.5em;  
}

#conteneur ul {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    text-align: center;
}

#conteneur ol li {
    margin-left: 1.5em;
    margin-top: 1em;
    font-family: "Nunito", sans-serif;
    font-size: large;
    font-weight: 400;
    text-align: left;
}

#conteneur p,
ol {
    margin: 0em 0%;
    font-family: "Nunito", sans-serif;
    font-weight: 400;
    text-align: left;
    margin-right: auto;
    line-height: 2;
}

#conteneur a {
    font-family: "Nunito", sans-serif;
    font-weight: 400;
}

.ingredients {
    width: 4em;
    height: auto;
    border: none;
    margin-top: 2em;
}

/* ---------------------- CONTENT menu ---------------------- */


.titreaccueil {
    font-family: "Leckerli One", cursive;
    color: #5a3e2b;
    text-align: center;
    margin: 1em;
    font-size: 3em;
}

.contentaccueil {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Permet le retour à la ligne */
}

.chat {
    width: 20%;
    height: auto;
    margin: 1em 0em;
    border: none;
}


/* ---------------------- FOOTER---------------------- */


footer {
    text-align: center;
    font-size: 16px;
    width: 100%;
}

footer p {
    padding: 25px;
    color: #5a3e2b;
    font-family: 'Gravitas One', cursive;
}


/* ---------------------- TELEPHONE---------------------- */


@media (max-width: 600px) {
    section img {
        border-radius: 0.2em;
        border-style: solid;
        border-color: #c84052;
        width: 10em;
        height: 10em;
        text-align: center;
        justify-content: center;
    }

    #conteneur div {
        padding: 1em 0em; /* réduit le padding sur mobile */
    }

    #conteneur ul {
        font-family: "Nunito", sans-serif;
        font-weight: 400;
        text-align: left;
    }

    #conteneur ul li {
        flex-direction: row;   
        justify-content: flex-start;
        text-align: left;
        margin-top: 1em;

    }

    .ingredients {
        width: auto;
        height: 1.5em;
        margin-top: 0;
    }

    .flag img {
    width: 3em;
    height: auto;
    margin-left: 0.3em;
}
}

