/* ─── Base ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --text: #111;
  --muted: #707070;
  --sidebar-w: 240px;
  --pad: 28px;
  --font: 'EB Garamond', Georgia, serif;
  --size: 14px;
}
html, body { background: #fff; color: var(--text); font-family: var(--font); font-size: var(--size); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }

/* Traduction en cours de chargement : on masque la page pour éviter un flash de français */
.i18n-wait body { visibility: hidden; }

/* Lien d'évitement (accessibilité) */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }

/* ─── Sidebar ─── */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 200; background: #fff;
  padding: var(--pad) 15% var(--pad) var(--pad);
  display: flex; flex-direction: column; overflow: hidden;
}
.name { display: block; font-size: var(--size); font-weight: 400; margin-bottom: 3px; white-space: nowrap; }
.name a { text-decoration: none; color: var(--text); }
.name a:hover { opacity: .45; }
.subtitle { display: block; font-size: var(--size); color: var(--muted); margin-bottom: 40px; }
.menu { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.menu a { display: block; color: var(--text); text-decoration: none; white-space: nowrap; transition: opacity .15s; }
.menu a:hover { opacity: .45; }
.menu a[aria-current], .menu a.active { font-weight: 600; }
.side-foot { position: absolute; bottom: var(--pad); left: var(--pad); display: flex; align-items: center; gap: 16px; }
.insta { display: inline-flex; color: var(--text); }
.insta:hover { opacity: .45; }
.insta svg { width: 16px; height: 16px; }

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-btn { font-family: var(--font); font-size: var(--size); letter-spacing: .06em; text-transform: uppercase; background: none; border: none; cursor: pointer; color: var(--muted); padding: 0; }
.lang-btn.active { color: var(--text); font-weight: 600; }
.lang-btn:hover { opacity: .6; }
.lang-sep { color: var(--muted); }

/* ─── Contenu ─── */
.main { margin-left: 0; padding: var(--pad); min-height: 100vh; }
/* Contenu centré sur la page (le menu reste à gauche) */
.page { width: min(1040px, calc(100% - 2 * var(--sidebar-w) - 2 * var(--pad))); margin: 0 auto; padding-bottom: 60px; }
.page-heading { font-size: 2em; font-weight: 400; text-align: center; text-transform: uppercase; letter-spacing: .12em; margin: 48px 0 64px; }
.serie { margin-bottom: 64px; }
.serie-title { font-size: var(--size); font-weight: 600; margin: 0 0 18px; }
.serie-title span { color: var(--muted); font-weight: 400; }
@media (max-width: 1300px) {
  .main { margin-left: var(--sidebar-w); }
  .page, .page.wide { width: 100%; max-width: 1040px; }
}

/* Accueil : image centrée plein écran */
.splash { position: fixed; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.splash img { max-width: 65%; max-height: 80vh; object-fit: contain; display: block; }
body.home .main { padding: 0; min-height: 0; }

.page-title { font-size: var(--size); font-weight: 600; margin-bottom: 5px; }
.page-subtitle { font-size: var(--size); color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.text { line-height: 1.8; max-width: 640px; }
.text p { margin-bottom: 7px; }
.text h2 { font-size: var(--size); font-weight: 600; margin: 24px 0 8px; }
/* Page À propos : grande mise en page texte + image */
.page.wide { width: min(1320px, calc(100% - 2 * var(--sidebar-w) - 2 * var(--pad))); }
.about { font-size: 18px; line-height: 1.75; }
.about-row { display: grid; grid-template-columns: 1fr 38%; gap: 64px; align-items: center; margin-bottom: 64px; }
.about-row.one { grid-template-columns: 1fr; }
.about-text h2 { font-size: 1.25em; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 22px; }
.about-text p { margin-bottom: 18px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about-text em { font-style: normal; }
.about figure img { width: 100%; height: auto; display: block; }
.cv { margin-top: 8px; }
.cv-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; margin-bottom: 12px; }
.cv-row > span:first-child { color: var(--muted); }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back:hover { opacity: .6; }
.divider { width: 100%; height: 1px; background: #e8e8e8; margin-bottom: 40px; }

/* Expositions : cartes cliquables */
.expo-grid { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; }
.expo-card { display: block; text-decoration: none; color: var(--text); flex: 0 1 760px; max-width: 100%; }
.expo-card img { width: 100%; height: auto; display: block; margin-bottom: 10px; transition: opacity .2s; }
.expo-card:hover img { opacity: .8; }
.expo-card .page-title { margin-bottom: 2px; }

/* Page exposition / série */
.panel-header { display: flex; gap: 32px; width: 100%; margin-bottom: 40px; align-items: center; }
.panel-header-img { flex: 0 0 62%; max-width: 62%; }
.panel-header-img img { width: 100%; height: auto; display: block; }
.panel-header-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.oeuvre { width: 100%; margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid #ebebeb; }
.oeuvre:last-child { border-bottom: none; }
.oeuvre img { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.oeuvre-detail { color: var(--muted); line-height: 1.7; }
.etching-row { display: flex; gap: 12px; width: 100%; padding-bottom: var(--pad); }
.etching-row img { flex: 1; width: 0; height: auto; display: block; }
.etching-wide { width: 100%; height: auto; display: block; }
.poem { max-width: 480px; line-height: 1.8; margin-bottom: 28px; }
.poem p { margin-bottom: 7px; }

/* Œuvres : deux par ligne */
.oeuvre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; align-items: start; }
.oeuvre-grid .oeuvre { margin: 0; padding: 0; border: none; }
.oeuvre-grid .oeuvre:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 20px); justify-self: center; }

/* Contact */
.contact { display: flex; gap: 64px; align-items: center; justify-content: center; }
.contact-img { flex: 0 1 560px; max-width: 560px; }
.contact-text { flex: 0 0 auto; }
.contact-img img { width: 100%; height: auto; display: block; }
.contact-text { line-height: 2; }
.contact-text a { text-decoration: none; border-bottom: 1px solid var(--text); }
.contact-text a:hover { opacity: .6; }
.contact-text p { margin-bottom: 18px; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(255,255,255,.96); display: none; align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.zoomable { cursor: zoom-in; }

/* Tablette */
@media (max-width: 900px) {
  .about-row { grid-template-columns: 1fr; gap: 32px; }
  .panel-header { flex-direction: column; gap: 16px; align-items: stretch; }
  .panel-header-img { flex: none; max-width: 100%; }
  .contact { flex-direction: column; gap: 24px; align-items: stretch; }
  .contact-img { flex: none; max-width: 100%; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --sidebar-w: 0px; --pad: 16px; --size: 10px; }
  .sidebar { position: relative; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 8px; padding: 16px 16px 12px; border-bottom: 1px solid #eee; overflow: visible; }
  .name, .subtitle { flex-basis: 100%; }
  .subtitle { margin-bottom: 14px; }
  .sidebar nav, .menu { display: contents; }
  .side-foot { position: static; display: contents; }
  .insta svg { width: 14px; height: 14px; align-self: center; }
  .main { margin-left: 0; padding: var(--pad); min-height: 0; }
  .page, .page.wide { width: 100%; }
  .about { font-size: 15px; }
  .cv-row { grid-template-columns: 70px 1fr; gap: 10px; }
  .page-heading { font-size: 1.6em; margin: 24px 0 32px; }
  .splash { position: relative; height: 60vw; }
  .splash img { width: 80%; max-height: 55vw; }
  .etching-row { gap: 6px; }
  .oeuvre-grid { grid-template-columns: 1fr; }
  .oeuvre-grid .oeuvre:last-child:nth-child(odd) { width: 100%; }
}
