/* ============================================
   VERSA PC - Responsive
   Breakpoints : mobile, tablette, desktop
   ============================================ */

/* ===== TABLETTE (≤ 1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --space-3xl: 6rem;
        --space-2xl: 4.5rem;
        --space-xl: 3rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --space-3xl: 5rem;
        --space-2xl: 3.5rem;
        --space-xl: 2.5rem;
        --space-lg: 2rem;
    }

    html, body { max-width: 100%; overflow-x: hidden; }
    .hero-video-bg { display: none; }
    .demo-wrapper header { min-height: 82vh; height: auto; padding: 7rem 1rem 4rem; }
    .client-tabs { overflow-x: auto; white-space: nowrap; }
    .config-specs { grid-template-columns: 1fr; }
    input, select, textarea { font-size: 16px; }

    /* Navigation */
 .nav-links {
        position: fixed;
        inset: 0;
        width: 100% !important;
        max-width: 100% !important;
        background: #0d0d0f !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 200 !important;
        border-left: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .nav-cta .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 95;
        position: relative;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Overlay derrière le menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 85;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--space-3xl) + 60px) 0 var(--space-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Étapes processus */
    .step {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .step-number {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* Page header */
    .page-header {
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-xl);
    }

    /* Boutons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Cards */
    .card {
        padding: var(--space-md);
    }

    /* Product card */
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .product-footer .btn {
        width: 100%;
    }

    /* Stats accueil */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    /* Produits accueil */
    .home-products-grid {
        grid-template-columns: 1fr;
    }

    /* Process steps */
    .process-grid {
        grid-template-columns: 1fr;
    }

    /* CTA section */
    .cta-section {
        padding: var(--space-xl) var(--space-md);
    }

    /* Galerie catalogue */
    .product-gallery-track img {
        aspect-ratio: 4 / 3;
    }

    /* Filtres catalogue */
    [data-filter] {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    /* Hero badge */
    .hero-badge {
        font-size: 0.75rem;
    }

    /* Demo hero */
    .demo-hero-content h1 {
        font-size: 2rem;
    }

    .demo-hero-content p {
        font-size: 0.875rem;
    }

    .demo-gallery li {
        width: 260px;
    }

    .demo-gallery img {
        height: 160px;
    }

    .demo-text .text {
        font-size: 2.5rem;
    }

    /* Nav login */
    .nav-login {
        display: none;
    }
}

/* ===== PETIT MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    h1, .h1 {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero .lead {
        font-size: 1rem;
    }

    .nav-links {
        max-width: 100%;
        border-left: none;
    }

    .faq-question {
        font-size: 1rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .home-product-img {
        aspect-ratio: 4 / 3;
    }
}

/* ===== GRAND ÉCRAN (≥ 1440px) ===== */
@media (min-width: 1440px) {
    :root {
        --container-max: 1360px;
    }
}

/* ===== ORIENTATION PAYSAGE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
    }
}

/* ===== PRINT ===== */
@media print {
    .header,
    .footer,
    .menu-toggle,
    .nav-cta,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}
