/* ============================================================
   PHYSIO-FIT — PREMIUM MOBILE DESIGN
   Applies only on screens ≤ 768px
   ============================================================ */

@media (max-width: 768px) {

    /* ===== TOPBAR ===== */
    .topbar {
        height: 64px;
        padding: 0 20px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(24px) saturate(1.4);
        -webkit-backdrop-filter: blur(24px) saturate(1.4);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    .brand__logo {
        height: 36px;
    }

    /* Hamburger lines — thicker, more premium */
    .hamburger span {
        height: 2.5px;
        border-radius: 3px;
    }

    /* Slide-in menu — full screen overlay */
    .topbar__nav {
        width: 100%;
        background: linear-gradient(160deg, #fff 0%, #fff5f5 100%);
        padding: 100px 32px 48px;
        gap: 8px;
        box-shadow: none;
    }

    .navlink {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: #1a1a2e;
        padding: 14px 0;
        border-bottom: 1px solid rgba(230, 57, 70, 0.08);
        width: 100%;
        text-transform: none;
    }

    .navlink::after {
        display: none;
    }

    .navlink:hover {
        color: #e63946;
        padding-left: 8px;
        transition: all 0.2s ease;
    }

    /* ===== HERO SECTION ===== */
    .hp-hero {
        min-height: unset;
        height: auto;
        padding: 90px 20px 56px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .hp-hero__content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        text-align: center;
    }

    .hp-hero__left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hp-hero__badge {
        font-size: 0.75rem;
        padding: 8px 16px;
        background: rgba(230, 57, 70, 0.08);
        color: #e63946;
        border-radius: 30px;
        font-weight: 700;
        letter-spacing: 0.04em;
        border: 1px solid rgba(230, 57, 70, 0.15);
    }

    .hp-hero__title {
        font-size: clamp(32px, 9vw, 44px) !important;
        line-height: 1.1;
        letter-spacing: -0.04em;
    }

    .hp-hero__title span {
        display: block;
        background: linear-gradient(135deg, #e63946, #ff6b7a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hp-hero__subtitle {
        font-size: 1rem;
        line-height: 1.65;
        color: #666;
        max-width: 340px;
        margin: 0 auto;
    }

    .hp-hero__cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    .hp-btn-primary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 18px 28px;
        font-size: 1rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(230, 57, 70, 0.35);
    }

    .hp-btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 28px;
        font-size: 1rem;
        border-radius: 16px;
        border: 1.5px solid rgba(230, 57, 70, 0.2);
    }

    .hp-hero__social-proof {
        justify-content: center;
    }

    .hp-hero__social-text {
        font-size: 0.82rem;
        text-align: center;
    }

    /* Hide card stack on mobile — too complex */
    .hp-hero__right {
        display: none;
    }

    /* ===== SHOWCASE SECTIONS ===== */
    .hp-showcase {
        padding: 56px 20px;
    }

    .hp-showcase__inner {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
        direction: ltr !important;
    }

    .hp-showcase--reverse .hp-showcase__inner {
        direction: ltr !important;
    }

    /* Visual area */
    .hp-showcase__visual {
        border-radius: 20px;
        overflow: hidden;
    }

    /* Image showcase */
    .hp-showcase__img {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        border-radius: 16px;
    }

    /* Morpho grid — 1 column on mobile */
    .hp-showcase__visual-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .morpho-card {
        border-radius: 16px;
    }

    .morpho-card img {
        height: 160px !important;
        object-fit: cover;
    }

    /* Text area */
    .hp-showcase__badge {
        margin: 0 auto;
    }

    .hp-showcase__title {
        font-size: clamp(24px, 7vw, 32px) !important;
        letter-spacing: -0.03em;
    }

    .hp-showcase__desc {
        font-size: 0.95rem;
        color: #666;
    }

    .hp-showcase__bullets {
        align-items: flex-start;
        text-align: left;
    }

    .hp-showcase__bullets li {
        font-size: 0.9rem;
    }

    .hp-showcase__cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        margin: 0 auto;
        padding: 16px 24px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    /* ===== SOCIAL LOGOS (Communauté) ===== */
    .hp-showcase .hp-showcase__visual[style*="flex"] {
        gap: 16px !important;
        padding: 1rem !important;
    }

    .social-logo-img {
        width: 90px !important;
        height: 90px !important;
    }

    /* ===== BOTTOM CTA SECTION ===== */
    .hp-cta-section {
        padding: 72px 24px;
    }

    .hp-cta__title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .hp-cta__text {
        font-size: 0.95rem;
    }

    .hp-cta__btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 18px 28px;
        font-size: 1rem;
        border-radius: 16px;
    }

    .hp-cta__extras {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    /* ===== FOOTER ===== */
    footer {
        padding: 20px 16px !important;
    }

    /* ===== STICKY BOTTOM CTA BAR ===== */
    .mobile-sticky-cta {
        display: flex !important;
    }
}

/* ===== STICKY BOTTOM BAR (hidden on desktop) ===== */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 12px 20px 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid rgba(230, 57, 70, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    gap: 10px;
    align-items: center;
    justify-content: center;
    /* Safe area for iPhone notch */
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.mobile-sticky-cta__btn {
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.mobile-sticky-cta__btn--primary {
    background: linear-gradient(135deg, #e63946, #ff6b7a);
    color: white;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.mobile-sticky-cta__btn--secondary {
    background: rgba(230, 57, 70, 0.06);
    color: #e63946;
    border: 1.5px solid rgba(230, 57, 70, 0.2);
}

.mobile-sticky-cta__btn:active {
    transform: scale(0.97);
}

/* ===== EXTRA SMALL (iPhone SE etc.) ===== */
@media (max-width: 380px) {
    .hp-hero__title {
        font-size: 28px !important;
    }

    .hp-btn-primary,
    .hp-btn-secondary,
    .hp-showcase__cta,
    .hp-cta__btn {
        font-size: 0.9rem;
        padding: 14px 20px;
    }

    .social-logo-img {
        width: 72px !important;
        height: 72px !important;
    }
}