/* Medisup Popups — front-end styles
   Brand: Bleu-pétrole #114E60, Abricot #DE895A */

.msp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.msp-overlay.is-visible { opacity: 1; }

/* Blocking: dark backdrop catches clicks. Non-blocking: backdrop is
   transparent and lets clicks through to the page; only the popup is clickable. */
.msp-overlay.is-blocking {
    background: rgba(17, 78, 96, .55);
    pointer-events: auto;
}
.msp-overlay.is-nonblocking { background: transparent; }
.msp-overlay.is-nonblocking .msp-popup { pointer-events: auto; }

/* Positions */
.msp-overlay.pos-center { align-items: center; justify-content: center; }
.msp-overlay.pos-bottom-right { align-items: flex-end; justify-content: flex-end; }
.msp-overlay.pos-bar-bottom { align-items: flex-end; justify-content: center; padding: 0; }

/* Popup card */
.msp-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(17, 78, 96, .28);
    max-width: 460px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translateY(14px) scale(.98);
    transition: transform .28s ease;
    pointer-events: auto;
    font-family: inherit;
    color: #114E60;
}
.msp-overlay.is-visible .msp-popup { transform: translateY(0) scale(1); }

.msp-overlay.pos-bottom-right .msp-popup { max-width: 380px; }
.msp-overlay.pos-bar-bottom .msp-popup {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
}
.msp-overlay.pos-bar-bottom .msp-image { display: none; }

/* Close button */
.msp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #114E60;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(17, 78, 96, .18);
    transition: background .15s ease;
}
.msp-close:hover { background: #fff; }

/* Image */
.msp-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px 16px 0 0;
}

/* Body */
.msp-body { padding: 22px 24px 24px; }
.msp-bar-bottom .msp-body { padding: 0; flex: 1; }

.msp-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #114E60;
}
.msp-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #2c4d57;
}
.msp-text p:last-child { margin-bottom: 0; }

/* CTA */
.msp-cta {
    display: inline-block;
    background: #DE895A;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 999px;
    transition: background .15s ease, transform .15s ease;
}
.msp-cta:hover { background: #cf7846; transform: translateY(-1px); color: #fff; }

/* HubSpot form wrapper */
.msp-form { margin-top: 16px; }
.msp-form:empty { margin-top: 0; }

/* Body scroll lock when a blocking popup is open */
body.msp-locked { overflow: hidden; }

@media (max-width: 600px) {
    .msp-overlay { padding: 12px; }
    .msp-overlay.pos-bottom-right { align-items: flex-end; justify-content: center; }
    .msp-popup { max-width: 100%; }
    .msp-title { font-size: 19px; }
    .msp-overlay.pos-bar-bottom .msp-popup { flex-direction: column; align-items: flex-start; gap: 12px; }
}
