/* Golden CBD — Pop-up Newsletter */

/* Helvetica Neue Black Extended */
@font-face {
    font-family: 'Helvetica Neue Black Ext';
    src: url('../fonts/HelveticaNeue-BlackExt.woff2') format('woff2'),
         url('../fonts/HelveticaNeue-BlackExt.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.gcbd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gcbd-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fond overlay avec blur */
.gcbd-popup-overlay::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Carte popup */
.gcbd-popup-card {
    position: relative;
    width: 411px;
    max-width: 90vw;
    border-radius: 10px;
    border: none;
    box-shadow: none;
    background-image: url('../img/popup-bg.png');
    background-size: cover;
    background-position: center;
    padding: 30px;
    animation: gcbd-popup-in 0.4s ease-out;
}

@keyframes gcbd-popup-in {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Bouton fermer */
.gcbd-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

.gcbd-popup-close:hover {
    opacity: 1;
}

/* Contenu */
.gcbd-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Texte intro */
.gcbd-popup-subtitle {
    font-family: 'Gustavo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.43;
    color: #FFFFFF;
    text-align: center;
    margin: 0;
}

/* Titre promo */
.gcbd-popup-title {
    font-family: 'Helvetica Neue Black Ext', 'Helvetica Neue LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFD100;
    text-align: center;
    margin: 0;
}

/* Formulaire */
.gcbd-popup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 340px;
}

/* Champ email */
.gcbd-popup-input-wrap {
    width: 100%;
}

.gcbd-popup-input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: 'Gustavo', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.67;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s;
}

.gcbd-popup-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.gcbd-popup-input:focus {
    border-color: #FFD100;
}

.gcbd-popup-input.error {
    border-color: #ff4444;
}

/* Bouton CTA */
.gcbd-popup-cta {
    width: auto;
    min-width: 157px;
    background: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gcbd-popup-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 8px rgba(255, 209, 0, 0.5);
}

.gcbd-popup-cta:active {
    transform: scale(0.98);
}

.gcbd-popup-cta-text {
    font-family: 'Helvetica Neue Black Ext', 'Helvetica Neue LT Std', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #161616;
}

/* Message succès/erreur */
.gcbd-popup-message {
    font-family: 'Gustavo', sans-serif;
    font-size: 13px;
    text-align: center;
    margin: 0;
}

.gcbd-popup-message.success {
    color: #FFD100;
}

.gcbd-popup-message.error {
    color: #ff4444;
}

/* Mobile */
@media (max-width: 480px) {
    .gcbd-popup-card {
        padding: 24px 20px;
        margin: 0 16px;
    }

    .gcbd-popup-title {
        font-size: 16px;
    }

    .gcbd-popup-cta {
        width: 100%;
    }
}
