/* The SYGN — Galerie */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
    --bg: #fafaf8;
    --text: #2a2a2a;
    --text-light: #666;
    --accent: #3a3a3a;
    --border: #e0ddd8;
    --shadow: rgba(0,0,0,.06);
    --serif: 'Playfair Display', 'Georgia', serif;
    --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    margin-bottom: 48px;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}
.site-title span {
    font-weight: 300;
    color: var(--text-light);
    margin-left: .3em;
}
.header-nav a {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 2px;
    transition: all .2s;
}
.header-nav a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    opacity: 1;
}

/* Page title */
.page-title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: .02em;
}
.page-desc {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-line;
}

/* Albums grid (accueil) */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px;
    margin-bottom: 64px;
}
.album-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}
.album-card:hover {
    box-shadow: 0 8px 30px var(--shadow);
    transform: translateY(-3px);
}
.album-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: #eee;
}
.album-card-body {
    padding: 20px 22px 24px;
}
.album-card-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.album-card-desc {
    font-size: .85rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.album-card-count {
    font-size: .78rem;
    color: var(--text-light);
    margin-top: 10px;
    letter-spacing: .03em;
}

/* Images grid (page album) */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}
.image-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .3s, transform .2s;
}
.image-card:hover {
    box-shadow: 0 6px 24px var(--shadow);
    transform: translateY(-2px);
}
.image-card img {
    width: 100%;
    display: block;
    background: #eee;
}
.image-card-title {
    padding: 12px 14px;
    font-size: .85rem;
    text-align: center;
    color: var(--text-light);
}

/* Sub-albums section */
.sub-albums {
    margin-bottom: 48px;
}
.sub-albums h2 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-light);
}
.sub-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Navigation */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 16px;
}
.nav-link {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 2px;
    transition: all .2s;
    white-space: nowrap;
}
.nav-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    opacity: 1;
}
.nav-spacer { flex: 1; }

/* Image viewer (plein écran) */
.viewer {
    min-height: 100vh;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.viewer-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 4px 40px rgba(0,0,0,.4);
}
.viewer-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-top: 24px;
    font-weight: 400;
}
.viewer-nav {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    align-items: center;
}
.viewer-nav a {
    color: #aaa;
    border: 1px solid #444;
    padding: 8px 20px;
    border-radius: 2px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: all .2s;
}
.viewer-nav a:hover {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
    opacity: 1;
}
.viewer-back {
    color: #888 !important;
    border-color: transparent !important;
    font-size: .8rem !important;
}
.viewer-back:hover {
    color: #fff !important;
    background: transparent !important;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: .8rem;
    margin-top: 40px;
}

/* Placeholder pour images manquantes */
.no-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8e6e1 0%, #d5d2cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-family: var(--serif);
    font-size: .9rem;
    font-style: italic;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 32px;
    font-size: .85rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* Responsive */
@media (max-width: 768px) {
    .site-header { padding: 20px 0; margin-bottom: 32px; }
    .site-title { font-size: 1.2rem; }
    .page-title { font-size: 1.5rem; }
    .albums-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .images-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .viewer-img { max-width: 95vw; max-height: 65vh; }
    .nav-bar { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .albums-grid { grid-template-columns: 1fr; }
    .images-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .container { padding: 0 16px; }
    .header-nav a { padding: 6px 12px; font-size: .75rem; }
}
