/* ============================================
   F4MAK.fr - Responsive Design
   ============================================ */

/* --- Tablettes (max 1024px) --- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-card {
        padding: 50px 50px;
    }

    .page-layout.has-left.has-right {
        grid-template-columns: 1fr 1fr;
    }

    .page-layout.has-left.has-right .page-sidebar-right {
        grid-column: 1 / -1;
    }
}

/* --- Tablettes portrait (max 768px) --- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-title h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
    }

    .header-subtitle {
        font-size: 0.8rem;
    }

    .header-logo img {
        width: 50px;
        height: 50px;
    }

    /* Navigation mobile */
    .nav-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-dark);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .header-nav.open {
        max-height: 300px;
        padding: 15px 0;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-nav a {
        display: block;
        padding: 12px 30px;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }

    .header-nav a.active {
        border-bottom: none;
        background-color: rgba(212, 116, 14, 0.15);
    }

    /* Contenu */
    .site-main {
        padding: 30px 15px;
    }

    .content-card {
        padding: 35px 25px;
    }

    /* Layout 3 colonnes → 1 colonne */
    .page-layout,
    .page-layout.has-left,
    .page-layout.has-right,
    .page-layout.has-left.has-right {
        grid-template-columns: 1fr;
        max-width: 750px;
    }

    .page-sidebar {
        order: 2;
    }

    .page-center {
        order: 1;
    }

    .page-sidebar-right {
        order: 3;
    }

    .maintenance-card .card-site-title {
        font-size: 2rem;
    }

    .maintenance-card h2 {
        font-size: 2rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .header-title h1 {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    .header-logo img {
        width: 42px;
        height: 42px;
    }

    .header-brand {
        gap: 10px;
    }

    .site-main {
        padding: 20px 10px;
    }

    .content-card {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .maintenance-card .card-site-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .maintenance-card h2 {
        font-size: 1.6rem;
    }

    .maintenance-card .maintenance-text {
        font-size: 0.9rem;
    }

    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column ul li a {
        justify-content: center;
    }

    .site-footer {
        padding: 30px 20px 0;
    }

    .contact-card {
        text-align: center;
    }

    .contact-form {
        text-align: left;
    }

    .relais-details {
        grid-template-columns: 1fr;
    }

    .relais-freq {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .relais-info {
        padding-left: 0;
    }

    .relais-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .relais-header h3 {
        font-size: 1.1rem;
    }
}