/* ============================================================
   CAPSULE NEWS — Feuille de style principale
   Charte : Noir #0D0D0D · Or #F5D97A #C9A84C #B8922A · Ivoire #F0EAD6
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir:       #0D0D0D;
  --noir-chaud: #1A1409;
  --noir-card:  #111111;
  --noir-bord:  #1E1E1E;
  --bronze:     #2A2010;
  --or-vif:     #F5D97A;
  --or-profond: #C9A84C;
  --or-accent:  #B8922A;
  --ivoire:     #F0EAD6;
  --ivoire-mid: #D4C9A8;
  --gris-texte: #888888;
  --gris-mute:  #555555;
  --gris-bord:  #333333;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  'Arial', Helvetica, sans-serif;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-serif);
  background: var(--noir);
  color: var(--ivoire);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-hyphens: none;
  hyphens: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--or-accent);
  padding: 7px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.topbar__label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--noir);
  text-transform: uppercase;
  font-weight: 700;
  flex-shrink: 0;
}
.topbar__text {
  font-size: 11px;
  color: var(--noir);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  background: #0A0A0A;
  border-bottom: 1px solid var(--noir-bord);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}
.nav__logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--or-vif);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--gris-texte);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav__link:hover,
.nav__link--active { color: var(--or-profond); }
.nav__link--active { border-bottom: 1px solid var(--or-profond); padding-bottom: 2px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 420px;
  border-bottom: 1px solid var(--noir-bord);
}
.hero__body {
  padding: 44px 36px;
  border-right: 1px solid var(--noir-bord);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--or-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__title {
  font-size: 32px;
  color: var(--ivoire);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 400;
  max-width: 560px;
}
.hero__excerpt {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gris-texte);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 500px;
}
.hero__meta { display: flex; align-items: center; gap: 10px; }
.hero__image {
  background: var(--noir-chaud);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.hero__image img:hover { transform: scale(1.03); }

/* ── TRENDING BAR ─────────────────────────────────────────── */
.trending-bar {
  border-bottom: 1px solid var(--noir-bord);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending-bar::-webkit-scrollbar { display: none; }
.trending-bar__label {
  background: #111;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--noir-bord);
  flex-shrink: 0;
}
.trending-bar__label span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--or-accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.trending-bar__item {
  padding: 12px 20px;
  border-right: 1px solid var(--noir-bord);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  text-decoration: none;
}
.trending-bar__item:hover { background: #111; }
.trending-bar__num {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--bronze);
  font-weight: 700;
}
.trending-bar__title {
  font-size: 12px;
  color: var(--gris-texte);
  max-width: 160px;
  transition: color .2s;
}
.trending-bar__item:hover .trending-bar__title { color: var(--or-vif); }

/* ── LAYOUT PRINCIPAL ─────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  border-bottom: 1px solid var(--noir-bord);
}
.articles-col { border-right: 1px solid var(--noir-bord); }

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  padding: 14px 28px;
  border-bottom: 1px solid var(--noir-bord);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header__title {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--or-accent);
  text-transform: uppercase;
}
.section-header__link {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .12em;
  color: #444;
  text-transform: uppercase;
  transition: color .2s;
}
.section-header__link:hover { color: var(--or-profond); }

/* ── ARTICLE CARD ─────────────────────────────────────────── */
.article-card {
  display: grid;
  grid-template-columns: 1fr 110px;
  border-bottom: 1px solid var(--noir-bord);
  text-decoration: none;
  transition: background .2s;
}
.article-card:hover { background: #0f0f0f; }
.article-card__body { padding: 22px 28px; }
.article-card__tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--or-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-card__title {
  font-size: 17px;
  color: var(--ivoire-mid);
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color .2s;
}
.article-card:hover .article-card__title { color: var(--or-vif); }
.article-card__excerpt {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gris-mute);
  line-height: 1.8;
  margin-bottom: 10px;
}
.article-card__meta {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #444;
  display: flex;
  gap: 8px;
  align-items: center;
}
.article-card__dot { width: 3px; height: 3px; background: var(--bronze); border-radius: 50%; }
.article-card__thumb {
  background: var(--noir-card);
  border-left: 1px solid var(--noir-bord);
  overflow: hidden;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.article-card:hover .article-card__thumb img { transform: scale(1.05); }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--noir-bord);
}
.sidebar__header span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--or-accent);
  text-transform: uppercase;
}
.sidebar__item {
  padding: 14px 20px;
  border-bottom: 1px solid #111;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: background .2s;
}
.sidebar__item:hover { background: #0f0f0f; }
.sidebar__rank {
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--noir-bord);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.sidebar__tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--or-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sidebar__title {
  font-size: 13px;
  color: var(--gris-texte);
  line-height: 1.4;
  transition: color .2s;
}
.sidebar__item:hover .sidebar__title { color: var(--or-vif); }

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter {
  background: var(--noir-card);
  padding: 24px 20px;
  border-bottom: 1px solid var(--noir-bord);
}
.newsletter__title {
  font-size: 17px;
  color: var(--or-vif);
  margin-bottom: 6px;
  font-weight: 400;
}
.newsletter__sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gris-mute);
  line-height: 1.7;
  margin-bottom: 16px;
}
.newsletter__input {
  width: 100%;
  background: var(--noir);
  border: 1px solid var(--bronze);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ivoire);
  outline: none;
  margin-bottom: 8px;
  transition: border-color .2s;
}
.newsletter__input:focus { border-color: var(--or-profond); }
.newsletter__input::placeholder { color: #333; }

/* ── BOUTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn--or   { background: var(--or-profond); color: var(--noir); width: 100%; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--bronze);
  color: var(--or-profond);
  padding: 10px 22px;
}
.btn--outline:hover { background: var(--noir-chaud); }

/* ── PILLS & BADGES ───────────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--or-accent);
  color: var(--noir);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.pill--outline {
  background: transparent;
  border: 1px solid var(--bronze);
  color: var(--or-profond);
}

/* ── PAGE ARTICLE ─────────────────────────────────────────── */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px 32px 32px;
  border-bottom: 1px solid var(--noir-bord);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.article-page-wrap {
  max-width: 100%;
  overflow: hidden;
}
.article-header__cat {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--or-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-header__title {
  font-size: 36px;
  color: var(--ivoire);
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 400;
}
.article-header__chapeau {
  font-size: 18px;
  color: var(--ivoire-mid);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  border-left: 3px solid var(--or-accent);
  padding-left: 20px;
}
.article-header__meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #555;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.article-cover {
  max-width: 800px;
  margin: 0 auto 0;
  padding: 24px 32px 0;
}
.article-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.article-content {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 64px;
  -webkit-hyphens: none;
  hyphens: none;
  box-sizing: border-box;
}
.article-content * {
  max-width: 100%;
  -webkit-hyphens: none;
  hyphens: none;
}
.article-content p       { margin-bottom: 1.5rem; font-size: 17px; line-height: 1.85; color: var(--ivoire-mid); }
.article-content h2      { font-size: 24px; color: var(--or-vif); margin: 2.5rem 0 1rem; font-weight: 400; }
.article-content h3      { font-size: 20px; color: var(--ivoire); margin: 2rem 0 .8rem; font-weight: 400; }
.article-content blockquote {
  border-left: 3px solid var(--or-accent);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--noir-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 19px;
  font-style: italic;
  color: var(--or-vif);
  line-height: 1.6;
}
.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.article-content strong { color: var(--ivoire); font-weight: 400; }
.article-content a      { color: var(--or-profond); border-bottom: 1px solid var(--bronze); }
.article-content a:hover { color: var(--or-vif); }

/* ── RUBRIQUES GRID ───────────────────────────────────────── */
.rubriques-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--noir-bord);
}
.rubrique-card {
  padding: 28px 24px;
  border-right: 1px solid var(--noir-bord);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: block;
}
.rubrique-card:last-child { border-right: none; }
.rubrique-card:hover { background: var(--noir-card); }
.rubrique-card__name {
  font-size: 20px;
  color: var(--or-profond);
  margin-bottom: 6px;
  font-weight: 400;
}
.rubrique-card__count {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #555;
  letter-spacing: .1em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: 40px 32px 0;
  border-top: 1px solid var(--noir-bord);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--noir-bord);
}
.footer__logo {
  font-size: 22px;
  color: var(--or-vif);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer__tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #444;
  line-height: 1.8;
}
.footer__col-title {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--or-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__link {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gris-mute);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer__link:hover { color: var(--or-profond); }
.footer__bottom {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copy {
  font-family: var(--font-sans);
  font-size: 10px;
  color: #333;
  letter-spacing: .06em;
}

/* Burger caché par défaut sur desktop */
.nav__burger { display: none; }
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--or-profond);
  transition: all .2s;
}

/* Overlay noir total - couvre tout l'écran quand menu ouvert */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #0A0A0A;
  z-index: 198;
}
.nav-overlay--visible { display: block; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { position: relative; padding: 0 16px; z-index: 202; }
  .nav__links { display: none; }
  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    padding: 70px 0 80px;
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: flex-start;
    overscroll-behavior: contain;
  }
  .nav__links--open::before {
    content: 'CAPSULE';
    display: block;
    font-family: Georgia, serif;
    font-size: 20px;
    color: #F5D97A;
    letter-spacing: .08em;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    line-height: 60px;
    background: #0A0A0A;
    border-bottom: 1px solid #1E1E1E;
    z-index: 201;
  }
  .nav__links--open::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 200px;
    background: #0A0A0A;
  }
  .nav__links--open .nav__link {
    padding: 18px 24px;
    font-size: 13px;
    letter-spacing: .18em;
    border-bottom: 1px solid #111;
    width: 100%;
    text-align: center;
    color: var(--gris-texte);
    display: block;
  }
  .nav__links--open .nav__link:hover,
  .nav__links--open .nav__link--active { color: var(--or-vif); }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    margin-left: auto;
    position: relative;
    z-index: 202;
  }
  .hero { grid-template-columns: 1fr; }
  .hero__body { padding: 28px 18px 24px; border-right: none; border-bottom: 1px solid var(--noir-bord); }
  .hero__title { font-size: 22px; }
  .hero__excerpt { display: none; }
  .hero__image { min-height: 220px; border-top: 1px solid var(--noir-bord); }
  .main-layout { grid-template-columns: 1fr; }
  .articles-col { border-right: none; }
  .article-card { grid-template-columns: 1fr 80px; }
  .article-card__body { padding: 14px 16px; }
  .article-card__title { font-size: 15px; }
  .article-card__excerpt { display: none; }
  .rubriques-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 28px 18px 0; }
  .article-content { padding: 28px 18px 48px; }
  .article-content p { font-size: 16px; }
  .article-header { padding: 36px 18px 24px; overflow: hidden; }
  .article-header__title { font-size: 22px; }
  .article-header__chapeau { font-size: 15px; padding-left: 14px; }
  .article-cover { padding: 16px 18px 0; }
  .topbar { padding: 7px 16px; }
  .trending-bar__item { padding: 10px 14px; }
  .trending-bar__title { max-width: 120px; font-size: 11px; }
  .section-header { padding: 12px 16px; }
  .newsletter { padding: 18px 16px; }
  .sidebar__item { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .rubriques-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 20px; }
}
