/* ============================================
   EXFACERE — Mobile-First Overrides
   All rules scoped to max-width: 768px
   ZERO desktop impact
   ============================================ */

@media (max-width: 768px) {

    /* ─── 1. HERO — Full mobile redesign ───────────────── */

    .hero {
        min-height: 100svh;
        min-height: 100vh;
        /* fallback */
        padding-top: 80px;
        padding-bottom: var(--space-6);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        overflow: hidden;
    }

    /* Dim background orbs on mobile for readability */
    .hero-bg .orb {
        opacity: 0.3;
    }

    .hero-grid {
        opacity: 0.15;
    }

    /* ── Badge ── */
    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        margin-bottom: var(--space-3);
        letter-spacing: 0.06em;
    }

    .hero-badge svg {
        width: 12px;
        height: 12px;
    }

    /* ── Title ── */
    .hero-top {
        margin-bottom: var(--space-4);
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 0;
        letter-spacing: -0.02em;
    }

    /* ── Browser cards → compact 2×2 grid (shorter, readable) ── */
    .hero-bot-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0 var(--space-4);
        margin-bottom: var(--space-4);
        perspective: none;
    }

    .hero-bot-wrapper .browser-card {
        position: static;
        width: auto;
        animation: none;
        transform: none;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Header bar — ultra compact */
    .hero-bot-wrapper .browser-card-header {
        padding: 3px 8px;
        gap: 4px;
        flex-shrink: 0;
    }

    .hero-bot-wrapper .browser-dot {
        width: 5px;
        height: 5px;
    }

    .hero-bot-wrapper .browser-card-title {
        font-size: 0.6rem;
        margin-left: 4px;
    }

    /* Body — fills remaining card height, text centered both ways */
    .hero-bot-wrapper .browser-card-body {
        padding: 6px 8px 8px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .hero-bot-wrapper .browser-card-value {
        font-size: 1.4rem;
        margin-bottom: 1px;
    }

    .hero-bot-wrapper .browser-card-label {
        font-size: 0.65rem;
        letter-spacing: 0.06em;
    }

    /* ── CTA ── */
    .hero-cta-section {
        padding: 0 var(--space-3);
    }

    .hero-cta-actions {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
    }

    .hero-cta-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: var(--text-base);
        padding: 14px var(--space-5);
        border-radius: var(--radius-xl);
    }

    .hero-cta-actions .btn-primary {
        box-shadow: 0 4px 24px rgba(139, 92, 246, 0.3);
    }

    /* ── Guarantee ── */
    .hero-bottom-guarantee {
        font-size: 0.65rem;
        margin-top: var(--space-3);
        opacity: 0.7;
    }

    /* ── Scroll indicator hidden ── */
    .hero-scroll {
        display: none;
    }

    /* ─── 2. FEATURE CARDS — Tighter grid ───────────────── */

    .features-grid {
        gap: var(--space-3);
    }

    .feature-card {
        padding: var(--space-5);
    }

    .feature-card .animated-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-2);
    }

    .feature-card h3 {
        font-size: var(--text-sm);
        margin-bottom: var(--space-1);
    }

    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* ─── 3. PROCESSUS — Condensed steps ────────────────── */

    .process-step {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .process-step .step-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: var(--text-sm);
    }

    .process-step .step-title {
        font-size: var(--text-base);
    }

    .process-step .step-description {
        font-size: var(--text-sm);
    }

    .process-steps {
        gap: var(--space-3);
    }

    /* ─── DEMO SECTION — Pause + Essayer on same line ──── */

    /* Hide pause text, keep icon only */
    .hover-pause-btn .pause-text {
        display: none;
    }

    /* Position both buttons side by side at bottom center */
    .hover-pause-btn {
        position: absolute;
        bottom: 12px;
        left: auto;
        right: auto;
        left: 50%;
        transform: translateX(calc(-50% - 55px));
        padding: 10px 14px;
        gap: 0;
    }

    .hover-pause-btn:hover {
        transform: translateX(calc(-50% - 55px)) translateY(-2px);
    }

    .preview-overlay-btn {
        bottom: 12px;
        right: auto;
        left: 50%;
        transform: translateX(calc(-50% + 30px));
        height: 42px;
        padding: 0 1rem;
    }

    /* ─── 4. PORTFOLIO — Compact, limited ───────────────── */

    .portfolio-grid {
        gap: var(--space-3);
    }

    .portfolio-item {
        aspect-ratio: 16/9;
    }

    /* ─── 5. TARIF/CTA — Stack vertical, tighter ──────────── */

    .form-action-cards {
        gap: var(--space-4);
    }

    .form-card {
        padding: var(--space-6);
    }

    .form-card .btn {
        width: 100%;
    }

    .form-card-title {
        font-size: var(--text-lg);
    }

    .form-card-description {
        font-size: var(--text-sm);
    }

    /* ─── 6. SECTION PADDING — Reduced ──────────────────── */

    section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    /* ─── 7. ROBOT — Smaller, anti-overlap ──────────────── */

    .hero-bot-stage {
        width: 80px;
        height: 80px;
        right: 8px;
        bottom: 90px;
        /* Avoid CTA overlap */
    }

    .hero-bot-glow {
        width: 60px;
        height: 60px;
    }

    /* ─── 8. TYPOGRAPHY — Mobile scale ──────────────────── */

    .section-title,
    h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .section-subtitle {
        font-size: var(--text-sm);
    }

    /* Offer section title */
    .offer-title,
    .process-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    /* ─── FAQ — Tighter ─────────────────────────────────── */

    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-sm);
    }

    .faq-answer {
        padding: 0 var(--space-4) var(--space-4);
        font-size: var(--text-sm);
    }

    /* ─── FOOTER — Compact ──────────────────────────────── */

    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }

    /* ─── TRUST SECTION — Compact ───────────────────────── */

    .trust-section {
        padding: var(--space-8) 0;
    }
}