html {
     scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    letter-spacing: .05em;
    background-color: #fcf8ef;
}

#intro {
    padding: 7rem 0 7rem 0;
    text-align: center;
}

#intro img {
    width: 17rem;
}

#intro h1 {
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1.5em;
    line-height: 1.75em;
    letter-spacing: 2px;
    margin: 0 auto 0 auto;
    width: 60%;
}

#intro p {
    font-size: 16px;
    line-height: 1.5em;
    width: 60%;
    margin: 0 auto 1em auto;
    letter-spacing: 0.5px;
}

#intro p:before {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    margin: 1em 0;
    background-color: rgb(166, 166, 166);
}

#nos-vins {
    padding: 4em 0;
}

#nos-vins h1 {
    margin-left: 20vw;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 1.5em;
    line-height: 1.75em;
    letter-spacing: 2px;
    width: 60%;
}

#nos-vins h1::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    margin: 1em 0;
    background-color: rgb(166, 166, 166);
}

#nos-vins .packshot {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    flex-wrap: nowrap;
    height: 400px;
}

#nos-vins .packshot img {
    max-height: 350px;
    display: block;
}

.article-text-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80rem;
    margin: 0 auto;
    padding: 6rem 0;
}

.article-text-img.article-right,
.article-text-img.article-left {
    flex-direction: row;
}

.article-text-img.article-left {
    flex-direction: row-reverse;
}

.article-text-img .img-container {
    opacity: 0;
    position: static;
    width: 40rem;
    height: 40rem;
    margin-left: -2rem;

    transition: opacity 0.5s ease-in-out;
}

.article-text-img .img-container.img-visible {
    opacity: 1;
}

.article-text-img img {
    object-fit: cover;
    width: 40rem;
    height: 40rem;
}

.article-text-img.article-left .text-container {
    background-color: #fcf8ef;
    padding: 2rem;
    position: relative;
}

.article-text-img.article-right .text-container {
    background-color: #fcf8ef;
    margin-left: -3rem;
    padding: 2rem;
    position: relative;
}

.article-text-img.article-left .text-container span,
.article-text-img.article-right .text-container span {
    font-size: 1.4em;
}

.article-text-img.article-orange .text-container {
    background-color: #ca4933;
    color: white;
}

/* bloc-logo */
.bloc-logo {
    text-align: center;
    width: 80vw;
    padding: 6rem 0;
    margin-left: auto;
    margin-right: auto;
}

.bloc-logo img {
    width: 30rem;
}

/* contact */
#contact {
    padding: 6rem 0 10rem 0;
}

.contact-title {
    text-align: center;
}

#contact .contact {
    width: 50rem;
    margin-left: auto;
    margin-right: auto;
}


/* footer */
footer {
    padding: 2em 0;
    text-align: center;
}

footer .mentions {
    margin-bottom: .5em;
}

footer .mentions a {
    text-decoration: none;
    margin: 0 .5em;
    color: grey;
}

footer .mentions a:hover {
    color: #6c0017cd;
}

footer .legal {
    margin-top: 2rem;
}

@media screen and (max-width: 1150px) {
    #intro {
        padding: 5rem 0 2rem 0;
    }

    .article-text-img.article-right,
    .article-text-img.article-left {
        flex-direction: column;
        width: 45rem;
    }

    .article-text-img .img-container {
        width: 40rem;
        height: 40rem;
        margin-left: 0;
    }

    .article-text-img img {
        width: 40rem;
        height: 40rem;
    }

    .article-text-img.article-right .text-container {
        margin-left: inherit;
        padding: 2rem;
    }

    #contact .contact {
        width: 40rem;
    }

    .wide-img img {
        object-position: left;
    }
}

@media screen and (max-width: 768px) {
    #intro {
        padding: 4rem 0 0 0;
    }

    #intro img {
        width: 15rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    #intro h1,
    #intro p {
        width: 85%;
    }

    #nos-vins .packshot {
        overflow: auto;
        padding-bottom: 1em;
    }

    .article-text-img {
        padding: 3rem 0;
    }

    .article-text-img .img-container {
        width: 100vw;
        height: 100vw;
    }

    .article-text-img img {
        width: 100vw;
        height: 100vw;
    }

    .article-text-img.article-right,
    .article-text-img.article-left {
        width: 100vw;
    }

    .bloc-logo img {
        width: 17rem;
    }

    footer .mentions a {
        font-size: .8em;
    }

    footer .legal {
        font-size: .7em;
        margin-top: 2rem;
    }

    #contact .contact {
        width: 80%;
    }
}

@media screen and (max-width: 680px) {
  #nos-vins .packshot img {
        height: 74vw;
    }
}