/* ==========================================================================
   ELNE REEL — REFONTE MAGAZINE ÉDITORIALE (artiste.html)
   ========================================================================== */
:root {
  --bio-bg: #09090b;
  --bio-surface: #121216;
  --bio-surface-alt: #18181d;
  --bio-paper: #f3efe8;
  --bio-ink-light: #ece8e0;
  --bio-ink-muted: #a6a198;
  --bio-ink-dark: #151417;
  --bio-ink-dark-muted: #4b4743;
  --bio-scarlet: #c81e2b;
  --bio-gold: #cbb07a;
  --bio-hairline: rgba(236, 232, 224, 0.12);
  --bio-hairline-dark: rgba(21, 20, 23, 0.14);
  --bio-serif: 'Cormorant Garamond', Georgia, serif;
  --bio-display: 'Syne', sans-serif;
  --bio-sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

.bio-page-body {
  background-color: var(--bio-bg);
  color: var(--bio-ink-light);
  font-family: var(--bio-sans);
  line-height: 1.72;
  overflow-x: clip;
  margin: 0;
}

/* Barre supérieure éditoriale (laisse la place au widget fixe en haut à gauche sur desktop) */
.bio-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bio-hairline);
}

.bio-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 28px 16px 240px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.bio-topbar-brand {
  display: none;
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--bio-ink-light);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .bio-topbar-inner {
    padding: 14px 20px;
    justify-content: space-between;
  }
  .bio-topbar-brand {
    display: inline-block;
  }
}

.bio-topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bio-topbar-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio-ink-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.bio-topbar-links a:hover,
.bio-topbar-links a:focus-visible {
  color: var(--bio-ink-light);
}

.bio-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--bio-hairline);
  color: var(--bio-ink-light);
  font-family: var(--bio-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

.bio-mobile-drawer {
  display: none;
  border-top: 1px solid var(--bio-hairline);
  background: #0c0c0f;
  padding: 16px 24px 22px;
}

.bio-mobile-drawer.is-open {
  display: block;
}

.bio-mobile-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-mobile-drawer-list a {
  color: var(--bio-ink-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
}

/* Typographie & conteneurs */
.bio-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.bio-section {
  padding: clamp(68px, 8vw, 116px) 0;
  position: relative;
}

.bio-section--dark { background: var(--bio-bg); }
.bio-section--anthracite { background: var(--bio-surface); }
.bio-section--paper {
  background: var(--bio-paper);
  color: var(--bio-ink-dark);
}

.bio-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bio-scarlet);
  margin-bottom: 14px;
}

.bio-h2 {
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--bio-ink-light);
}

.bio-section--paper .bio-h2 {
  color: var(--bio-ink-dark);
}

.bio-h3 {
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--bio-ink-light);
}

.bio-lead {
  font-family: var(--bio-serif);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.44;
  color: var(--bio-ink-light);
  margin: 0 0 24px;
}

.bio-section--paper .bio-lead {
  color: var(--bio-ink-dark);
}

.bio-prose p {
  font-size: 16px;
  line-height: 1.76;
  color: rgba(236, 232, 224, 0.86);
  margin: 0 0 18px;
  max-width: 60ch;
}

.bio-section--paper .bio-prose p {
  color: var(--bio-ink-dark-muted);
}

.bio-prose p:last-child {
  margin-bottom: 0;
}

/* Liens éditoriaux sobres (pas de gros rectangles) */
.bio-ed-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bio-ink-light);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(236, 232, 224, 0.35);
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.bio-ed-link:hover,
.bio-ed-link:focus-visible {
  color: var(--bio-scarlet);
  border-bottom-color: var(--bio-scarlet);
}

/* ==========================================================================
   01. HERO : ELNE REEL (45% texte / 55% photo desktop, plein écran mobile)
   ========================================================================== */
.bio-hero {
  display: grid;
  grid-template-columns: 45fr 55fr;
  min-height: calc(100svh - 54px);
  background: var(--bio-bg);
  position: relative;
}

.bio-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(28px, 5vw, 72px);
  z-index: 2;
}

.bio-hero-h1 {
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--bio-ink-light);
}

.bio-hero-role {
  font-family: var(--bio-serif);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--bio-gold);
  margin: 0 0 24px;
}

.bio-hero-intro {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(236, 232, 224, 0.86);
  max-width: 44ch;
  margin: 0 0 32px;
}

.bio-hero-media {
  position: relative;
  overflow: hidden;
  background: #06070a;
}

.bio-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* ==========================================================================
   GRILLES ÉDITORIALES ASYMÉTRIQUES
   ========================================================================== */
.bio-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.bio-split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.bio-split--wide-img {
  grid-template-columns: 0.9fr 1.1fr;
}

.bio-figure {
  margin: 0;
}

.bio-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.bio-figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bio-ink-muted);
}

.bio-section--paper .bio-figcaption {
  color: var(--bio-ink-dark-muted);
}

/* ==========================================================================
   03. ORIGINES : 3 MOMENTS ÉDITORIAUX
   ========================================================================== */
.bio-origins-moment {
  padding: 56px 0;
  border-top: 1px solid var(--bio-hairline);
}

.bio-origins-moment:first-of-type {
  border-top: none;
  padding-top: 12px;
}

.bio-origins-moment:last-of-type {
  padding-bottom: 0;
}

.bio-reperes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--bio-hairline);
  border-bottom: 1px solid var(--bio-hairline);
}

.bio-repere-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-repere-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bio-scarlet);
}

.bio-repere-title {
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--bio-ink-light);
}

.bio-repere-sub {
  font-size: 13px;
  color: var(--bio-ink-muted);
}

/* ==========================================================================
   04. MUSIQUE : PHOTO MICRO + 3 POCHETTES
   ========================================================================== */
.bio-music-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 56px;
}

.bio-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bio-work-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bio-work-cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #141418;
  margin-bottom: 14px;
}

.bio-work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio-work-item:hover .bio-work-cover img {
  transform: scale(1.04);
}

.bio-work-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bio-ink-muted);
  margin-bottom: 6px;
}

.bio-work-title {
  font-family: var(--bio-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--bio-ink-light);
  margin: 0 0 6px;
}

.bio-work-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bio-ink-muted);
  margin: 0;
}

.bio-section-footer-link {
  margin-top: 36px;
}

/* ==========================================================================
   06. LIVRES : SÉLECTION COMPACTE 2 COUVERTURES
   ========================================================================== */
.bio-covers-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bio-cover-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.bio-cover-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.bio-cover-link:hover img {
  transform: translateY(-4px);
}

.bio-cover-caption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-ink-light);
}

/* ==========================================================================
   07. HORS DU CADRE : GALERIE ASYMÉTRIQUE (4 PHOTOS)
   ========================================================================== */
.bio-hors-cadre-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.bio-hc-slot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bio-surface);
  cursor: pointer;
}

.bio-hc-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio-hc-slot:hover img {
  transform: scale(1.04);
}

.bio-hc-slot--1 { grid-column: span 7; height: 420px; }
.bio-hc-slot--2 { grid-column: span 5; height: 420px; }
.bio-hc-slot--3 { grid-column: span 5; height: 480px; }
.bio-hc-slot--4 { grid-column: span 7; height: 480px; }

.bio-hc-slot--3 img,
.bio-hc-slot--4 img { object-position: center 20%; }

.bio-hc-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 16px 12px;
  background: linear-gradient(0deg, rgba(9, 9, 11, 0.85) 0%, rgba(9, 9, 11, 0) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bio-ink-light);
}

.bio-mobile-more-gallery {
  display: none;
  margin-top: 20px;
}

/* ==========================================================================
   FIN DE PAGE : 3 LIENS SOBRES
   ========================================================================== */
.bio-finale-compact {
  padding: clamp(64px, 8vw, 108px) 0;
  background: var(--bio-surface);
  border-top: 1px solid var(--bio-hairline);
}

.bio-finale-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 28px;
}

/* Lightbox */
.bio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bio-lightbox.is-open { display: flex; }

.bio-lightbox-inner {
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.bio-lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--bio-hairline);
}

.bio-lightbox-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-ink-muted);
}

.bio-lightbox-actions {
  display: flex;
  gap: 10px;
}

.bio-lightbox-btn {
  background: transparent;
  border: 1px solid var(--bio-hairline);
  color: var(--bio-ink-light);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Apparition discrète au défilement */
.js-bio-anim .bio-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-bio-anim .bio-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-bio-anim .bio-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE : TABLETTE (768px) & MOBILE (390px)
   ========================================================================== */
@media (max-width: 959px) {
  .bio-split,
  .bio-split--reverse,
  .bio-split--wide-img,
  .bio-music-top {
    grid-template-columns: 1fr;
  }

  .bio-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-reperes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .bio-topbar-links {
    display: none;
  }

  .bio-menu-toggle {
    display: inline-block;
  }

  /* Hero mobile plein écran : photo pleine hauteur, texte en bas */
  .bio-hero {
    grid-template-columns: 1fr;
    min-height: 88svh;
  }

  .bio-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .bio-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.18) 0%, rgba(9, 9, 11, 0.55) 52%, rgba(9, 9, 11, 0.94) 100%);
  }

  .bio-hero-content {
    justify-content: flex-end;
    padding: 120px 22px 42px;
    min-height: 88svh;
  }

  .bio-hero-h1 {
    font-size: clamp(38px, 11vw, 52px);
  }
}

@media (max-width: 639px) {
  .bio-container {
    padding: 0 20px;
  }

  .bio-works-grid {
    grid-template-columns: 1fr;
  }

  .bio-hc-slot--1,
  .bio-hc-slot--2,
  .bio-hc-slot--3,
  .bio-hc-slot--4 {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }

  /* Sur mobile, n'afficher que 2 photos puis le lien "Voir toute la galerie" */
  .bio-hors-cadre-grid:not(.is-expanded) .bio-hc-slot--3,
  .bio-hors-cadre-grid:not(.is-expanded) .bio-hc-slot--4 {
    display: none;
  }

  .bio-mobile-more-gallery {
    display: block;
  }
}
