/* ══════════════════════════════════════════════════════════════════════
   JFDUBE.ONLINE — COUCHE MINIMALISTE (v4)
   Chargée APRÈS le <style> de chaque page : redéfinit les tokens et
   neutralise les effets « écran LCD » (grille de pixels, police bitmap,
   coins en ×). Esthétique : papier vert menthe, traits noirs de 1 px,
   grands rayons, typo mono Geist, aucune ombre, aucune décoration.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --orange: #1d1f1c;          /* accent = encre */
  --orange-hover: #3a3e38;
  --on-accent: #e8efe3;
  --black: #1d1f1c;           /* encre */
  --bg: #e8efe3;              /* menthe pâle */
  --border: #1d1f1c;          /* traits fins noirs */
  --muted: #646b62;           /* gris vert, texte secondaire */
  --surface: #e8efe3;         /* cartes à plat : même fond que la page */
  --surface-hover: #dde6d7;
  --grid: rgba(29,31,28,0.06);
  --code-bg: #dde6d7;
  --code-border: #1d1f1c;
  --field: #e8efe3;
  --code-str: #1d1f1c;
  --stripe: #c3cdbf;          /* pistes, hachures */
  --shadow: transparent;
  --pix: transparent;
  --line-soft: rgba(29,31,28,0.22);
  --r-card: 22px;
  --r-field: 12px;
}

/* Pas de grille de pixels, pas de rendu bitmap */
body::after { display: none !important; }
body { -webkit-font-smoothing: antialiased !important; font-smooth: auto !important; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--black); color: var(--bg); }

/* Barres de défilement discrètes */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; border-left: none; }
::-webkit-scrollbar-thumb { background: var(--line-soft); border: 2px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-corner { background: transparent; }

/* Décorations retirées */
.corner-x { display: none !important; }
.node-dot { border-radius: 50%; }
.row-label::before { content: '●'; font-size: 5px; }
.nav-center .is-active::after { content: ''; }
.nav-center .is-active { border-bottom: 1px solid var(--black); padding-bottom: 2px; }

/* ── Titres géants : plus fins, plus serrés ── */
.page-title, .portfolio-title, #trigger h1, .action-node .action-title, #output .out-title,
.detail-hero h2, .detail-nav .nname, .p-card .p-img.dark-cover p, .section-title {
  font-weight: 400; letter-spacing: -0.045em; line-height: 0.95;
}
.page-title, .portfolio-title { letter-spacing: -0.06em; line-height: 0.9; text-transform: none; }
#trigger h1 strong, .mb-word strong { text-shadow: none; letter-spacing: inherit; font-weight: 500; }
.detail-hero h2, .detail-nav .nname { text-transform: none; }
.section-num-cell { font-weight: 400; }

/* ── Labels / métadonnées : petites capitales mono, plus lisibles qu'en bitmap ── */
.node-bar, .node-foot, .winbar .wtitle, .winbar .wnum, .winfoot, .mini-btn, .mb-item, .footer-row,
.field span, .hint, .row-label, .mid-cell-label, .detail-nav .nlbl, .detail-stats .dstat .lbl,
.p-card .p-foot, .detail-hero .branche {
  letter-spacing: 0.08em; font-weight: 500;
}
.node-bar { font-size: 10.5px; }
.node-foot, .p-card .p-foot { font-size: 10px; }
.winbar .wtitle { font-size: 10.5px; }
.winbar .wnum, .winfoot { font-size: 10px; }
.mini-btn { font-size: 9.5px; }
.code-block, .hint, .router-body, .chip, .pill, .thumb.tag { line-height: 1.7; }
.node-bar .node-bar-id, .winbar .wtitle .muted { letter-spacing: 0.02em; }

/* ── Barre de menu de l'accueil ── */
.menubar { background: var(--bg); height: 44px; font-size: 11px; }
.mb-item { padding: 0 16px; font-size: 11px; }
.mb-item:hover { background: transparent; color: var(--muted); }
.mb-item .dot { border-radius: 50%; width: 6px; height: 6px; }
.mb-item:hover .dot { background: var(--muted); }
.mb-word { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.mb-contact { margin: 7px 10px 7px 6px; border-radius: 999px; padding: 0 18px; }
.mb-contact:hover { background: var(--orange-hover); color: var(--on-accent); }
#pipe { padding-top: 130px; }

/* ── Cartes / blocs ── */
.node, .p-card, .win, .featured, .step-card, .principle, .source-item, .flow-node, .flow-chip, .callout,
.card, .info-card, .data-stat, .tip, .box { border-radius: var(--r-card); }
.node, .win, .p-card { background: var(--bg); }
.node-bar, .node-foot { margin: 0 22px; }
.win { border-radius: 26px; }
.p-card:hover, .action-node:hover { border-color: var(--black); }
.p-card:hover { background: var(--surface-hover); }
.thumb { border-radius: 8px; }
.code-block { border-radius: 14px; background: var(--code-bg); border-color: transparent; }
.stat-row { border-radius: 0; }
#output { border-color: var(--black); }

/* ── Boutons, pastilles, champs ── */
.btn-orange, .btn-apply, .detail-cta, .submit-btn, .badge, .chip, .pill,
.winbar button.wdot, .winbar .wnav button, .sw-opt { border-radius: 999px; }
.btn-orange, .detail-cta, .submit-btn, .btn-apply { font-weight: 500; letter-spacing: 0.06em; }
.btn-orange { height: 42px; padding: 0 22px; }
.detail-cta { padding: 13px 24px; }
.submit-btn { padding: 15px; }
.badge { font-weight: 500; }
.badge-new { background-color: var(--orange); color: var(--on-accent); }
.chip, .pill { padding-left: 12px; padding-right: 12px; font-weight: 400; }
.chip.accent, .pill.accent { background: var(--black); color: var(--bg); border-color: var(--black); }
.field input, .field select, .field textarea { border-radius: var(--r-field); background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); box-shadow: 0 0 0 3px var(--stripe); }
.winbar button.wdot, .winbar .wnav button { border-color: var(--black); color: var(--black); }
.winbar button.wdot:hover, .winbar .wnav button:hover { background: var(--black); color: var(--bg); }

/* Pastilles des flowcharts (cerveau) */
.flow-node-badge, .flow-node-step, .flow-branch-badge, .flow-node-tag { border-radius: 999px !important; padding: 3px 11px; background: transparent !important; color: var(--black) !important; border: 1px solid var(--black) !important; }
.flow-node-step { display: inline-block; font-weight: 500; }
.flow-node-badge-auto, .flow-branch-yes { background: var(--black) !important; color: var(--bg) !important; }
.flow-diamond { border-width: 1px !important; border-color: var(--black) !important; }

/* Texte courant */
a:hover { color: var(--muted); }
.text-link { text-decoration-color: var(--black); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.overlay, .overlay.detail { background: color-mix(in srgb, var(--black) 38%, transparent); }

/* Lignes de séparation internes un peu plus douces que le cadre extérieur */
.p-card .swatches, .detail-swatches, .featured-swatches { border-color: var(--line-soft); }
.card-grid { gap: 16px; }
.detail-stats .dstat, .stat-cell, .detail-left, .detail-hero, .detail-main, .detail-hero-img { border-color: var(--line-soft); }

@media (max-width: 640px) {
  .win { border-radius: 0; }
}
