/* Xtreme Popups Styles - Même style que la popup de contact */

/* Modale de Popup */
.xtreme-popup-modal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important; /* Z-index très élevé pour être sûr */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* Forcer l'affichage si la classe active est présente */
.xtreme-popup-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
}

.xtreme-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.xtreme-popup-content {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Effet de brillance animé pour la popup (comme le header) */
.xtreme-popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.xtreme-popup-content:hover::before {
    left: 100%;
}

/* Reflet subtil en bas de la popup */
.xtreme-popup-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    pointer-events: none;
    z-index: 0;
}

.xtreme-popup-modal.active .xtreme-popup-content {
    transform: scale(1);
}

.xtreme-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000000 !important; /* Z-index très élevé pour être au-dessus de tout */
    transition: transform 0.3s ease;
    pointer-events: auto !important;
}

.xtreme-popup-close:hover {
    transform: rotate(90deg);
}

.xtreme-popup-close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 0;
}

.xtreme-popup-close span:nth-child(1) {
    transform: rotate(45deg);
}

.xtreme-popup-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.xtreme-popup-body {
    position: relative;
    z-index: 1;
}

.xtreme-popup-title {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.xtreme-popup-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.xtreme-popup-text p {
    margin: 0 0 15px 0;
    color: #fff;
}

.xtreme-popup-text a {
    color: #C175F3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.xtreme-popup-text a:hover {
    color: #fff;
}

.xtreme-popup-text h1,
.xtreme-popup-text h2,
.xtreme-popup-text h3,
.xtreme-popup-text h4,
.xtreme-popup-text h5,
.xtreme-popup-text h6 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin: 20px 0 10px 0;
}

.xtreme-popup-text ul,
.xtreme-popup-text ol {
    margin: 15px 0;
    padding-left: 20px;
    color: #fff;
}

.xtreme-popup-text li {
    margin: 5px 0;
    color: #fff;
}

/* Bouton personnalisé */
.xtreme-popup-button-wrapper {
    margin-top: 30px;
    text-align: center;
}

.xtreme-popup-button {
    display: inline-block;
    background: #C175F3;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #C175F3;
    letter-spacing: -0.6px;
    box-shadow: 0 4px 15px rgba(193, 117, 243, 0.3);
}

.xtreme-popup-button:hover {
    background: rgba(193, 117, 243, 0.8);
    border-color: rgba(193, 117, 243, 0.8);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 117, 243, 0.4);
}

.xtreme-popup-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(193, 117, 243, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .xtreme-popup-content {
        padding: 30px 20px;
        border-radius: 30px;
        width: 95%;
    }
    
    .xtreme-popup-title {
        font-size: 20px;
    }
    
    .xtreme-popup-text {
        font-size: 14px;
    }
    
    .xtreme-popup-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .xtreme-popup-content {
        padding: 25px 15px;
        border-radius: 25px;
    }
    
    .xtreme-popup-title {
        font-size: 18px;
    }
    
    .xtreme-popup-close {
        top: 15px;
        right: 15px;
        width: 25px;
        height: 25px;
    }
    
    .xtreme-popup-button {
        font-size: 14px;
        padding: 10px 25px;
    }
}

