/* ===== OVERLAY ===== */
#newsletter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 5, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== POPUP ===== */
.popup {
    position: relative;
    width: 820px;
    max-width: 95vw;
    display: flex;
    border: 1px solid rgba(201,168,76,0.3);
    box-shadow:
        0 0 0 6px rgba(201,168,76,0.05),
        0 40px 80px rgba(0,0,0,0.6);
    transform: translateY(40px) scale(0.96);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    border-radius: 2px;
}

#newsletter-overlay.active .popup {
    transform: translateY(0) scale(1);
}

/* ===== COLONNE GAUCHE (image/deco) ===== */
.popup-left {
    width: 40%;
    background: #431000;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
}

.popup-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(../img/bg/bg-newsletter-02.jpg);
    background-repeat: repeat;
    background-size: initial;
    background-position: center center;
}

/* Cercles décoratifs */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.15);
}
.deco-circle:nth-child(1) { width: 280px; height: 280px; top: -60px; left: -60px; }
.deco-circle:nth-child(2) { width: 180px; height: 180px; bottom: -30px; right: -50px; }
.deco-circle:nth-child(3) { width: 100px; height: 100px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-color: rgba(201,168,76,0.25); }

.left-icon {
    position: relative;
    z-index: 1;
    font-size: 52px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.left-tagline {
    position: relative;
    z-index: 1;
    color: #c7c7c7;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

.left-tagline span {
    display: block;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201,168,76,0.6);
    margin-top: 8px;
}

/* Ligne dorée décorative */
.gold-line {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
}

.perks {
    position: relative;
    z-index: 1;
    list-style: none;
    text-align: left;
    width: 100%;
}

.perks li {
    color: rgba(245,240,232,0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perks li::before {
    content: '✦';
    color: var(--gold);
    font-size: 8px;
    flex-shrink: 0;
}

/* ===== COLONNE DROITE (formulaire) ===== */
.popup-right {
    width: 60%;
    background: #FFF;
    padding: 52px 44px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Motif papier en fond */
.popup-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%23c9a84c' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Bouton fermer */
.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 2;
}
.close-btn:hover { color: var(--ink); transform: rotate(90deg); }

/* Etiquette */
.popup-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 14px;
    position: relative;
}

.popup-title {
    font-size: 32px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}

.popup-subtitle {
    font-size: 14px;
    color: #7a6e62;
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}

/* Formulaire */
.form-group {
    position: relative;
    margin-bottom: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ff5800;
    border-radius: 10px;
    background: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--gold);
}

.form-group input::placeholder { color: #b5a898; }

/* Bouton submit */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--ink);
    color: var(--cream);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    border-radius: 1px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover::before { transform: translateX(0); }

.submit-btn span { position: relative; z-index: 1; }

/* Messages */
.msg-error {
    color: red;
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 10px;
    display: none;
}

.msg-success {
    text-align: center;
    display: none;
}

.msg-success .check-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.msg-success h3 {
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 10px;
}

.msg-success p {
    color: #7a6e62;
    font-size: 13px;
    line-height: 1.7;
}

/* Note bas de page */
.privacy-note {
    margin-top: 16px;
    font-size: 11px;
    color: #b5a898;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Spinner */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(245,240,232,0.3);
    border-top-color: var(--cream);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .popup { flex-direction: column; }
    .popup-left { width: 100%; padding: 36px 24px; }
    .popup-right { width: 100%; padding: 36px 24px; }
    .popup-title { font-size: 26px; }
    .perks { display: none; }
}