/* ============================================================
   fabricepoiteaux.fr — feuille de style partagée
   Palette : chambre noire / sténopé — fond bistre profond,
   accent ambre "lumière inactinique", gris-vert "fuite de lumière"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #16130f;
  --bg-raised: #211c16;
  --bg-line: #33291d;
  --text: #ede6da;
  --text-muted: #a79c8c;
  --accent: #bb7c33;      /* ambre / lumière inactinique */
  --accent-soft: #8a6a45;
  --leak: #6e7c74;        /* gris-vert, fuite de lumière, usage rare */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .2s ease, color .2s ease;
}
a:hover { border-color: var(--accent); color: var(--accent); }
a.plain { border-bottom: none; }
a.plain:hover { border-color: transparent; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--text-muted); }

.mono {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ---------- header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 19, 15, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--bg-line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}
nav.main { display: flex; gap: 1.6rem; }
nav.main a {
  border-bottom: none;
  font-size: .92rem;
  color: var(--text-muted);
}
nav.main a:hover, nav.main a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bg-line);
  color: var(--text);
  padding: .4rem .7rem;
  font-family: var(--mono);
  font-size: .8rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  nav.main {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-raised);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--bg-line);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 1rem 1.6rem; border-top: 1px solid var(--bg-line); }
  .nav-toggle { display: block; }
}

/* ---------- hero / aperture reveal ---------- */

.hero {
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--bg-line);
  position: relative;
  overflow: hidden;
}

.aperture {
  animation: aperture-open 1.1s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes aperture-open {
  from { clip-path: circle(0% at 18% 30%); opacity: .4; }
  to   { clip-path: circle(140% at 18% 30%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aperture { animation: none; }
}

.hero .tag { margin-bottom: 1.1rem; }

/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vh, 5.5rem) 0; }
section.raised { background: var(--bg-raised); border-top: 1px solid var(--bg-line); border-bottom: 1px solid var(--bg-line); }

.section-head { margin-bottom: 2.2rem; }
.section-head .mono { margin-bottom: .6rem; display: block; }

/* teaser grid (home) */

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bg-line);
  border: 1px solid var(--bg-line);
}
.teaser {
  background: var(--bg);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.teaser h3 a { border: none; color: var(--text); }
.teaser h3 a:hover { color: var(--accent); }
.teaser p { font-size: .95rem; color: var(--text-muted); margin: 0; }

@media (max-width: 820px) {
  .teasers { grid-template-columns: 1fr; }
}

/* placeholder plate — remplace une image manquante sans jamais casser la mise en page */

.plate {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--bg-raised) 0%, var(--bg) 60%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(187,124,51,.05) 8px 9px);
  border: 1px solid var(--bg-line);
  display: flex;
  align-items: flex-end;
  padding: .9rem;
}
.plate span {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* work grid (travaux) */

.medium-block { padding: 2.6rem 0; border-top: 1px solid var(--bg-line); }
.medium-block:first-of-type { border-top: none; }
.medium-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* exhibitions — liste chronologique numérotée (l'ordre porte l'information) */

.expo-list { border-top: 1px solid var(--bg-line); }
.expo {
  display: grid;
  grid-template-columns: 4.5rem 7rem 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--bg-line);
}
.expo .num { font-family: var(--mono); color: var(--accent); font-size: .95rem; }
.expo .when { font-family: var(--mono); font-size: .82rem; color: var(--text-muted); }
.expo .what h3 { margin-bottom: .35rem; }
.expo .what p { margin-bottom: .4rem; font-size: .95rem; }
.expo .what .where { color: var(--text-muted); font-size: .88rem; }

@media (max-width: 640px) {
  .expo { grid-template-columns: 3rem 1fr; }
  .expo .when { grid-column: 2; order: -1; margin-bottom: .3rem; }
  .expo .what { grid-column: 2; }
}

.status-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  padding: .18rem .5rem;
  margin-bottom: .6rem;
}

/* press list */

.press-list { display: flex; flex-direction: column; }
.press-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--bg-line);
  flex-wrap: wrap;
}
.press-item .name { font-family: var(--serif); font-size: 1.05rem; }
.press-item .desc { color: var(--text-muted); font-size: .9rem; }

/* contact */

.contact-card {
  border: 1px solid var(--bg-line);
  background: var(--bg-raised);
  padding: 2.4rem;
  max-width: 34rem;
}
.contact-card .mono { display: block; margin-bottom: .3rem; }
.contact-card .row { margin-bottom: 1.4rem; }
.contact-card a.big { font-size: 1.3rem; font-family: var(--serif); }

/* footer */

footer.site {
  border-top: 1px solid var(--bg-line);
  padding: 2.4rem 0 3rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer.site .links { display: flex; gap: 1.4rem; }
footer.site a { border: none; color: var(--text-muted); font-size: .88rem; }
footer.site a:hover { color: var(--accent); }

/* utility */
.mt-0 { margin-top: 0; }
.editorial-note {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--accent-soft);
  border-left: 2px solid var(--accent-soft);
  padding-left: .8rem;
  margin: 1.2rem 0 2rem;
}
