/* ══════════════════════════════════════════════
   POPUPS CÔTÉ VISITEUR — popup.css
══════════════════════════════════════════════ */

/* ── Overlay modale ── */
.cade-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(5,15,35,.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity 350ms ease, visibility 350ms ease;
}

.cade-popup-overlay.is-visible {
    opacity: 1; visibility: visible;
}

.cade-popup-overlay.is-closing {
    opacity: 0; visibility: hidden;
}

/* ── Base popup ── */
.cade-popup {
    position: fixed;
    z-index: 100000;
    opacity: 0; visibility: hidden;
}

.cade-popup.is-visible  { opacity: 1; visibility: visible; }
.cade-popup.is-closing  { opacity: 0; visibility: hidden; }

/* ══════════════════════════════════════════════
   MODALE
══════════════════════════════════════════════ */
.cade-popup--modal {
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    transition: opacity 350ms ease, visibility 350ms ease;
}

.cade-popup--modal.is-visible .popup-modal-box {
    transform: translateY(0) scale(1);
}

.popup-modal-box {
    background: var(--popup-bg, #1B3A6B);
    border-radius: 24px;
    width: 100%; max-width: 480px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 32px 80px rgba(0,0,0,.4),
        0 0 0 1px rgba(255,255,255,.08);
    transform: translateY(32px) scale(.96);
    transition: transform 400ms cubic-bezier(.34,1.56,.64,1);
}

/* Barre de progression */
.popup-progress {
    height: 3px;
    background: rgba(255,255,255,.15);
    overflow: hidden;
}

.popup-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--popup-accent, #F5A623);
    border-radius: 0 2px 2px 0;
}

/* Image modale */
.popup-img-wrap {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
}

.popup-img {
    width: 100%; height: 220px;
    object-fit: cover; display: block;
}

/* Corps modale */
.popup-modal-body {
    padding: 28px 32px 32px;
    display: flex; flex-direction: column;
    align-items: center; text-align: justify;
    gap: 12px;
}

.popup-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--popup-accent, #F5A623);
    flex-shrink: 0;
}

.popup-title {
    font-family: 'Montserrat', Georgia, serif;
    font-size: 1.3rem; font-weight: 700;
    color: #ffffff; margin: 0; line-height: 1.25;
}

.popup-message {
    font-size: 14.5px; color: rgba(255,255,255,.82);
    line-height: 1.75; margin: 0;
}

.popup-link-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 24px; border-radius: 10px;
    background: var(--popup-accent, #F5A623);
    color: #0F2547; font-size: 13px; font-weight: 800;
    text-decoration: none; margin-top: 6px;
    transition: all 200ms ease;
}

.popup-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    color: #0F2547;
}

/* Bouton fermer modale */
.popup-close--modal {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 200ms ease; z-index: 2;
}

.popup-close--modal:hover {
    background: rgba(255,255,255,.25);
    color: #ffffff;
    transform: rotate(90deg);
}

/* ══════════════════════════════════════════════
   BANDEAU HAUT / BAS
══════════════════════════════════════════════ */
.cade-popup--top {
    top: 110px;
    left: 0; right: 0;
    transform: translateY(-100%);
    transition: transform 350ms cubic-bezier(.34,1.2,.64,1),
                opacity 350ms ease, visibility 350ms ease;
}

.cade-popup--bottom {
    bottom: 0; left: 0; right: 0;
    transform: translateY(100%);
    transition: transform 350ms cubic-bezier(.34,1.2,.64,1),
                opacity 350ms ease, visibility 350ms ease;
}

.cade-popup--top.is-visible,
.cade-popup--bottom.is-visible {
    transform: translateY(0);
}

.cade-popup--top.is-closing  { transform: translateY(-100%); }
.cade-popup--bottom.is-closing { transform: translateY(100%); }

.popup-banner-inner {
    display: flex; align-items: center;
    padding: 14px 24px; gap: 14px;
    position: relative;
}

.popup-banner-content {
    display: flex; align-items: center;
    gap: 12px; flex: 1; flex-wrap: wrap;
}

.popup-banner-icon {
    font-size: 18px; color: rgba(255,255,255,.9);
    flex-shrink: 0;
}

.popup-banner-text {
    font-size: 14px; color: rgba(255,255,255,.9);
    line-height: 1.5; flex: 1;
}

.popup-banner-text strong { color: #ffffff; }

.popup-banner-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #ffffff; font-size: 12px; font-weight: 800;
    text-decoration: none; white-space: nowrap;
    transition: background 200ms ease;
    flex-shrink: 0;
}

.popup-banner-link:hover {
    background: rgba(255,255,255,.25);
    color: #ffffff;
}

/* Barre progression bandeau */
.popup-progress--banner {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,.15);
}

/* Bouton fermer bandeau */
.popup-close--banner {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.7); font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 200ms ease;
    flex-shrink: 0;
}

.popup-close--banner:hover {
    background: rgba(255,255,255,.25); color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .popup-modal-box { border-radius: 18px; }
    .popup-modal-body { padding: 22px 20px 24px; }
    .popup-banner-inner { padding: 12px 16px; }
    .popup-banner-link { display: none; }
}