﻿/* The Overlay (background) */

.input-email-subscribe {
    width: 80%;
}

.noscroll-body {
    overflow: hidden;
}

.newsletter-notok {
    display: block;
}

.newsletter-ok {
    display: none;
}

.overlay-newsletter-page .checkbox:after {
    border: 2px solid #0f2b36;
}

#myNewsletterNav {
    z-index: 9999;
}

    #myNewsletterNav h3 {
        font-size: 2rem;
    }

    #myNewsletterNav .label--checkbox {
        display: flex;
        align-items: baseline;
        justify-content: center;
        width: fit-content;
        width: -moz-fit-content;
        width: -webkit-fit-content;
        margin: auto;
        flex-direction: row;
    }

        #myNewsletterNav .label--checkbox span {
            text-align: left;
            float: right;
            width: auto;
            margin-left: 10px;
            margin-top: -17px;
            color: #0f2b36
        }

    #myNewsletterNav .w40,
    #myNewsletterNav .w60 {
        width: 90%;
    }

    #myNewsletterNav .list {
        padding: .5rem 0 !important;
    }

.overlay-newsletter {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    /*background-color: rgb(0,0,0); /* Black fallback color !1!
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity !1!*/
    background-image: url('../images/stock-photo/carousel-accueil/20210702_Bienvenue-en-Beaujonomie__NDP7487_bis.jpg');
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content-newsletter {
    position: relative;
    top: 0; /* 25% from the top */
    width: 95%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    background: rgba(255,255,255,.95);
    box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.05);
}

/* The navigation links inside the overlay */
.overlay-newsletter a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #0f2b36;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

    /* When you mouse over the navigation links, change their color */
    .overlay-newsletter a:hover, .overlay-newsletter a:focus {
        color: #0f2b36;
    }

/* Position the close button (top right corner) */
.overlay-newsletter .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

.overlay-newsletter .infos_reglementaires p {
    color: #0f2b36;
    font-size: 14px;
}
/* Bandeau accès Newsletter */
#bandeau-newsletter {
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 45px;
    margin-left: 0;
}

    #bandeau-newsletter .bloc-sabonnerNewsletter {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #bandeau-newsletter .bloc-rsbenb {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #bandeau-newsletter .bloc-textnewsletter-bandeau {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #bandeau-newsletter .bloc-textnewsletter-bandeau p {
            line-height: 1;
        }

    #bandeau-newsletter #opennewsletternav {
        color: #0f2b36;
        cursor: pointer;
        line-height: 1;
        font-size: 12px;
    }

    #bandeau-newsletter #close-newsletterbar i {
        transition: all .5s;
    }

    #bandeau-newsletter #close-newsletterbar {
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        cursor: pointer;
    }

        #bandeau-newsletter #close-newsletterbar a {
            transition: all .5s;
        }

    #bandeau-newsletter i:not(.fa-chevron-left) {
        color: #83b81a;
    }

.header-button {
    font-family: 'Roboto', sans-serif;
    border: 1px solid #83b81a;
    background: #83b81a;
    color: #fff;
    /* height: 34px; */
    min-width: 171px;
    width: auto;
    border-radius: 5px;
    cursor: pointer;
}

    .header-button:disabled {
        opacity: .65;
    }

@media screen and (min-width: 992px) {

    .input-email-subscribe {
        width: 50%;
    }

    #myNewsletterNav h3 {
        font-size: 3rem;
    }
    .overlay-content-newsletter {
        position: relative;
        top: 0; /* 25% from the top */
        width: 50%; /* 100% width */
        text-align: center; /* Centered text/links */
        margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
        margin-left: auto;
        margin-right: auto;
        background: rgba(255,255,255,.95);
    }

    #myNewsletterNav .w40 {
        width: 40%;
    }

    #myNewsletterNav .w60 {
        width: 60%;
    }
    /* Bandeau accès Newsletter */
    #bandeau-newsletter {
        width: 40%;
    }

        #bandeau-newsletter #opennewsletternav {
            color: #0f2b36;
            cursor: pointer;
            line-height: 1;
            font-size: 1rem;
        }
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay-newsletter a {
        font-size: 20px
    }

    .overlay-newsletter .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}
