@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --bg-paper: #fdfcf8;
    --text-ink: #1a1a1a;
    --accent-red: #bc0000;
    --soft-gray: #e0ddd5;
    --font-serif: 'EB Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-paper);
    color: var(--text-ink);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
}

header {
    padding: 2rem;
    border-bottom: 1px solid var(--soft-gray);
    text-align: center;
}

.logo-name { font-size: 2.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.logo-sub { display: block; font-style: italic; color: var(--accent-red); }

nav { margin-top: 1rem; }
nav a { text-decoration: none; color: inherit; margin: 0 1rem; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
nav a.active { border-bottom: 1px solid var(--accent-red); }

.container { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem; }

/* Search & Filters */
.controls { margin-bottom: 3rem; text-align: center; }
.search-input {
    width: 100%; max-width: 500px;
    padding: 0.8rem;
    border: none; border-bottom: 1px solid var(--text-ink);
    background: transparent;
    font-family: var(--font-serif); font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-btn {
    background: none; border: 1px solid var(--soft-gray);
    padding: 0.4rem 1rem; margin: 0 0.25rem;
    cursor: pointer; font-family: var(--font-serif);
    transition: all 0.3s;
}
.filter-btn.active { background: var(--text-ink); color: white; }

/* Grid */
.oeuvres-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.oeuvre-card { cursor: pointer; transition: opacity 0.3s; }
.oeuvre-card:hover { opacity: 0.8; }

.oeuvre-type { font-size: 0.8rem; text-transform: uppercase; color: var(--accent-red); letter-spacing: 0.1em; }
.oeuvre-title { font-size: 1.8rem; margin: 0.5rem 0; border-bottom: 1px solid var(--soft-gray); padding-bottom: 0.5rem; }
.oeuvre-tags { margin-top: 1rem; display: flex; gap: 0.5rem; font-size: 0.9rem; font-style: italic; opacity: 0.7; }

/* Bio & Presse */
.bio-section { border-left: 1px solid var(--accent-red); padding-left: 2rem; margin: 4rem 0; }
.presse-card { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px dashed var(--soft-gray); }
.presse-quote { font-style: italic; font-size: 1.3rem; margin-bottom: 0.5rem; }
.presse-source { font-weight: bold; font-size: 0.9rem; text-transform: uppercase; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(253, 252, 248, 0.98);
    display: none; justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal { background: white; padding: 4rem; max-width: 800px; border: 1px solid var(--soft-gray); position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.modal-close { position: absolute; top: 1rem; right: 1rem; cursor: pointer; font-size: 1.5rem; background: none; border: none; }
.modal-extrait { background: #f9f9f9; padding: 2rem; border-left: 3px solid var(--accent-red); margin-top: 2rem; font-style: italic; white-space: pre-line; }

