/* ============================================
   NB.ARCH — Feuille de style
   Swiss Design — Akkurat Pro
   ============================================ */

/* --- @font-face --- */
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Akkurat Pro';
    src: url('../fonts/AkkuratPro-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base --- */
html {
    font-size: 13px;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: 'Akkurat Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.55;
    color: #333;
    background: #fff;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: #000;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.site {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 200px;
    flex-shrink: 0;
    padding: 60px 20px 30px 25px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
    z-index: 10;
    display: flex;
    flex-direction: column;
}
.sidebar::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
}

/* Logo */
.logo {
    display: block;
    font-weight: 300;
    font-size: 34px;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.2;
    white-space: nowrap;
}
.logo:hover {
    color: #000;
}

/* --- Navigation catégories --- */
.sidebar-nav {
    flex: 1;
}

.nav-cat {
    margin-bottom: 2px;
}

.nav-cat-title {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    cursor: pointer;
    padding: 3px 0;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.15s;
}
.nav-cat-title:hover {
    color: #000;
}
.nav-cat-title .arrow {
    font-size: 7px;
    transition: transform 0.2s;
    color: #aaa;
    line-height: 1;
}
.nav-cat.active .nav-cat-title {
    color: #333;
    font-weight: 400;
}
.nav-cat.active .nav-cat-title .arrow {
    transform: rotate(180deg);
}

/* Liste projets sidebar */
.nav-projets {
    display: none;
    list-style: none;
    padding: 2px 0 6px 0;
}
.nav-cat.active .nav-projets {
    display: block;
}
.nav-projets li {
    padding: 1px 0;
}
.nav-projets a {
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    transition: color 0.15s;
}
.nav-projets a:hover {
    color: #000;
}
.nav-projets a.current {
    font-weight: 700;
    color: #000;
}

/* Section pages fixes (équipe, contact) */
.nav-pages {
    margin-top: 12px;
}

.nav-page {
    display: block;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    padding: 3px 0;
    transition: color 0.15s;
}
.nav-page:hover {
    color: #000;
}
.nav-page.current {
    color: #000;
    font-weight: 700;
}

/* Copyright sidebar bas */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 300;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.02em;
}

/* --- Contenu principal --- */
/* padding-top : aligner la baseline du titre (55px) avec la baseline
   du logo "NB.ARCH" (34px) dans la sidebar (+30px d'air en haut).
   Logo baseline : 60 (padding) + 3.4 + 25.8 ≈ 89px
   Titre baseline : padding-top + 45 ≈ 89px → padding-top ≈ 44px */
.content {
    margin-left: 200px;
    padding: 44px 40px 60px 40px;
    flex: 1;
    max-width: 780px;
}

/* Page d'accueil : aligner le bord sup. de l'image avec le haut
   de "RÉALISATIONS" dans la sidebar.
   Sidebar : 60 (padding) + 41 (logo) + 30 (margin) = 131px */
.content-home {
    padding-top: 131px;
}

/* ========================
   Page projet
   ======================== */
.projet-titre {
    font-weight: 300;
    font-size: 55px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 14px;
    color: #000;
}

.projet-meta {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 6px;
}
.projet-meta p {
    margin-bottom: 0;
}
.projet-meta strong {
    font-weight: 700;
}

.projet-credits {
    font-weight: 300;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.projet-galerie {
    margin-top: 14px;
    margin-bottom: 10px;
}
.projet-galerie img {
    margin-bottom: 12px;
    width: 100%;
    max-width: 560px;
}


/* ========================
   Pages fixes (équipe, contact)
   ======================== */
.page-titre {
    font-weight: 300;
    font-size: 55px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
}

.page-contenu {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.page-contenu p {
    margin-bottom: 6px;
}
.page-contenu strong {
    font-weight: 700;
    color: #000;
}

/* ========================
   Hamburger (hidden on desktop)
   ======================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 20;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: transform 0.25s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-top {
    display: contents;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
    .site {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
        flex-direction: column;
        background: #fff;
        z-index: 100;
    }
    .sidebar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .logo {
        font-size: 26px;
        margin-bottom: 0;
    }
    .hamburger {
        display: flex;
    }
    .sidebar-nav {
        display: none;
        width: 100%;
        padding-top: 16px;
    }
    .sidebar-nav.open {
        display: block;
    }
    .sidebar-footer {
        display: none;
    }
    .content,
    .content-home {
        margin-left: 0;
        padding: 20px;
        padding-top: 70px;
        max-width: 100%;
    }
    .projet-titre,
    .page-titre {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .projet-galerie img {
        max-width: 100%;
    }
    .page-contenu {
        font-size: 14px;
    }
}
