
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* =============================================
   OVERLAY
============================================= */
.popup-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-overlay.popup-visible {
    opacity: 1;
    pointer-events: all;
}

/* =============================================
   FENETRE POPUP
============================================= */
.popup-fenetre {
    position: relative;
    background-color: #0759bb;
    border: 3px solid #E8621A;
    border-radius: 20px;
    display: flex;
    align-items: stretch;
    max-width: 688px;
    width: calc(100% - 40px);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.popup-overlay.popup-visible .popup-fenetre {
    transform: translateY(0);
}

/* =============================================
   BOUTON FERMETURE
============================================= */
.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 2.5px solid #E8621A;
    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-close:hover {
    background: rgba(232, 98, 26, 0.15);
}

.popup-close svg {
    width: 18px;
    height: 18px;
    stroke: #E8621A;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* =============================================
   COLONNE GAUCHE (image)
============================================= */
.popup-gauche {
    flex: 0 0 290px;
    position: relative;
    overflow: hidden;
    padding: 16px 8px 16px 20px;
}

.popup-gauche img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =============================================
   COLONNE DROITE (contenu)
============================================= */
.popup-droite {
    flex: 1;
    padding: 48px 10px 40px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.popup-surtitre,
.popup-titre {
    font-family: "Oswald", sans-serif;
    font-size: 29px !important;
    font-weight: 700;
    color: #FEFAC0;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0;
}

.popup-coorganise {
    font-family: "Oswald", sans-serif;
    font-size: 25px !important;
    font-weight: 300;
    color: #FEFAC0;
    margin: 0;
}

.popup-date {
    font-family: "Oswald", sans-serif;
    font-size: 20px !important;
    font-weight: 700;
    color: #E8621A;
    margin: 0;
    text-align: center;
}

.popup-btn {
    display: inline-block;
    background-color: #FEFAC0;
    color: #0859BB;
    font-family: "Raleway", sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    padding: 13px 25px;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    margin: 8px auto 5px;
    transition: background 0.2s, color 0.2s;
}

.popup-btn:hover {
    color: #E8621A;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 640px) {
    .popup-fenetre {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-gauche {
        flex: none;
        height: 200px;
    }

    .popup-droite {
        padding: 5px 14px 5px;
        gap: 12px;
        margin: 0 auto;
        width: 285px;
    }

    .popup-surtitre { font-size: 20px !important; }
    .popup-titre    { font-size: 20px !important; }
    .popup-coorganise    { font-size: 15px !important; }
    .popup-date     { font-size: 14px !important; text-align: left; }
    
    .popup-btn {
        font-size: 13px !important;
        padding: 10px 15px;
        border-radius: 12px;
    }
}
