/* ══════════════════════════════════════════════════════════
   article.css — pages autonomes NOL
   Partagé par essay, deepcut, the-angle
   Dépend de base.css
══════════════════════════════════════════════════════════ */

/* ── NAV ARTICLE — simplifiée ─────────────────────────── */
/* Même nav que l'issue, pill remplacée par un lien ← */

.nav-back {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-encre);
  opacity: 0.45;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-back:hover { opacity: 1; }
.nav-back::before { content: '← '; }

/* Nav commune (.nav, .nav-logo, .nav-right, .nav-links, .nav-panel) → base.css */
/* Seul le centre change : pas de pill, pas de drawer */
.nav-centre-article {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BARRE LECTURE & BACK TO TOP ──────────────────────── */
/* Définis dans base.css — rien à redéfinir ici           */

/* ── ARTICLE HERO ─────────────────────────────────────── */
/* Prend tout le viewport. Fond crème par défaut.         */
/* Couleur d'accent par page via .article-hero--[color]   */
.article-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(120px, 16vh, 180px) var(--px) clamp(64px, 8vh, 100px);
  background: var(--creme);
  overflow: hidden;
  position: relative;
}

/* Méta : rubrique · issue */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--vert-encre);
  opacity: 0.40;
  margin-bottom: clamp(20px, 2.5vh, 32px);
}
.article-meta-sep { opacity: 0.5; }

/* Titre principal */
.article-title {
  font-family: var(--f-title);
  font-weight: 700;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: clamp(20px, 2.5vh, 32px);
}

/* Sous-titre / accroche */
.article-sub {
  font-family: var(--f-title);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--vert-encre);
  opacity: 0.60;
  max-width: 680px;
}

/* Badge rubrique dans le hero */
.article-badge-wrap {
  margin-top: clamp(28px, 3.5vh, 44px);
}

/* ── ARTICLE BODY ─────────────────────────────────────── */
.article-body-wrap {
  padding: clamp(72px, 10vh, 120px) var(--px);
  display: grid;
  grid-template-columns: 1fr 6fr 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
}
.article-body-wrap > * { grid-column: 2; }

.article-body {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.85;
  color: var(--ink);
}
.article-body p + p { margin-top: 1.4em; }

/* Question d'ouverture (essay) */
.article-opening-q {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--vert-encre);
  opacity: 0.65;
  margin-bottom: clamp(40px, 5vh, 64px);
  max-width: 100%;
}

/* ── PULLQUOTE — version page autonome ─────────────────── */
/* Plus grande que dans l'issue. Toujours Fraunces italic. */
/* Fine règle en terra, centrée, respiration ample.        */
.article-pullquote {
  font-family: var(--f-title);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--terra);
  border-top: 0.5px solid rgba(196,97,74,0.30);
  border-bottom: 0.5px solid rgba(196,97,74,0.30);
  padding: clamp(36px, 5vh, 60px) 0;
  margin: clamp(64px, 9vh, 110px) auto;
  max-width: 100%;
}

/* P.S. — discret, fin de l'essay */
.article-ps {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
  opacity: 0.55;
  margin-top: 2em;
}


/* ── ISSUE LINK — "Read the full issue" ──────────────────── */
/* Seul, avant le footer. DM Mono, texte avec flèche hover. */

.article-issue-rule {
  width: 48px;
  height: 0.5px;
  background: var(--ink);
  opacity: 0.12;
  margin-bottom: 4px;
}

.article-issue-cta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-encre);
  opacity: 0.45;
  transition: opacity 0.25s;
  position: relative;
  display: inline-block;
}
.article-issue-cta::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.2s;
}
.article-issue-cta:hover { opacity: 0.85; }
.article-issue-cta:hover::after { opacity: 1; }

.article-issue-name {
  font-family: var(--f-title);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--vert-encre);
  opacity: 0.35;
}

/* ── FOOTER ARTICLE ───────────────────────────────────── */
/* Minimal : logo + tagline + meta. Pas de newsletter.    */
.article-footer {
  background: var(--creme);
  padding: clamp(40px, 5vh, 64px) var(--px);
  border-top: 0.5px solid rgba(30,38,32,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

/* ── MEAM BOX — version page autonome ────────────────── */
/* Floats hors du flow de texte, alignée à droite.       */
/* Sur mobile, redevient bloc en dessous du texte.       */

.meam-box {
  border-left: 1px solid rgba(201,150,58,0.55);
  border-top: 2px solid rgba(201,150,58,0.55); /* accent déplacé en haut */
  border-right: 1px solid rgba(201,150,58,0.55);
  border-bottom: 1px solid rgba(201,150,58,0.55);
  padding: clamp(18px, 2vw, 28px);
  background: rgba(201,150,58,0.06);
  margin-top: clamp(48px, 6vh, 80px);
  margin-right: calc(-1 * var(--px));
  align-self: end;
}
.meam-box .meam-title {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--or);
  margin-bottom: 12px;
}
.meam-box p {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--vert-encre);
}
.meam-box p + p { margin-top: 0.8em; }

/* ── THE ANGLE — layout spécifique ───────────────────── */
/* Paragraphes comme des strophes, respiration ample.    */
/* "1977" watermark en fond au-dessus du hero.           */

.angle-hero {
  background: var(--creme);
  overflow: hidden;
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(100px, 14vh, 160px) var(--px) clamp(32px, 4vh, 48px);
}


/* "1977" géant en watermark derrière le texte */
.angle-year-bg {
  position: absolute;
  top: clamp(-20px, -2vh, -8px);
  left: calc(-0.04 * 100vw);
  font-family: var(--f-title);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(380px, 50vw, 720px);  
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bordeaux);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
}

.angle-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(56px, 7vh, 88px);
}

/* Corps du Angle — strophes */
.angle-body-wrap {
  padding: clamp(72px, 10vh, 120px) var(--px);
  display: grid;
  grid-template-columns: 1fr 6fr 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
}
.angle-body-wrap > * { grid-column: 2; }

.angle-strophe {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.9;
  color: var(--ink);
  padding-bottom: clamp(28px, 4vh, 48px);
  border-bottom: 0.5px solid rgba(30,38,32,0.07);
  margin-bottom: clamp(28px, 4vh, 48px);
}
.angle-strophe:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.angle-credit {
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--vert-encre);
  opacity: 0.40;
  text-align: right;
  margin-top: clamp(48px, 6vh, 80px);
  grid-column: 2;
}

/* ── LOGO & NAV — définis dans base.css ──────────────── */

/* Footer */
.footer {
  background: var(--creme);
  padding: clamp(48px, 6vh, 80px) var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vh, 18px);
  margin-bottom: clamp(32px, 4vh, 48px);
}
.footer-icon { height: clamp(64px, 7vw, 96px); width: auto; }
.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.footer-notes {
  display: block;
  font-family: var(--f-body);
  font-style: italic;
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--vert-encre);
  line-height: 1;
}
.footer-listening {
  display: block;
  font-family: var(--f-body);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--vert-encre);
  line-height: 1;
}
.footer-tagline {
  font-family: var(--f-title);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--vert-encre);
  opacity: 0.55;
}
.footer-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--vert-encre);
  opacity: 0.40;
  margin-top: clamp(14px, 1.8vh, 20px);
}

/* Badges (même logique que home.css) */
.badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-top: 0.5px solid currentColor;
  border-bottom: 0.5px solid currentColor;
  border-right: 0.5px solid currentColor;
  border-left: 2.5px solid currentColor;
  background: none;
  white-space: nowrap;
  text-decoration: none;
}
.badge--moved {
  color: var(--cat-moved);
  border-top-color: color-mix(in srgb, var(--cat-moved) 35%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cat-moved) 35%, transparent);
  border-right-color: color-mix(in srgb, var(--cat-moved) 35%, transparent);
  border-left-color: color-mix(in srgb, var(--cat-moved) 65%, transparent);
}
.badge--brain {
  color: var(--cat-brain);
  border-top-color: color-mix(in srgb, var(--cat-brain) 35%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cat-brain) 35%, transparent);
  border-right-color: color-mix(in srgb, var(--cat-brain) 35%, transparent);
  border-left-color: color-mix(in srgb, var(--cat-brain) 65%, transparent);
}
.badge--angle {
  color: var(--cat-angle);
  border-top-color: color-mix(in srgb, var(--cat-angle) 35%, transparent);
  border-bottom-color: color-mix(in srgb, var(--cat-angle) 35%, transparent);
  border-right-color: color-mix(in srgb, var(--cat-angle) 35%, transparent);
  border-left-color: color-mix(in srgb, var(--cat-angle) 65%, transparent);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr 1fr; }
  .nav-centre-article { display: none; }

  .article-body-wrap {
    display: block;
    padding: clamp(48px, 7vh, 80px) var(--px);
  }

  .angle-body-wrap { display: block; }

  .article-meam-body { margin-right: 0; }
  .article-meam-box {
    position: static;
    width: 100%;
    margin-top: clamp(40px, 5vh, 64px);
  }

  .angle-year-bg {
    font-size: clamp(140px, 42vw, 280px);
    opacity: 0.04;
  }

  .back-top { bottom: 16px; right: 16px; }

  .footer { padding: clamp(48px, 6vh, 72px) var(--px); }
}

@media (max-width: 600px) {
  .article-title { letter-spacing: -0.025em; }
  .article-body { font-size: clamp(16px, 4.2vw, 18px); }
  .article-pullquote {
    font-size: clamp(22px, 6vw, 32px);
    padding: clamp(28px, 4vh, 44px) 0;
    margin: clamp(48px, 7vh, 80px) auto;
  }
  .angle-strophe { font-size: clamp(16px, 4.2vw, 18px); }
  .article-issue-cta { font-size: 9px; }
}

[id] { scroll-margin-top: 100px; }

/* ── AJOUTS v2 ────────────────────────────────────────── */

/* Titre + badge sur même ligne, badge poussé à droite */
.article-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: nowrap;
  margin-bottom: clamp(20px, 2.5vh, 32px);
}
.article-title-row .article-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.article-title-row .badge {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 6px; /* aligne visuellement avec la baseline du titre */
  margin-top: 0;
}
/* Pour le The Angle : le s1977-year à gauche, badge à droite */
.article-title-row .s1977-year {
  flex: 1;
  font-size: clamp(72px, 10vw, 130px);
}


/* MEAM box — pleine largeur, sous le texte */
.article-meam-box--full {
  position: static;
  width: 100%;
  margin-top: clamp(40px, 5vh, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 clamp(24px, 3vw, 40px);
  align-items: start;
  border-top: 2px solid rgba(201,150,58,0.55);
  border-bottom: 1px solid rgba(201,150,58,0.55);
  border-left: none;
  border-right: none;
  padding: clamp(18px, 2.5vh, 28px) 0;
  background: none;
}
.article-meam-box--full .meam-title {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  white-space: nowrap;
  padding-top: 2px;
}
.article-meam-box--full p:not(.meam-title) {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--vert-encre);
  opacity: 0.70;
}

/* Nav — issue label non-cliquable (réutilise le style de home.css) */
/* .nav-issue-label déjà défini dans home.css */
/* Si home.css pas chargé, fallback ici : */
.nav-centre-article .nav-issue-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-encre);
  opacity: 0.32;
  white-space: nowrap;
}

/* The Angle — hero sans min-height contrainte */
/* Mobile : titre-badge en colonne sur très petits écrans */
@media (max-width: 500px) {
  .article-title-row {
    flex-wrap: wrap;
  }
  .article-title-row .badge {
    align-self: flex-start;
  }
  .article-meam-box--full {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── AJOUTS v3 ────────────────────────────────────────── */

/* Witness quote — standalone p comme dans issue00          */
/* Même corps que article-body, légèrement isolé           */
.article-body--witness {
  font-family: var(--f-title);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.80;
  margin: clamp(40px, 5vh, 64px) 0;
}

/* Lien "Read the full issue" — style playlist-spotify      */
.article-issue-link {
  padding: clamp(64px, 9vh, 100px) var(--px) clamp(48px, 6vh, 72px);
}

.article-issue-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-encre);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.25s;
}
.article-issue-cta-main:hover { opacity: 0.80; }

.article-issue-cta-main span {
  position: relative;
  padding-bottom: 2px;
}
.article-issue-cta-main span::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 0.5px;
  background: var(--vert-encre);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.article-issue-cta-main:hover span::after { width: 100%; }

.article-issue-cta-main::after {
  content: ' →';
  opacity: 0;
  transition: opacity 0.2s;
  font-family: var(--f-mono);
}
.article-issue-cta-main:hover::after { opacity: 1; }

/* article-title-row quand il n'a que le badge (The Angle)  */
.article-title-row:has(.badge:only-child) {
  justify-content: flex-start;
  margin-top: clamp(16px, 2vh, 24px);
}