#landing-mobile, .landing-mobile-brand, .landing-menu-toggle { display: none; }

@media (max-width: 768px) {
    body[data-signup-landing] { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    /* Les anciens styles inline et les règles mobiles globales restent intacts pour le desktop. */
    .landing-shell { overflow: visible !important; }
    .landing-shell > div:first-child,
    .landing-page > section:not(#tarifs) { display: none !important; }
    .landing-header {
        position: sticky; top: 0; z-index: 300; width: 100%;
        background: rgba(15, 42, 34, .96); backdrop-filter: blur(8px);
        padding: 12px 18px !important; color: #fff;
    }
    .landing-header > div:first-child > :not(.landing-mobile-brand) { display: none !important; }
    .landing-header .landing-mobile-brand { display: flex; gap: 8px; align-items: center; text-decoration: none; }
    .landing-header .landing-mobile-brand img { width: 30px; height: 30px !important; border-radius: 8px; }
    .landing-mobile-brand b { font: 600 17px 'Newsreader', Georgia, serif; letter-spacing: .02em; }
    .landing-menu-toggle {
        display: block; width: 44px; height: 44px; padding: 0; color: #fff;
        background: transparent; border: 0; font-size: 24px; cursor: pointer;
    }
    .landing-header > #landing-navigation,
    .landing-header > #landing-header-actions { display: none !important; }
    .landing-header.is-menu-open > #landing-navigation {
        display: flex !important; flex-wrap: wrap; white-space: normal; color: #fff; padding: 10px 0;
    }
    .landing-header.is-menu-open > #landing-header-actions {
        display: flex !important; padding: 12px; background: #FBFAF6; border-radius: 14px;
    }
    #landing-mobile {
        --lm-ink: #14322A; --lm-green: #1E6B50; --lm-accent: #4FC18C;
        --lm-muted: #55675E; --lm-border: #E2F0E8; --lm-soft: #EAF6EF;
        display: block; background: #FBFAF6; color: var(--lm-ink); line-height: 1.45;
    }
    #landing-mobile [hidden] { display: none; }
    #landing-mobile :is(h2, h3, p) { margin: 0; }
    #landing-mobile h2 {
        font: 500 28px/1.1 'Newsreader', Georgia, serif; letter-spacing: -.02em; margin-bottom: 6px;
    }
    #landing-mobile em { font-style: normal; color: var(--lm-accent); }
    #landing-mobile section { padding: 34px 22px 8px !important; scroll-margin-top: 90px; }
    #landing-mobile .lm-sub { color: #6B7E74; font-size: 14px; margin-bottom: 16px; }
    #landing-mobile button { font-family: inherit; cursor: pointer; }
    :is(#landing-mobile, .landing-header) :is(button, a, summary, [tabindex]):focus-visible {
        outline: 3px solid #4FC18C; outline-offset: 4px;
    }
    #landing-mobile .lm-hero {
        background: radial-gradient(120% 80% at 80% 0%, #1E6B50 0%, #14322A 45%, #0C2019 100%);
        color: #fff; padding: 34px 22px 40px;
    }
    .lm-tag {
        display: inline-block; font-size: 12px; font-weight: 700; color: #8FD9B6;
        background: rgba(79,193,140,.14); border: 1px solid rgba(79,193,140,.35);
        padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
    }
    #landing-mobile .lm-title {
        font: 500 46px/1 'Newsreader', Georgia, serif; letter-spacing: -.03em; margin-bottom: 16px;
    }
    #landing-mobile .lm-intro { font-size: 16px; color: #CFE6DA; margin-bottom: 24px; }
    .lm-button {
        display: block; width: 100%; text-align: center; text-decoration: none; font-weight: 800;
        border-radius: 999px; padding: 16px; font-size: 16px; line-height: 1.4;
    }
    .lm-primary { background: var(--lm-accent); color: #0C2019; box-shadow: 0 12px 30px rgba(79,193,140,.35); }
    .lm-outline { margin-top: 10px; color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
    .lm-hero small { display: block; text-align: center; margin-top: 14px; color: #9CC7B3; font-size: 13px; }
    #mobile-pain-slides { display: grid; touch-action: pan-y; }
    .lm-pain {
        grid-area: 1 / 1; background: #fff; border: 1px solid var(--lm-border);
        border-radius: 22px; padding: 20px; box-shadow: 0 10px 26px rgba(20,50,42,.08);
    }
    /* Les cartes inactives réservent la hauteur de la plus longue, sans être visibles ni annoncées. */
    #landing-mobile .lm-pain[hidden] { display: block; visibility: hidden; }
    .lm-pain:not([hidden]) { animation: lm-enter .25s ease; }
    .lm-icon { font-size: 30px; }
    #landing-mobile .lm-pain h3 { font: 600 22px 'Newsreader', Georgia, serif; margin: 8px 0 6px; }
    .lm-pain p { font-size: 14px; color: var(--lm-muted); }
    #landing-mobile .lm-fix {
        margin-top: 12px; background: var(--lm-soft); color: #14543B; border-radius: 12px;
        padding: 10px 12px; font-size: 13.5px; font-weight: 700;
    }
    .lm-controls { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
    .lm-controls > button {
        width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--lm-green);
        background: #fff; color: var(--lm-green); font-size: 24px; font-weight: 800;
    }
    .lm-dots { display: flex; align-items: center; }
    .lm-dots button { width: 32px; height: 44px; border: 0; background: transparent; padding: 0; }
    .lm-dots button::after { content: ''; display: block; width: 7px; height: 7px; margin: auto; border-radius: 6px; background: #CFE6DA; }
    .lm-dots [aria-current="true"]::after { width: 20px; background: var(--lm-green); }
    #landing-mobile .lm-az { background: var(--lm-ink); color: #fff; margin-top: 26px; padding-block: 38px 30px !important; }
    #landing-mobile .lm-az h2 { font-size: 64px !important; line-height: .95; letter-spacing: -.04em; }
    #landing-mobile :is(.lm-az, .lm-ai) .lm-sub { color: #9CC7B3; }
    .lm-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .lm-pill {
        min-width: 0; text-align: left; color: inherit; background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px;
        font-weight: 800; font-size: 16px; overflow-wrap: anywhere;
    }
    .lm-pill[aria-expanded="true"] { background: var(--lm-accent); color: #0C2019; border-color: var(--lm-accent); }
    .lm-pill span { display: block; font-weight: 500; font-size: 12.5px; margin-top: 4px; line-height: 1.35; }
    #landing-mobile .lm-ai { margin-top: 26px; background: linear-gradient(160deg, #0F2A22, #14322A); color: #fff; padding-bottom: 28px !important; }
    .lm-partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; }
    .partner-logo {
        display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 64px;
        background: #fff; color: var(--lm-ink); border: 1px solid var(--lm-border); border-radius: 16px; padding: 14px 8px;
    }
    .partner-logo--text { font-weight: 800; font-size: 15px; }
    #landing-mobile .partner-logo img { display: block; height: 28px !important; max-width: 100%; object-fit: contain; }
    .lm-verbs { display: grid; gap: 8px; }
    .lm-verbs > div { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 14px; }
    .lm-verbs b { font-size: 17px; min-width: 72px; color: var(--lm-accent); }
    .lm-verbs span { font-size: 13.5px; color: #DCEBE3; }
    #landing-mobile .lm-platforms { padding-top: 30px !important; text-align: center; }
    #landing-mobile .lm-platforms h2 { font-size: 24px !important; }
    .lm-founder { margin: 26px 22px 0; display: flex; gap: 14px; align-items: center; background: var(--lm-soft); border-radius: 22px; padding: 18px; }
    .lm-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--lm-ink); color: var(--lm-accent); display: grid; place-items: center; font: 600 22px 'Newsreader', Georgia, serif; flex: none; }
    .lm-founder p { font-size: 14px; }
    .lm-founder b, .lm-guide b { display: block; font-size: 15px; }
    #landing-mobile .lm-free { margin: 26px 22px 0; border: 2px dashed #9ED5B8; border-radius: 22px; padding: 20px !important; text-align: center; }
    #landing-mobile .lm-free h2 { font-size: 22px !important; }
    .lm-guide { display: flex; gap: 12px; align-items: center; margin-top: 14px; background: #fff; border: 1px solid #D6EDE0; border-radius: 16px; padding: 14px; text-align: left; }
    .lm-guide div > span { font-size: 13px; color: var(--lm-muted); }
    .lm-free > a { display: inline-block; margin-top: 12px; font-weight: 800; color: var(--lm-green); text-decoration: none; border-bottom: 2px solid; }
    #landing-mobile .lm-more { padding-bottom: 30px !important; }
    .lm-more details { border-top: 1px solid var(--lm-border); }
    .lm-more details:last-child { border-bottom: 1px solid var(--lm-border); }
    .lm-more summary { padding: 16px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
    .lm-more [data-mobile-copy] { padding-bottom: 16px; font-size: 14px; color: var(--lm-muted); }
    #landing-mobile .lm-more :is(p, h3) { margin-bottom: 10px; }
    .lm-more a { display: block; padding-block: 8px; color: var(--lm-green); font-weight: 700; }
    .lm-bottom-bar {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 350; display: flex; gap: 8px;
        align-items: center;
        padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); background: #FBFAF6;
        box-shadow: 0 -8px 24px rgba(20,50,42,.08);
    }
    :is(.lm-bottom-bar, .lm-function-actions, .lm-pricing-actions) .lm-button {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px;
        flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 8px; white-space: nowrap;
    }
    :is(.lm-bottom-bar, .lm-function-actions, .lm-pricing-actions) .i {
        width: 18px; height: 18px; flex: none;
    }
    .lm-bottom-bar .lm-button { font-size: 14.5px; }
    .lm-bottom-bar .lm-bar-trial { background: var(--lm-green); color: #fff; border: 1.5px solid var(--lm-green); box-shadow: 0 10px 24px rgba(30,107,80,.2); }
    .lm-bottom-bar [data-rdv-open] { background: #fff; color: var(--lm-green); border: 1.5px solid var(--lm-green); }
    body[data-signup-landing] .rdv-panel {
        right: 10px; left: 10px; width: auto; max-width: none; top: auto;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: none;
        max-height: min(560px, calc(100dvh - 100px - env(safe-area-inset-bottom, 0px)));
    }
    #tarifs { scroll-margin-top: 90px; }
}

@keyframes lm-enter {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    #landing-mobile .lm-pain { animation: none; transition: none; }
}

@media (max-width: 768px) {
    .landing-header,
    .landing-page > #tarifs { display: none !important; }
    #landing-mobile .lm-header {
        position: sticky; top: 0; z-index: 400; display: flex; align-items: center;
        justify-content: space-between; min-height: 54px; padding: 10px 18px;
        background: #14322A; color: #fff;
    }
    .lm-brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
    .lm-brand img { width: 30px; height: 30px; border-radius: 8px; }
    .lm-brand b { font: 600 17px 'Newsreader', Georgia, serif; }
    #landing-mobile .lm-header .lm-menu-toggle {
        display: grid; place-items: center; width: 44px; height: 44px; padding: 10px;
        border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer;
    }
    .lm-menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .lm-menu {
        position: absolute; top: 100%; left: 0; z-index: 410; display: grid; gap: 2px;
        width: 100%; padding: 8px 14px 14px; background: #14322A;
        box-shadow: 0 16px 24px rgba(20,50,42,.18);
    }
    .lm-menu > a, .lm-menu > button, .lm-login-toggle {
        display: flex; align-items: center; justify-content: space-between; width: 100%;
        min-height: 48px; padding: 12px 10px; border: 0; border-radius: 10px;
        background: transparent; color: #fff; font: 700 16px 'Hanken Grotesque', sans-serif;
        text-align: left; text-decoration: none;
    }
    .lm-menu > :is(a, button):hover, .lm-login-toggle:hover { background: rgba(255,255,255,.08); }
    .lm-login-toggle .i { width: 18px; height: 18px; }
    .lm-login-links { display: grid; gap: 2px; padding: 0 0 6px 12px; }
    .lm-login-links a {
        display: block; padding: 12px 10px; border-radius: 8px; color: #DCEBE3;
        font-size: 14px; font-weight: 600; text-decoration: none;
    }
    .lm-login-links a:hover { background: rgba(255,255,255,.08); }
    #landing-mobile .lm-hero small { display: flex; justify-content: center; align-items: center; gap: 6px; }
    #landing-mobile .lm-hero small .i { width: 16px; height: 16px; }
    #landing-mobile .lm-controls > button .i { width: 20px; height: 20px; vertical-align: middle; }
    #landing-mobile .lm-fix { display: flex; align-items: flex-start; gap: 8px; }
    #landing-mobile .lm-fix .i { width: 18px; height: 18px; flex: none; }
    .lm-pain h3 { margin: 0 0 12px !important; }
    .lm-pill { overflow-wrap: break-word; }
    .lm-verbs span { display: flex; gap: 7px; align-items: flex-start; }
    .lm-verbs .i { width: 19px; height: 19px; flex: none; }
    .lm-trademark { margin-top: 12px !important; color: #9BAEA4; font-size: 12px; line-height: 1.4; }
    .lm-guide > .i { width: 28px; height: 28px; flex: none; color: var(--lm-green); }
    #landing-mobile .lm-pricing {
        margin-top: 24px; padding: 28px 18px 24px !important; background: #F1F7F2;
        border-block: 1px solid #E2F0E8; scroll-margin-top: 64px;
    }
    #landing-mobile .lm-pricing h2 { font-size: 26px; }
    .lm-cycle { display: flex; gap: 4px; padding: 4px; margin: 12px 0; background: #E2F0E8; border-radius: 999px; }
    .lm-cycle button {
        flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent;
        color: #14543B; font-size: 14px; font-weight: 800;
    }
    .lm-cycle button[aria-pressed="true"] { background: var(--lm-green); color: #fff; }
    .lm-plans { display: grid; gap: 7px; }
    .lm-plan {
        display: flex; align-items: center; justify-content: space-between; gap: 10px;
        width: 100%; min-height: 64px; padding: 10px 12px; border: 1.5px solid var(--lm-border);
        border-radius: 14px; background: #fff; color: var(--lm-ink); text-align: left;
    }
    .lm-plan[aria-checked="true"] { border-color: var(--lm-green); box-shadow: 0 5px 16px rgba(30,107,80,.12); }
    .lm-plan-info { min-width: 0; }
    .lm-plan-name { display: block; font-size: 15px; font-weight: 800; }
    .lm-plan-limits { display: block; margin-top: 2px; color: var(--lm-muted); font-size: 12px; }
    .lm-plan-price { flex: none; text-align: right; font: 600 22px/1 'Newsreader', Georgia, serif; white-space: nowrap; }
    .lm-plan-price small { display: block; margin-top: 4px; color: var(--lm-muted); font: 600 11px/1.2 'Hanken Grotesque', sans-serif; }
    .lm-pricing-status { margin-top: 10px !important; color: #9B2828; font-size: 13px; }
    .lm-pricing-actions { display: flex; gap: 8px; margin-top: 10px; }
    .lm-pricing-actions .lm-button { font-size: 14px; }
    .lm-pricing-trial { border: 1.5px solid var(--lm-green); background: #fff; color: var(--lm-green); }
    .lm-pricing-subscribe { border: 1.5px solid var(--lm-green); background: var(--lm-green); color: #fff; }
    .lm-included { margin-top: 10px; border: 1px solid var(--lm-border); border-radius: 13px; background: #fff; }
    .lm-included summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; font-size: 13px; font-weight: 800; cursor: pointer; }
    .lm-included summary .i { width: 18px; height: 18px; flex: none; }
    .lm-included ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0 10px 10px; list-style: none; }
    .lm-included li { display: flex; align-items: flex-start; gap: 6px; padding: 7px; border-radius: 9px; background: #F3F8F5; font-size: 11.5px; line-height: 1.3; }
    .lm-included li .i { width: 15px; height: 15px; flex: none; color: var(--lm-green); }
    .lm-pricing-note { margin: 10px 0 5px !important; color: var(--lm-muted); font-size: 12px; line-height: 1.35; }
    .lm-promo-link { display: inline-block; padding: 6px 0; color: var(--lm-green); font-size: 13px; font-weight: 800; }
    .lm-pricing #public-offer-code { margin: 4px 0 0; padding: 12px; border: 1px solid var(--lm-border); border-radius: 12px; background: #fff; }
    .lm-pricing #public-offer-code h3 { margin: 0 0 8px !important; font-size: 15px !important; }
    .lm-pricing #public-offer-code .promo-code-fields { display: flex; align-items: flex-end; gap: 8px; }
    .lm-pricing #public-offer-code label { flex: 1; min-width: 0; font-size: 12px; }
    .lm-pricing #public-offer-code input { width: 100%; min-width: 0; }
    .lm-pricing #public-offer-code button { flex: none; }
    #landing-mobile .lm-functions[hidden] { display: none; }
    #landing-mobile .lm-functions:not([hidden]) {
        position: fixed; inset: 0; z-index: 600; display: flex; flex-direction: column;
        width: 100%; height: 100dvh; padding: 0 !important; overflow: hidden;
        background: #FBFAF6; color: var(--lm-ink);
    }
    .lm-functions-header {
        position: relative; z-index: 1; display: flex; align-items: center; gap: 12px;
        min-height: 62px; padding: 8px 14px; background: #14322A; color: #fff;
    }
    #landing-mobile .lm-functions-header h2 { margin: 0; font-size: 22px; }
    .lm-functions-back {
        display: grid; place-items: center; width: 44px; height: 44px; padding: 10px;
        border: 0; border-radius: 10px; background: transparent; color: #fff;
    }
    .lm-functions-back .i { width: 24px; height: 24px; }
    .lm-functions-content { min-height: 0; overflow-y: auto; padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
    #landing-mobile .lm-function-group { padding: 0 !important; margin: 0 0 16px; scroll-margin: 0; }
    .lm-function-group h3 { margin: 0 0 7px !important; color: var(--lm-green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .lm-function-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .lm-function {
        display: flex; min-width: 0; min-height: 58px; align-items: center; gap: 8px;
        padding: 8px; border: 1px solid var(--lm-border); border-radius: 12px; background: #fff;
    }
    .lm-function .ib {
        display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center;
        width: 34px; height: 34px; border: 1px solid #D6EDE0; border-radius: 10px;
        background: linear-gradient(135deg,#EDF7F1,#DCEFE6); color: var(--lm-green);
    }
    .lm-function .i { width: 20px; height: 20px; }
    .lm-function b { min-width: 0; font-size: 12px; line-height: 1.2; overflow-wrap: break-word; word-break: normal; hyphens: none; }
    .lm-function small { color: #B7791F; font-size: 10px; line-height: 1.2; }
    .lm-function-actions { display: flex; gap: 8px; padding-top: 4px; }
    .lm-function-actions .lm-button { font-size: 13px; }
    body.lm-functions-open { overflow: hidden; }
    body.lm-functions-open .lm-bottom-bar { display: none; }
    body.lm-functions-open .promo-top-container { display: none; }
}
