/* main content */

#main-content {
    background-color: var(--white);
    color: var(--black);
}

#presentation,
#conclusion {
    height: 100%;
    overflow: hidden;
}

#presentation section,
#conclusion section {
    position: relative;
    display: flex;
    z-index: 10;
    padding: 0 0 var(--space) 0;
}

#presentation section::after,
#conclusion section::after {
    content: '';
    display: block;
    position: relative;
    top: 2em;
    height: 36vw;
    width: 10%;
    opacity: 1;
}

#presentation section:nth-child(odd),
#conclusion section:nth-child(odd) {
    flex-direction: row;
}

#presentation section:nth-child(even),
#conclusion section:nth-child(even) {
    flex-direction: row-reverse;
}

#presentation section:nth-child(odd)::after,
#conclusion section:nth-child(odd)::after {
    right: -55%;
    border-top-right-radius: 50px;
}

#presentation section:nth-child(even)::after,
#conclusion section:nth-child(even)::after {
    left: -55%;
    border-top-left-radius: 50px;
}

#conclusion .thumb.mob {
    display: none;
}

@media screen and (min-width:1750px) and (max-width:1980px) {
    #presentation section:nth-child(odd)::after,
    #conclusion section:nth-child(odd)::after {
        right: -48%;
        border-top-right-radius: 50px;
    }

    #presentation section:nth-child(even)::after,
    #conclusion section:nth-child(even)::after {
        left: -48%;
        border-top-left-radius: 50px;
    }
}

@media screen and (min-width:1980px) and (max-width:2250px) {
    #presentation section:nth-child(odd)::after,
    #conclusion section:nth-child(odd)::after {
        right: -49%;
        border-top-right-radius: 50px;
    }

    #presentation section:nth-child(even)::after,
    #conclusion section:nth-child(even)::after {
        left: -49%;
        border-top-left-radius: 50px;
    }
}


@media screen and (min-width:1024px) and (max-width:1750px) {
    #presentation section:nth-child(odd)::after,
    #conclusion section:nth-child(odd)::after {
        right: -38%;
        border-top-right-radius: 50px;
    }

    #presentation section:nth-child(even)::after,
    #conclusion section:nth-child(even)::after {
        left: -38%;
        border-top-left-radius: 50px;
    }
}

#presentation section.intro,
#conclusion section.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1em 0 0 !important;
}

#presentation section.intro::after,
#conclusion section.intro::after {
    height: unset;
}

#presentation section.intro h1,
#conclusion section.intro h1 {
    font-size: 1.8em;
    padding: 2em 0 2em;
}

#presentation section.intro .content .text,
#conclusion section.intro .content .text {
    position: unset;
    width: 100%;
    left: unset !important;
    right: unset !important;
}

#presentation section.intro p:last-child,
#conclusion section.intro p:last-child {
    padding-bottom: 1em;
}

#presentation section .thumb,
#conclusion section .thumb {
    background-size: contain;
    width: 60%;
    margin: 0.5em 0 0.5em 0;
    z-index: 10;
    top: 40px !important;
}

#presentation section:nth-child(odd) .thumb,
#conclusion section:nth-child(odd) .thumb {
    right: 8%;
    top: 8%;
    border-radius: 0 50px 0 0;
}

#presentation section:nth-child(even) .thumb,
#conclusion section:nth-child(even) .thumb {
    left: 15%;
    top: 5%;
    border-radius: 50px 0 0 0;
}

.oenologue-img {
    width: 50% !important;
}

#presentation section .content,
#conclusion section .content {
    max-width: 48em;
    width: 45%;
    margin-bottom: 3em;
    z-index: 10;
    position: relative;
}

#presentation section .content .text,
#conclusion section .content .text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 1);
    bottom: -10vw;
    padding: 2em;
    min-height: 55%;
}

#presentation section:nth-child(odd) .content .text,
#conclusion section:nth-child(odd) .content .text {
    right: -3em;
    border-radius: 0 50px 0 0;
}

#presentation section:nth-child(even) .content .text,
#conclusion section:nth-child(even) .content .text {
    left: -3em;
    border-radius: 50px 0 0 0;
}

/* color ////////////////////////////////////////////////////// */

.color-white {
    background-color: var(--white);
}

.color-black {
    background-color: var(--black);
}

.color-grey {
    background-color: var(--grey);
}

.color-black-af::after {
    background-color: var(--black);
}

.color-purple {
    color: #9B004F;
}

.color-purple-af {
    background-color: #9B004F;
}

.color-orange {
    color: #FBA883;
}

.color-orange-af {
    background-color: #FBA883;
}

.color-green {
    color: #86B063;
}

.color-green-af {
    background-color: #86B063;
}

/* wines preview list ////////////////////////////////////////////////////// */

#wines-preview {
    padding-bottom: 10em;
}

#wines-preview .packshot {
    position: relative;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    height: 50vw;
    min-height: 10em;
}

#wines-preview .packshot .wine-card {
    display: block;
    bottom: -4em;
    width: 100%;
    height: 90%;
    min-height: 8em;
    overflow: hidden;
    cursor: pointer;
}

#wines-preview .packshot .wine-card img {
    position: relative;
    max-height: 100%;
    display: block;
    margin: auto;
    z-index: 13;
    cursor: pointer;
}

/* wines details list ////////////////////////////////////////////////////// */

#recettes,
#wines-details {
    margin: 0 0 6em 0;
    position: relative;
    z-index: 19;
}

b {
    font-weight: 900;
}

#wines-details .bottle>img {
    min-height: 0 !important;
    height: 150% !important;
}

#wines-details .content p {
    width: initial;
}

#recettes section,
#wines-details section {
    display: flex;
    margin: 0 0 var(--space) 0;
    line-height: 1.4;
    min-height: 13em;
    min-height: auto;
}

#recettes section:nth-child(odd) {
    flex-direction: row;
    right: 0;
}

#recettes section:nth-child(even) {
    flex-direction: row-reverse;
    left: 0;
}

#wines-details section:nth-child(odd) {
    flex-direction: row-reverse;
    left: 0;
    right: unset;
}

#wines-details section:nth-child(even) {
    flex-direction: row;
    right: 0;
    left: unset;
}

#recettes h3.title,
#wines-details h3.title {
    font-size: 1.3em;
    font-weight: bold;
}

#triptyque {
    margin-top: 4rem;
}

#triptyque .trio-images {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

#triptyque .trio-images img {
    width: 31%;
}

/* storelocator */

#storelocator {
    width: 80%;
    margin-top: 6rem;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (max-width: 1024px) {
    #storelocator {
        width: 90%;
        margin-left: 5%;
    }
}

/* situation */

#recettes section .situation,
#wines-details section .situation {
    position: relative;
    width: 45%;
    overflow: hidden;
    z-index: 20;
}

#recettes section .situation.solo-img-30,
#wines-details section .situation.solo-img-30 {
    width: 30%;
    margin: 0 auto;
}

#recettes section .situation.solo-img-10,
#wines-details section .situation.solo-img-10 {
    width: 10%;
    margin: 0 auto;
}

#recettes section:nth-child(odd) .situation {
    left: 2em;
}

#recettes section:nth-child(even) .situation {
    right: 2em;
}

#wines-details section:nth-child(odd) .situation {
    left: unset;
    right: 2em;
}

#wines-details section:nth-child(even) .situation {
    left: 2em;
    right: unset;
}

#recettes section .situation img,
#wines-details section .situation img {
    object-fit: cover;
    width: 100%;
}

/* content */

#recettes section .content,
#wines-details section .content {
    position: relative;
    width: 50%;
    z-index: 20;
}

#recettes section .content::after,
#wines-details section .content::after {
    display: block;
    position: absolute;
    content: '';
    max-height: 80%;
    width: 70%;
    z-index: 18;
    top: 7%;
}

#recettes section:nth-child(odd) .content::after {
    left: 21%;
}

#recettes section:nth-child(even) .content::after {
    right: 21%;
}

#wines-details section:nth-child(odd) .content::after {
    right: 21%;
    left: unset;
}

#wines-details section:nth-child(even) .content::after {
    left: 21%;
    right: unset;
}

#recettes section .content .bottle,
#wines-details section .content .bottle {
    position: relative;
    height: 100%;
    z-index: 23;
}

#recettes section .content .bottle img,
#wines-details section .content .bottle img {
    height: 80%;
    position: absolute;
    max-height: 100%;
    min-height: 80vh;
}

#recettes section:nth-child(even) .content .bottle img {
    left: 1rem;
    bottom: 0;
}

#recettes section:nth-child(odd) .content .bottle img {
    right: 1rem;
    bottom: 0;
}

#wines-details section:nth-child(odd) .content .bottle img {
    left: 1rem;
    right: unset;
    bottom: 0;
}

#wines-details section:nth-child(even) .content .bottle img {
    right: 1rem;
    left: unset;
    bottom: 0;
}

#recettes section .content .text,
#wines-details section .content .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 80%;
    margin: 1em;
    padding: 0em 4em;
    top: 2em;
    z-index: 20;
    height: 100%;
}

#recettes section .content .text h4,
#wines-details section .content .text h4 {
    font-weight: bold;
    font-size: 1.2rem;
}

#recettes section:nth-child(odd) .content .text {
    left: initial;
    max-width: 60%;
    margin: auto;
    top: 0;
}

#recettes section:nth-child(even) .content .text {
    right: 0;
    max-width: 60%;
    margin: auto;
    top: 0;
}

#wines-details section:nth-child(odd) .content .text {
    right: 0;
    left: unset;
    max-width: 60%;
    margin: auto;
    top: 0;
    z-index: 30;
}

#wines-details section:nth-child(even) .content .text {
    left: initial;
    right: unset;
    max-width: 60%;
    margin: auto;
    top: 0;
    z-index: 30;
}

#recettes section .content .text p {
    font-weight: 300;
    margin-bottom: 20px;
    padding-left: 1em;
}

#wines-details section:nth-child(odd) .content .text p {
    font-weight: 300;
    margin-bottom: 20px;
    padding-left: 1em;
    padding-right: 0;
}

#wines-details section:nth-child(even) .content .text p {
    font-weight: 300;
    margin-bottom: 20px;
    padding-right: 1em;
    padding-left: 0;
}

#contact h3 {
    padding: 0 0 2em;
}

/* sections full-text ////////////////////////////////////////////////////// */

#full-text {
    display: flex;
    justify-content: center;
    flex-direction: row;

    width: 70%;
    margin: 0 auto var(--space) !important;
    padding: 10px 0;

    position: relative;
    top: var(--spaceless);

    text-align: center;
}

#full-text .wine-details {
    margin-bottom: 1em;
    list-style-type: none;
    text-align: left;
    color: var(--grey);
}

#full-text .wine-details li {
    margin-bottom: 5px;
}

#full-text span {
    display: block;
    margin-top: 1em;
}

#full-text a {
    text-decoration: underline;
    color: var(--black);
}

#full-text.column {
    flex-direction: column !important;
}