/**
 * Accueil mobile — maquette dédiée (≤767px)
 * Le desktop utilise .pe-home-desktop (≥768px).
 */
@media (max-width: 767.98px) {
    body.pe-page-home.pe-has-bottom-nav {
        padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    }

    body.pe-page-home .site-header.lonyo-header-section {
        display: none !important;
    }

    /* ── Header accueil mobile ── */
    .pe-mhome-header {
        position: sticky;
        top: 0;
        z-index: 120;
        background: #fff;
        border-bottom: 1px solid rgba(20, 45, 111, 0.08);
        box-shadow: 0 4px 18px rgba(20, 45, 111, 0.04);
        padding-top: env(safe-area-inset-top, 0px);
    }

    .pe-mhome-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 56px;
        padding: 8px 16px;
    }

    .pe-mhome-header__logo {
        display: inline-flex;
        align-items: center;
        line-height: 0;
        flex-shrink: 0;
    }

    .pe-mhome-header__logo img {
        height: 32px;
        width: auto;
        max-width: 130px;
        object-fit: contain;
        display: block;
    }

    .pe-mhome-header__actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .pe-mhome-header__link {
        color: #142D6F;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .pe-mhome-header__link:active {
        opacity: 0.72;
    }

    .pe-mhome-header__space.pe-space-link--avatar {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 10px 4px 4px;
        border-radius: 999px;
        background: #f4f7ff;
        border: 1px solid rgba(20, 45, 111, 0.08);
    }

    .pe-mhome-header__space .pe-space-link__avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
    }

    .pe-mhome-header__space .pe-space-link__label {
        font-size: 14px;
        font-weight: 700;
        color: #142D6F;
    }

    .pe-mhome-header__menu.lonyo-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border-radius: 12px;
        border: 1px solid rgba(20, 45, 111, 0.12);
        background: #f4f7ff;
        color: #142D6F;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        flex-shrink: 0;
    }

    .pe-mhome-header__menu.lonyo-menu-toggle:active {
        background: #e8efff;
    }

    .pe-mhome {
        background: #fff;
        padding: 12px 16px 24px;
    }

    /* ── Hero ── */
    .pe-mhome-hero__badge {
        display: inline-block;
        padding: 6px 12px;
        border-radius: 999px;
        background: #eef3ff;
        color: #0047FF;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .pe-mhome-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 10px;
        align-items: start;
        margin-bottom: 16px;
    }

    .pe-mhome-hero__title {
        margin: 0 0 10px;
        font-size: clamp(22px, 6.2vw, 28px);
        line-height: 1.14;
        letter-spacing: -0.03em;
        color: #142D6F;
        font-weight: 800;
    }

    .pe-mhome-hero__accent {
        color: #0047FF;
    }

    .pe-mhome-hero__lead {
        margin: 0 0 12px;
        font-size: 13px;
        line-height: 1.55;
        color: #5a6a85;
    }

    .pe-mhome-hero__checks {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 6px;
    }

    .pe-mhome-hero__checks li {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        font-weight: 700;
        color: #142D6F;
    }

    .pe-mhome-hero__checks i {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: rgba(0, 71, 255, 0.1);
        color: #0047FF;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        flex-shrink: 0;
    }

    .pe-mhome-hero__cta {
        width: 100%;
        min-height: 50px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 800;
        background: #0047FF !important;
        box-shadow: 0 10px 28px rgba(0, 71, 255, 0.28);
        gap: 8px;
        margin-bottom: 14px;
    }

    .pe-mhome-hero__proof {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 4px;
    }

    .pe-mhome-hero__avatars {
        display: flex;
        flex-shrink: 0;
    }

    .pe-mhome-hero__avatars span {
        width: 28px;
        height: 28px;
        margin-left: -7px;
        border-radius: 50%;
        border: 2px solid #fff;
        background: #A3BDFF;
        color: #142D6F;
        font-size: 10px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pe-mhome-hero__avatars span:first-child {
        margin-left: 0;
    }

    .pe-mhome-hero__proof-text {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 6px;
        line-height: 1.2;
    }

    .pe-mhome-hero__proof-text strong {
        font-size: 12px;
        color: #142D6F;
        width: 100%;
    }

    .pe-mhome-hero__stars {
        color: #f5b301;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .pe-mhome-hero__reviews {
        font-size: 11px;
        font-weight: 700;
        color: #6b7a99;
    }

    .pe-mhome-hero__visual {
        position: relative;
        margin: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(20, 45, 111, 0.14);
        height: 100%;
        min-height: 220px;
    }

    .pe-mhome-hero__visual img {
        width: 100%;
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        display: block;
    }

    .pe-mhome-hero__chip {
        position: absolute;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 7px 10px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.96);
        color: #142D6F;
        font-size: 9px;
        font-weight: 800;
        box-shadow: 0 6px 18px rgba(20, 45, 111, 0.12);
        line-height: 1.2;
    }

    .pe-mhome-hero__chip i {
        color: #0047FF;
        font-size: 14px;
        flex-shrink: 0;
    }

    .pe-mhome-hero__chip small {
        display: block;
        font-size: 7px;
        font-weight: 800;
        letter-spacing: 0.06em;
        color: #6b7a99;
    }

    .pe-mhome-hero__chip--express {
        right: 6px;
        top: 6px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-width: calc(100% - 12px);
    }

    .pe-mhome-hero__chip--quality {
        left: 6px;
        bottom: 6px;
        font-size: 8px;
        max-width: calc(100% - 12px);
    }

    /* ── Zone check mobile ── */
    .pe-zone-check-wrap--mobile {
        margin: 18px 0 0;
        padding: 0;
    }

    .pe-zone-check-wrap--mobile .pe-hero-track {
        margin: 0;
        padding: 16px;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(0, 71, 255, 0.08);
        border: 1px solid rgba(0, 71, 255, 0.08);
        background: linear-gradient(135deg, #eef3ff 0%, #f8faff 100%);
    }

    .pe-mzone-head {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }

    .pe-mzone-head__icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #fff;
        color: #0047FF;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(0, 71, 255, 0.1);
    }

    .pe-mzone-head__title {
        margin: 0 0 4px;
        font-size: 15px;
        line-height: 1.25;
        color: #142D6F;
        font-weight: 800;
    }

    .pe-mzone-head__lead {
        margin: 0;
        font-size: 12px;
        color: #6b7a99;
    }

    .pe-zone-check-form--mobile {
        flex-direction: row;
        align-items: stretch;
        padding: 4px;
        gap: 6px;
        background: #fff;
        border-radius: 14px;
        border: 1px solid rgba(20, 45, 111, 0.08);
    }

    .pe-zone-check-form--mobile .pe-zone-check-field {
        flex: 1;
    }

    .pe-zone-check-form--mobile .pe-zone-check-input-wrap {
        min-height: 44px;
        padding: 0 10px;
        background: #f8faff;
        border-radius: 10px;
        gap: 8px;
    }

    .pe-zone-check-icon--mobile {
        color: #0047FF;
        font-size: 16px;
        flex-shrink: 0;
    }

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

    .pe-zone-check-form--mobile .pe-zone-check-btn {
        width: auto;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 13px;
        white-space: nowrap;
        background: #0047FF !important;
    }

    .pe-zone-check-form--mobile .pe-zone-check-btn i {
        display: none;
    }

    /* ── Sections communes ── */
    .pe-mhome-section {
        margin-top: 28px;
    }

    .pe-mhome-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .pe-mhome-section__head h2,
    .pe-mhome-process > h2 {
        margin: 0;
        font-size: 18px;
        line-height: 1.2;
        color: #142D6F;
        letter-spacing: -0.02em;
        font-weight: 800;
    }

    .pe-mhome-section__head a {
        color: #0047FF;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    /* ── Services ── */
    .pe-mhome-services__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pe-mhome-service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 104px;
        padding: 14px 10px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(20, 45, 111, 0.07);
        box-shadow: 0 6px 20px rgba(20, 45, 111, 0.06);
        text-decoration: none;
        color: #142D6F;
    }

    .pe-mhome-service-card__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: #eef3ff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pe-mhome-service-card__icon img {
        width: 26px;
        height: 26px;
        object-fit: contain;
        display: block;
    }

    .pe-mhome-service-card__label {
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    /* ── Processus ── */
    .pe-mhome-process__flow {
        display: flex;
        align-items: flex-start;
        gap: 2px;
    }

    .pe-mhome-process__arrow {
        flex: 0 0 auto;
        color: #0047FF;
        font-size: 16px;
        padding-top: 22px;
        opacity: 0.7;
    }

    .pe-mhome-process__item {
        flex: 1;
        min-width: 0;
        text-align: center;
        padding: 0 2px;
    }

    .pe-mhome-process__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #eef3ff;
        color: #0047FF;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin: 0 auto 8px;
    }

    .pe-mhome-process__icon img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .pe-mhome-process__num {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #0047FF;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 6px;
    }

    .pe-mhome-process__item h3 {
        margin: 0 0 4px;
        font-size: 12px;
        color: #142D6F;
        font-weight: 800;
        line-height: 1.2;
    }

    .pe-mhome-process__item p {
        margin: 0;
        font-size: 10px;
        line-height: 1.45;
        color: #6b7a99;
    }

    /* ── Secteurs ── */
    .pe-mhome-sectors__track {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .pe-mhome-sectors__track::-webkit-scrollbar {
        display: none;
    }

    .pe-mhome-sector-card {
        flex: 0 0 42%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        border-radius: 14px;
        overflow: hidden;
        text-decoration: none;
        background: #fff;
        border: 1px solid rgba(20, 45, 111, 0.07);
        box-shadow: 0 8px 22px rgba(20, 45, 111, 0.08);
    }

    .pe-mhome-sector-card__image {
        overflow: hidden;
    }

    .pe-mhome-sector-card__image img {
        width: 100%;
        height: 110px;
        object-fit: cover;
        display: block;
    }

    .pe-mhome-sector-card__label {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        background: #fff;
        color: #142D6F;
        font-size: 12px;
        font-weight: 800;
    }

    .pe-mhome-sector-card__label i {
        font-size: 15px;
        color: #0047FF;
        flex-shrink: 0;
    }

    /* ── Blog ── */
    .pe-mhome-blog__track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .pe-mhome-blog__track::-webkit-scrollbar {
        display: none;
    }

    .pe-mhome-blog-card {
        flex: 0 0 72%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        background: #fff;
        border: 1px solid rgba(20, 45, 111, 0.07);
        box-shadow: 0 8px 24px rgba(20, 45, 111, 0.08);
        color: inherit;
    }

    .pe-mhome-blog-card--featured {
        flex-basis: 78%;
    }

    .pe-mhome-blog-card__img {
        margin: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .pe-mhome-blog-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .pe-mhome-blog-card__body {
        padding: 14px 14px 16px;
    }

    .pe-mhome-blog-card__cat {
        display: inline-block;
        margin-bottom: 8px;
        padding: 4px 10px;
        border-radius: 999px;
        background: #eef3ff;
        color: #0047FF;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .pe-mhome-blog-card__body h3 {
        margin: 0 0 8px;
        font-size: 15px;
        line-height: 1.35;
        color: #142D6F;
        font-weight: 800;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pe-mhome-blog-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        margin: 0;
        font-size: 11px;
        color: #8a96ad;
        font-weight: 600;
    }

    /* ── Avis Google ── */
    .pe-mhome-review {
        margin-bottom: 8px;
    }

    .pe-mhome-review__card {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(163, 189, 255, 0.32) 0%, rgba(238, 243, 255, 0.98) 100%);
        border: 1px solid rgba(20, 45, 111, 0.08);
    }

    .pe-mhome-review__g {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        color: #4285f4;
        font-weight: 900;
        font-size: 22px;
        font-family: Arial, sans-serif;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(20, 45, 111, 0.08);
    }

    .pe-mhome-review__meta {
        flex: 1;
        min-width: 0;
    }

    .pe-mhome-review__kicker {
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: #6b7a99;
        margin-bottom: 2px;
    }

    .pe-mhome-review__meta strong {
        display: block;
        font-size: 13px;
        color: #142D6F;
        margin-bottom: 2px;
    }

    .pe-mhome-review__count {
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: #6b7a99;
        margin-top: 2px;
    }

    .pe-mhome-review__quote {
        flex: 1;
        min-width: 0;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.5;
        color: #142D6F;
        font-weight: 500;
        font-style: italic;
        background: transparent;
        border: none;
    }

    .pe-mhome-review__quote cite {
        display: block;
        margin-top: 6px;
        font-style: normal;
        font-size: 11px;
        color: #6b7a99;
        font-weight: 700;
    }
}

@media (min-width: 768px) {
    .pe-home-mobile {
        display: none !important;
    }
}
