/* tablet */
@media only screen and (max-width: 1024px) {

    #recettes section .content .text p,
    #wines-details section .content .text p {
        margin-top: 1em;
    }

    section p:not(.wine-details) {
        margin: auto;
    }

    #main-content {
        padding-top: 10em;
    }

    #main-content p {
        text-align: justify !important;
    }

    body {
        line-height: 1.4;
    }

    .bg-photo {
        background-size: contain;
        background-image: url('/img/new/GRAIN_ENVIE_KV_HEADER-home-mobile.jpg');
        background-position: center;
    }

    .logo-header {
        width: 20rem;
        left: 50%;
        top: 9%;
    }

    header .hero .logo {
        position: relative;
        width: 85vw;
        top: 40vh;
        /* left: 4em; */
        left: 0;
        margin: auto !important;
    }

    header .hero::after {
        height: 100vh;
        width: 52vw;
        top: 0;
        left: 0;
        background-color: unset;
    }

    .bayadere {
        display: none;
    }

    #presentation section,
    #conclusion section {
        display: flex;
        flex-direction: column;
        max-height: none;
        padding: 0 0 0 0;
    }

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

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

    #presentation section::after,
    #conclusion section::after {
        display: none;
    }

    #presentation section .thumb,
    #conclusion section .thumb {
        position: initial;
        width: 100%;
        background-size: contain;
    }

    #conclusion section .thumb.desk {
        display: none;
    }

    #conclusion section .thumb.mob {
        display: block;
    }

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

    #presentation section .content,
    #conclusion section .content {
        width: 100%;
        height: 100%;
        max-width: unset;
    }

    #presentation section.intro h1,
    #conclusion section.intro h1 {
        padding: 1em 0;
    }

    #presentation section .content .text,
    #conclusion section .content .text {
        bottom: 0;
    }

    #presentation section:nth-child(odd) .content .text,
    #conclusion section:nth-child(odd) .content .text {
        right: 0;
        left: unset;
    }

    #presentation section:nth-child(even) .content .text,
    #conclusion section:nth-child(even) .content .text {
        left: 0;
        right: unset;
    }

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

    #wines-preview .packshot .wine-card {
        height: 100%;
    }

    #wines-preview .packshot .wine-card img {
        padding: 0;
    }

    #recettes,
    #wines-details {
        margin: 2em 0;
    }

    #recettes section,
    #wines-details section {
        height: auto;
        max-height: none;
        line-height: 1.2;
        z-index: 20;
    }

    #recettes section .situation,
    #wines-details section .situation {
        width: 100%;
        max-height: 50%;
        z-index: 21;
        overflow: hidden;
    }

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

    #recettes section:nth-child(odd) .situation,
    #wines-details section:nth-child(odd) .situation {
        left: unset;
        right: unset;
        text-align: right;
    }

    #recettes section:nth-child(even) .content::after,
    #wines-details section:nth-child(even) .content::after {
        right: 0%;
    }

    #recettes section:nth-child(odd) .content::after,
    #wines-details section:nth-child(odd) .content::after {
        left: 0%;
    }

    #recettes section .situation img,
    #wines-details section .situation img {
        position: relative;
        height: inherit;
        width: 80%;
        max-height: 100vh;
        min-height: inherit;
        z-index: inherit;
    }

    #recettes section:nth-child(odd) .situation img,
    #wines-details section:nth-child(odd) .situation img {
        float: right;
        right: 10%;
    }

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

    #recettes section .content .bottle img,
    #wines-details section .content .bottle img {
        min-height: 280px;
        height: 50vh;
        width: auto;
        bottom: 100%;
    }

    #recettes section:nth-child(even) .content .bottle img,
    #wines-details section:nth-child(even) .content .bottle img {
        left: unset;
        right: 5%;
    }

    #recettes section:nth-child(odd) .content .bottle img,
    #wines-details section:nth-child(odd) .content .bottle img {
        right: unset;
        left: 5%;
    }

    #recettes section,
    #wines-details section {
        flex-direction: column !important;
    }

    #recettes section .content,
    #wines-details section .content {
        width: 100%;
    }

    #recettes section .content::after,
    #wines-details section .content::after {
        position: absolute;
        min-height: 190px;
        top: -10em;
        z-index: 19;
    }

    #recettes section .content .text,
    #wines-details section .content .text {
        position: relative;
        width: 100%;
        height: auto;
        background-color: unset;
        padding: 1em;
        margin: 0;
        z-index: 26;
    }

    #recettes section:nth-child(odd) .content .text,
    #wines-details section:nth-child(odd) .content .text {
        left: initial;
        max-width: 75%;
        margin: auto;
        padding: 0;
    }

    #recettes section:nth-child(even) .content .text,
    #wines-details section:nth-child(even) .content .text {
        right: 0;
        max-width: 75%;
        margin: auto;
        padding: 0;
    }

    #full-text {
        width: 90%;
    }

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

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

    #search,
    #contact {
        width: 90%;
    }

    #full-text {
        margin: 0 auto !important;
    }
}