/* ============================================
   STMP LOCATION — Responsive Styles
   ============================================ */

/* ---- Tablet & Below (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 2.75rem;
        --text-5xl: 2.25rem;
        --text-4xl: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }

    .hero-text { order: 1; }
    .hero-visual { order: 2; }

    .hero-description {
        margin: 0 auto var(--space-2xl);
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-floating-card-1 { left: 10px; bottom: -10px; }
    .hero-floating-card-2 { right: 10px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .products-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .agencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
    :root {
        --text-6xl: 2.25rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --header-height: 64px;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    /* ======== HEADER MOBILE ======== */

    .header-inner {
        padding: 0 var(--space-md);
    }

    .header-logo img {
        height: 36px;
    }

    /* Cacher téléphone desktop */
    .header-phone {
        display: none;
    }

    /* Bouton devis compact */
    .btn-devis {
        padding: 8px 16px;
        font-size: var(--text-xs);
        white-space: nowrap;
    }

    /* Bouton hamburger visible */
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: var(--radius-sm);
        background: var(--color-off-white);
        flex-shrink: 0;
    }

    .mobile-toggle span {
        width: 20px;
        height: 2px;
    }

    /* Overlay sombre */
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Panneau nav latéral */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-xl) 0 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.12);
        transition: right 0.3s ease;
        gap: 0;
        overflow-y: auto;
        z-index: 999;
    }

    .header-nav.open {
        right: 0;
    }

    /* Liens nav mobile */
    .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 14px 24px;
        font-size: var(--text-base);
        font-weight: 500;
        color: var(--color-text);
        border-bottom: 1px solid var(--color-light-gray);
        min-height: 50px;
        border-radius: 0;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(200, 16, 46, 0.06);
        color: var(--color-primary);
    }

    .nav-link::after {
        display: none;
    }

    /* ======== HERO MOBILE ======== */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-3xl);
    }

    .hero-content {
        gap: var(--space-2xl);
    }

    .hero-image-container {
        max-width: 100%;
    }

    .hero-floating-card {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
        justify-content: flex-start;
    }

    .hero-stat {
        text-align: left;
        min-width: 100px;
    }

    /* ======== SECTIONS MOBILE ======== */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card.featured {
        grid-column: span 1;
    }

    .category-card {
        aspect-ratio: 16/9;
    }

    .products-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .cta-banner-actions {
        flex-direction: column;
    }

    .agencies-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Bannière actualités */
    .news-ticker {
        font-size: var(--text-xs);
    }

    .news-ticker .container {
        padding: 0 var(--space-sm);
    }
}

/* ---- Mobile Small (max-width: 480px) ---- */
@media (max-width: 480px) {
    :root {
        --text-6xl: 1.875rem;
        --text-5xl: 1.75rem;
        --text-4xl: 1.5rem;
        --text-3xl: 1.25rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-carousel {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 16px 32px;
        font-size: var(--text-base);
    }

    /* Cacher le bouton devis du header sur petits mobile */
    .btn-devis {
        display: none;
    }

    .cta-banner-content h2 {
        font-size: var(--text-2xl);
    }
}

/* ---- Large Desktop (min-width: 1440px) ---- */
@media (min-width: 1440px) {
    :root {
        --max-width: 1380px;
    }
}