/* =========================================================
   SHARED STYLES — magicbart portfolio
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.nav-brand .accent { color: #60a5fa; }

.nav-menu {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 0.88rem;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu a.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
}

/* Burger button */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
    .nav-burger { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 58px; left: 0; right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 8px 16px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a { padding: 11px 12px; font-size: 0.95rem; }
}

/* =========================================================
   PAGE BODY
   ========================================================= */
.page-body {
    padding-top: 58px;
    min-height: 100vh;
}

/* Constrain all page containers to 1000px */
.presentation-portfolio,
.projets-portfolio,
.tools-portfolio,
.contact-portfolio,
.sports-portfolio,
.qr-page-container,
.cv-page-container {
    border-radius: 0 !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #0f172a;
    color: #475569;
    text-align: center;
    padding: 18px 20px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer a {
    color: #60a5fa;
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
