/* ============================================================
   NUMERICARCHIVE — Header & Footer communs à toutes les pages
   ============================================================ */

:root {
    --primary-color: #FF6B00;
    --secondary-color: #2C3E50;
    --text-dark: #333;
    --bg-dark: #1A1A1A;
}

/* ——— HEADER ——— */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.9rem 0;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    max-height: 46px;
    width: auto;
}

.logo-text {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary-color);
}

#navMenu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

#navMenu li a {
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

#navMenu li a:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* Hamburger mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.3rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }

    #navMenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 999;
    }

    #navMenu.active { display: flex; }

    #navMenu li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 0.95rem;
    }
}

/* ——— FOOTER ——— */
footer {
    background: #1A1A1A;
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
    font-size: 0.9rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo span,
.footer-logo .archive {
    color: var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

footer p {
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.78rem;
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
