/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Police Outfit Light */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

html, body {
    height: 100svh;
}

.italic{
    margin-top: 1rem;
}
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 300;
    line-height: 1.2;
    color: #333;
}

/* Styles à ajouter */

.container{
    display: flex;
    height: 100svh;
    align-items: center;
}

.sib-form .entry__field{
    border-radius: 0;
    border-color: #000
}

.logo{
    margin-bottom: .5rem;
}

.container-image{
    height: 100svh;
    padding: 3rem 0;
    min-width: 50%;
}

.container-image img {
    width: 100%;
    height: calc(100svh - 6rem);
    object-fit: cover;
    object-position: center;
}

.container-content{
    text-align: center;
    padding: 1rem clamp(1rem, 5vw, 9rem);
    min-width: 40%;
}

.container-content > p{
    font-size: .9rem;
    text-wrap: balance;
}

.form-container{
    max-width: 540px;
    margin: 0 auto;
    margin-top: 3rem;
    width: 100%;
}

footer{
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
}
footer p{
    font-size: 0.5rem;
}

.form-container-title{
    text-transform: uppercase;
    font-size: .7rem;
    margin-bottom: .2rem;
}
.sib-form{
    padding: 0;
}
.form__label-row,
.form__label-row--horizontal{
    margin: 0;
}
#sib-container{
    padding: 0;
    background: none;
    max-width: 390px;
}

.sib-form .input{
    text-align: center;
}

.sib-form-block__button{
    width: 100%;
    background-color: black;
    color: #fff;
    text-transform: uppercase;
}

.sib-form-message-panel{
    max-width: 354px;
    margin-top: .6rem;
    font-size: .7rem;
    margin-bottom: .5rem;
}

#success-message{
    background-color: #254F37;
    color: #fff;
    border-color: #254F37;
}

.sib-optin{
    font-size: .7rem;
    margin-bottom: .5rem;
}

.entry__label::after{
    color: #F9651F;
}

.sib-form .entry__error, .entry__error--primary{
    font-size:12px; 
    color:#F9651F;  
    border-color:#F9651F;
    padding: .4rem;
    background-color: #f9641f2e;
}

/* Popup Politique de confidentialité */
.privacy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.privacy-popup  a{
    color: #000;
    text-decoration: none;
}
.privacy-popup--active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.privacy-popup__content {
    position: relative;
    background-color: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    margin: 2rem;
    z-index: 10001;
}

.privacy-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-popup__close:hover {
    opacity: 0.7;
}

.privacy-popup__content h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 300;
}

.privacy-popup__text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #000;
}

.privacy-popup__text p {
    margin-bottom: 1rem;
}

.privacy-popup__text strong {
    font-weight: 400;
    display: block;
    margin-bottom: 0.1rem;
    text-transform: uppercase;
    font-size: 0.7rem;
}

a {
  color: #000;
  text-decoration: underline;
}

.ecoindex-link {
    text-decoration: none;
}

.privacy-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    a {
        color: #fff;
    }
    .privacy-popup__content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .privacy-popup__content h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: #000;
    }
    
    .privacy-popup__text {
        font-size: 0.70rem;
    }
    
    .privacy-popup__close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    body{
        color: #fff;
    }
    .container-image{
        padding: 0;
        width: 100%;
    }
    .container-image img {
        width: 100%;
        height: 100%;

    }

    .container-content{
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        justify-content: end;
        padding-bottom: clamp(2rem, 5vw, 6rem);
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
    }

    .logo{
        filter: invert(1);
    }

    .sib-form-block__button{
        color: #fff;
    }

    .sib-form .entry__field{
        border-radius: 0;
        border-color: #fff;
        background-color: rgba(255, 255, 255, 0.3);
        color: #fff;
    }

    footer {
       text-align: center;
    }
}
