/* Jim Popup - styles front-office */

.jimpopup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.jimpopup-overlay.jimpopup-visible {
    display: flex;
}

.jimpopup-box {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    animation: jimpopup-fade-in 0.25s ease-out;
}

@keyframes jimpopup-fade-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jimpopup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 4px 8px;
}

.jimpopup-close:hover {
    color: #222;
}

.jimpopup-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    padding-right: 20px;
}

.jimpopup-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.jimpopup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.jimpopup-content p {
    margin: 0 0 12px 0;
}

.jimpopup-content p:last-child {
    margin-bottom: 0;
}

.jimpopup-action {
    margin-top: 20px;
    text-align: center;
}

.jimpopup-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #2fb5d2;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.jimpopup-btn:hover {
    background-color: #258ea7;
    color: #ffffff !important;
}

/* Responsive : mobiles et petites tablettes */
@media (max-width: 575px) {
    .jimpopup-box {
        padding: 24px 18px;
        max-width: 100%;
        border-radius: 4px;
    }

    .jimpopup-title {
        font-size: 19px;
    }

    .jimpopup-content {
        font-size: 14px;
    }

    .jimpopup-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Tablettes */
@media (min-width: 576px) and (max-width: 991px) {
    .jimpopup-box {
        max-width: 460px;
    }
}
