/* Overlay de fond */
.announcement-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 63, 0);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}

.announcement-popup-overlay.active {
    display: flex;
    background-color: rgba(0, 40, 63, 0.50);
}

/* Container de la popup */
.announcement-popup {
    background: #ffffff;
    border-radius: 50px;
    padding: 35px 75px;
    max-width: 712px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.announcement-popup-overlay.active .announcement-popup {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Bouton de fermeture */
.announcement-popup-close {
    position: absolute;
    top: 43px;
    right: 30px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
    transform: scaleY(-1);
}

.announcement-popup-close::before,
.announcement-popup-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: #00283f;
    top: 50%;
    left: 50%;
}

.announcement-popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.announcement-popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.announcement-popup-close:hover::before,
.announcement-popup-close:hover::after {
    background-color: #5cbe95;
}

/* Contenu de la popup */
.announcement-popup-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

/* Date */
.announcement-popup-date {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    line-height: 1;
    color: #00283f;
    text-align: center;
    margin: 0;
}

/* Titre */
.announcement-popup-title {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 21px!important;
    line-height: 23px;
    color: #5cbe95;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

/* Container de l'image */
.announcement-popup-image-container {
    position: relative;
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    background-color: #00283f;
}

.announcement-popup-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
}

/* Container vidéo */
.announcement-popup-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 40px;
    overflow: hidden;
    background-color: #00283f;
}

.announcement-popup-video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Description */
.announcement-popup-description {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #00283f;
    text-align: center;
    margin: 0;
    max-width: 451px;
    margin-left: auto;
    margin-right: auto;
    ul{
        margin-left: 15px;
    }
    p{
        padding-bottom: 10px;
    }
}

/* Responsive */
@media screen and (max-width: 991px) {
    .announcement-popup {
        padding: 30px 50px;
        max-width: 600px;
        gap: 20px;
    }
    
    .announcement-popup-close {
        top: 35px;
        right: 25px;
    }

    .announcement-popup-title {
        font-size: 19px;
        line-height: 21px;
    }
}

@media screen and (max-width: 767px) {
    .announcement-popup {
        padding: 25px 30px;
        border-radius: 30px;
        width: 95%;
        gap: 15px;
    }
    
    .announcement-popup-close {
        top: 20px;
        right: 20px;
        width: 14px;
        height: 14px;
    }
    
    .announcement-popup-close::before,
    .announcement-popup-close::after {
        width: 14px;
    }

    .announcement-popup-content {
        gap: 12px;
    }
    
    .announcement-popup-date {
        font-size: 13px;
    }

    .announcement-popup-title {
        font-size: 18px;
        line-height: 20px;
    }
    
    .announcement-popup-image-container {
        border-radius: 20px;
    }

    .announcement-popup-image-container img {
        border-radius: 20px;
    }

    .announcement-popup-video-container {
        border-radius: 20px;
    }
    
    .announcement-popup-description {
        font-size: 14px;
        line-height: 18px;
    }
}

@media screen and (max-width: 480px) {
    .announcement-popup {
        padding: 20px 25px;
        border-radius: 25px;
    }
    
    .announcement-popup-close {
        top: 15px;
        right: 15px;
    }

    .announcement-popup-title {
        font-size: 17px;
        line-height: 19px;
    }
}
