
/* ==========================================================
   MEDIQUAL — PAGES SPÉCIALITÉS & DM
   ========================================================== */

.mq-specialty-page,
.mq-specialty-page * {
    box-sizing: border-box;
}

.mq-specialty-page {
    background: #ffffff;
}

.mq-sp-hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0 72px;
    background:
        radial-gradient(circle at 92% 15%, rgba(21,155,149,.12), transparent 26%),
        radial-gradient(circle at 3% 3%, rgba(11,110,168,.09), transparent 24%),
        linear-gradient(180deg, #f8fbfd 0%, #eef7fa 100%);
}

.mq-sp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: clamp(42px, 6vw, 84px);
}

.mq-sp-hero__content {
    position: relative;
    z-index: 2;
}

.mq-sp-hero .breadcrumbs {
    margin-bottom: 20px;
    color: #6f8494;
    font-size: .93rem;
}

.mq-sp-hero .breadcrumbs a {
    color: #0b6ea8;
    text-decoration: none;
}

.mq-sp-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(11,110,168,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #0b6ea8;
    font-weight: 800;
}

.mq-sp-hero h1 {
    margin: 18px 0 18px;
    color: #0b3558;
    font-size: clamp(2.7rem, 5.2vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.mq-sp-hero .lead {
    max-width: 720px;
    margin: 0;
    color: #5d7485;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    line-height: 1.85;
}

.mq-sp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.mq-sp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid #cfe0e7;
    border-radius: 999px;
    background: #fff;
    color: #0b3558;
    font-weight: 800;
    text-decoration: none;
}

.mq-sp-hero__visual {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(205,224,232,.9);
    box-shadow: 0 24px 60px rgba(11,53,88,.12);
}

.mq-sp-hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(11,53,88,0) 66%,
        rgba(11,53,88,.08) 100%
    );
}

.mq-sp-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(.22,1,.36,1);
}

.mq-sp-hero__visual:hover img {
    transform: scale(1.025);
}

/* Intro */
.mq-sp-intro {
    padding: 78px 0 42px;
}

.mq-sp-intro__inner {
    max-width: 850px;
    text-align: center;
}

.mq-sp-kicker {
    display: inline-block;
    color: #0b6ea8;
    font-size: .83rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mq-sp-intro h2,
.mq-sp-services__head h2,
.mq-sp-cta h2 {
    margin: 12px 0 14px;
    color: #0b3558;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.13;
    letter-spacing: -.03em;
}

.mq-sp-intro p,
.mq-sp-services__head p,
.mq-sp-cta p {
    margin: 0;
    color: #627788;
    font-size: 1.06rem;
    line-height: 1.8;
}

/* Product sections */
.mq-sp-products {
    padding: 62px 0 80px;
}

.mq-sp-products--soft {
    background: #f7fafc;
    border-top: 1px solid #e3edf1;
    border-bottom: 1px solid #e3edf1;
}

.mq-sp-section-head {
    display: grid;
    grid-template-columns: 70px minmax(0, 760px);
    align-items: start;
    gap: 20px;
    margin-bottom: 34px;
}

.mq-sp-section-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #e8f5f7;
    color: #0b6ea8;
    font-weight: 900;
}

.mq-sp-section-head h2 {
    margin: 0 0 8px;
    color: #0b3558;
    font-size: clamp(1.8rem, 2.7vw, 2.55rem);
    letter-spacing: -.025em;
}

.mq-sp-section-head p {
    margin: 0;
    color: #627788;
    line-height: 1.75;
}

/* Cards */
.mq-sp-grid {
    display: grid;
    gap: 22px;
}

.mq-sp-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mq-sp-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mq-sp-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 850px;
}

.mq-sp-grid--1 {
    grid-template-columns: minmax(0, 740px);
}

.mq-sp-device-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid #dbe8ed;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(11,53,88,.055);
    transition:
        transform 230ms ease,
        box-shadow 230ms ease,
        border-color 230ms ease;
}

.mq-sp-device-card:hover {
    transform: translateY(-6px);
    border-color: rgba(11,110,168,.27);
    box-shadow: 0 22px 45px rgba(11,53,88,.11);
}

.mq-sp-device-card__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 5 / 3;
    background: #f4f8fa;
}

.mq-sp-device-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(11,53,88,0) 66%,
        rgba(11,53,88,.045) 100%
    );
}

.mq-sp-device-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 520ms cubic-bezier(.22,1,.36,1);
}

.mq-sp-device-card:hover .mq-sp-device-card__image img {
    transform: scale(1.04);
}

.mq-sp-device-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 26px;
}

.mq-sp-device-card h3 {
    margin: 0 0 11px;
    color: #0b3558;
    font-size: 1.23rem;
    line-height: 1.28;
}

.mq-sp-device-card p {
    flex: 1;
    margin: 0;
    color: #627788;
    font-size: .97rem;
    line-height: 1.72;
}

.mq-sp-device-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #0b6ea8;
    font-weight: 800;
    text-decoration: none;
}

.mq-sp-device-link span {
    transition: transform 170ms ease;
}

.mq-sp-device-link:hover span {
    transform: translateX(4px);
}

/* Services */
.mq-sp-services {
    padding: 82px 0;
    background: #0b3558;
    color: #fff;
}

.mq-sp-services__head {
    max-width: 780px;
    margin-bottom: 38px;
}

.mq-sp-services__head .mq-sp-kicker {
    color: #82d7d1;
}

.mq-sp-services__head h2 {
    color: #fff;
}

.mq-sp-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mq-sp-services__grid article {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(255,255,255,.055);
}

.mq-sp-services__grid article > span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #82d7d1;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.mq-sp-services__grid h3 {
    margin: 0 0 8px;
    color: #fff;
}

.mq-sp-services__grid p {
    margin: 0;
    color: #bed1dc;
    line-height: 1.65;
}

/* CTA */
.mq-sp-cta {
    padding: 68px 0;
    background: #f5f9fb;
}

.mq-sp-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.mq-sp-cta__inner > div {
    max-width: 760px;
}

/* Responsive */
@media (max-width: 1180px) {
    .mq-sp-grid--4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mq-sp-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .mq-sp-hero__grid {
        grid-template-columns: 1fr;
    }

    .mq-sp-hero__visual {
        min-height: 380px;
    }

    .mq-sp-hero__visual img {
        min-height: 380px;
    }

    .mq-sp-grid--4,
    .mq-sp-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .mq-sp-hero {
        padding: 48px 0 54px;
    }

    .mq-sp-hero__visual,
    .mq-sp-hero__visual img {
        min-height: 300px;
        border-radius: 22px;
    }

    .mq-sp-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mq-sp-hero__actions .btn,
    .mq-sp-btn-secondary {
        width: 100%;
    }

    .mq-sp-section-head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mq-sp-grid--4,
    .mq-sp-grid--3,
    .mq-sp-grid--2,
    .mq-sp-grid--1 {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .mq-sp-services__grid {
        grid-template-columns: 1fr;
    }

    .mq-sp-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .mq-sp-cta__inner .btn {
        width: 100%;
    }
}
