/* ============================================================
   VALEUR.NETTE — Design System
   ============================================================ */

:root {
  --noir: #0A0A0A;
  --blanc: #F5F5F0;
  --accent: #1E6FFF;
  --gris: #1A1A1A;
  --gris-mid: #232323;
  --gris-texte: #888880;
  --line: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--noir);
  color: var(--blanc);
}

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
}

a {
  color: var(--blanc);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--blanc);
  letter-spacing: -0.02em;
}

.nav-brand-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: var(--gris-texte);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--gris-texte);
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  color: var(--blanc);
  background: var(--gris-mid);
}

.nav-sep {
  color: var(--line);
  font-size: 18px;
  padding: 0 2px;
}

@media (max-width: 640px) {
  .nav-brand-tagline { display: none; }
  .nav-links a { font-size: 13px; padding: 5px 8px; }
}

/* ============================================================
   HERO (page d'accueil)
   ============================================================ */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 420px;
}

.hero-left {}

.hero-category {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--blanc);
}

.hero-excerpt {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--gris-texte);
  line-height: 1.6;
  margin: 0 0 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--blanc);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.85;
  color: var(--blanc);
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.hero-right-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-mini-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-mini-card:last-child { border-bottom: none; }

.hero-mini-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--gris-mid);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}

.hero-mini-card-content {}

.hero-mini-card-cat {
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.hero-mini-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--blanc);
  line-height: 1.2;
}

.hero-mini-card-title:hover { color: var(--accent); }

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 40px;
    gap: 40px;
  }
}

/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  background: var(--gris);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--gris-texte);
  padding: 0 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-item .ticker-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============================================================
   GRILLE ARTICLES (home)
   ============================================================ */

.articles-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--blanc);
  letter-spacing: -0.01em;
}

.section-count {
  font-size: 13px;
  color: var(--gris-texte);
}

/* Grille haut: 2 grandes colonnes */
.articles-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Grille bas: 3 colonnes */
.articles-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .articles-grid-top { grid-template-columns: 1fr; }
  .articles-grid-bottom { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .articles-grid-bottom { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE CARD
   ============================================================ */

.article-card {
  background: var(--gris);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(16px);
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(30,111,255,0.12);
}

.article-card-large {
  padding: 32px;
}

.card-category {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-format {
  font-size: 10px;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 2px;
  display: inline-block;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  color: var(--blanc);
  letter-spacing: -0.01em;
}

.article-card-large .card-title {
  font-size: 30px;
}

.card-title:hover { color: var(--accent); }

.card-excerpt {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.55;
  flex: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--gris-texte);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-read-time {
  color: var(--gris-texte);
}

/* ============================================================
   PILLS CATÉGORIES
   ============================================================ */

.categories-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--gris-texte);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.pill:hover,
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--blanc);
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter-section {
  background: var(--gris);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 24px;
  text-align: center;
}

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
}

.newsletter-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.newsletter-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--blanc);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.newsletter-sub {
  font-weight: 300;
  font-size: 15px;
  color: var(--gris-texte);
  margin: 0 0 32px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--noir);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--blanc);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--blanc);
  border: none;
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.newsletter-btn:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--noir);
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--blanc);
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 13px;
  color: var(--gris-texte);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gris-texte);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--blanc); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gris-texte);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-social-link:hover { color: var(--blanc); }

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-sep {
  color: var(--gris-texte);
  font-size: 13px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--gris-texte);
  text-align: center;
}

/* ============================================================
   ARTICLES LIST PAGE (section)
   ============================================================ */

.list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.list-header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.list-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: var(--blanc);
  margin: 0 0 8px;
}

.list-subtitle {
  font-weight: 300;
  font-size: 16px;
  color: var(--gris-texte);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .list-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .list-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */

.single-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.meta-category {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 2px;
}

.meta-format {
  font-size: 10px;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
}

.meta-date,
.meta-readtime {
  font-size: 13px;
  color: var(--gris-texte);
}

.meta-sep {
  color: var(--line);
}

.single-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--blanc);
  margin: 0 0 32px;
}

.single-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 40px;
}

/* Article body content */
.single-content {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--blanc);
}

.single-content p {
  margin: 0 0 1.4em;
}

.single-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 2em 0 0.6em;
  color: var(--blanc);
}

.single-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 1.6em 0 0.5em;
  color: var(--blanc);
}

.single-content strong {
  font-weight: 400;
  color: var(--blanc);
}

.single-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(30,111,255,0.3);
  transition: border-color 0.2s;
}

.single-content a:hover {
  border-bottom-color: var(--accent);
}

.single-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 0 0 0 24px;
  color: var(--gris-texte);
  font-style: normal;
}

/* Footer nav single */
.single-footer-nav {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.footer-nav-prev {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-next {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-nav-label {
  font-size: 11px;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-nav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--blanc);
}

.footer-nav-title:hover { color: var(--accent); }

.footer-nav-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gris-texte);
  text-align: center;
}

.footer-nav-index a {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px;
}

.search-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--blanc);
  margin: 0 0 32px;
}

.search {
  margin: 0 0 32px;
}

.search input {
  width: 100%;
  padding: 14px 18px;
  background: var(--gris);
  color: var(--blanc);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  transition: border-color 0.2s;
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
}

.search input::placeholder { color: var(--gris-texte); }

#results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#results li {
  background: var(--gris);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0;
}

#results li a {
  display: block;
  padding: 16px 20px;
  transition: background 0.2s;
}

#results li a:hover {
  background: var(--gris-mid);
  color: var(--blanc);
}

#results li .small {
  font-size: 13px;
  color: var(--gris-texte);
  margin-top: 4px;
}

/* ============================================================
   WIKILINKS
   ============================================================ */

.wikilink {
  color: var(--accent);
  border-bottom: 1px solid rgba(30,111,255,0.3);
  transition: border-color 0.2s;
}

.wikilink:hover { border-bottom-color: var(--accent); color: var(--accent); }

.wikilink-broken {
  color: var(--gris-texte);
  opacity: 0.6;
  cursor: default;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ============================================================
   PROFILE CARD — À propos
   ============================================================ */

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 48px;
}

.profile-photo-wrap {
  flex-shrink: 0;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid var(--line);
}

.profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--blanc);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.profile-role {
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gris-texte);
  margin: 0 0 10px;
}

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

@media (max-width: 600px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
}

/* ============================================================
   GLOSSAIRE
   ============================================================ */

.glossaire-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.glossaire-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 12px;
}

.glossaire-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.glossaire-sub {
  color: var(--gris-texte);
  font-size: 15px;
  margin: 0;
}

.glossaire-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 48px;
}

.alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--gris-texte);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.alpha-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.glossaire-body {
  padding-bottom: 80px;
}

.glossaire-group {
  margin-bottom: 56px;
}

.glossaire-letter {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--accent);
  margin: 0 0 24px;
  line-height: 1;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.glossaire-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossaire-entry {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.glossaire-entry:last-child {
  border-bottom: none;
}

.glossaire-term {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--blanc);
  margin: 0;
  padding-top: 2px;
}

.glossaire-def {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 700px) {
  .glossaire-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .glossaire-term {
    color: var(--blanc);
    font-weight: 400;
  }

  .glossaire-letter {
    font-size: 36px;
  }
}
