/*
Theme Name: Nox Engine
Theme URI: https://noxengine.fr
Description: Child theme Blocksy — design « v5 fusion » Nox Engine. Nuit verte émeraude, télémétrie néon, aurora CSS. Webfonts auto-hébergées.
Author: Nox Engine
Template: blocksy
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noxengine
*/

/* ==========================================================================
   WEBFONTS AUTO-HÉBERGÉES (woff2 latin, google-webfonts-helper)
   Space Grotesk 500/700 · Syne 800 · Sora 400/500/600 · JetBrains Mono 400/500/700
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/syne-v24-latin-800.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/sora-v17-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/sora-v17-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/sora-v17-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-v24-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-v24-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-v24-latin-700.woff2") format("woff2");
}

/* ==========================================================================
   NOX ENGINE — v5 « fusion » portée en child theme Blocksy
   Haut de page v3 (statusbar télémétrie, masthead + scanline néon, nav mono)
   + corps v4 (nuit verte émeraude, fumées aurora, cartes arrondies, bento,
   section menthe, footer wordmark géant).
   Échelle espacement : 4 8 12 16 24 32 48 64 96
   Échelle typo : 12 13 14 15 17 20 26 36 (+clamp)
   ========================================================================== */

:root {
  /* Nuit verte — jamais de noir pur */
  --bg:        hsl(160, 30%, 5%);
  --bg-2:      hsl(158, 26%, 8%);
  --bg-3:      hsl(157, 22%, 12%);
  --ligne:     hsl(158, 18%, 17%);
  --ligne-douce: hsl(159, 20%, 12%);

  /* Encre lunaire */
  --encre:     hsl(150, 25%, 94%);
  --encre-2:   hsl(152, 14%, 75%);
  --sourdine:  hsl(153, 10%, 62%);

  /* Le néon émeraude — un seul */
  --neon:       hsl(158, 90%, 55%);
  --neon-doux:  hsl(158, 50%, 42%);
  --neon-voile: hsla(158, 90%, 55%, 0.10);

  /* Menthe — le contre-jour */
  --menthe:      hsl(150, 42%, 91%);
  --menthe-2:    hsl(151, 38%, 85%);
  --encre-verte: hsl(160, 45%, 10%);

  --font-display: "Space Grotesk", sans-serif;
  --font-marque:  "Syne", sans-serif;
  --font-body:    "Sora", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --rayon: 22px;
  --rayon-petit: 14px;
  --wrap: 1160px;
}

/* Pont vers les variables Blocksy (archives, commentaires, widgets…).
   :root:root = spécificité supérieure au :root du CSS dynamique inline de Blocksy,
   qui s'imprime APRÈS cette feuille (sinon sa palette claire gagne). */
:root:root {
  --theme-text-color: var(--encre-2);
  --theme-headings-color: var(--encre);
  --theme-link-initial-color: var(--neon);
  --theme-link-hover-color: var(--encre);
  --theme-palette-color-1: var(--neon);
  --theme-palette-color-2: var(--neon-doux);
  --theme-palette-color-3: var(--encre);
  --theme-palette-color-4: var(--encre-2);
  --theme-palette-color-5: var(--ligne);
  --theme-palette-color-6: var(--bg-3);
  --theme-palette-color-7: var(--bg-2);
  --theme-palette-color-8: var(--bg);
  --theme-border-color: var(--ligne);
  --theme-form-field-border-initial-color: var(--ligne);
  --theme-form-field-border-focus-color: var(--neon-doux);
  --theme-form-field-background-initial-color: var(--bg-2);
  --theme-form-text-initial-color: var(--encre);
}

html { scroll-behavior: smooth; }

/* html body : gagne sur le `body {…}` du CSS dynamique Blocksy (imprimé après). */
html body {
  background: var(--bg);
  color: var(--encre);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.nox-header a, .footer a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--neon); color: var(--encre-verte); }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--neon);
  color: var(--encre-verte);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ==========================================================================
   L'aurora — fumée verte en pur CSS
   ========================================================================== */

.aurora { position: relative; overflow: hidden; isolation: isolate; }

.aurora::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(38% 45% at 72% 20%, hsla(158, 85%, 45%, 0.22), transparent 70%),
    radial-gradient(32% 40% at 18% 80%, hsla(172, 70%, 38%, 0.16), transparent 70%),
    radial-gradient(22% 30% at 50% 50%, hsla(140, 90%, 52%, 0.08), transparent 70%);
  filter: blur(56px);
  animation: derive 26s ease-in-out infinite alternate;
}

@keyframes derive {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(4deg); }
}

/* ==========================================================================
   Barre de statut — v3
   ========================================================================== */

.statusbar {
  border-bottom: 1px solid var(--ligne-douce);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--sourdine);
  text-transform: uppercase;
}

.statusbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.status-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.statusbar a { color: var(--sourdine); text-decoration: none; }
.statusbar a:hover { color: var(--neon); }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: battement 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes battement {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ==========================================================================
   Masthead — v3
   ========================================================================== */

.masthead { position: relative; }

.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.mark, .brand .custom-logo { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }

.word {
  font-family: var(--font-marque);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--encre);
}

.word-thin {
  font-weight: 500;
  color: var(--neon);
  margin-left: 2px;
}

/* Header : traitement T2 (display + mono) — ENGINE en JetBrains Mono espacé et agrandi.
   Scopé au header (.word) pour ne pas toucher le footer géant. */
.word { display: inline-flex; align-items: baseline; }
.word .word-thin {
  font-family: var(--font-mono);
  font-size: 0.72em;        /* ← taille d'ENGINE par rapport à NOX. Seul chiffre à régler. */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0.22em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--sourdine);
  text-align: right;
  margin: 0;
}

.brand-tag strong { color: var(--encre-2); font-weight: 500; }

/* La ligne de balayage néon — la signature v3 */
.scanline {
  height: 2px;
  background: var(--ligne);
  position: relative;
  overflow: hidden;
}

.scanline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--neon), transparent);
  animation: balayage 5s ease-in-out infinite;
}

@keyframes balayage {
  0%   { left: -20%; }
  60%, 100% { left: 100%; }
}

/* ==========================================================================
   Navigation — v3 (menu WordPress)
   ========================================================================== */

.nav {
  border-bottom: 1px solid var(--ligne-douce);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-bar .nav { top: 32px; }

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--encre-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a:hover { color: var(--neon); }

.nav a[aria-current="page"],
.nav .current-menu-item > a,
.nav .current-cat > a {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* ==========================================================================
   Héro (front-page) — layout v3, fumée v4
   ========================================================================== */

.hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--ligne-douce);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-transform: uppercase;
}

.kicker-sombre { color: var(--neon-doux); }

.manchette h2.manchette-titre,
.manchette h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(33px, 4.9vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  text-wrap: balance;
}

.manchette h1 a, .manchette h2 a { text-decoration: none; color: inherit; }
.manchette h1 a:hover, .manchette h2 a:hover { color: var(--neon); }

.chapo {
  font-size: 18px;
  line-height: 1.6;
  color: var(--encre-2);
  max-width: 58ch;
  margin-bottom: 32px;
}

/* Bandeau télémétrie — v3, coins v4 */
.telemetrie {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--sourdine);
}

.telemetrie span {
  padding: 8px 16px;
  border-right: 1px solid var(--ligne);
}

.telemetrie span:last-child { border-right: none; }

.tele-ok { color: var(--neon); background: var(--neon-voile); }

/* Le flux — v3 */
.flux-titre {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sourdine);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ligne);
  margin-bottom: 4px;
}

.flux ol { list-style: none; margin: 0; padding: 0; }

.flux li { border-bottom: 1px solid var(--ligne-douce); }

.flux a {
  display: flex;
  gap: 16px;
  padding: 14px 8px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.flux a:hover {
  border-left-color: var(--neon);
  background: var(--neon-voile);
}

.flux-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-doux);
  padding-top: 3px;
  flex-shrink: 0;
}

.flux-txt {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--encre-2);
}

.flux a:hover .flux-txt { color: var(--encre); }

/* ==========================================================================
   Sections (front-page)
   ========================================================================== */

.section { padding: 56px 0 24px; }

.section:last-of-type { padding-bottom: 96px; }

.section-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
}

.section-tete h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.numero {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.section-lien {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sourdine);
  text-decoration: none;
  white-space: nowrap;
}

.section-lien:hover { color: var(--neon); }

/* ==========================================================================
   Bento — cartes arrondies v4, jauges v3
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.carte {
  background: var(--bg-2);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.carte:hover {
  border-color: var(--neon-doux);
  transform: translateY(-2px);
}

.carte-large {
  grid-column: span 3;
  padding: 40px;
}

.aurora-carte { position: relative; overflow: hidden; isolation: isolate; }

.aurora-carte::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(30% 40% at 85% 20%, hsla(158, 85%, 45%, 0.16), transparent 70%),
    radial-gradient(25% 35% at 70% 80%, hsla(172, 70%, 38%, 0.09), transparent 70%);
  filter: blur(48px);
}

.carte h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
}

.carte-large h3 { font-size: 26px; max-width: 30ch; }

.carte h3 a { text-decoration: none; color: inherit; }
.carte h3 a:hover { color: var(--neon); }

.carte p {
  font-size: 15px;
  color: var(--sourdine);
  flex-grow: 1;
  max-width: 60ch;
  margin: 0;
}

/* Jauge de note — v3 */
.jauge-ligne {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne-douce);
}

.jauge {
  flex-grow: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}

.jauge span {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: 999px;
  background: linear-gradient(to right, var(--neon-doux), var(--neon));
  box-shadow: 0 0 8px hsla(158, 90%, 55%, 0.5);
}

.jauge-note {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--neon);
  line-height: 1;
}

.jauge-sur {
  font-size: 12px;
  font-weight: 400;
  color: var(--sourdine);
}

/* ==========================================================================
   Tutos — lignes arrondies v4, numéros mono v3
   ========================================================================== */

.tutos { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }

.tutos a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tutos a:hover {
  border-color: var(--neon-doux);
  background: var(--neon-voile);
}

.tuto-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-doux);
}

.tuto-titre {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--encre);
}

.tutos a:hover .tuto-titre { color: var(--neon); }

.tuto-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sourdine);
  white-space: nowrap;
}

/* ==========================================================================
   Le rapport de nuit — section menthe v4
   ========================================================================== */

.menthe {
  background: linear-gradient(160deg, var(--menthe), var(--menthe-2));
  color: var(--encre-verte);
  border-radius: var(--rayon);
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menthe h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.02em;
  color: var(--encre-verte);
  margin: 0;
}

.menthe-txt {
  font-size: 17px;
  color: hsl(158, 30%, 22%);
  max-width: 52ch;
  margin: 0;
}

.menthe-form { margin-top: 8px; max-width: 520px; }

.menthe-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(158, 30%, 26%);
  margin-bottom: 8px;
}

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

.menthe-champ input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 18px;
  background: hsla(0, 0%, 100%, 0.6);
  border: 1px solid hsl(152, 28%, 72%);
  border-radius: 999px;
  color: var(--encre-verte);
  font-family: var(--font-body);
  font-size: 16px;
}

.menthe-champ input::placeholder { color: hsl(155, 12%, 42%); }

.menthe-champ button {
  min-height: 48px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: var(--encre-verte);
  color: var(--menthe);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.menthe-champ button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px hsla(160, 45%, 10%, 0.35);
}

.menthe-note {
  font-size: 13px;
  color: hsl(158, 20%, 32%);
  margin: 12px 0 0;
}

/* Piège à bot : hors écran, jamais display:none (certains bots le détectent). */
.nox-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.menthe-feedback {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  padding: 8px 16px;
  border-radius: 999px;
}

.menthe-feedback-ok {
  background: hsla(158, 45%, 20%, 0.14);
  color: var(--encre-verte);
}

.menthe-feedback-err {
  background: hsla(0, 70%, 45%, 0.14);
  color: hsl(0, 60%, 30%);
}

/* ==========================================================================
   Pied de page — v4 + uptime v3
   ========================================================================== */

.footer {
  border-top: 1px solid var(--ligne);
  background: var(--bg-2);
  padding: 64px 0 24px;
  overflow: hidden;
}

.footer-colonnes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 720px;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sourdine);
  margin: 0 0 16px;
  display: flex;
  gap: 8px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 15px;
  color: var(--encre-2);
  text-decoration: none;
}

.footer-col a:hover { color: var(--neon); }

.footer-wordmark {
  font-family: var(--font-marque);
  font-weight: 800;
  font-size: clamp(52px, 11vw, 145px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 64px 0 48px;
  color: var(--encre);
  white-space: nowrap;
}

/* Footer : même traitement T2 que le header — ENGINE en JetBrains Mono espacé. */
.footer-wordmark .word-thin {
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-left: 0.22em;
}

.footer-bas {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--ligne-douce);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sourdine);
}

.footer-uptime { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Tête d'article (hook blocksy:content:top — remplace le hero Blocksy)
   ========================================================================== */

.article-head {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--ligne-douce);
}

.article-head .wrap { max-width: 860px; }

.article-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  text-wrap: balance;
}

.article-head .chapo { margin-bottom: 32px; }
.article-head .chapo:last-child { margin-bottom: 0; }

/* ==========================================================================
   Corps d'article — porté sur .entry-content (Gutenberg)
   La classe .article-corps est ajoutée à l'<article> via post_class (functions.php).
   ========================================================================== */

.article-corps {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.article-corps .entry-content > * + * { margin-top: 24px; }

.article-corps .entry-content p {
  font-size: 17px;
  line-height: 1.68;
  color: var(--encre-2);
}

.article-corps .entry-content strong { color: var(--encre); }

.article-corps .entry-content a {
  color: var(--neon);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-corps .entry-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.015em;
  margin-top: 56px;
  color: var(--encre);
  text-align: center;
  position: relative;
  padding-top: 20px;
}

/* Filet néon court au-dessus de chaque titre de section */
.article-corps .entry-content h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--neon);
}

.article-corps .entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-top: 40px;
  color: var(--encre);
}

.article-corps .entry-content ul,
.article-corps .entry-content ol {
  padding-left: 24px;
  color: var(--encre-2);
  font-size: 17px;
  line-height: 1.68;
}

.article-corps .entry-content li { margin-bottom: 8px; }

.article-corps .entry-content li::marker { color: var(--neon); }

.article-corps .entry-content pre,
.article-corps .entry-content .wp-block-code {
  background: var(--bg-2);
  border: 1px solid var(--ligne);
  border-left: 2px solid var(--neon);
  border-radius: var(--rayon-petit);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--encre-2);
}

.article-corps .entry-content code { font-family: var(--font-mono); font-size: 0.92em; }

.article-corps .entry-content p code,
.article-corps .entry-content li code {
  background: var(--bg-3);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--encre);
}

.article-corps .entry-content blockquote {
  border-left: 2px solid var(--neon);
  padding: 8px 0 8px 24px;
  color: var(--encre-2);
  font-style: normal;
}

.article-corps .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rayon-petit);
}

/* Une image plus étroite que la colonne se centre (pas de vide à droite) */
.article-corps .entry-content > figure.wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-corps .entry-content figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sourdine);
  margin-top: 12px;
  text-align: center;
}

/* Respiration autour des médias pleine colonne */
.article-corps .entry-content > figure.wp-block-image,
.article-corps .entry-content > .galerie {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Bouton CTA : centré */
.article-corps .entry-content .wp-block-buttons {
  display: flex;
  justify-content: center;
}

/* Duo texte/média — bloc Colonnes Gutenberg : texte d'un côté, média de l'autre.
   Deux ratios possibles via flex-basis inline (55/45 texte dominant, 46/54 média dominant). */
.article-corps .entry-content .wp-block-columns {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.article-corps .entry-content .wp-block-column { min-width: 0; }

.article-corps .entry-content .wp-block-column > * + * { margin-top: 16px; }

.article-corps .entry-content .wp-block-column figure { margin: 0; }

/* Le média du duo suit la lecture */
.article-corps .entry-content .wp-block-column > figure,
.article-corps .entry-content .wp-block-column > .galerie {
  position: sticky;
  top: 96px;
}

/* Carrousel compact — bloc `galerie` contenant une piste `defilante` de figures.
   Sans JS : bande défilable au doigt/molette. Le JS du thème (nox-galerie.js)
   injecte flèches + bouton agrandir ⤢ (une capture texte se lit en grand, pas en vignette). */
.article-corps .entry-content .defilante,
.defilante {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--rayon-petit);
}

.defilante::-webkit-scrollbar { display: none; }

.defilante.wp-block-gallery { flex-wrap: nowrap; }

.defilante > figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.defilante img { width: 100%; height: auto; display: block; border-radius: var(--rayon-petit); }

.galerie { position: relative; }

.galerie-nav {
  position: absolute;
  top: 33%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid hsla(150, 25%, 94%, 0.4);
  background: hsla(160, 30%, 5%, 0.55);
  color: var(--encre);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}

.galerie-nav:hover { border-color: var(--neon); color: var(--neon); background: hsla(160, 30%, 5%, 0.55); }
.galerie-nav.prev { left: 10px; }
.galerie-nav.next { right: 10px; }

.galerie-plein {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid hsla(150, 25%, 94%, 0.4);
  background: hsla(160, 30%, 5%, 0.55);
  color: var(--encre);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.galerie-plein:hover { border-color: var(--neon); color: var(--neon); }

/* Lightbox — visionneuse plein écran au clic sur une image d'article (2026-07-10) */
.nox-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(160, 30%, 3%, 0.92);
  cursor: zoom-out;
}
.nox-lightbox img {
  max-width: 94vw;
  max-height: 94vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px hsla(0, 0%, 0%, 0.6);
}

/* Trio / paire d'images légendées sous un bloc de texte */
.trio, .paire {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.trio { grid-template-columns: repeat(3, 1fr); }
.paire { grid-template-columns: repeat(2, 1fr); }

.trio figure, .paire figure { margin: 0; }
.trio img, .paire img { width: 100%; display: block; border-radius: var(--rayon-petit); }

/* Zigzag — image d'un côté, carte texte courte de l'autre, alternance automatique */
.zigzag {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}

.zigzag:nth-of-type(even) { grid-template-columns: 1fr 1.6fr; }
.zigzag:nth-of-type(even) > figure { order: 2; }

.zigzag > figure { margin: 0; }
.zigzag img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rayon-petit); display: block; }

.zigzag-carte {
  background: var(--bg-2);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon-petit);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.zigzag-carte h3 { margin: 0 0 10px; font-size: 17px; }
.zigzag-carte p { font-size: 14px; margin: 0; }

/* Chapo de section — paragraphe d'intro appuyé, centré (classe sur un paragraphe COURT) */
.article-corps .entry-content .chapo {
  font-size: 19px;
  line-height: 1.65;
  font-weight: 600;
  color: var(--encre);
  text-align: center;
}

/* Accroche — ligne centrée appuyée avant un CTA ou une fin de section */
.article-corps .entry-content .accroche {
  text-align: center;
  font-weight: 600;
  color: var(--encre);
}

/* Renvoi — petit encadré « aller plus loin » avec lien interne ou externe (classe sur un paragraphe) */
.article-corps .entry-content .renvoi {
  font-size: 14px;
  font-weight: 600;
  color: var(--encre);
  background: var(--bg-2);
  border: 1px solid var(--ligne);
  border-left: 2px solid var(--neon);
  border-radius: var(--rayon-petit);
  padding: 14px 18px;
}

/* Bouton CTA — bloc Boutons Gutenberg natif, ou classe « bouton » sur un lien */
.article-corps .entry-content .wp-block-button__link,
.article-corps .entry-content a.bouton {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon);
  background: transparent;
  border: 1px solid var(--neon-doux);
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
}

.article-corps .entry-content .wp-block-button__link:hover,
.article-corps .entry-content a.bouton:hover {
  background: var(--neon-voile);
}

/* Encadré protocole (classe à poser sur un bloc Groupe) */
.article-corps .entry-content .protocole,
.protocole {
  background: var(--neon-voile);
  border: 1px solid hsla(158, 60%, 45%, 0.25);
  border-radius: var(--rayon-petit);
  padding: 24px 28px;
  font-size: 15px;
  color: var(--encre-2);
}

.protocole .kicker { display: block; margin-bottom: 8px; }

/* Tableaux (bloc Gutenberg + HTML brut) */
.tableau-scroll, .article-corps .entry-content .wp-block-table { overflow-x: auto; }

.article-corps .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.article-corps .entry-content caption,
.article-corps .entry-content .wp-block-table figcaption {
  text-align: left;
  padding-bottom: 12px;
}

.article-corps .entry-content th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sourdine);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--ligne);
  border-left: none; border-right: none; border-top: none;
}

.article-corps .entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ligne-douce);
  border-left: none; border-right: none; border-top: none;
  color: var(--encre-2);
}

.article-corps .entry-content td:first-child { color: var(--encre); font-weight: 500; }

.gagnant { color: var(--neon) !important; font-weight: 600; }

/* Verdict — carte menthe, jauges sombres (classe sur un bloc Groupe) */
.verdict {
  background: linear-gradient(160deg, var(--menthe), var(--menthe-2));
  color: var(--encre-verte);
  border-radius: var(--rayon);
  padding: 40px;
  margin-top: 56px;
}

.article-corps .entry-content .verdict h2,
.verdict h2 {
  margin-top: 0 !important;
  color: var(--encre-verte);
}

.article-corps .entry-content .verdict p,
.verdict p { color: hsl(158, 30%, 20%); margin-top: 16px; }

.article-corps .entry-content .verdict strong,
.verdict strong { color: var(--encre-verte); }

.article-corps .entry-content .verdict a,
.verdict a { color: hsl(160, 60%, 22%); }

.verdict .jauge-ligne { border-top: none; padding-top: 16px; }

.verdict .jauge { background: hsla(160, 30%, 20%, 0.15); }

.verdict .jauge span {
  background: linear-gradient(to right, hsl(158, 60%, 32%), hsl(158, 70%, 38%));
  box-shadow: none;
}

.verdict .jauge-note { color: var(--encre-verte); }

.verdict .jauge-sur { color: hsl(158, 20%, 35%); }

/* Articles liés */
.lies { padding: 48px 0 96px; }

.lies .section-tete { margin-bottom: 24px; }

/* ==========================================================================
   Surfaces Blocksy restantes (archives, commentaires, pagination, 404)
   — passage sombre cohérent, sans viser le pixel v5
   ========================================================================== */

.entry-card, .ct-related-posts-container .related-entry-card {
  background: var(--bg-2);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
}

.entry-card .entry-title a, .entry-title a { color: var(--encre); }
.entry-card .entry-title a:hover, .entry-title a:hover { color: var(--neon); }

.entry-meta, .entry-meta a {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sourdine);
}

.ct-pagination .page-numbers { color: var(--encre-2); }
.ct-pagination .page-numbers.current { color: var(--neon); }

#comments, .comment-body { color: var(--encre-2); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  background: var(--bg-2);
  border-color: var(--ligne);
  color: var(--encre);
}

/* Le hero Blocksy est désactivé côté PHP ; ceinture-bretelles si un réglage le réactive */
.hero-section[data-type="type-2"] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .article-corps .entry-content .wp-block-columns { flex-wrap: wrap; }
  /* !important : bat le flex-basis inline que Gutenberg pose sur chaque colonne */
  .article-corps .entry-content .wp-block-column { flex-basis: 100% !important; }
  .article-corps .entry-content .wp-block-column > figure,
  .article-corps .entry-content .wp-block-column > .galerie { position: static; }
  .trio, .paire, .zigzag, .zigzag:nth-of-type(even) { grid-template-columns: 1fr; }
  .zigzag:nth-of-type(even) > figure { order: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: 1fr; }
  .carte-large { grid-column: auto; padding: 28px; }
  .carte-large h3 { font-size: 20px; }
  .menthe { padding: 40px 28px; }
  .footer-colonnes { grid-template-columns: 1fr; gap: 32px; }
  .masthead .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .brand-tag { text-align: left; }
  .statusbar-date { display: none; }
  .tutos a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tuto-num, .tuto-meta { display: none; }
}

@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* ==========================================================================
   Mouvement réduit
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .scanline::after { animation: none; left: 40%; }
  .aurora::before { animation: none; }
  .carte:hover, .menthe-champ button:hover { transform: none; }
  html { scroll-behavior: auto; }
}
