/* ==========================================================================
   ALU PORTAIL DESIGN - Responsive
   ========================================================================== */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {
    :root {
        --gap-lg: 3rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sur-mesure {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .model-showcase {
        grid-template-columns: 1fr;
    }

    .model-showcase--reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--gap);
    }
}

/* ---------- Mobile Nav (max 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 65px;
        --gap-lg: 2.5rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .top-bar {
        display: none;
    }

    .site-logo img {
        height: 42px;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background-color: #0d1518;
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 999;
        pointer-events: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav__list {
        flex-direction: column;
        justify-content: flex-start;
        max-width: none;
        height: auto;
        padding: 2rem;
        gap: 0;
    }

    .nav__item {
        border-bottom: 1px solid var(--color-bg-lighter);
        width: 100%;
    }

    .nav__link {
        padding: 15px 0;
        font-size: 1.1rem;
        color: #ffffff;
    }

    .nav__item--active .nav__link::after {
        display: none;
    }

    .nav__item--cta {
        margin-top: 1rem;
        border-bottom: none;
    }

    .nav__item--cta .nav__link {
        text-align: center;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__tagline {
        font-size: 1.1rem;
    }

    .hero__logo {
        width: 150px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-sm);
    }

    .product-card__image {
        height: 180px;
    }

    /* Badges */
    .badges {
        gap: 1.5rem;
    }

    .badge {
        padding: 1rem;
    }

    /* Realisations */
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA */
    .cta-banner__title {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    /* Page header */
    .page-header {
        padding: 8rem 0 3rem;
    }

    .page-header__title {
        font-size: 2rem;
    }

    /* Model showcase */
    .model-showcase__image img {
        height: 250px;
    }

    /* Product features */
    .product-features {
        grid-template-columns: 1fr;
    }

    /* Error page */
    .error-404__code {
        font-size: 5rem;
    }
}

/* ---------- Small Mobile (max 480px) ---------- */
@media (max-width: 480px) {
    :root {
        --gap: 1rem;
    }

    body {
        font-size: 15px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .hero__title {
        font-size: 1.6rem;
    }

    .hero__tagline {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .btn--lg {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .badges {
        flex-direction: column;
        align-items: center;
    }

    .realisations-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Large Desktop (min 1400px) ---------- */
@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

    .hero__title {
        font-size: 3.5rem;
    }
}
