/* ============================================
   TECH Site — Mobile Responsive (FR + EN)
   Shared responsive rules for landing pages.
   Included after inline <style> in each page.
   ============================================ */

/* ===== MOBILE MENU BUTTON (burger) ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary, #003168);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px; /* below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 998; /* below header (z-index 1000) */
    padding: 24px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu a {
    display: block;
    padding: 16px 0;
    color: var(--primary, #003168);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}
.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--accent, #ef7c1a);
}
.mobile-menu .mobile-cta {
    margin-top: 24px;
    background: var(--accent, #ef7c1a);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: none;
}
.mobile-menu .mobile-lang {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.mobile-menu .mobile-lang a {
    border-bottom: none;
    padding: 8px 16px;
    font-size: 16px;
}

/* ===== TABLET (< 1024px) ===== */
@media (max-width: 1023px) {
    .hero {
        padding: 48px 0;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .benefits-grid,
    .steps-grid,
    .steps,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767px) {
    /* Header: show burger, hide nav + lang + CTA */
    .nav { display: none !important; }
    .lang-switch { display: none !important; }
    .header-cta { display: none !important; }
    .mobile-menu-btn { display: flex; }
    /* Keep header-right visible but only for auth widget */
    .header-right {
        gap: 8px;
    }
    .header-right > *:not(.sa-wrapper) {
        display: none !important;
    }

    /* Header stays above overlay */
    .header {
        z-index: 1000;
        position: sticky;
    }
    .header-inner {
        padding: 8px 16px;
    }
    .logo img {
        height: 36px;
    }

    /* Hero compact */
    .hero {
        padding: 32px 0;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .hero-features {
        margin-bottom: 20px;
    }
    .hero-feature {
        font-size: 14px;
    }

    /* Mini calculator */
    .mini-calculator {
        padding: 20px;
        border-radius: 12px;
    }
    .mini-calc-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .mini-calc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* CTA buttons stack */
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .cta-buttons .btn,
    .cta-buttons a {
        width: 100%;
        text-align: center;
    }

    /* All grids single-column */
    .benefits-grid,
    .steps-grid,
    .steps,
    .products-grid,
    .testimonials-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Section spacing compact */
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .container {
        padding: 0 16px;
    }
    h2 {
        font-size: 24px;
    }

    /* Footer */
    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        align-items: center;
    }
    .trust-items {
        flex-direction: column;
        gap: 12px;
    }

    /* Touch targets */
    button, a.btn, .btn, input[type="submit"] {
        min-height: 44px;
    }
    .form-group input,
    .form-group select {
        font-size: 16px; /* prevents iOS zoom */
        padding: 14px 16px;
    }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    .hero-content h1 {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .mini-calculator {
        padding: 16px;
    }
    h2 {
        font-size: 20px;
    }
    section {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}
