@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Cormorant:ital,wght@0,300..700;1,300..700&family=Shadows+Into+Light&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: auto;
    font-family: "Caveat Brush", cursive;
}


/* classes générales */

.flex {
    display: flex;
}

.rose {
    color: #e6406f;
}

.reverse {
    flex-direction: row-reverse;
}

hr {
    margin: 10px auto;
    width: 30px;
    padding: 3px 10px;
    background-color: #e6406f;

}

/* On s'occupe du header en premier */

header {
    padding: 30px 0;
    background-image: url(../img/planches.jpg);
    background-size: 100% 110%;
    height: 700px;
}

.titre {
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 30px;
    text-align: center;
}

.titre span {
    position: relative;
    font-size: 20px;
    bottom: 10px;
    left: 1px;
}

.titre span::after {
    content: "-";
    position: relative;
    top: 10px;
    right: 8px;
}

header nav {
    display: flex;
    justify-content: space-between;
}

header nav div {
    padding-left: 50px;
}

header nav div hr:not(header nav div h1 hr) {
    padding: 5px 0;
    width: 30px;
    margin: auto;
    background-color: #e6406f;
}


/* on met le ul flex */
header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

/* On se charge des A */
header nav ul li a {
    padding: 0 25px;
    text-decoration: none;
    font-size: 20px;
    color: black;
    text-transform: uppercase;
}



/* Cerf au milieu */

#parent-cerf {
    display: flex;
    align-items: end;
    height: 50%;
    justify-content: center;
    position: relative;
}

#cerf {
    border-top: 150px solid #e6406f;
    border-left: 150px solid transparent;
    width: 150px;
}

#cerf img {
    position: absolute;
    width: 150px;
    bottom: 5%;
    right: 42%;
}

/* Fleche sous le cerf */

#fleche-parent {
    height: 250px;

}

#fleche-parent a {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
}

#clickfleche {
    transform: rotate(-135deg);
    border-top: 2px solid #e6406f;
    border-left: 2px solid #e6406f;
    font-size: 70px;
    width: 40px;
    height: 40px;
    color: #e6406f;
}


/* section */

#presentation h2 {
    font-size: 40px;
}

#presentation h2,
#presentation p {
    font-family: sans-serif;
}

#presentation p {
    width: 90%;
    font-family: sans-serif;
    font-size: 12px;
    text-align: center;
}



#presentation p.rose {
    margin: 20px 0;
    font-weight: bold;
    text-transform: uppercase;
}

/* la section asperges */

.asperges-moules {
    height: 400px;
}

.asperges-moules>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    padding: 40px;
}

.asperges-moules>div:last-child {
    width: 60%;

    img {
        width: 100%;
        height: 100%;
        transform: rotateY(180deg);
    }
}

/* pour les graines de moules */
.asperges-moules>div:first-child>div {
    padding-top: 30px;
    width: 200px;
}

.asperges-moules>div:first-child>div>img {
    width: 100%;
}


/* Savon */

.savon>div:first-child {
    inline-size: 70%;
}

.savon>div:first-child>img,
.savon>div:last-child img {
    width: 100%;
    height: 100%;
}

/* Je réduis les taille des images */
.savon > div:last-child >div > img {
    width: 200px;
}

.savon>div:last-child {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}



/* Image des graines */
.savon>div:last-child>div>img {
    margin: 0 0 30px 0;
}



/* Oeufs */
#oeuf {
    width: 100%;
    height: 520px;
    background-image: url(../img/eggs.jpg);
    background-size: cover;
}


/* Footer  */

footer {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url("../img/motif.jpg");
}


/* Coté texte */
footer div:first-child {
    margin: 0 40px;
}

.margin-top-p {
    margin-top: 10px;
}

/* Coté logos */

footer div:last-child {
    height: 180px;
    display: flex;
    align-items: end;
    padding: 0 30px 0 0;
}

footer div:last-child i {
    padding: 0 5px;
    color: #e6406f;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    header nav {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header nav ul li a {
        padding: 0 10px;
        font-size: 16px;
    }
    #cerf {
        display: none; /* Trop complexe pour mobile */
    }
    .asperges-moules, .savon, #presentation > div {
        flex-direction: column !important; /* Force la direction en colonne */
        height: auto;
    }
    .asperges-moules > div, .savon > div {
        width: 100% !important;
    }
    .asperges-moules > div:first-child, .savon > div:last-child {
        padding: 20px;
    }
    footer {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }
}