/* ───────────────────────────────────────────────────────────
   Dans l'œil du photographe — Editorial Dark Magazine
   ─────────────────────────────────────────────────────────── */

:root {
  --ink:        #0d0b09;
  --ink-2:      #141110;
  --surface:    #1a1612;
  --surface-2:  #211b15;
  --line:       #2a2520;
  --line-strong:#3a3128;
  --text:       #ede4d8;
  --text-muted: #9a8e7d;
  --text-soft:  #c7b9a6;
  --accent:     #d4a04c;
  --accent-deep:#b88534;
  --accent-cool:#8da7bd;
  --warn:       #c8632d;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 0 rgba(255, 220, 180, 0.04) inset, 0 12px 36px -16px rgba(0,0,0,0.6);
  --shadow-hover: 0 1px 0 rgba(255, 220, 180, 0.08) inset, 0 24px 48px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Subtle photo-grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.42;
  mix-blend-mode: overlay;
  z-index: 1;
}
header, main, footer, .breadcrumb { position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: 4px; z-index: 100; }

/* ─── Typography ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.04; }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.45rem; line-height: 1.25; }
h4 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1.1em; }
em { font-style: italic; }
strong { font-weight: 600; color: var(--text); }

.eyebrow, .hero-eyebrow, .ep-card-eyebrow, .art-card-cat {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.1em;
  font-weight: 500;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto 1em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-large { padding: 18px 36px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ─── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand-mark { display: flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-name em { font-style: italic; color: var(--accent); }
.brand-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 4px;
}

.primary-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all .15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Breadcrumb ─────────────────────────────── */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  margin: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  overflow: auto;
  white-space: nowrap;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 12px;
  color: var(--line-strong);
}
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); }

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 110px);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(13,11,9,0.4) 0%, rgba(13,11,9,0.9) 95%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.hero-home {
  padding: clamp(90px, 14vw, 200px) 0 clamp(80px, 12vw, 160px);
}
.hero-page, .hero-article, .hero-episode {
  padding: clamp(60px, 9vw, 110px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}
.hero-text h1 { margin-bottom: 24px; }
.hero-lead {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-permanence {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Stats card on home */
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: grid;
  gap: 20px;
}
.hero-stat-item { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.hero-stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* ─── Sections ──────────────────────────────── */
.section {
  padding: clamp(60px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.section-dark { background: var(--ink-2); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 80px);
}
.section-head h2 { margin-bottom: 16px; }
.section-cta { text-align: center; margin-top: 48px; }

/* ─── Cards grid (episodes/articles) ──────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.ep-card,
.art-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: all .25s ease;
  box-shadow: var(--shadow-card);
}
.ep-card:hover,
.art-card:hover {
  border-color: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.ep-card-image,
.art-card-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  position: relative;
}
.ep-card-image {
  background-image: var(--ep-img);
  display: flex;
  align-items: flex-end;
}
.ep-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,9,0.1) 50%, rgba(13,11,9,0.85) 100%);
}
.ep-card-num {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  padding: 14px 18px;
  letter-spacing: -0.01em;
}

.ep-card-body,
.art-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-card-eyebrow,
.art-card-cat {
  margin-bottom: 4px;
}
.ep-card h3,
.art-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text);
}
.ep-card-meta,
.art-card-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ─── Episodes list (archive page) ────────── */
.section-list { background: var(--ink-2); }
.ep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.ep-row {
  border-bottom: 1px solid var(--line);
}
.ep-row-link {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 32px;
  padding: 28px 24px;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.ep-row-link:hover {
  background: var(--surface);
  color: var(--accent);
}
.ep-row-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.ep-row-num small {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-style: normal;
  display: block;
  margin-top: 4px;
}
.ep-row-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  font-style: normal;
}
.ep-row-text em {
  display: block;
  font-style: italic;
  font-family: var(--serif);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.ep-row-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform .2s ease, color .2s ease;
}
.ep-row-link:hover .ep-row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ─── Prose article layout ────────────────── */
.section-prose { padding-top: clamp(50px, 7vw, 80px); }
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.prose {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 70ch;
}
.prose h2 {
  font-size: 1.9rem;
  margin: 2.2em 0 0.6em;
  color: var(--text);
}
.prose h2::before {
  content: '— ';
  color: var(--accent);
}
.prose h3 {
  font-size: 1.4rem;
  margin: 1.8em 0 0.5em;
  color: var(--text);
}
.prose p {
  margin: 0 0 1.3em;
}
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  padding: 0.1em 0.15em 0 0;
  color: var(--accent);
}
.prose ul, .prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 0.5em;
  color: var(--text-soft);
}
.prose blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-style: italic;
  color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.prose em { font-style: italic; }
.prose a { border-bottom: 1px dashed var(--accent-deep); }

/* Aside */
.prose-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.aside-card h2,
.aside-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--accent);
}
.aside-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.aside-card .link {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.aside-card-muted {
  background: transparent;
  border-color: var(--line);
}
.aside-card-muted h3 { font-size: 1.15rem; }

/* ─── Episode nav ─────────────────────────── */
.ep-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ep-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 36px 0;
}
.ep-nav-prev,
.ep-nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: all .2s ease;
}
.ep-nav-next { text-align: right; }
.ep-nav-prev:hover,
.ep-nav-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ep-nav-prev span,
.ep-nav-next span {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.ep-nav-prev strong,
.ep-nav-next strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
}

/* ─── Related cards ───────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-soft);
  transition: all .2s ease;
}
.related-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--accent);
}
.related-card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
}
.related-card-cat {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.related-card strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.related-card:hover strong { color: var(--accent); }

/* ─── Section about-home ───────────────────── */
.section-about-home { background: var(--ink-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
}
.about-text h2 { font-size: 2.2rem; margin-bottom: 0.6em; }
.about-text p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ─── Footer ───────────────────────────────── */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 64px;
  margin-top: auto;
  color: var(--text-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col-brand .brand-footer {
  margin-bottom: 18px;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 36ch;
  line-height: 1.55;
}
.footer-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 18px;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--accent); }

.footer-bar {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 22px 0;
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ─── Hero card secondary (about) ───────── */
.hero-page h1 { max-width: 22ch; }

/* ─── Responsive ─────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stat { order: 2; }
  .prose-grid { grid-template-columns: 1fr; gap: 48px; }
  .prose-aside { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ep-nav-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,11,9,0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .primary-nav.is-open { max-height: 80vh; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 14px 24px 24px;
  }
  .primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a:hover,
  .primary-nav a[aria-current="page"] { border-bottom-color: var(--line); }

  .hero { padding-top: 60px; padding-bottom: 50px; }
  .hero-lead { font-size: 1.15rem; }
  .ep-row-link { grid-template-columns: 80px 1fr 24px; gap: 18px; padding: 22px 16px; }
  .ep-row-num { font-size: 1.2rem; }
  .ep-row-text strong { font-size: 1.1rem; }
  .ep-row-text em { font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
  .prose p:first-of-type::first-letter { font-size: 3em; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
