
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Solway:wght@300;400;500;700;800&display=swap');

/* =============================================
   OVERLAY
============================================= */
.popup-cloture-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.popup-cloture-overlay.popup-visible {
    opacity: 1;
    pointer-events: all;
}

/* =============================================
   FENETRE POPUP
============================================= */
.popup-cloture-fenetre {
    position: relative;
    background-color: #FFFFFF;
    border: 3px solid #F6B932;
    border-radius: 20px;
    max-width: 688px;
    width: calc(100% - 40px);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.popup-cloture-overlay.popup-visible .popup-cloture-fenetre {
    transform: translateY(0);
}

/* =============================================
   BOUTON FERMETURE
============================================= */
.popup-cloture-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 2.5px solid #014587;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    padding: 0;
}

.popup-cloture-close:hover {
    background: rgba(1, 69, 135, 0.1);
}

.popup-cloture-close svg {
    width: 18px;
    height: 18px;
    stroke: #014587;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* =============================================
   CONTENU
============================================= */
.popup-cloture-contenu {
    padding: 40px 60px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.popup-cloture-titre {
    font-family: "Solway", serif;
    font-size: 22px !important;
    font-weight: 700;
    color: #F6B932;
    line-height: 1.3;
    margin: 0 0 4px;
}

.popup-cloture-texte {
    font-family: "Raleway", sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    color: #014587;
    line-height: 1.4;
    margin: 0;
}

.popup-cloture-important {
    font-weight: 700;
    padding: 0 40px;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 640px) {
    .popup-cloture-fenetre {
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-cloture-contenu {
        padding: 64px 20px 28px;
        gap: 14px;
    }

    .popup-cloture-titre    { font-size: 20px !important; }
    .popup-cloture-texte    { font-size: 15px !important; }
    .popup-cloture-important { padding: 0; }
}
