/* ============================================
   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: 30px 20px 30px 25px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* 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
   de "RÉALISATIONS" (11px) dans la sidebar.
   Sidebar : 30 + 41 (logo 34px*1.2) + 30 (margin) + ~9 (baseline 11px) = ~110px
   Titre 55px baseline ≈ padding-top + 44px → padding-top = 66px */
.content {
    margin-left: 200px;
    padding: 66px 40px 60px 40px;
    flex: 1;
    max-width: 780px;
}

/* ========================
   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: 20px;
    letter-spacing: 0.02em;
}

.projet-galerie {
    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;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
    .site {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        border-bottom: 1px solid #eee;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0 20px;
    }
    .logo {
        width: 100%;
        margin-bottom: 15px;
    }
    .sidebar-nav {
        width: 100%;
    }
    .sidebar-footer {
        display: none;
    }
    .content {
        margin-left: 0;
        padding: 20px;
        max-width: 100%;
    }
    .projet-titre,
    .page-titre {
        font-size: 22px;
    }
    .projet-galerie img {
        max-width: 100%;
    }
}
