@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    color: black;
    scroll-behavior: smooth;
}

:root {
    --cc-accent-1: rgb(122, 174, 55);
    --cc-accent-2: rgb(93, 139, 42);

    --bg-accent-1: rgb(243, 253, 216);
}

.c-accent-1 {
    color: var(--cc-accent-1);
}

.btn-fill {
    display: inline-block;
    background-color: var(--cc-accent-1);
    padding: 0.5rem 2rem;
    color: white;
    transition: background-color 150ms;
    font-size: 1rem;
}
.btn-fill:hover {
    background-color: var(--cc-accent-2);
}

.btn-outline {
    background-color: transparent;
    display: inline-block;
    padding: 0.5rem 2rem;
    color: white;
    border: 2px solid white;
    transition: background-color 150ms, color 150ms;
    font-size: 1rem;
}
.btn-outline:hover {
    background-color: white;
    color: var(--cc-accent-1);
}

nav {
    display: flex;
    position: fixed;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem 5%;
    box-sizing: border-box;
    transition: padding-block 300ms, background-color 300ms;
}
nav.scrolling {
    background-color: white;
    border-bottom: 2px solid var(--cc-accent-1);
    padding-block: 1rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}

.nav-list a, .nav-icons i {
    transition: color 150ms;
}
.nav-list a::after {
    display: block;
    content: '';
    border-bottom: 2px solid var(--cc-accent-1);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 300ms;
}
.nav-list a:hover {
    color: var(--cc-accent-1);
}
.nav-list a:hover::after {
    transform: scaleX(100%);
}

.nav-icons {
    display: flex;
    font-size: 1.2rem;
    gap: 1rem;
}
.nav-icons i:hover {
    color: var(--cc-accent-1);
}

.nav-menu {
    font-size: 1.5rem;
    display: none;
}


header {
    background-color: var(--bg-accent-1);
    position: relative;
    overflow: hidden;
}

header .container {
    max-width: 1280px;
    padding: 15rem 2rem;
    margin: 0 auto;
    gap: 2rem;
    align-items: center;
}

header h2 {
    display: block;
    font-size: 3rem;
    max-width: 500px;
    line-height: 4rem;
    margin-bottom: 1.5rem;
}
header p {
    max-width: 500px;
    margin-bottom: 2rem;
}

header img {
    position: absolute;
    max-width: min(100%, 900px);
    bottom: 0;
    left: 45%;
}

.product-display {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

.product-display img {
    max-width: min(100%, 500px);
}

.product-display h3 {
    font-size: 2rem;
    font-weight: 600;
}

.product-display .author {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-display .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cc-accent-1);
    margin-bottom: 1rem;
}
.product-display .reduction {
    font-size: 1rem;
    margin-left: 1rem;
    text-decoration: line-through;
}

.product-display .description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}


.contenu {
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.contenu h3 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.contenu > .description {
    font-size: 0.9rem;
    margin-inline: auto;
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
}

.contenu .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-inline: auto;
    max-width: 1280px;
}

.contenu .element img {
    max-height: 150px;
    display: block;
    margin-inline: auto;
    margin-bottom: 2rem;
    transition: 300ms;
}
.contenu .element img:hover {
    transform: translateY(-5px);
}

.contenu .element h4 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contenu .element .description {
    font-size: 0.8rem;
    text-align: center;
}

.container-full-green {
    background-color: var(--cc-accent-1);
}

.ingredients {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin-inline: auto;
    margin-bottom: 6rem;
}

.ingredients h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.ingredients hr {
    outline: none;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid white;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-inline: auto;
}

.ingredients .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-inline: auto;
    gap: 2rem;
}

.ingredients .cards .element {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-inline: auto;
}

.ingredients .cards i {
    font-size: 40px;
    color: white;
}

.ingredients .cards h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.ingredients .cards p {
    font-size: 0.8rem;
    color: white;
}


.newsletter {
    background-color: var(--cc-accent-1);
    padding: 4rem 2rem;
    max-width: 1000px;
    margin-inline: auto;
    margin-bottom: 4rem;
}

.newsletter p {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0;
}

.newsletter h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.newsletter form {
    margin-inline: auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.newsletter input {
    padding: 1rem 2rem;
    max-width: 400px;
    width: 100%;
    outline: none;
    border: none;
    box-sizing: border-box;
}


footer {
    padding: 4rem 2rem 2rem;
}

footer .infos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 2rem;
    row-gap: 3rem;
}

footer .element {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer h4 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer .links {
    display: flex;
    flex-direction: column;

}

footer a {
    font-size: 0.9rem;
    display: inline-block;
    margin-inline: auto;
    transition: color 150ms;
}
footer a:hover {
    color: var(--cc-accent-1);
}

footer hr {
    margin-bottom: 1rem;
}

footer .copyright {
    text-align: center;
    font-size: 0.8rem;
}



@media screen and (max-width: 1280px) {

    nav {
        padding-inline: 2rem;
    }

    header .container {
        padding-bottom: 10rem;
    }

    header img {
        max-width: min(100%, 750px);
    }

    .product-display {
        margin-bottom: 3rem;
    }
    .product-display img {
        max-width: min(60%, 400px);
    }
}

@media screen and (max-width: 1000px) {
    .nav-list {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        transition: transform 300ms;
        border-bottom: 2px solid var(--cc-accent-1);
        z-index: 2000;
    }
    nav.responsive .nav-list {
        transform: translateY(100%);
    }

    .nav-list a {
        display: block;
        background-color: white;
        padding: 1rem 2rem;
    }

    .nav-icons {
        display: none;
    }

    .nav-logo {
        position: static;
        transform: translateX(0);
    }

    .nav-menu {
        display: block;
    }

    h2 {
        font-size: 2.2rem !important;
        line-height: 3rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    h4 {
        font-size: 1.2rem !important;
    }

    header .container {
        padding-top: 12rem;
    }

    header img {
        max-width: min(80%, 500px);
        left: 60%;
    }

    .product-display {
        flex-direction: column;
    }
    .product-display.reverse {
        flex-direction: column-reverse;
    }

    .ingredients .cards, .contenu .cards, footer .infos {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 575px) {
    
    header p {
        max-width: 350px;
    }
    
    .ingredients .cards, .contenu .cards, footer .infos {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.8rem !important;
        line-height: 2.5rem !important;
    }
    h3 {
        font-size: 1.2rem !important;
    }
    h4 {
        font-size: 1rem !important;
    }

    .contenu {
        margin-bottom: 0;
    }

    .newsletter {
        margin-bottom: 0;
    }

    .newsletter form {
        flex-direction: column;
    }
    .newsletter input {
        display: block;
        max-width: 100%;
    }
}