/* =============================================
   ARTICLE — pages Journal
   ============================================= */

/* Barre de progression lecture */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--fg);
  z-index: 200;
  transition: width 80ms linear;
}

/* Nav override — articles */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  background: transparent;
  transition: background 300ms ease, backdrop-filter 300ms ease;
}
/* Forcer opacité 1 (main.js absent sur les articles) */
#nav #nav-logo,
#nav .nl { opacity: 1; cursor: pointer; }

#nav.nav--light {
  background: rgba(245,244,240,.94);
  backdrop-filter: blur(8px);
}
#nav.nav--light .nl { color: var(--fg); }
#nav.nav--light #nav-logo-img { filter: invert(1) brightness(0); }

#nav.nav--dark {
  background: rgba(13,12,11,.82);
  backdrop-filter: blur(8px);
}
#nav.nav--dark .nl { color: var(--bg); }
#nav.nav--dark #nav-logo-img { filter: brightness(10); }

/* Hero header */
#article-hero {
  min-height: 60vh;
  background: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px clamp(20px, 7vw, 100px) 64px;
  position: relative;
  overflow: hidden;
}

#article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

#article-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: art-fadein 600ms ease 200ms forwards;
}

.art-cat {
  font-family: var(--fs);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,244,240,.5);
  border: 1px solid rgba(245,244,240,.2);
  padding: 4px 10px;
  border-radius: 2px;
}

.art-date {
  font-family: var(--fs);
  font-size: 10px;
  letter-spacing: .10em;
  color: rgba(245,244,240,.35);
}

#article-title {
  font-family: var(--fd);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -.025em;
  color: var(--bg);
  margin: 0 0 32px;
  max-width: 900px;
  opacity: 0;
  transform: translateY(24px);
  animation: art-fadein 700ms ease 350ms forwards;
}

#article-intro {
  font-family: var(--fs);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(245,244,240,.6);
  max-width: 600px;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: art-fadein 600ms ease 500ms forwards;
}

@keyframes art-fadein {
  to { opacity: 1; transform: translateY(0); }
}

/* Contenu */
#article-main {
  padding-bottom: 100px;
}

#article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

#article-body {
  padding-top: 72px;
}

#article-body h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.015em;
  color: var(--fg);
  margin: 64px 0 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
#article-body h2.visible {
  opacity: 1;
  transform: translateY(0);
}

#article-body p {
  font-family: var(--fs);
  font-size: clamp(15px, 1.45vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--fg);
  margin: 0 0 24px;
}

/* Premier paragraphe — drop cap */
#article-body > p:first-of-type::first-letter {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 4.2em;
  line-height: .75;
  float: left;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--fg);
}

/* Séparateur entre sections */
#article-body h2:not(:first-child) {
  padding-top: 16px;
  border-top: 1px solid var(--fg3);
}

/* Footer */
#article-footer {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--fg3);
}

#art-cta-block {
  background: var(--fg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

#art-cta-block p {
  font-family: var(--fs);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,244,240,.7);
  margin: 0;
  max-width: 340px;
  line-height: 1.6;
}

.art-contact {
  font-family: var(--fd);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.art-contact:hover { opacity: .6; }

#art-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.art-back, .art-next {
  font-family: var(--fs);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  transition: color 200ms ease;
}
.art-back:hover, .art-next:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 768px) {
  #article-hero { min-height: 55vh; padding: 100px 20px 48px; }
  #art-cta-block { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}
