:root {
    --bg: #0A0A0A;
    --bg-soft: #111;
    --text: #FFF;
    --text-soft: #CCC;
    --border: #222;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Liens */
a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--text);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav .logo {
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    color: var(--text);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.nav a.active {
    color: var(--text);
}

/* Sidebar Mobile */
.sidebar-btn {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 20;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #0D0D0D;
    border-left: 1px solid var(--border);
    padding: 20px;
    transition: right .3s ease;
    z-index: 30;
}

.sidebar.open {
    right: 0;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    float: right;
    cursor: pointer;
}

.sidebar-nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-nav a {
    font-size: 1rem;
    color: var(--text-soft);
}

.sidebar-nav a:hover {
    color: var(--text);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #1a1a1a 0, #000 60%);
    text-align: center;
}

.hero-banner {
    width: 80%;
    max-width: 320px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: "Georgia", serif;
    font-size: 2.4rem;
}

.role {
    color: var(--text-soft);
    margin-top: 6px;
}

/* Layout */
main {
    flex: 1;
    padding-top: 80px;
}

.page-header,
.section,
.grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header h1 {
    font-family: "Georgia", serif;
    font-size: 1.8rem;
}

/* Sections */
.section ul.list {
    list-style: none;
}

.section ul.list li {
    margin-bottom: 6px;
    color: var(--text-soft);
}

/* Grids */
.galerie-grid,
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card img {
    width: 100%;
    display: block;
}

/* Project cards */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.project-info {
    padding: 14px;
}

.project-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.project-sub {
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Legal */
.section.legal p {
    margin-bottom: 8px;
    color: var(--text-soft);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    background: var(--bg);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.footer-links a:hover {
    color: var(--text);
}

/* Animations scroll */
[data-anim] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease-out, transform .4s ease-out;
}

[data-anim].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 700px) {
    .nav ul {
        display: none;
    }
    .sidebar-btn {
        display: block;
    }
}
