/* welcome-popup.css — Pop-up de bienvenue Bootik24 (offre 1re commande).
   Accent orange + aplat (pas de gradient). Fermeture facile (X, clic hors, Échap). */

.b24wp-overlay {
    position: fixed; inset: 0; background: rgba(10, 16, 30, .55);
    z-index: 100000; display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.b24wp-hidden { display: none !important; }

.b24wp-card {
    position: relative; display: flex; width: 100%; max-width: 720px;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Bouton fermer — grand, évident (borne Tante Ema) */
.b24wp-close {
    position: absolute; top: 10px; right: 12px; z-index: 3;
    width: 34px; height: 34px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .85); color: #0f1728;
    font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.b24wp-close:hover { background: #fff; }

/* Panneau gauche — image de marque (appli/livraison) + bandeau offre en bas */
.b24wp-offer {
    flex: 0 0 44%; position: relative; color: #fff; min-height: 300px;
    background: #ef7d00 url("/images/welcome-popup/welcome.jpg") center left / cover no-repeat;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0;
}
.b24wp-offer-band {
    background: rgba(191, 71, 0, .82); /* scrim orange semi-transparent (aplat, pas de gradient) */
    padding: 14px 16px; text-align: center;
}
.b24wp-offer-pct { font-size: 48px; font-weight: 800; line-height: 1; }
.b24wp-offer-sub { font-size: 14px; font-weight: 600; margin-top: 2px; opacity: .95; }
.b24wp-offer-cond { font-size: 11.5px; margin-top: 8px; opacity: .9; line-height: 1.4; }
.b24wp-accent { color: #ffb700; }

/* Panneau droit — le formulaire */
.b24wp-form { flex: 1; padding: 30px 28px; }
.b24wp-title { font-size: 22px; font-weight: 800; color: #0f1728; margin: 0 0 4px; }
.b24wp-lead { font-size: 13.5px; color: #55627a; margin: 0 0 18px; line-height: 1.5; }

.b24wp-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: #55627a; margin-bottom: 14px; line-height: 1.5; cursor: pointer; }
.b24wp-consent input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: #ef7d00; }
.b24wp-consent a { color: #ef7d00; }

.b24wp-field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #c5ccd6; border-radius: 8px; font-size: 14px; color: #0f1728; margin-bottom: 12px; box-sizing: border-box; }
.b24wp-field:focus { outline: 2px solid #ef7d00; outline-offset: 1px; border-color: transparent; }

.b24wp-btn { width: 100%; height: 46px; border: none; border-radius: 8px; background: #ef7d00; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.b24wp-btn:hover { background: #d96f00; }
.b24wp-btn:disabled { opacity: .6; cursor: default; }

.b24wp-msg { font-size: 12.5px; margin-top: 10px; min-height: 16px; }
.b24wp-msg.err { color: #c1362f; }
.b24wp-note { font-size: 11px; color: #8892a0; margin-top: 12px; line-height: 1.5; }

/* État "code révélé" après inscription */
.b24wp-code-box { text-align: center; padding: 8px 0 2px; }
.b24wp-code-lead { font-size: 13.5px; color: #1c7a45; font-weight: 600; margin: 0 0 10px; }
.b24wp-code {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 22px; font-weight: 700; letter-spacing: .06em; color: #0f1728;
    background: #eef2f9; border: 1px dashed #ef7d00;
    padding: 12px 18px; border-radius: 10px;
}
.b24wp-copy { border: none; background: #ef7d00; color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.b24wp-code-cond { font-size: 12px; color: #55627a; margin-top: 14px; }
.b24wp-cta { display: inline-block; margin-top: 16px; background: #ef7d00; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 22px; border-radius: 8px; }

@media (max-width: 560px) {
    .b24wp-card { flex-direction: column; max-width: 380px; }
    .b24wp-offer { flex-basis: auto; padding: 22px; }
    .b24wp-offer-pct { font-size: 52px; }
}

/* Modal imbriqué — politique de confidentialité par-dessus le pop-up (reste ouvert derrière) */
.b24wp-privacy-overlay {
    position: fixed; inset: 0; background: rgba(10, 16, 30, .6);
    z-index: 100001; /* au-dessus de .b24wp-overlay (100000) */
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.b24wp-privacy-card {
    position: relative; background: #fff; border-radius: 14px; overflow: hidden;
    width: 100%; max-width: 760px; height: 82vh; max-height: 660px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
}
.b24wp-privacy-close {
    position: absolute; top: 8px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #0f1728;
    font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.b24wp-privacy-close:hover { background: #fff; }
.b24wp-privacy-frame { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 560px) {
    .b24wp-privacy-card { height: 88vh; max-height: none; }
}
