/* --- Share Modal Styles --- */
.share-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 1000; }
.share-modal.is-open { opacity: 1; visibility: visible; }
.share-modal__content { background: var(--white); padding: 30px; border-radius: 12px; width: 90%; max-width: 320px; text-align: center; position: relative; }
.share-modal__close { position: absolute; top: 10px; right: 15px; font-size: 28px; border: none; background: none; cursor: pointer; color: #aaa; }
.share-modal__links { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.share-modal__links a { display: block; padding: 12px; background: var(--bg-light); text-decoration: none; color: var(--text-dark); font-weight: 600; border-radius: 8px; }

/* --- "Coming Soon" Pro Modal Styles --- */
.pro-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 1001; }
.pro-modal.is-open { opacity: 1; visibility: visible; }
.pro-modal__content { background: var(--white); padding: 30px 40px; border-radius: 16px; width: 90%; max-width: 380px; text-align: center; position: relative; transform: scale(0.9); transition: transform 0.3s; }
.pro-modal.is-open .pro-modal__content { transform: scale(1); }
.pro-modal__close { position: absolute; top: 10px; right: 15px; font-size: 28px; border: none; background: none; cursor: pointer; color: #aaa; }
.pro-modal__icon { font-size: 48px; margin-bottom: 15px; }
.pro-modal h3 { color: var(--primary-color); margin: 0 0 10px 0; font-size: 22px; font-weight: 700; }
.pro-modal p { color: var(--text-light); margin: 0; line-height: 1.5; margin-bottom: 20px; }
.pro-modal-form .fluentform .ff-el-group .ff-el-input--content { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 15px; }
.pro-modal-form .fluentform .ff-btn-submit { width: 100%; background-color: var(--accent-color); border: none; padding: 12px; font-weight: 600; border-radius: 8px; }

/* --- "Contact Us" Modal Styles --- */
.contact-modal {
    /* === THE FIX IS HERE === */
    position: fixed; /* Takes it out of the normal page flow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Makes it invisible */
    visibility: hidden; /* Hides it from screen readers and interaction */
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1002;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal__content {
    background: var(--white);
    padding: 30px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.contact-modal.is-open .contact-modal__content {
    transform: scale(1);
}

.contact-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: #aaa;
}

.contact-modal__header h3 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
}

.contact-modal__header p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    margin-bottom: 25px;
}

.contact-modal-form .fluentform .ff-el-group .ff-el-input--content {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
}

.contact-modal-form .fluentform .ff-btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
}

/* --- STYLES POUR LA PRICING MODALE --- */

.nect-modal-overlay {
    position: fixed; /* Reste en place au dÃ©filement */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* S'assure qu'elle est au-dessus de tout */
    opacity: 0;
    visibility: hidden; /* CachÃ©e par dÃ©faut */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nect-modal-overlay.active {
    opacity: 1;
    visibility: visible; /* La rend visible */
}

.nect-modal-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.nect-modal-overlay.active .nect-modal-box {
    transform: translateY(0);
}

.nect-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.nect-modal-close:hover {
    color: #333;
}

.nect-modal-box h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Open Sans', sans-serif; /* Assure la consistance de la police */
}

/* --- Main Modal Container (Corrected z-index) --- */
.nectarine-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 99998; /* A very high value to ensure it's on top */
    overflow-y: auto;
    padding: 20px;
}

.nectarine-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Modal Dialog Box (Corrected z-index) --- */
.nectarine-modal-dialog {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
    z-index: 99999; /* Higher than the backdrop */
}

/* --- Modal Content Wrapper --- */
.nectarine-modal-content {
    position: relative; /* This is important for positioning the close button correctly */
}

/* --- Modal Body (THIS IS THE FIX) --- */
.nectarine-modal-body {
    padding: 30px; /* Adds a clean margin around all content inside the modal */
}

/* Optional: Adjust for smaller screens */
@media (max-width: 500px) {
    .nectarine-modal-body {
        padding: 20px;
    }
}