/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Amiri', serif;
    background-color: #f5e6c8;
}

/* mobile first */
header img {
    width: 80px;
    border-radius: 50%;
    border: 3px solid #5c3d0e;
}

#conteneur {
    background-color: #e8c97a;
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto auto auto auto auto;
}

header {
    background-color: #c8973a;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    display: grid;
    justify-items: center;
}

#cont-logo-h1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

nav {
    background-color: #e0aa55;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav a {
    color: #3d2208;
    text-decoration: none;
    padding: 8px 10px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

#accueil {
    background-color: #f0d080;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    padding: 20px;
}

#histoire {
    background-color: #d4a84b;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;
    padding: 20px;
}

#histoire a {
    color: #3d2208;
}

#recette {
    background-color: #e8c060;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 4;
    grid-row-end: 5;
    padding: 20px;
}

/* Galerie : mobile en colonne */
#galerie {
    background-color: #c8973a;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 5;
    grid-row-end: 6;
    padding: 20px;
}

#cont-galerie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.carte-bourek {
    width: 90%;
    text-align: center;
    transition: transform 0.3s;
}

.carte-bourek img {
    width: 100%;
    border-radius: 8px;
}

.carte-bourek p {
    text-indent: 0;
    text-align: center;
    font-weight: bold;
    color: #3d2208;
}

#variantes {
    background-color: #f0d080;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 6;
    grid-row-end: 7;
    padding: 20px;
}

footer {
    background-color: #8b5e18;
    color: #f5e6c8;
    width: 100%;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 7;
    grid-row-end: 8;
    padding: 15px;
    text-align: center;
}

footer a {
    color: #e8c060;
}

#cont-sociaux {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

#cont-sociaux a {
    color: #f5e6c8;
    font-size: 1.5rem;
    text-decoration: none;
}



h1, h2, h3 {
    text-align: center;
    padding: 10px;
    color: #3d2208;
}

p {
    padding: 10px;
    text-align: left;
    text-indent: 10px;
}

ul, ol {
    padding: 10px 30px;
}

li {
    padding: 4px 0;
}

/* desktop */
@media (width > 500px) {

    #conteneur {
        width: 90%;
        margin: auto;
        display: grid;
        grid-template-columns: 25% 50% 25%;
        grid-template-rows: auto auto auto auto auto;
    }

    header {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 1;
        grid-row-end: 2;
    }

    #accueil {
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    #histoire {
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    #recette {
        grid-column-start: 3;
        grid-column-end: 4;
        grid-row-start: 2;
        grid-row-end: 3;
    }

    #galerie {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 3;
        grid-row-end: 4;
    }

    /* desktop : les 3 cartes en ligne */
    #cont-galerie {
        flex-direction: row;
        justify-content: center;
        align-items: flex-end;
    }

    .carte-bourek {
        width: 30%;
    }

    #variantes {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 4;
        grid-row-end: 5;
    }

    footer {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 5;
        grid-row-end: 6;
    }
}
