/* ============================================================
   HANDIGREG — surcouche design (Apple / sombre) pour les articles
   Chargée APRÈS le <style> propre à chaque article : elle harmonise
   la palette, la typographie et la navigation avec la page d'accueil,
   sans toucher au contenu.
   ============================================================ */

:root {
  --blue: #2997ff;
  --black: #000000;
  --panel: #151517;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f5f5f7;
  --text-soft: #a1a1a6;
}

body {
  background: #000000;
  -webkit-font-smoothing: antialiased;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- Nav translucide fixe (identique à l'accueil) ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.topnav-inner { width: 100%; max-width: 1024px; padding: 0 22px; display: flex; align-items: center; gap: 26px; }
.topnav a { text-decoration: none; font-family: inherit; }
.topnav-brand { font-weight: 600; font-size: 17px; letter-spacing: 0.02em; margin-right: auto; color: #f5f5f7; }
.topnav-links { display: flex; gap: 26px; }
.topnav-links a { font-size: 12px; color: #a1a1a6; transition: color 0.2s ease; }
.topnav-links a:hover { color: #f5f5f7; }
@media (max-width: 720px) { .topnav-links { gap: 16px; overflow-x: auto; } .topnav-links a { white-space: nowrap; } }

/* ---------- On masque l'ancienne nav du haut + fil d'Ariane ---------- */
nav.site-nav:first-of-type { display: none; }
.breadcrumb { display: none; }

/* Dégager l'espace sous la nav fixe (pages avec .wrap) */
.wrap { padding-top: 84px; }
/* Repli pour les pages sans .wrap (ex. outils) */
body.no-wrap { padding-top: 84px; }

/* ---------- Typographie façon accueil ---------- */
.wrap h1, .wrap h2, .wrap h3,
.hero h1, header.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.02em;
}
.wrap h1, .hero h1 { font-weight: 600; }
.wrap h2 { font-weight: 600; letter-spacing: -0.015em; }
.wrap h3 { font-weight: 600; }

/* Kicker / eyebrow en bleu accent */
.kicker, .eyebrow, .post-kicker, .card-kicker { color: #2997ff; }

/* ---------- Encart de note (verdict de l'auteur) ---------- */
.note-encart {
  display: none;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 0;
  padding: 0.85rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-soft);
  border-radius: 0 10px 10px 0;
}
.note-encart.is-visible { display: flex; }
.note-encart .note-caption {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
}
.note-encart .note-stars { font-size: 1.3rem; letter-spacing: 3px; color: #e6b800; line-height: 1; }
.note-encart .note-label {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  font-weight: 600; font-size: 1rem; color: var(--text);
}
.note-encart.note-1 { border-left-color: #1c9a4f; }
.note-encart.note-2 { border-left-color: #2997ff; }
.note-encart.note-3 { border-left-color: #d98324; }
.note-encart.note-4 { border-left-color: #ff453a; }
.note-encart.note-4 .note-stars { color: #ff453a; }
.note-encart.note-clickable { cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.note-encart.note-clickable:hover { background: #1b1b1e; border-color: rgba(255, 255, 255, 0.2); }
.note-encart .note-spacer { flex: 1 1 auto; }
.note-info {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text-soft);
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 14px; font-weight: 700;
  line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.note-info:hover { color: var(--text); border-color: var(--text-soft); }

/* ---------- Popups note (vidéo + explication) ---------- */
.np-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, 0.85); align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.np-overlay.open { display: flex; }
.np-close {
  position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.5); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.np-close:hover { background: rgba(0, 0, 0, 0.8); }
.np-video { width: min(900px, 92vw); }
.np-video .np-ratio { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.np-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.np-poster { position: absolute; inset: 0; display: block; text-decoration: none; overflow: hidden; }
.np-poster img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.72); transition: filter 0.2s ease, transform 0.4s ease; }
.np-poster:hover img { filter: brightness(0.85); transform: scale(1.03); }
.np-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 62px; border-radius: 14px; background: #ff0000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.np-play::after {
  content: ""; position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent #fff;
}
.np-poster:hover .np-play { background: #ff1a1a; }
.np-poster-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px; font-weight: 600;
}
.np-explain {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px;
  max-width: 380px; width: 92vw; color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.np-explain h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.np-explain .np-scale { list-style: none; margin: 0; padding: 0; }
.np-explain .np-scale li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 15px; }
.np-explain .np-scale .s { color: #e6b800; letter-spacing: 2px; min-width: 74px; }
.np-explain .np-scale .s.red { color: #ff453a; }
.np-explain p { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: 14px 0 0; }

/* ---------- Signature centrée en bas d'article ---------- */
.signature-gt {
  display: block;
  width: 300px;
  max-width: 72%;
  height: auto;
  margin: 2.6rem auto 0;
  mix-blend-mode: screen;
}

/* ---------- Nav du bas transformée en pied de page discret ---------- */
nav.site-nav:last-of-type {
  border-top: 1px solid var(--border);
  padding-top: 28px !important;
  gap: 22px;
}
nav.site-nav:last-of-type a {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
}
nav.site-nav:last-of-type a:hover { color: var(--text); }
