/* =============================================
   POPUPS — France Web Services
   Palette marine/cuivre — NE PAS MODIFIER LE JS
============================================= */

/* ── Cookie popup ── */
#cookiePopup {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
    display: flex; justify-content: center;
    pointer-events: none; opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
#cookiePopup.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-box {
    background: linear-gradient(135deg, #07111C, #0D1B2A, #07111C);
    border: 2px solid #B87333;
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    padding: 24px 32px 20px;
    max-width: 720px; width: 100%;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    position: relative;
}
.cookie-crumbs {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; pointer-events: none;
}
.cookie-crumb { font-size: 1rem; animation: wcWobble 3s ease-in-out infinite; }
.cookie-crumb:nth-child(2) { animation-delay: 0.4s; }
.cookie-crumb:nth-child(3) { animation-delay: 0.8s; }
.cookie-crumb:nth-child(4) { animation-delay: 1.2s; }
.cookie-crumb:nth-child(5) { animation-delay: 1.6s; }
.cookie-content { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.cookie-icon-big { font-size: 3rem; flex-shrink: 0; animation: wcWobble 3s ease-in-out infinite; }
.cookie-text h3 { margin: 0 0 5px; font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: #B87333; }
.cookie-text p { margin: 0; font-size: 0.83rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.cookie-text a { color: #B87333; }
.cookie-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.cookie-btn-accept {
    background: linear-gradient(135deg, #B87333, #D4925A);
    color: #07111C; font-weight: 700; font-size: 0.88rem;
    border: none; border-radius: 30px; padding: 10px 22px;
    cursor: pointer; box-shadow: 0 4px 15px rgba(184,115,51,0.4);
}
.cookie-btn-refuse {
    background: transparent; color: rgba(255,255,255,0.5);
    font-size: 0.83rem; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px; padding: 10px 18px; cursor: pointer;
}
@media(max-width:600px) {
    .cookie-box { padding: 18px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-icon-big { font-size: 2.2rem; }
}

/* ── Promo popup ── */
.popup-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(7,17,28,0.75); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.popup-overlay.active { opacity: 1; pointer-events: auto; }
.wc-promo {
    background: linear-gradient(145deg, #0D1B2A, #162436);
    border: 1.5px solid rgba(184,115,51,0.35);
    border-radius: 24px; padding: 40px 36px;
    max-width: 480px; width: 90%; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    text-align: center;
    animation: wcFadeUp 0.4s ease both;
}
.wc-promo__close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 1.4rem; cursor: pointer; transition: color 0.2s;
    line-height: 1;
}
.wc-promo__close:hover { color: #fff; }
.wc-promo__emoji { font-size: 3rem; margin-bottom: 12px; }
.wc-promo__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem; color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.wc-promo__title em { color: #B87333; font-style: italic; }
.wc-promo__desc { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-bottom: 24px; line-height: 1.6; }
.wc-promo__cta {
    display: inline-block;
    background: linear-gradient(135deg, #B87333, #D4925A);
    color: #07111C; font-weight: 700; font-size: 0.95rem;
    padding: 13px 28px; border-radius: 12px;
    text-decoration: none; transition: opacity 0.2s;
    border: none; cursor: pointer; font-family: inherit;
}
.wc-promo__cta:hover { opacity: 0.88; }
.wc-promo__sub { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 12px; }

/* ── Succès formulaire ── */
.popup-success .wc-success {
    background: linear-gradient(145deg, #0D1B2A, #162436);
    border: 1.5px solid rgba(184,115,51,0.3);
    border-radius: 24px; padding: 48px 40px;
    max-width: 440px; width: 90%; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    text-align: center;
    animation: wcFadeUp 0.4s ease both;
}
.wc-success__icon { font-size: 3.5rem; margin-bottom: 16px; }
.wc-success h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem; color: #fff; margin-bottom: 10px;
}
.wc-success h2 em { color: #B87333; }
.wc-success p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
.wc-success__close {
    background: linear-gradient(135deg, #B87333, #D4925A);
    color: #07111C; font-weight: 700; padding: 11px 26px;
    border-radius: 10px; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.9rem;
}
