/**
 * Prowash — couche mobile globale
 * Toutes les règles sont scoped ≤991px : aucun impact desktop.
 */
@media (max-width: 767.98px) {
    .site-header.lonyo-header-section {
        background: #fff !important;
        border-bottom: 1px solid rgba(20, 45, 111, 0.08);
        box-shadow: 0 4px 18px rgba(20, 45, 111, 0.06);
    }

    .site-header .lonyo-menu-toggle {
        border-color: rgba(20, 45, 111, 0.12);
        background: #f4f7ff;
    }

    .site-header .lonyo-menu-toggle span,
    .site-header .lonyo-menu-toggle span::before,
    .site-header .lonyo-menu-toggle span::after {
        background: #142D6F;
    }

    .pe-header-phone {
        background: #eef3ff;
        color: #142D6F;
    }

    .pe-header-logo__wordmark {
        height: 32px;
        width: auto;
        max-width: 130px;
    }
}

@media (max-width: 991px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body.pe-has-bottom-nav {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        overflow-x: hidden;
    }

    #main-content {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lonyo-section-padding,
    .lonyo-section-padding3,
    .lonyo-section-padding6 {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .lonyo-default-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Header mobile */
    .pe-header-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: 10px;
        border-radius: 50%;
        background: #A3BDFF;
        color: #142D6F;
        font-size: 20px;
        line-height: 1;
        text-decoration: none;
        flex-shrink: 0;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .pe-header-phone:active {
        transform: scale(0.94);
        background: #fff;
    }

    .pe-site-header__right {
        gap: 0;
        align-items: center;
    }

    /* Pourquoi nous — accueil */
    .pe-home-trust {
        padding-top: 44px;
    }

    .pe-home-trust .row {
        flex-direction: column;
        gap: 28px !important;
    }

    .pe-home-trust .col-lg-5 {
        order: 2;
    }

    .pe-home-trust .col-lg-7 {
        order: 1;
    }

    .pe-home-trust .pe-ba-compare,
    .pe-home-trust .col-lg-5 .mt-40 {
        display: none;
    }

    .pe-home-trust .lonyo-default-content {
        padding-left: 0 !important;
        text-align: center;
    }

    .pe-home-trust .lonyo-default-content h2 {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.15;
    }

    .pe-home-trust .lonyo-default-content .data {
        font-size: 16px;
        line-height: 1.65;
    }

    .pe-benefit-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .pe-benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 12px;
        gap: 8px;
        margin: 0;
    }

    .pe-home-section-split {
        margin-bottom: 32px;
    }

    .pe-home-section-link {
        width: 100%;
        justify-content: center;
    }

    .pe-benefit-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .pe-benefit-icon img {
        width: 28px;
        height: 28px;
    }

    .pe-benefit-item h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .pe-benefit-item p {
        font-size: 12px;
        line-height: 1.45;
    }

    /* Prestations — onglets segmentés */
    .pe-services-tabs .pe-svc-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding: 5px;
        gap: 4px;
        border-radius: 14px;
    }

    .pe-services-tabs .pe-svc-tabs li {
        flex: unset;
        min-width: 0;
        flex-direction: column;
        padding: 10px 6px;
        min-height: 68px;
        gap: 5px;
        border-radius: 10px;
    }

    .pe-services-tabs .pe-svc-tabs li h4 {
        font-size: 12px;
        text-align: center;
    }

    .pe-svc-head {
        margin-bottom: 28px;
    }

    .pe-svc-head h2 {
        font-size: clamp(22px, 5.5vw, 28px);
    }

    .pe-svc-body {
        padding: 20px 16px;
    }

    .pe-svc-copy h3 {
        font-size: 22px;
    }

    .pe-svc-copy .data {
        font-size: 15px;
    }

    .pe-svc-btns {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    .pe-svc-btns .lonyo-default-btn,
    .pe-svc-btns .pe-svc-btn-outline {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .pe-svc-visual {
        margin-top: 20px;
    }

    /* Secteurs */
    .pe-home-sectors .pe-sector-card-img {
        height: 200px;
    }

    .pe-sectors-banner {
        padding: 24px 18px;
        text-align: center;
        justify-content: center;
    }

    .pe-sectors-banner .lonyo-default-btn {
        width: 100%;
        justify-content: center;
    }

    /* Blog accueil */
    .pe-blog-section {
        padding-top: 52px;
    }

    .pe-blog-head {
        padding: 20px 16px;
    }

    .pe-blog-head .d-flex {
        justify-content: flex-start !important;
        margin-top: 16px;
    }

    .pe-blog-hero-body {
        padding: 20px 16px 24px;
    }

    .pe-blog-mini {
        padding: 14px;
        gap: 12px;
    }

    .pe-blog-mini-thumb {
        width: 80px;
        height: 76px;
    }
}

@media (max-width: 767px) {
    /* Hero mobile — accueil */
    .pe-hero-zone {
        display: flex;
        flex-direction: column;
        padding-top: 68px;
        background:
            radial-gradient(ellipse 120% 60% at 50% -10%, rgba(163, 189, 255, 0.35) 0%, transparent 55%),
            linear-gradient(180deg, #f4f7ff 0%, #fff 38%);
    }

    .pe-hero-split.lonyo-hero-section3,
    .pe-hero-split .container,
    .pe-hero-row {
        display: contents;
    }

    .pe-hero-split.lonyo-hero-section3 {
        padding: 0;
    }

    .pe-hero-copy-col {
        order: 1;
        padding: 0 16px;
    }

    .pe-hero-gallery-col {
        order: 2;
        padding: 0 16px;
        margin-top: 16px;
    }

    .pe-hero-track-wrap {
        order: 3;
        margin-top: 16px;
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .pe-hero-split .lonyo-hero-content3 {
        text-align: center;
    }

    .pe-hero-split .lonyo-hero-content3 .text {
        text-align: center;
        max-width: none;
        font-size: 15px;
        line-height: 1.6;
        padding-top: 10px;
        color: #5a6a85;
    }

    .pe-hero-split .hero-title {
        font-size: clamp(25px, 6.8vw, 32px);
        line-height: 1.18;
        margin-bottom: 12px;
        text-align: center;
        letter-spacing: -0.02em;
    }

    .pe-hero-tag {
        font-size: 10px;
        padding: 5px 12px;
        margin-bottom: 14px;
        letter-spacing: 0.06em;
    }

    .pe-hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .pe-hero-actions .lonyo-default-btn,
    .pe-hero-actions .pe-hero-btn-secondary {
        width: 100%;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 13px;
        font-weight: 800;
        border-radius: 12px;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }

    .pe-hero-actions .lonyo-default-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 8px 22px rgba(20, 45, 111, 0.22);
    }

    .pe-hero-actions .lonyo-default-btn i {
        font-size: 16px;
    }

    .pe-hero-btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #142D6F;
        background: #fff;
        border: 2px solid rgba(20, 45, 111, 0.14);
        text-decoration: none;
        transition: background 0.2s ease, border-color 0.2s ease;
    }

    .pe-hero-btn-secondary:active {
        background: #F6F4EF;
        border-color: #142D6F;
    }

    .pe-hero-trust-pills {
        list-style: none;
        margin: 16px -4px 0;
        padding: 0 4px 2px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .pe-hero-trust-pills::-webkit-scrollbar {
        display: none;
    }

    .pe-hero-trust-pills li {
        flex: 0 0 auto;
        scroll-snap-align: start;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 800;
        color: #142D6F;
        white-space: nowrap;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(20, 45, 111, 0.08);
        box-shadow: 0 4px 14px rgba(20, 45, 111, 0.06);
    }

    .pe-hero-trust-pills li i {
        font-size: 15px;
        color: #142D6F;
        opacity: 0.8;
    }

    .pe-hero-gallery {
        position: relative;
        min-height: 0;
        padding: 0;
    }

    .pe-hero-card--accent,
    .pe-hero-card--secondary {
        display: none;
    }

    .pe-hero-card--main {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        transform: none !important;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 16px 40px rgba(20, 45, 111, 0.14);
    }

    .pe-hero-card--main::before {
        display: none;
    }

    .pe-hero-card--main img {
        height: auto;
        aspect-ratio: 16 / 10;
        max-height: 220px;
        object-position: center top;
        border-radius: 18px;
    }

    .pe-hero-gallery-bg {
        display: none;
    }

    .pe-hero-floats {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        margin-top: 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-end;
        gap: 8px;
        pointer-events: none;
    }

    .pe-hero-float {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        animation: none;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(20, 45, 111, 0.12);
    }

    .pe-hero-float--rating {
        flex-shrink: 0;
    }

    .pe-hero-float--delay {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
    }

    .pe-hero-float--delay strong {
        font-size: 15px;
    }

    .pe-hero-float--delay span {
        font-size: 10px;
    }

    .pe-hero-track {
        max-width: none;
        border-radius: 20px;
        padding: 18px 16px 20px;
        box-shadow: 0 14px 40px rgba(20, 45, 111, 0.12);
        border: 1px solid rgba(20, 45, 111, 0.06);
    }

    .pe-zone-check {
        position: relative;
    }

    .pe-zone-check-mobile-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: rgba(163, 189, 255, 0.38);
        color: #142D6F;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
    }

    .pe-zone-check-badge {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .pe-zone-check-title {
        font-size: 17px;
        line-height: 1.25;
        margin-bottom: 6px;
    }

    .pe-zone-check-lead {
        margin: 0 0 14px;
        font-size: 14px;
        line-height: 1.5;
        color: #6b7a99;
    }

    .pe-zone-check-form {
        flex-direction: column;
        padding: 6px;
        gap: 8px;
        border-radius: 14px;
    }

    .pe-zone-check-input-wrap {
        padding: 0 14px;
        min-height: 50px;
    }

    .pe-zone-check-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .pe-zone-check-form input {
        font-size: 16px;
        padding: 13px 0;
    }

    .pe-zone-check-btn {
        width: 100%;
        min-height: 50px;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .pe-hero-zone {
        padding-top: 64px;
    }

    .pe-benefit-item h4 {
        font-size: 13px;
    }

    .pe-benefit-item p {
        font-size: 11px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .pe-hero-actions,
    .pe-hero-trust-pills,
    .pe-zone-check-lead,
    .pe-zone-check-mobile-icon {
        display: none !important;
    }
}
