/* ============================================================
   FRANCE WEB CORPORATE — popup.css
   Styles : Popup marketing + Bandeau cookies RGPD
   À inclure dans toutes les pages :
   <link rel="stylesheet" href="assets/css/popup.css">
   ============================================================ */

/* ============================================================
   POPUP MARKETING
   ============================================================ */

#fwcPromoPopup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#fwcPromoPopup.fwc-popup-visible {
    opacity: 1;
    pointer-events: auto;
}

.fwc-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 44, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fwc-popup-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 44px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(11, 28, 44, 0.35);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Trait décoratif doré en haut */
.fwc-popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b8935f, #d4af37, #b8935f);
}

#fwcPromoPopup.fwc-popup-visible .fwc-popup-card {
    transform: translateY(0) scale(1);
}

.fwc-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.fwc-popup-close:hover {
    background: #e2e8f0;
    color: #0b1c2c;
    transform: rotate(90deg);
}

.fwc-popup-icon {
    font-size: 52px;
    margin-bottom: 14px;
    display: block;
}

.fwc-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(184,147,95,0.15), rgba(212,175,55,0.10));
    border: 1px solid rgba(184,147,95,0.4);
    color: #92680a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.fwc-popup-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 800;
    color: #0b1c2c;
    line-height: 1.3;
    margin-bottom: 16px;
}

.fwc-popup-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 22px;
}

.fwc-popup-features {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.fwc-popup-features span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
}

.fwc-popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0b1c2c 0%, #1a3a52 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(11, 28, 44, 0.25);
    margin-bottom: 16px;
    border: 2px solid transparent;
}

.fwc-popup-btn:hover {
    background: linear-gradient(135deg, #b8935f 0%, #d4af37 100%);
    box-shadow: 0 6px 24px rgba(184,147,95,0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

.fwc-popup-footer {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ============================================================
   BANDEAU COOKIES RGPD
   ============================================================ */

#fwcCookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #0b1c2c;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}

#fwcCookieBanner.fwc-cookie-visible {
    transform: translateY(0);
}

.fwc-cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.fwc-cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.fwc-cookie-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fwc-cookie-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.fwc-cookie-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    margin: 0;
    line-height: 1.5;
}

.fwc-cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.fwc-cookie-link {
    font-size: 12px;
    color: rgba(184,147,95,0.85);
    text-decoration: underline;
    white-space: nowrap;
}

.fwc-cookie-link:hover {
    color: #b8935f;
}

.fwc-cookie-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fwc-cookie-accept {
    background: #b8935f;
    color: #ffffff;
    border-color: #b8935f;
}

.fwc-cookie-accept:hover {
    background: #d4af37;
    border-color: #d4af37;
}

.fwc-cookie-refuse {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.3);
}

.fwc-cookie-refuse:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   CORRECTIF Z-INDEX — Superposition header / dropdown / hero
   ============================================================
   PROBLÈME IDENTIFIÉ :
   Le header fixe a z-index:1000. Le dropdown aussi : 1000.
   Le hero utilise background-attachment:fixed, ce qui peut créer
   un stacking context gênant sur certains navigateurs.
   SOLUTION : élever le dropdown au-dessus de tout le reste.
   ============================================================ */

.header {
    z-index: 10000 !important;
}

.dropdown-content,
.juridictions-panel {
    z-index: 10001 !important;
}

/* S'assurer que le hero ne crée pas de stacking context parasite */
.hero {
    isolation: auto !important;
    z-index: 0 !important;
}

/* Le hero des pages juridictions avec margin-top explicite */
.juridiction-hero {
    z-index: 0 !important;
    position: relative !important;
}

/* Empêcher les popups bootstrap de passer sous le header */
.modal-backdrop {
    z-index: 10002 !important;
}
.modal {
    z-index: 10003 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .fwc-popup-card {
        padding: 36px 24px 30px;
        border-radius: 16px;
    }
    .fwc-popup-title {
        font-size: 22px;
    }
    .fwc-popup-features {
        gap: 8px;
    }
    .fwc-popup-btn {
        width: 100%;
        text-align: center;
    }

    .fwc-cookie-inner {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .fwc-cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .fwc-cookie-btn {
        flex: 1;
        text-align: center;
    }
}
