/* GAULOIS.TECH design system — built CSS for standalone tools
   Auto-generated from src/design-system/. Do not edit manually.
   Regenerate via: bash build-ds.sh */

/* === tokens.css === */
/* GAULOIS.TECH — design tokens
   Variables CSS racine (couleurs, polices). Première source de vérité. */

:root {
  --marine:        #1d3557;
  --marine-dim:    #122440;
  --cream:         #f4ede0;
  --cream-2:       #ede5d0;
  --brique:        #e8b327;
  --brique-light:  #f3c947;
  --carmin:        #8C2F39;   /* rouge destructif — écho de la soutache des galons */
  --ink:           #1a1a1a;
  --ink-2:         #4a4a4a;
  --ink-3:         #8a8a8a;
  --line:          #d4c9a6;
  --on-brique:     var(--marine);

  --cream-mute:    rgba(244, 237, 224, 0.62);
  --cream-faint:   rgba(244, 237, 224, 0.12);

  --marine-hover:  #163052;   /* survol des CTA marine */
  --term-bg:       #0f1c30;   /* fond des blocs terminal/code */
  --term-border:   #0a1424;   /* bordure des blocs terminal/code */
  --dot-red:       #ff5f56;   /* pastille fenêtre type macOS */
  --dot-yellow:    #ffbd2e;
  --dot-green:     #27c93f;
  --canvas-bg:     #0e1d34;   /* fond hors-shell (gouttière body) */
  --surface:       #ffffff;   /* surfaces blanches (cartes, popups) */
  --cream-3:       #e6dcc1;   /* variante cream plus soutenue */
  --brique-faint:  rgba(232, 179, 39, 0.18); /* trame brique légère */
  --scrim:         rgba(18, 36, 64, 0.55);   /* voile derrière le drawer mobile */

  /* Rampe de bleus de la navbar (sections, de plus en plus claires).
     G/section active = --brique. Palier 0 = --canvas-bg, 1 = --marine. */
  --marine-2:      #2e4f7a;
  --marine-3:      #426a99;
  --marine-4:      #5985b3;

  /* Largeur max du corps centré (gouttières crème, invisibles).
     ~960px = colonne « façon Bootstrap » qui reste centrée et ne s'étire
     pas sur grand écran. Un seul nombre à changer pour élargir/resserrer. */
  --container-max: 960px;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --mono:    'IBM Plex Mono', 'Menlo', monospace;
}

/* Optional terracotta variant — toggle via .variant-terracotta on root */
.variant-terracotta {
  --brique:        #ad4824;
  --brique-light:  #cb7048;
  --on-brique:     var(--cream);
}

/* === base.css === */
/* GAULOIS.TECH — base reset & defaults */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--canvas-bg); }
body {
  font-family: var(--mono);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* small details */
::selection { background: var(--brique); color: var(--marine); }

/* Tweak panel positioning override */
#tweaks-root { z-index: 9999; }

/* Accessibilité — focus clavier visible (anneau brique) partout. */
:focus-visible {
  outline: 2px solid var(--brique);
  outline-offset: 2px;
}
/* Lien d'évitement (skip link) : caché jusqu'au focus clavier. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Respect de prefers-reduced-motion : on coupe animations et transitions. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === layout.css === */
/* GAULOIS.TECH — app shell layout (grid général sidebar + main + body) */

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  width: 100%;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--cream);
}

.main {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  min-height: 100vh;
}

.body {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Shell pleine largeur (header + navbar + main), sans sidebar ──
   La structure (header, navbar) va de bord à bord ; le contenu garde
   une mesure de lecture confortable via son propre wrapper. */
.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1;
  background: var(--cream);
  padding: 56px 24px 72px;
}

/* Corps centré : largeur de lecture plafonnée + gouttières crème (invisibles),
   ne s'étire pas sur grand écran. Header et navbar restent pleine largeur. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* === cursor.css === */
/* Cursor block — petits curseurs jaunes clignotants */

.cursor-block {
  display: inline-block;
  background: var(--brique-light);
  width: 12px;
  height: 34px;
  align-self: center;
  animation: blink 1.05s steps(2, end) infinite;
}
.cursor-block.lg {
  width: 14px;
  height: 50px;
  background: var(--brique);
}
@keyframes blink { to { opacity: 0; } }

/* === path.css === */
/* ============================================================
   GAULOIS.TECH — path.css
   Le path (~/edito.md, ~/journal/, ~/outils/gaulois.md, …) est
   un mini-titre de bloc qui reprend le langage visuel des vrais
   titres : font display Archivo Black, couleur marine, curseur
   brique clignotant à droite. Plus petit que les titres de
   première importance — il sert à *introduire* un bloc, pas à
   le couronner.
   ============================================================ */

.path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: normal;
  font-size: 22px;
  color: var(--marine);
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0 0 22px;
  padding: 0;
  text-transform: lowercase;
}

/* Curseur clignotant brique — ajouté en pseudo-élément pour ne
   pas avoir à toucher le markup partout où .path est utilisé.
   Sur un flex container, ::after devient un flex item à part
   entière, donc le `gap` s'applique entre le texte et le bloc. */
.path::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 22px;
  background: var(--brique);
  animation: blink 1.05s steps(2, end) infinite;
  flex: 0 0 8px;
  /* La keyframe `blink` est définie dans cursor.css */
}

/* Variante compacte — pour les cas où on veut un path moins
   imposant (sidebar, contexte serré). Pas utilisé pour
   l'instant mais pratique à avoir sous la main. */
.path.path-sm {
  font-size: 16px;
  margin-bottom: 14px;
}
.path.path-sm::after {
  width: 7px;
  height: 16px;
}

/* Responsive — on resserre sur mobile */
@media (max-width: 640px) {
  .path {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .path::after {
    width: 7px;
    height: 18px;
  }
}

/* === back-arrow.css === */
/* Back-arrow : icône SVG jaune fine, unifiée avec les outils */

.back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--brique);
  text-decoration: none;
  padding: 4px;
  margin-bottom: 22px;
  transition: color 0.15s ease, transform 0.2s ease;
}
.back-arrow:hover {
  color: var(--brique-light);
  transform: translateX(-2px);
}
.back-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* === tag.css === */
/* Tag — étiquette jaune typo display */

.tag {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  background: var(--brique);
  color: var(--on-brique);
  line-height: 1;
  letter-spacing: -0.015em;
  user-select: none;
}
.tag.sm  { font-size: 13px; padding: 6px 10px; }
.tag.md  { font-size: 22px; padding: 10px 16px; letter-spacing: -0.02em; }
.tag.big { font-size: 56px; padding: 14px 22px; letter-spacing: -0.025em; }
.tag.marine { background: var(--marine); color: var(--cream); }

/* === button.css === */
/* Button — CTA principal + ghost + row */

.cta-row {
  margin-top: 28px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.cta-row:has(.lm-embed) {
  margin-top: 28px;
  padding-top: 0;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}
.cta {
  font-family: var(--display);
  background: var(--marine);
  color: var(--cream);
  padding: 14px 22px;
  font-size: 17px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
}
.cta:hover { background: var(--marine-hover); }
.cta-ghost {
  font-size: 13px;
  color: var(--ink-3);
}
.cta-ghost:hover { color: var(--marine); }

/* Quand l'embed iframe d'IpDontLie est dans .cta-row, on étend en pleine largeur */
.cta-row:has(.idl-host) {
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  display: block;
  margin-top: 32px;
  padding: 0;
}
.cta-row:has(.idl-host) .idl-host { width: 100%; max-width: 1100px; margin: 0 auto; }

/* Idem pour l'embed VCFReader : sans ça, .cta-row le centre à sa largeur
   intrinsèque et la grille de cartes se réduit à 1 colonne. */
.cta-row:has(.vcf) {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 0;
}
.cta-row:has(.vcf) .vcf { max-width: 1100px; margin: 0 auto; }

/* === sidebar.css === */
/* Sidebar — marine 320px : brand, profile, news, side-footer, back-link */

.sidebar {
  background: var(--marine);
  color: var(--cream);
  padding: 36px 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
}
.brand-name {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
}

/* Mini profile — ligne horizontale : monogramme + identité */
.profile {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 32px;
}
.profile-photo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brique);
  background: var(--marine-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--brique);
  letter-spacing: 0.01em;
}
.profile-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.profile-name {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cream);
}
.profile-bio {
  font-size: 11px;
  line-height: 1.4;
  color: var(--cream-mute);
}
.profile-links {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}
.profile-links a {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--brique-light);
}
.profile-links a:hover { color: var(--cream); }

/* ============================================================
   Sidebar — sections de feed (Gazette + Mises à jour).
   Un seul format d'item pour les deux flux : date au-dessus,
   titre cliquable dessous. Aucune différence visuelle entre un
   article et une mise à jour outil — c'est seulement le href
   qui change, et c'est ce qui rend la sidebar harmonieuse.
   ============================================================ */
.sb-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 30px;
}

/* Libellé de section raffiné : index + intitulé brique + filet. */
.sb-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-label-num,
.sb-label-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brique);
  white-space: nowrap;
}
.sb-label-num { letter-spacing: 0.1em; opacity: 0.85; }
.sb-label-rule {
  flex: 1;
  height: 1px;
  background: var(--cream-faint);
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0 10px 11px;
  margin-left: -2px;
  border-bottom: 1px solid var(--cream-faint);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, padding-left 0.16s ease;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { border-left-color: var(--brique); padding-left: 14px; }
.feed-item:hover .fi-title { color: var(--brique); }

.feed-item .fi-date {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--cream-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.feed-item .fi-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--cream);
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
  /* Pas de truncate : on accepte 2-3 lignes pour les titres
     longs — la sidebar reste lisible et c'est le contenu qui
     dicte le rythme. */
}

.sb-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream-mute);
  font-style: italic;
  padding: 8px 0;
}

.sb-note {
  font-size: 11.5px;
  color: var(--cream-mute);
  margin-top: 4px;
  font-style: italic;
  font-family: var(--mono);
}

/* Footer sidebar */
.side-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cream-mute);
}
.side-footer a:hover { color: var(--brique-light); }
.side-footer .sep { color: var(--cream-faint); margin: 0 6px; }

/* Sidebar — category state */
/* .back-link (legacy texte) — conservée pour compat éventuelle, plus utilisée par défaut */
.back-link {
  font-size: 13px;
  color: var(--cream-mute);
  margin-bottom: 22px;
  display: inline-block;
}
.back-link:hover { color: var(--brique-light); }

/* ============================================================
   Mobile drawer — chrome partagé des 3 sidebars (home / catégorie
   / journal). Caché par défaut (desktop) ; activé en ≤639px dans
   responsive.css. Source UNIQUE : ne pas redéfinir en scoped.
   ============================================================ */
.hamburger,
.hamburger-close,
.sidebar-overlay,
.sidebar-mobile-head { display: none; }

.hamburger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--brique);
  border: 1px solid var(--marine);
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--scrim);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--marine);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.sidebar-mobile-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hamburger-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
  color: var(--cream);
}
.hamburger-close:hover { color: var(--brique-light); }

/* Back-arrow desktop (masquée en mobile, cf. responsive.css) */
.sidebar-back-desktop { margin-bottom: 18px; }

/* === search.css === */
/* Search prompt — invite shell terminal dans la sidebar */

.search {
  margin-top: 30px;          /* aère après la dernière section feed */
  margin-bottom: 30px;
}

/* Au focus de l'input, on cache le pseudo-curseur █ et on
   révèle le caret natif du navigateur — qui apparaît tout à
   gauche puisque l'input est vide. */
.search:focus-within .cursor-inline { display: none; }

/* Shake déclenché par le script search.js quand un terme ne
   matche aucun outil / article. */
@keyframes search-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.search-line.is-shake { animation: search-shake 0.4s ease-in-out; }
.search-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cream);
  background: var(--marine-dim);
  border: 1px solid var(--cream-faint);
  border-radius: 8px;
  padding: 9px 11px;
  transition: border-color 0.16s ease;
}
.search:focus-within .search-line { border-color: var(--brique); }
.search-line .dollar { color: var(--brique-light); }
.search-line input {
  flex: 0 1 auto;
  field-sizing: content;
  min-width: 0;
  max-width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--cream);
  caret-color: transparent;
}
.search-line input:focus { caret-color: var(--brique-light); }
.search-line input::placeholder {
  color: var(--cream-mute);
  opacity: 1;
}
.search-line input:focus::placeholder {
  color: rgba(244,237,224,0.30);
}
.search-line input::placeholder { color: var(--cream-mute); }
.cursor-inline {
  display: inline-block;
  color: var(--brique-light);
  animation: blink 1.05s steps(2, end) infinite;
  font-size: 14px;
  line-height: 1;
  margin-left: -2px;
}

/* === edito.css === */
/* Edito (home) — texte d'accueil au centre */

.edito {
  width: 100%;
  max-width: 540px;
  text-align: left;
}
/* Le style global de .path est dans path.css */
.edito p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.edito p strong {
  color: var(--ink);
  font-weight: 500;
}
.edito .signoff {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
}

/* === category-grid.css === */
/* Category landing & grid — liste des outils par catégorie */

.cat-landing {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-intro {
  padding: 8px 0 0;
  max-width: 640px;
}
/* Le style global de .path est dans path.css */
.cat-intro p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
/* (.cat-grid / .cat-card retirés : remplacés par le composant Picker.
   On garde .cat-landing/.cat-intro qui encadrent encore la page.) */

/* === tool-detail.css === */
/* Tool detail — vue détaillée d'un outil sur la landing */

.tool-detail {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tool-detail .path,
.tool-detail .tool-head {
  align-self: flex-start;
}
.tool-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}
.tool-name {
  font-family: var(--display);
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--marine);
  text-transform: uppercase;
}
.tool-lead {
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  text-align: center;
}

/* La barre fichier de l'outil (téléchargement + empreinte + dernière MAJ)
   utilise le composant partagé FileBar (.file-bar, cf. file-bar.css),
   le même que les articles. Rien à styler ici. */

/* === locatme-embed.css === */
/* LocAtMe embedded picker — onglets + zone de drop sur landing */

.lm-embed {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lm-emb-tabs {
  display: flex;
  height: 60px;
  user-select: none;
}
.lm-emb-tab {
  position: relative;
  flex: 1;
  background: var(--marine);
  color: var(--cream);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  padding: 0 18px;
  transition: flex 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
  text-align: center;
}
/* Même code couleur que la navbar principale : dégradé de bleus de plus en
   plus clair, jaune (brique) UNIQUEMENT pour l'onglet sélectionné. */
.lm-emb-tab:nth-child(1) { background: var(--marine); }
.lm-emb-tab:nth-child(2) { background: var(--marine-2); }
.lm-emb-tab:nth-child(3) { background: var(--marine-3); }
.lm-emb-tab:nth-child(4) { background: var(--marine-4); }
.lm-emb-tab:not(:first-child) {
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 26px;
}
.lm-emb-tab:not(:last-child) {
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-right: 26px;
}
.lm-emb-tab:not(:first-child):not(:last-child) {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.lm-emb-tab.active {
  background: var(--brique);
  color: var(--on-brique);
  flex: 1.4;
}
.lm-emb-tab:hover:not(.active) {
  flex: 1.15;
}

/* Pane par onglet (visibilité contrôlée par .hidden depuis le composant) */
.lm-emb-pane {
  width: 100%;
}
.lm-emb-pane.hidden { display: none; }

.lm-emb-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lm-emb-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.lm-emb-prompt .dollar {
  color: var(--brique);
  margin-right: 4px;
  font-weight: 600;
}
/* Zone de dépôt : repiochée du bloc réutilisable .dropzone (dropzone.css). */
.lm-emb-foot {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.lm-emb-fullscreen {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.lm-emb-fullscreen:hover {
  color: var(--brique);
}

/* ====== IpDontLie embedded form (sur la landing) ====== */
.idl-embed {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}
.idl-emb-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.idl-emb-prompt .dollar {
  color: var(--brique);
  margin-right: 4px;
  font-weight: 600;
}
.idl-emb-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
.idl-emb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idl-emb-field .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 2px;
}
.idl-emb-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.15s ease;
}
.idl-emb-field input:focus {
  border-color: var(--brique);
}
.idl-emb-field input::placeholder {
  color: var(--ink-3);
  opacity: 0.7;
}

.idl-emb-cta {
  background: var(--marine);
  color: var(--cream);
  border: 0;
  border-radius: 0;
  padding: 14px 22px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  align-self: flex-start;
  margin-top: 4px;
}
.idl-emb-cta:hover { background: var(--marine-hover); }

.idl-emb-note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-style: italic;
  padding-left: 2px;
  margin-top: -2px;
}

/* === journal.css === */
/* ============================================================
   GAULOIS.TECH — journal.css
   Liste d'articles (.journal-list) + article seul (.journal-article).
   Hérite des tokens DS (cream/marine/brique). Reste minimal :
   on s'appuie sur la prose Markdown native pour l'essentiel.
   ============================================================ */

/* ── Liste (page d'index /journal/) ─────────────────────────── */
.journal-list {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* (.journal-list-intro et .journal-item/.ji-* retirés : l'index du
   journal passe désormais par le composant Picker.) */

.journal-empty {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* ── Article (page /journal/[slug]/) ────────────────────────── */
.journal-article {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  color: var(--ink);
}

/* Retour au journal — grosse flèche SVG (même grammaire que le back-arrow
   de LocAtMe), posée en haut à gauche de l'article. */
.journal-article .ja-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 22px -10px;
  color: var(--brique);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.2s ease;
}
.journal-article .ja-back:hover {
  color: var(--marine);
  transform: translateX(-3px);
}
.journal-article .ja-back svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
}

/* (.ja-eyebrow et .ja-tags retirés : date, auteur et hashtags vivent
   désormais dans la barre méta unique — cf. ArticleSpecBar / FileBar.) */

.journal-article h1.ja-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.journal-article .ja-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
  font-weight: 400;
  font-style: italic;
}

.journal-article .ja-cover {
  width: 100%;
  height: auto;
  margin: 0 0 36px;
  border: 1px solid var(--line);
}

/* ── Prose Markdown ─────────────────────────────────────────── */
.journal-article .ja-content {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  /* Texte justifié + césures auto pour éviter les rivières
     blanches sur les paragraphes longs. */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.journal-article .ja-content > * + * {
  margin-top: 1.1em;
}
/* Les éléments où la justification est moche (listes, tableaux,
   code, titres) restent en alignement gauche. */
.journal-article .ja-content h2,
.journal-article .ja-content h3,
.journal-article .ja-content h4,
.journal-article .ja-content li,
.journal-article .ja-content table,
.journal-article .ja-content blockquote {
  text-align: left;
  hyphens: manual;
}
.journal-article .ja-content h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 24px;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.4em;
  line-height: 1.25;
}
.journal-article .ja-content h3 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 18px;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.journal-article .ja-content p {
  margin: 0;
}
.journal-article .ja-content strong {
  color: var(--ink);
  font-weight: 600;
}
.journal-article .ja-content em {
  font-style: italic;
}
.journal-article .ja-content a {
  color: var(--brique);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s, color 0.15s;
}
.journal-article .ja-content a:hover {
  text-decoration-color: var(--brique);
  color: var(--ink);
}
.journal-article .ja-content ul,
.journal-article .ja-content ol {
  padding-left: 1.5em;
}
.journal-article .ja-content li {
  margin: 0.3em 0;
}
.journal-article .ja-content blockquote {
  border-left: 3px solid var(--brique);
  padding: 4px 0 4px 18px;
  margin: 0;
  color: var(--ink-3);
  font-style: italic;
}
.journal-article .ja-content code {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--cream-2);
  color: var(--marine);
  padding: 2px 6px;
  border-radius: 0;
  border: 1px solid var(--line);
}
.journal-article .ja-content pre {
  background: var(--marine);
  color: var(--cream);
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--marine-dim);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
}
.journal-article .ja-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}
.journal-article .ja-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.journal-article .ja-content hr {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 2em 0;
}
.journal-article .ja-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.journal-article .ja-content th,
.journal-article .ja-content td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}
.journal-article .ja-content th {
  background: var(--cream-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Note : les tags vivent dans la barre méta de l'article (cf. ArticleSpecBar). */

/* ── Barre de l'article (ArticleSpecBar) : actions + méta ──────
   Une rangée d'icônes seules (télécharger .md, partager LinkedIn)
   posée au-dessus de la barre méta sur une ligne. Boutons compacts :
   carré bordé qui se remplit en marine au survol. */
.journal-article .ja-specbar { margin: 0 0 32px; }
.journal-article .ja-specbar .file-bar { margin-bottom: 0; }
.journal-article .ja-toolbar {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}
.journal-article .ja-tool {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 10px;
  text-decoration: none;
  overflow: hidden;
}
/* Variantes couleur : téléchargement = brique/marine (jaune-bleu, comme le
   bouton de la FileBar), LinkedIn = marine/écriture cream. Les couleurs ne
   bougent pas au survol : le feedback, c'est l'expansion du libellé. */
.journal-article .ja-tool.is-dl {
  background: var(--brique);
  color: var(--marine);
  border: 1px solid var(--brique);
}
.journal-article .ja-tool.is-in {
  background: var(--marine);
  color: var(--cream);
  border: 1px solid var(--marine);
}
.journal-article .ja-tool svg {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
/* Libellé replié (bouton carré, icône seule) → déplié au survol / focus
   clavier : le bouton s'élargit pour révéler tout le texte. */
.journal-article .ja-tool-label {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  transition: max-width 0.28s ease, opacity 0.18s ease, margin-left 0.28s ease;
}
.journal-article .ja-tool:hover .ja-tool-label,
.journal-article .ja-tool:focus-visible .ja-tool-label {
  max-width: 240px;
  opacity: 1;
  margin-left: 9px;
}
@media (prefers-reduced-motion: reduce) {
  .journal-article .ja-tool-label { transition: none; }
}
/* Switch de langue — dernier bouton, calé tout à droite de la barre.
   Outline marine (même grammaire que les pills FR/EN du header), se
   remplit au survol. Mène vers l'article jumeau (ou l'index du journal
   de l'autre langue s'il n'y a pas de traduction). */
.journal-article .ja-tool.is-lang {
  margin-left: auto;
  background: transparent;
  color: var(--marine);
  border: 1px solid var(--marine);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 0 12px;
}
.journal-article .ja-tool.is-lang:hover,
.journal-article .ja-tool.is-lang:focus-visible {
  background: var(--marine);
  color: var(--cream);
}

/* === article-spec-bar.css === */
/* ============================================================
   GAULOIS.TECH — article-spec-bar.css
   La barre technique d'article (telecharger .md + date + OS + app) utilise
   desormais le composant partage FileBar (file-bar.css) — la meme barre
   que les fiches outils. L'ancien bandeau marine plein a ete retire ; ce
   fichier ne porte plus de style propre (conserve pour la tracabilite de
   l'import dans index.css).
   ============================================================ */

/* === code-blocks.css === */
/* ============================================================
   GAULOIS.TECH — code-blocks.css
   Deux variantes de blocs de code, générées par le plugin
   rehype-code-blocks :
     .code-block.is-code     → bloc de code source (python, sql…)
     .code-block.is-terminal → ligne de commande / console
   Les deux partagent une structure commune :
     <figure class="code-block …">
       <div class="cb-header">[dots] [lang] [bouton copier]</div>
       <pre><code>…</code></pre>
     </figure>
   ============================================================ */

/* ── Conteneur commun ───────────────────────────────────────── */
.journal-article .ja-content .code-block {
  margin: 1.6em 0;
  border: 1px solid var(--marine-dim);
  background: var(--marine);
  overflow: hidden;
  /* Ombre douce — discrète, juste pour décoller du fond cream */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05),
              0 6px 16px -8px rgba(29, 53, 87, 0.18);
}

/* Header — strip horizontal en haut du bloc */
.journal-article .ja-content .code-block .cb-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  user-select: none;
}

/* Label du langage / "terminal" — toujours présent */
.journal-article .ja-content .code-block .cb-lang {
  flex: 1;
  /* Truncate si trop long */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trois dots macOS — affichés uniquement sur .is-terminal */
.journal-article .ja-content .code-block .cb-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.journal-article .ja-content .code-block .cb-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.journal-article .ja-content .code-block .cb-dot.dot-red    { background: var(--dot-red); }
.journal-article .ja-content .code-block .cb-dot.dot-yellow { background: var(--dot-yellow); }
.journal-article .ja-content .code-block .cb-dot.dot-green  { background: var(--dot-green); }

/* Bouton copier — discret, devient visible au hover du bloc */
.journal-article .ja-content .code-block .cb-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(244, 237, 224, 0.18);
  color: rgba(244, 237, 224, 0.7);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
  /* Léger fade — visible mais pas criard */
  opacity: 0.7;
}
.journal-article .ja-content .code-block:hover .cb-copy {
  opacity: 1;
}
.journal-article .ja-content .code-block .cb-copy:hover {
  background: var(--brique);
  border-color: var(--brique);
  color: var(--marine);
}
/* Feedback "copié !" — déclenché via classe ajoutée par le JS */
.journal-article .ja-content .code-block .cb-copy.is-copied {
  background: var(--brique);
  border-color: var(--brique);
  color: var(--marine);
  opacity: 1;
}
.journal-article .ja-content .code-block .cb-copy.is-copied .cb-copy-label::after {
  content: ' ✓';
}

/* ── Le <pre> à l'intérieur (override styles globaux journal) ─ */
.journal-article .ja-content .code-block pre {
  margin: 0;
  padding: 16px 18px;
  background: transparent;     /* hérite du fond .code-block */
  border: 0;                   /* pas de double bordure */
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream);
}
.journal-article .ja-content .code-block pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  font-size: inherit;
}

/* ── Variante TERMINAL ──────────────────────────────────────── */
.journal-article .ja-content .code-block.is-terminal {
  /* Fond plus profond pour donner cette ambiance "console" */
  background: var(--term-bg);
  border-color: var(--term-border);
}
.journal-article .ja-content .code-block.is-terminal .cb-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

/* Préfixe visuel '$ ' sur chaque ligne du terminal.
   ATTENTION : Shiki rend chaque ligne dans un <span class="line">.
   Si l'utilisateur passe un thème qui ne fait pas ça, on perd le
   préfixe — c'est ok, ça reste un terminal lisible sans `$`. */
.journal-article .ja-content .code-block.is-terminal pre code .line {
  display: block;
  position: relative;
  padding-left: 1.5em;
}
.journal-article .ja-content .code-block.is-terminal pre code .line::before {
  content: '$';
  position: absolute;
  left: 0;
  color: var(--brique);
  font-weight: 600;
  opacity: 0.75;
  user-select: none;
}
/* Lignes vides → pas de prompt (sinon ça pollue) */
.journal-article .ja-content .code-block.is-terminal pre code .line:empty::before,
.journal-article .ja-content .code-block.is-terminal pre code .line:has(> :only-child:empty)::before {
  content: '';
}
/* Ligne préfixée par "# " dans le source = commentaire / output.
   On ne peut pas styler ça via CSS pur ; les utilisateurs qui
   veulent un output gris pourront utiliser un commentaire `# …`
   et la coloration syntaxique de Shiki le rendra en couleur
   atténuée naturellement. */

/* ── Variante CODE (langage de programmation) ───────────────── */
.journal-article .ja-content .code-block.is-code {
  /* Le marine standard du DS */
  background: var(--marine);
}

/* ── Code inline (hors bloc) ─ rappel rapide ────────────────── */
/* Pas de changement — on garde le style existant de journal.css */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .journal-article .ja-content .code-block pre {
    font-size: 12.5px;
    padding: 14px 14px;
  }
  .journal-article .ja-content .code-block .cb-header {
    padding: 7px 10px;
    font-size: 11px;
  }
  .journal-article .ja-content .code-block .cb-dot {
    width: 9px;
    height: 9px;
  }
}

/* === body-feed.css === */
/* ============================================================
   GAULOIS.TECH — body-feed.css
   Pattern unifié pour les sections de liste affichées dans le
   body de la homepage (vitrine outils, derniers articles, etc).
   Toutes ces sections partagent EXACTEMENT le même CSS — seul
   le contenu change. Si on doit déplacer le rythme, on le fait
   ici une fois.

   Structure attendue :
     <section class="body-feed">
       <div class="path">~/quelquechose/</div>
       <ul class="bf-list">
         <li class="bf-item [is-featured]">
           <div class="bf-meta">…</div>
           <a class="bf-link">…</a>
           <p class="bf-lead">…</p>
         </li>
       </ul>
       <a class="bf-see-all">voir tout →</a>   (optionnel)
     </section>
   ============================================================ */

.body-feed {
  width: 100%;
  max-width: 540px;
  margin-top: 64px;
  text-align: left;
}

.body-feed .bf-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.body-feed .bf-item {
  padding: 0;
  position: relative;
}

/* ── Meta (eyebrow) ─────────────────────────────────────────
   Date + tags pour articles, type + version pour outils. Même
   typo dans les deux cas : mono 11.5 ink-3 uppercase 0.05em.
   C'est exactement le format de l'eyebrow d'un article ouvert. */
.body-feed .bf-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.body-feed .bf-meta .bf-sep {
  color: var(--ink-3);
  opacity: 0.5;
}
.body-feed .bf-meta .bf-accent {
  color: var(--brique);
  letter-spacing: 0.02em;
  text-transform: none;
}
.body-feed .bf-tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Titre cliquable ────────────────────────────────────────
   Archivo Black 17px par défaut, hover brique. Calé sur la
   taille du <strong> de l'Edito pour la continuité visuelle.   */
.body-feed .bf-link {
  display: block;
  font-family: var(--display);
  font-weight: normal;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.body-feed .bf-link:hover { color: var(--brique); }

/* ── Lead / description ─────────────────────────────────────
   Mono ink-2 15px : exactement la typo des paragraphes Edito.
   Tronquée à 2 lignes par défaut.                              */
.body-feed .bf-lead {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Featured (premier item d'une section) ──────────────────
   Mise en avant : titre 28px, description 3 lignes au lieu de
   2, bordure gauche marine 2px qui rappelle le marqueur de
   blockquote dans les articles. Padding-left correspondant
   pour que le contenu ne touche pas la barre. */
.body-feed .bf-item.is-featured {
  padding-left: 18px;
  border-left: 2px solid var(--marine);
}
.body-feed .bf-item.is-featured .bf-link {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.body-feed .bf-item.is-featured .bf-lead {
  font-size: 15.5px;
  -webkit-line-clamp: 3;
}

/* ── See all (lien optionnel en pied de section) ────────────  */
.body-feed .bf-see-all {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.body-feed .bf-see-all:hover { color: var(--brique); }

.body-feed .bf-empty {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
  padding: 12px 0;
  margin: 0 0 28px;
}

/* Rangée de plusieurs "voir tout" (utilisée par la vitrine
   outils qui a deux landings : online + download). */
.body-feed .bf-see-all-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.body-feed .bf-see-all-row .bf-sep {
  font-family: var(--mono);
  color: var(--line);
}

/* Responsive */
@media (max-width: 640px) {
  .body-feed {
    margin-top: 44px;
  }
  .body-feed .bf-list {
    gap: 26px;
  }
  .body-feed .bf-item.is-featured {
    padding-left: 14px;
  }
  .body-feed .bf-item.is-featured .bf-link {
    font-size: 22px;
  }
  .body-feed .bf-link {
    font-size: 16px;
  }
  .body-feed .bf-lead {
    font-size: 14px;
  }
}

/* === homepage.css === */
/* ============================================================
   GAULOIS.TECH — homepage.css
   CSS unifié de la refonte éditoriale de la homepage :
     - Hero (titre énorme + lead)
     - Sections numérotées (01 outils / 02 journal)
     - Tools cards
     - Journal featured + secondaires
     - Colophon + footer-line
   Tout dans une seule feuille pour que le rythme typographique
   et les espacements puissent évoluer ensemble.
   ============================================================ */

/* Contenu de l'accueil : pile de sections dans le conteneur centré.
   Le shell fournit déjà la largeur (.container) et le padding
   (.site-main) ; ici on ne gère que le rythme vertical entre sections.
   NB : avant, ces règles étaient accrochées à `.home-body` (supprimé
   avec l'ancien shell) — d'où des sections collées. Rattachées au bon
   élément. */
.home-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
}

/* (La carte de visite « whoami » a été déplacée vers la page « À propos » :
   le hero n'est plus qu'une colonne — grand titre + accroche. Le motif
   terminal vit désormais dans components/about.css.) */

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--brique);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--marine);
  margin: 0 0 18px;
}
.hero-title .hero-accent {
  color: var(--brique);
}
.hero-title .hero-period {
  color: var(--brique);
}
.hero-title .hero-cursor {
  display: inline-block;
  width: 0.12em;
  height: 0.75em;
  background: var(--brique);
  vertical-align: -0.05em;
  margin-left: 0.12em;
  animation: blink 1.05s steps(2, end) infinite;
}

/* (Animation « machine à écrire » des titres → composant partagé
   typewriter.css, qui couvre le hero ET les en-têtes de page.) */

.hero-lead {
  font-family: var(--mono);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0;
}

/* (La barre de stats du hero a été retirée de l'accueil.) */

/* ============================================================
   SECTION HEADER COMMUN (numérotation + titre + see all)
   ============================================================ */

/* Section header — numéro vraiment imposant à gauche, titre
   marine cohérent à droite, et un "voir tous →" discret en
   bout de ligne. La ligne marine pleine sous l'ensemble sert
   d'ancre éditoriale. */
/* En-tête de section en ÉTIQUETTE marine : pavé marine compact avec
   numéro brique + titre crème en capitales, « voir tous » à droite. */
.home-section .hs-header {
  display: flex;
  align-items: center;
  margin-bottom: 44px;
}
/* Étiquette de section bi-ton, façon FR/EN : début JAUNE (numéro en
   bleu) + reste MARINE (titre crème), les deux pans emboîtés au biais,
   et la fin coupée en biais. */
.home-section .hs-label {
  display: inline-flex;
  align-items: stretch;
}
.home-section .hs-num {
  display: flex;
  align-items: center;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 0 18px 0 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.home-section .hs-title {
  display: flex;
  align-items: center;
  background: var(--marine);
  color: var(--cream);
  font-family: var(--display);
  font-weight: normal;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  margin-left: -10px;
  padding: 12px 32px 12px 24px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.home-section .hs-see-all {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  align-self: center;
}
.home-section .hs-see-all:hover { color: var(--brique); }

/* ============================================================
   HOMETOOLS — cards en mini-fenêtre terminal
   Reprend le même langage que les blocs code .is-terminal des
   articles : header marine + 3 dots macOS + path mono, corps
   blanc, footer cream-2 avec meta et CTA.
   ============================================================ */

.home-tools .ht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-tools .ht-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--marine-dim);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 240px;
  /* Ombre douce — comme les blocs code des articles */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04),
              0 6px 18px -10px rgba(29, 53, 87, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-tools .ht-card:hover {
  transform: translateY(-3px);
  border-color: var(--brique);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05),
              0 14px 32px -14px rgba(29, 53, 87, 0.28);
}
.home-tools .ht-card:hover .ht-name { color: var(--brique); }
.home-tools .ht-card:hover .ht-foot-cta {
  background: var(--brique);
  color: var(--marine);
  border-color: var(--brique);
}

/* Header type "barre de fenêtre" — dots macOS + path mono.
   La couleur de fond marine très sombre rappelle exactement
   les blocs ```bash des articles. */
.home-tools .ht-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--term-bg);
  border-bottom: 1px solid var(--term-border);
}
.home-tools .ht-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.home-tools .ht-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.home-tools .ht-dot.dot-red    { background: var(--dot-red); }
.home-tools .ht-dot.dot-yellow { background: var(--dot-yellow); }
.home-tools .ht-dot.dot-green  { background: var(--dot-green); }
.home-tools .ht-card-path {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(244, 237, 224, 0.55);
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Corps de la card — numéro + nom + lead, sur fond blanc.    */
.home-tools .ht-card-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-tools .ht-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brique);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.home-tools .ht-name {
  font-family: var(--display);
  font-weight: normal;
  font-size: 28px;
  color: var(--marine);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
  margin-bottom: 2px;
}
.home-tools .ht-lead {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}

/* Footer de card — bande cream-2, meta à gauche, bouton CTA
   à droite (rendu comme un petit bouton avec bordure). */
.home-tools .ht-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-tools .ht-foot-meta {
  color: var(--ink-3);
}
.home-tools .ht-foot-cta {
  color: var(--marine);
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid var(--marine);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  flex: 0 0 auto;
}

/* ============================================================
   HOMEJOURNAL — featured + grille secondaire
   ============================================================ */

.home-journal .hj-featured {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  transition: border-color 0.18s ease;
}
.home-journal .hj-featured:hover { border-color: var(--brique); }
.home-journal .hj-featured:hover .hj-feat-title { color: var(--brique); }
.home-journal .hj-featured:hover .hj-read { color: var(--brique); }

.home-journal .hj-cover {
  position: relative;
  height: 150px;
  /* le background pattern est posé inline (style="...") par
     le composant Astro avec un angle dérivé du slug */
  overflow: hidden;
  border-bottom: 1px solid var(--term-border);
}
.home-journal .hj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-journal .hj-feat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 20px;
}

.home-journal .hj-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home-journal .hj-tag {
  color: var(--brique);
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-journal .hj-feat-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--marine);
  margin: 0;
  transition: color 0.15s ease;
}
.home-journal .hj-feat-desc {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-journal .hj-read {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--marine);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 4px;
  transition: color 0.15s ease;
}

.home-journal .hj-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.home-journal .hj-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brique);
  padding: 15px 17px 16px;
  transition: background 0.18s ease;
}
.home-journal .hj-tile:hover { background: var(--cream-2); }
.home-journal .hj-tile:hover .hj-tile-title { color: var(--brique); }

.home-journal .hj-tile.is-placeholder {
  border-left-color: var(--line);
  opacity: 0.6;
}

.home-journal .hj-tile-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 17px;
  color: var(--marine);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color 0.15s ease;
}
.home-journal .hj-tile-desc {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-journal .hj-tile-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-journal .hj-tile-tag {
  background: var(--brique);
  color: var(--marine);
  text-transform: none;
  padding: 2px 7px;
  letter-spacing: 0.02em;
}

/* ============================================================
   COLOPHON + footer-line
   ============================================================ */

.colophon {
  margin-top: 8px;
}
/* (Ancienne grille colophon 4 colonnes retirée : le Colophon ne rend
   plus qu'une ligne « ~/gaulois.tech ».) */

.footer-line {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .home-content { gap: 88px; }
  .home-tools .ht-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-journal .hj-cover { height: 130px; }
}

@media (max-width: 640px) {
  .home-content { gap: 64px; }
  .home-tools .ht-grid {
    grid-template-columns: 1fr;
  }
  .home-journal .hj-tiles {
    grid-template-columns: 1fr;
  }
}

/* === page-header.css === */
/* Page header — en-tête unifié (grand titre + point + curseur).
   Même grammaire visuelle que le hero, posée en tête de chaque
   page à la place des anciens chemins ~/...md. */

.page-header {
  width: 100%;
  margin: 0 0 26px;
}

.page-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(46px, 7.5vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--marine);
  margin: 0;
}

/* Toujours une majuscule en tête de titre (« sur place. » → « Sur place. »),
   sans toucher au littéral source (écrit par L. Benoist). */
.page-title::first-letter { text-transform: uppercase; }

/* Dernier mot du titre + point final en brique. */
.page-accent { color: var(--brique); }
.page-period { color: var(--brique); }
.page-cursor {
  display: inline-block;
  width: 0.1em;
  height: 0.72em;
  background: var(--brique);
  vertical-align: -0.04em;
  margin-left: 0.1em;
  animation: blink 1.05s steps(2, end) infinite;
}

/* Lead optionnel sous le titre (passé dans le slot du composant). */
.page-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 16px 0 0;
}

/* === typewriter.css === */
/* ============================================================
   GAULOIS.TECH — typewriter.css
   Animation « machine à écrire » PARTAGÉE par tous les titres à
   dernier-mot : le hero de l'accueil (`.hero-title`), les en-têtes de
   page (`.page-title`, via PageHeader) ET le titre de la fenêtre
   « À propos » (`.abw-title`, sur fond sombre).

   La logique JS vit UNE seule fois dans BaseLayout (window.gauloisTw) :
   elle pose `.is-typing` sur le titre pendant la frappe. Ici on ne fait
   que l'habillage : masquer le point + le curseur statiques, et montrer
   un caret clignotant juste après le mot en cours de frappe ([data-tw]).

   Sans JS / en prefers-reduced-motion, `.is-typing` n'est jamais posé →
   le titre reste dans son état final (le vrai mot est déjà dans le HTML).
   ============================================================ */

.hero-title.is-typing .hero-period,
.hero-title.is-typing .hero-cursor,
.page-title.is-typing .page-period,
.page-title.is-typing .page-cursor,
.abw-title.is-typing .abw-period,
.abw-title.is-typing .abw-cursor { display: none; }

.hero-title.is-typing [data-tw]::after,
.page-title.is-typing [data-tw]::after,
.abw-title.is-typing [data-tw]::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.75em;
  background: var(--brique);
  vertical-align: -0.05em;
  margin-left: 0.06em;
  animation: blink 1.05s steps(2, end) infinite;
}

/* === vcfreader.css === */
/* VCFReader — composant outil (embed inline sur la page détail).
   Classes prefixées .vcf-* (déjà namespacées) + scope .vcf pour les
   sélecteurs génériques. Couleurs : tokens uniquement (les hex résolus
   ne vivent que dans la string d'export HTML autonome, en JS). */

.vcf { width: 100%; max-width: 1180px; min-width: 0; }

/* Zone de dépôt : bloc réutilisable .dropzone (dropzone.css). */
.vcf .dropzone { margin-bottom: 26px; }

/* ── Barre d'outils : stats au-dessus, puis recherche + actions sur UNE ligne ── */
.vcf .vcf-tools { display: none; margin-bottom: 22px; }
.vcf .vcf-tools.is-on { display: block; }
.vcf .vcf-stats { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.vcf .vcf-stats b { color: var(--marine); font-weight: 600; }

.vcf .vcf-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.vcf .vcf-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 260px; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  transition: border-color 0.16s ease;
}
.vcf .vcf-search:focus-within { border-color: var(--brique); }
.vcf .vcf-search .dollar { color: var(--brique); }
.vcf .vcf-search input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0; outline: 0;
  font: inherit; color: var(--ink); caret-color: var(--brique);
  padding: 2px;
}
.vcf .vcf-search input::placeholder { color: var(--ink-3); }
.vcf .vcf-clear {
  background: none; border: 0; flex-shrink: 0;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); cursor: pointer; padding: 2px;
  transition: color 0.15s;
}
.vcf .vcf-clear:hover { color: var(--brique); }

.vcf .vcf-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.vcf .vcf-actions .cta { font-size: 13px; padding: 11px 16px; border: 0; white-space: nowrap; }

/* Sélecteur de densité : 3 pictogrammes NUS (1 bloc large / 2 carrés /
   3 carrés) qui MONTRENT le nombre de colonnes. Aucun cadre ni fond :
   juste l'icône, marine atténué par défaut, JAUNE (brique) quand
   sélectionnée. Le SVG hérite de la couleur via currentColor. */
.vcf .vcf-density { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.vcf .vcf-dens {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; border: 0; background: none;
  color: var(--ink-3); cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.vcf .vcf-dens svg { width: 24px; height: 16px; fill: currentColor; display: block; }
.vcf .vcf-dens:hover { color: var(--marine); }
.vcf .vcf-dens.is-active { color: var(--brique); }

/* ── Grille de cartes contacts ──
   La densité (classe d-compact/normal/large posée par le JS) pilote la
   largeur mini des colonnes : plus elle est petite, plus il y a de
   colonnes. `auto-fill` reflue selon la largeur dispo. */
.vcf-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}
.vcf-grid.is-on { display: grid; }
.vcf-grid.d-compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vcf-grid.d-normal  { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }
/* « large » = le rectangle plein : UNE seule tuile par ligne. */
.vcf-grid.d-large   { grid-template-columns: 1fr; gap: 14px; }
.vcf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  transition: border-color 0.15s ease;
}
.vcf-card:hover { border-left-color: var(--brique); }
.vcf-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.vcf-av {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brique);
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 13px; color: var(--marine);
  flex-shrink: 0; overflow: hidden;
}
.vcf-av img { width: 100%; height: 100%; object-fit: cover; }
.vcf-card-id { min-width: 0; }
.vcf-nm { font-family: var(--display); font-size: 15.5px; color: var(--marine); line-height: 1.12; letter-spacing: -0.01em; word-break: break-word; }
.vcf-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.vcf-body { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); padding-top: 10px; }
.vcf-row { display: flex; gap: 9px; }
.vcf-k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); min-width: 34px; padding-top: 3px; flex-shrink: 0; }
.vcf-v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); line-height: 1.45; word-break: break-word; min-width: 0; }

/* ── Vide ─────────────────────────────────────────────────────── */
.vcf .vcf-empty { display: none; padding: 40px 20px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-style: italic; }
.vcf .vcf-empty.is-on { display: block; }

/* === dropzone.css === */
/* Bloc réutilisable — zone de dépôt de fichier.
   Issue de la zone de LocAtMe (la référence). Tout outil qui upload
   un fichier repioche CE bloc : on ne réinvente jamais une zone de
   drop, on garde la même partout (cohérence graphique).

   Markup attendu :
     <label class="dropzone">
       Texte d'action          (gros, Archivo Black, capitales)
       <span class="hint">…</span>   (sous-texte mono, optionnel)
       <input type="file" hidden>
     </label>
   État .dragover à poser en JS pendant un glisser. */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 38px 28px;
  background: var(--cream-2);
  border: 2px dashed var(--brique);
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--marine);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.dropzone:hover { background: var(--cream-3); }
.dropzone.dragover { background: var(--cream-3); border-color: var(--marine); }

.dropzone .hint {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 500;
}
.dropzone .hint strong { color: var(--brique); font-weight: 500; }

.dropzone input[type="file"] { display: none; }

/* === site-header.css === */
/* SiteHeader — bandeau : marque + recherche en biais + FR/EN.
   Recherche et langue : panneaux PLEINE HAUTEUR, sans bordure, emboîtés
   entre eux par la coupure en biais (motif diagonal du site). Tokens only. */

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--term-border);
  height: 50px;
  padding-left: 24px;
}
.sh-brand {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.sh-dot { color: var(--brique); }

/* Groupe recherche + langue : pleine hauteur, collé au bord droit ;
   les pans s'emboîtent par le biais (aucun espace entre eux). */
.sh-right { display: flex; align-items: stretch; }

/* Recherche sombre, parallélogramme pleine hauteur ($ jaune + curseur).
   position:relative pour ancrer le panneau de résultats. Le clip-path en
   biais ne s'applique qu'au fond visuel (pseudo-élément) pour ne PAS
   rogner le dropdown qui déborde sous la barre. */
.sh-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px 0 20px;
}
.sh-search::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marine-dim);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  z-index: 0;
}
.sh-search > * { position: relative; z-index: 1; }
.sh-prompt { color: var(--brique); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.sh-search input {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--cream);
  caret-color: transparent;
  width: 190px;
  max-width: 36vw;
}
.sh-search input::placeholder { color: var(--cream-mute); }
.sh-search input:focus { caret-color: var(--brique); }
.sh-cursor { display: inline-block; width: 6px; height: 15px; background: var(--brique); animation: blink 1.05s steps(2, end) infinite; }
.sh-search:focus-within .sh-cursor { display: none; }

/* ── Panneau de suggestions (recherche live) ──
   Sous la barre, aligné à droite ; fond marine, items pages/outils/
   articles, item actif (clavier/survol) en brique. Caché par défaut. */
.sh-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: min(340px, 80vw);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
  background: var(--marine-dim);
  border: 1px solid var(--term-border);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.7);
}
.sh-results.is-open { display: block; }
.shr-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  border-top: 1px solid var(--cream-faint);
}
.shr-item:first-child { border-top: 0; }
.shr-item.is-active,
.shr-item:hover { background: var(--brique); }
.shr-kind {
  flex: 0 0 auto;
  width: 54px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brique-light);
}
.shr-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cream);
  line-height: 1.3;
  word-break: break-word;
}
.shr-item.is-active .shr-kind,
.shr-item.is-active .shr-name,
.shr-item:hover .shr-kind,
.shr-item:hover .shr-name { color: var(--marine); }
.shr-empty {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-style: italic;
  color: var(--cream-mute);
}

/* FR/EN — deux pans pleine hauteur, emboîtés au biais avec la recherche. */
.sh-lang { display: flex; align-items: stretch; margin-left: -14px; user-select: none; }
.sh-pill {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 14px;
  text-decoration: none;
}
.sh-pill.left  { clip-path: polygon(14px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); padding: 0 14px 0 20px; }
.sh-pill.right { clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%); padding: 0 20px 0 14px; margin-left: -7px; }
.sh-pill.active   { background: var(--brique); color: var(--marine); }
.sh-pill.inactive { background: var(--marine-dim); color: var(--cream-mute); }
.sh-pill.inactive:hover { color: var(--cream); }

/* === site-nav.css === */
/* SiteNav — navbar signature : pan G. + sections en diagonales,
   dégradé de bleus (par position), section active en brique.
   Le motif diagonal se répète ailleurs (FR/EN, etc.). Tokens only. */

.snav { display: flex; background: var(--cream); user-select: none; min-height: 100px; }
.snav a {
  text-decoration: none; position: relative; overflow: hidden;
  transition: flex 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}

/* Pan marque G. — fixe (n'anime pas), fond sombre, point blanc. */
.snav-g {
  flex: 0 0 200px;
  background: var(--canvas-bg);
  color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  padding: 0 24px 0 22px;
}
.snav-g-mark { font-family: var(--display); font-size: clamp(40px, 5.5vw, 58px); line-height: 0.78; }
/* Point du G. : jaune par défaut (G inactif, fond sombre). Sur l'accueil
   (G actif, fond brique) il repasse en blanc — cf. .snav-g.is-active plus bas. */
.snav-dot { color: var(--brique); }
.snav-g-sub { font-family: var(--mono); font-size: 9px; color: var(--cream-mute); }
.snav-g.is-active { background: var(--brique); color: var(--marine); }
.snav-g.is-active .snav-dot { color: var(--surface); }
.snav-g.is-active .snav-g-sub { color: rgba(29, 53, 87, 0.62); }

/* Sections — flex:1, dégradé de bleus par position. */
.snav-sec {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 16px 16px 32px;
  color: var(--cream);
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}
.snav-sec:last-child { clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
.snav-sec:nth-of-type(2) { background: var(--marine); }
.snav-sec:nth-of-type(3) { background: var(--marine-2); }
.snav-sec:nth-of-type(4) { background: var(--marine-3); }
.snav-sec:nth-of-type(5) { background: var(--marine-4); }
.snav-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brique-light); }
.snav-name {
  font-family: var(--display); font-size: clamp(18px, 2.4vw, 30px);
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snav-arrow { align-self: flex-end; font-size: 13px; opacity: 0.7; }

/* Section active (page courante) = brique. */
.snav-sec.is-active { background: var(--brique) !important; color: var(--marine); }
.snav-sec.is-active .snav-num { color: var(--marine); opacity: 0.6; }

/* Hover : la section survolée grandit + brique, les autres rétrécissent.
   Le pan G. ne bouge pas (ce n'est pas une bascule, c'est l'identité). */
.snav:has(.snav-sec:hover) .snav-sec { flex: 0.7; }
.snav:has(.snav-sec:hover) .snav-sec:hover { flex: 1.7; background: var(--brique); color: var(--marine); }
.snav:has(.snav-sec:hover) .snav-sec:hover .snav-num { color: var(--marine); opacity: 0.6; }

/* === category-subnav.css === */
/* CategorySubnav — sous-navbar PLEINE LARGEUR, sous la navbar principale.
   Bascule « sur place / à emporter » en grand (éditorial crème). Reprend la
   grammaire diagonale de la navbar et du sélecteur FR/EN. Tokens only. */

.csub {
  display: flex;
  width: 100%;
  background: var(--cream);
  /* Filet brique (était --term-border sombre → trait « noir » disgracieux
     entre la navbar et la sous-navbar ; on le met jaune comme le filet du
     bas, porté par .csub-pane.is-active). */
  border-top: 4px solid var(--brique);
  user-select: none;
}
.csub-pane {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 44px 20px;
  background: var(--cream-2);
  color: var(--marine);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.csub-left {
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  padding-right: 58px;
}
.csub-right {
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 58px;
  margin-left: -20px;
}
.csub-pane:hover { background: var(--cream); }
/* Catégorie courante : crème pleine + soulignement brique. */
.csub-pane.is-active {
  background: var(--cream);
  box-shadow: inset 0 -4px 0 var(--brique);
}

.csub-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.csub-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--marine);
}
/* Majuscule en tête (« sur place. » → « Sur place. »). */
.csub-title::first-letter { text-transform: uppercase; }
.csub-dot { color: var(--brique); }
.csub-count {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--brique);
}

/* === picker.css === */
/* Picker — index en CARTES TUILÉES, commun au choix des outils
   (catégories) et des articles (journal). Grille 2 colonnes, cartes
   blanches à liseré brique, flèche révélée au survol. Tokens only. */

.pick {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brique);
  padding: 16px 18px 16px 17px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.pick-card:hover { background: var(--cream-2); }

/* ── Carte OUTIL avec vignette : 2 zones côte à côte (icône carrée à
   gauche qui « coupe » la tuile + contenu à droite). Pas de padding sur
   la carte : la vignette colle au bord, le contenu porte son propre
   padding via .pc-main. ── */
.pick-card.has-icon {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.pc-icon {
  flex: 0 0 auto;
  width: 120px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--marine);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.pc-icon img { width: 100%; height: 100%; object-fit: cover; }
.pc-icon-mono {
  font-family: var(--display);
  font-size: 40px;
  color: var(--brique);
  letter-spacing: -0.02em;
  line-height: 1;
}
/* Contenu de droite : reprend la colonne verticale + son padding. */
.pc-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
}

.pc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brique);
  letter-spacing: 0.06em;
}
.pc-num::before { content: '/ '; opacity: 0.55; }

.pc-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brique);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pick-card:hover .pc-arrow { opacity: 1; transform: translateX(0); }
/* Carte à vignette : la flèche se cale dans le coin du contenu (.pc-main). */
.pick-card.has-icon .pc-arrow { top: 14px; right: 16px; }

.pc-name {
  font-family: var(--display);
  font-size: 20px;
  color: var(--marine);
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding-right: 22px;
}
/* Outils : noms en capitales. Articles : titre en casse normale. */
.pick--tools .pc-name { text-transform: uppercase; }

.pc-desc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

.pc-foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Mots-clés (articles) : étiquettes jaunes, écriture bleue. */
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  background: var(--brique);
  color: var(--marine);
  padding: 2px 7px;
}
.pc-hash { color: var(--marine); }
.pc-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
}

/* ── Carte « à la une » (articles) : pleine largeur + plus grande ──
   La 1re carte (article le plus récent) s'étale sur les 2 colonnes et
   grossit titre/lead, façon featured de l'accueil. Les cartes suivantes
   gardent la grille 2 colonnes normale. */
.pick-card.is-feature {
  grid-column: 1 / -1;
  border-left-width: 4px;
  padding: 26px 30px 24px;
  gap: 12px;
}
.pc-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brique);
  color: var(--marine);
  padding: 4px 10px;
  margin-bottom: 2px;
}
.pick-card.is-feature .pc-name {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  padding-right: 0;
}
.pick-card.is-feature .pc-desc {
  font-size: 15px;
  line-height: 1.6;
  max-width: 66ch;
}
.pick-card.is-feature .pc-arrow {
  top: 26px;
  right: 28px;
  font-size: 18px;
}

/* Mobile : une seule colonne. La vignette outil reste à gauche mais
   plus étroite pour laisser de la place au texte. */
@media (max-width: 639px) {
  .pick { grid-template-columns: 1fr; }
  .pick-card.is-feature { padding: 20px 18px; }
  .pick-card.is-feature .pc-name { font-size: 26px; }
  .pc-icon { width: 84px; }
  .pc-icon-mono { font-size: 30px; }
  .pc-main { padding: 14px 16px; }
}

/* === summary-bar.css === */
/* ============================================================
   GAULOIS.TECH — summary-bar.css
   Bandeau de résumé en chiffres « nus » sur fond transparent (la page
   crème respire) : filets fins haut/bas + séparateurs verticaux, valeur
   en marine, petit carré brique en accent. Partagé par la page
   Statistiques et les landings d'outils (composant SummaryBar.astro).
   ============================================================ */

.summary-bar {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  margin: 0 0 46px;
}
.sb-cell {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}
.sb-cell:first-child { border-left: 0; padding-left: 2px; }
.sb-k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sb-k::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--brique);
}
.sb-v {
  font-family: var(--display);
  font-size: 34px;
  color: var(--marine);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* === file-bar.css === */
/* ============================================================
   GAULOIS.TECH — file-bar.css
   Barre « fichier » partagée (fiches outils + articles). Bouton de
   téléchargement BRIQUE (marine au survol) + N colonnes d'info (empreinte,
   date, OS, app…). Pilotée par FileBar.astro. Tokens only.

   Bordures en « grille » (table-like) : le conteneur porte le filet
   haut+gauche, chaque enfant porte le filet droite+bas. Résultat : un
   quadrillage net en UNE ligne, et qui reste propre quand la barre WRAP
   (articles à nombreuses cellules) — pas de ligne qui déborde.
   ============================================================ */

.file-bar {
  display: flex;
  flex-wrap: wrap;
  max-width: 720px;
  width: fit-content;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.file-bar.is-full { width: 100%; }
.file-bar.is-left { margin: 0 0 32px; }
.file-bar.is-center { margin: 38px auto 0; }
/* Une seule ligne forcée (fiches outils) : pas d'enroulement, la colonne
   .is-grow (empreinte) absorbe et tronque. Les articles, eux, wrappent. */
.file-bar.is-nowrap { flex-wrap: nowrap; }

/* Filet droite+bas sur chaque cellule → quadrillage complet (cf. en-tête). */
.fb-dl,
.fb-meta {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Bouton de téléchargement — jaune, passe en marine au survol. */
.fb-dl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 22px;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.fb-dl:hover { background: var(--marine); color: var(--cream); }
.fb-dl-icon { font-family: var(--mono); font-size: 17px; line-height: 1; }

/* Case « ? » (aide) — carrée, à droite de la barre ; ouvre l'aide de l'outil.
   Même grammaire de cellule (filet droite+bas) ; passe en marine au survol. */
.fb-help {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 60px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  color: var(--marine);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.fb-help:hover { background: var(--marine); color: var(--cream); }
.fb-help-q { font-family: var(--display); font-size: 20px; line-height: 1; }

/* Colonnes d'info — compactes par défaut ; .is-grow absorbe la largeur. */
.fb-meta {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
}
.fb-meta.is-grow { flex: 1 1 auto; }
.fb-meta-k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fb-meta-k::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--brique);
}
.fb-meta-v {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--marine);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Valeur cliquable (ex. nom d'auteur → profil LinkedIn ou autre). */
.fb-meta-link {
  color: var(--brique);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fb-meta-link:hover { color: var(--marine); border-bottom-color: var(--marine); }

/* Variante .is-display — les valeurs reprennent les codes de la SummaryBar
   (sb-v : typo display, marine, interlettrage serré), calées à 26px pour
   tenir sur la mesure article (680px) en une ligne. Libellés inchangés
   (déjà identiques à sb-k). Utilisée par la barre méta des articles. */
.file-bar.is-display .fb-meta { gap: 9px; padding: 14px 22px; }
.file-bar.is-display .fb-meta-v {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Mobile : la barre s'empile (le quadrillage reste correct : chaque cellule
   pleine largeur garde son filet droite+bas, le conteneur ses filets
   haut+gauche). */
@media (max-width: 560px) {
  .file-bar { flex-direction: column; width: 100%; }
  .fb-dl { justify-content: center; }
}

/* === stats.css === */
/* Statistiques — dashboard on-brand. Graphiques en CSS pur (pas de lib).
   Reprend la grammaire du site : bandeau marine, accents brique, mono
   pour les chiffres, biais/tick brique pour les en-têtes. Tokens only. */

.stats { width: 100%; }

.st-updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* ── Résumé : composant partagé SummaryBar (summary-bar.css) ──
   Le bandeau de chiffres « nus » vit désormais dans summary-bar.css
   (réutilisé par les landings d'outils). Les compteurs animés sont
   gérés par le <script> de StatsDashboard via les [data-count]. */

/* ── Deux blocs côte à côte (en ligne / téléchargements) ── */
.st-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 0 0 50px;
}
.st-block { display: flex; flex-direction: column; }
.stats > .st-block { margin-bottom: 50px; }

/* En-tête de bloc : tick brique + titre capitales + indice à droite. */
.st-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.st-title {
  position: relative;
  padding-left: 14px;
  margin: 0;
  font-family: var(--display);
  font-weight: normal;
  font-size: 19px;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.st-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--brique);
}
.st-hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Barres horizontales ── */
.st-bars { display: flex; flex-direction: column; gap: 13px; }
.st-bar {
  display: grid;
  grid-template-columns: minmax(0, 118px) 1fr auto;
  align-items: center;
  gap: 14px;
}
.st-bar .name {
  font-family: var(--display);
  font-size: 14px;
  color: var(--marine);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-bar .track { height: 15px; background: var(--cream-2); }
.st-bar .fill { display: block; height: 100%; background: var(--marine); }
.st-bar .fill.is-top { background: var(--brique); }
.st-bar .val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ── Barres verticales (évolution) ── */
.st-trend {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 170px;
}
.st-month {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.st-month .cols {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.st-month .col { width: 16px; min-height: 2px; }
.st-month .col.runs { background: var(--marine); }
.st-month .col.dls { background: var(--brique); }
.st-month .lbl {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-legend .item { display: inline-flex; align-items: center; gap: 8px; }
.st-legend .swatch { width: 11px; height: 11px; display: inline-block; }
.st-legend .swatch.runs { background: var(--marine); }
.st-legend .swatch.dls { background: var(--brique); }

/* ── Barre empilée (plateformes) ── */
.st-stack { display: flex; height: 36px; background: var(--cream-2); overflow: hidden; }
.st-stack .seg {
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
}
.st-stack .seg.p0 { background: var(--marine); }
.st-stack .seg.p1 { background: var(--marine-3); }
.st-stack .seg.p2 { background: var(--brique); color: var(--marine); }

/* ── « Winner » : l'attaquant le plus acharné de la semaine ──
   Ligne descriptive (mono) + bouton CTA réutilisant le .cta du DS, bien
   mis en avant — le clin d'œil cross-promo vers IPDontLie. */
.st-attacks .st-trend { margin-bottom: 22px; }
.st-winner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
}
.st-winner:empty { margin: 0; }
.st-winner-line {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.st-winner-line strong { color: var(--marine); font-weight: 700; }
/* Hérite de .cta (marine plein) ; on cale juste l'échelle au contexte stats. */
.st-winner-cta {
  text-decoration: none;
  font-size: 14px;
  padding: 12px 20px;
}

.st-mock {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  font-style: italic;
  margin: 0;
}

/* ── Animation « réveil » du dashboard ──
   Les barres/colonnes grandissent depuis 0 et les chiffres défilent
   (compteur géré en JS). L'état « armé » (mis par JS = .is-arming) force
   les dimensions à 0 ; en le retirant, les transitions jouent. Sans JS,
   .is-arming n'est jamais posé → tout reste à sa valeur finale. */
.st-bar .fill,
.st-stack .seg { transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.st-month .col { transition: height 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.stats.is-arming .st-bar .fill,
.stats.is-arming .st-stack .seg { width: 0 !important; }
.stats.is-arming .st-month .col { height: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .st-bar .fill,
  .st-stack .seg,
  .st-month .col { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .st-row { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .st-bar { grid-template-columns: minmax(0, 90px) 1fr auto; gap: 10px; }
  .st-trend { gap: 8px; }
  .st-month .col { width: 12px; }
}

/* === about.css === */
/* ============================================================
   GAULOIS.TECH — about.css
   Page « À propos » = page « à part ». TOUT vit dans une grande
   fenêtre SOMBRE (rupture avec le crème du reste du site), habillée
   en dossier d'enquête (clin d'œil forensic) :
     • barre macOS + chemin terminal
     • en-tête dossier : monogramme + identité, réf./statut, tampon
     • titre (animé) + phrase
     • citation phare (= bio)
     • board : stats « foireuses » + rangées en diptyque (coupe biais)
   Le board est piloté par PROFILE.about.diptychs[] (kind list|links,
   single?), donc on ajoute/retire/réordonne des rangées en data.
   ============================================================ */

.about { display: block; }

/* — Fenêtre sombre (la rupture) — */
.abw {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  box-shadow: 0 30px 80px -45px rgba(0, 0, 0, 0.6);
}

/* Barre macOS */
.abw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--marine-dim);
  border-bottom: 1px solid var(--term-border);
}
.abw-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.abw-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.abw-dot.dot-red { background: var(--dot-red); }
.abw-dot.dot-yellow { background: var(--dot-yellow); }
.abw-dot.dot-green { background: var(--dot-green); }
.abw-barpath {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-mute);
  letter-spacing: 0.05em;
}

/* Corps de la fenêtre */
.abw-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* — En-tête dossier : identité (gauche) + réf./tampon (droite) — */
.abw-file {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cream-faint);
}
.abw-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.abw-mono {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  background: var(--brique);
  color: var(--marine);
  font-family: var(--display);
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abw-id-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.abw-name {
  font-family: var(--display);
  font-weight: normal;
  font-size: 21px;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.01em;
}
.abw-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brique-light);
  letter-spacing: 0.02em;
}
.abw-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}
.abw-ref {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-mute);
  line-height: 1.8;
}
.abw-stamp {
  border: 2px solid var(--brique);
  color: var(--brique);
  font-family: var(--display);
  font-weight: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  transform: rotate(6deg);
}

/* — Titre (animé) + phrase — */
.abw-head { display: flex; flex-direction: column; gap: 10px; }
.abw-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
}
.abw-title::first-letter { text-transform: uppercase; }
.abw-accent { color: var(--brique); }
.abw-period { color: var(--brique); }
.abw-cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.72em;
  background: var(--brique);
  vertical-align: -0.04em;
  margin-left: 0.08em;
  animation: blink 1.05s steps(2, end) infinite;
}
.abw-lead {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cream-mute);
  max-width: 600px;
  margin: 0;
}

/* — Citation phare (= bio) — */
.abw-quote {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream);
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--brique);
  max-width: 720px;
}

/* — Board : stats + rangées en diptyque (dans la fenêtre) — */
.ab-board { display: flex; flex-direction: column; }

/* Barre de stats (séparée du haut par un filet) */
.ab-stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--cream-faint);
}
.ab-stat {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px;
  border-left: 1px solid var(--cream-faint);
}
.ab-stat:first-child { border-left: 0; }
.ab-stat-v {
  font-family: var(--display);
  font-size: 30px;
  color: var(--brique);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ab-stat-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

/* Rangée en diptyque. Filet horizontal entre rangées ; séparation
   interne EN BIAIS (clip-path emboîté, motif signature du site). */
.ab-row {
  display: flex;
  border-top: 1px solid var(--cream-faint);
}
.ab-row.is-single { display: block; }

.ab-cell { flex: 1; padding: 22px 24px; min-width: 0; }
/* Volet gauche « pour » : marine, bord droit coupé en diagonale. */
.ab-cell.is-left {
  background: var(--marine);
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
  padding-right: 42px;
}
/* Volet droit « contre » : marine sombre, coupe complémentaire, chevauche. */
.ab-cell.is-right {
  background: var(--marine-dim);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -22px;
  padding-left: 44px;
}
/* Rangée pleine largeur (single) : une seule cellule, sans coupe. */
.ab-row.is-single .ab-cell.is-left {
  background: var(--marine);
  clip-path: none;
  padding-right: 24px;
}

/* Alternance « zigzag » : une rangée diptyque sur deux (.is-alt, posée
   par le composant sur les rangées d'index impair) inverse le SENS de la
   coupe en biais ET permute les fonds (marine ↔ marine-dim). Comme tous
   les volets gauches font 50 %, la pointe basse d'une rangée et la pointe
   haute de la suivante tombent au même x → le zigzag se « touche ». */
.ab-row.is-alt .ab-cell.is-left {
  background: var(--marine-dim);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
}
.ab-row.is-alt .ab-cell.is-right {
  background: var(--marine);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%);
}

.ab-cell-title {
  font-family: var(--display);
  font-weight: normal;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--cream);
}
.ab-cell.is-left .ab-cell-title { color: var(--brique); }
/* Rangées alternées : fonds permutés → on permute aussi la couleur du
   titre, pour que l'accent brique reste TOUJOURS sur le volet marine
   clair (et le blanc sur le volet sombre). */
.ab-row.is-alt .ab-cell.is-left .ab-cell-title { color: var(--cream); }
.ab-row.is-alt .ab-cell.is-right .ab-cell-title { color: var(--brique); }

/* Volet = liste à puces (→ pour le « pour », × pour le « contre ») */
.ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ab-list li {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cream-mute);
  padding-left: 18px;
  position: relative;
}
.ab-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brique-light);
}
.ab-list.is-neg li::before {
  content: "\00d7"; /* × */
  color: var(--ink-3);
}

/* Volet = liens (réseaux, soutien…) */
.ab-links { display: flex; flex-direction: column; }
.ab-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  position: relative;
  padding: 9px 30px 9px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--cream-faint);
  transition: padding-left 0.16s ease;
}
.ab-link:last-child { border-bottom: 0; }
.ab-link:hover { padding-left: 8px; }
.ab-link:hover .ab-link-label { color: var(--brique); }
.ab-link:hover .ab-link-arrow { color: var(--brique); transform: translateX(3px); }
.ab-link-label {
  font-family: var(--display);
  font-weight: normal;
  font-size: 16px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.16s ease;
}
.ab-link-handle {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cream-mute);
}
.ab-link-arrow {
  position: absolute;
  right: 4px;
  top: 9px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream-mute);
  transition: color 0.16s ease, transform 0.16s ease;
}
/* Rangée pleine largeur : liens en grille pour ne pas s'étirer. */
.ab-row.is-single .ab-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
}

@media (max-width: 640px) {
  .abw-body { padding: 22px 18px 26px; gap: 22px; }
  .abw-file { flex-direction: column; gap: 16px; }
  .abw-meta { align-items: flex-start; text-align: left; }
  /* Diptyque empilé : coupe biais retirée (signature desktop), filet.
     On neutralise aussi la coupe des rangées .is-alt (plus spécifique). */
  .ab-row { flex-direction: column; }
  .ab-cell.is-left,
  .ab-cell.is-right,
  .ab-row.is-alt .ab-cell.is-left,
  .ab-row.is-alt .ab-cell.is-right {
    clip-path: none;
    margin-left: 0;
    padding: 20px 20px;
  }
  .ab-cell.is-right { border-top: 1px solid var(--cream-faint); }
  .ab-row.is-single .ab-links { grid-template-columns: 1fr; }
}

/* === responsive.css === */
/* GAULOIS.TECH — responsive overrides
   Toutes les @media queries en bas pour bien override les composants.
   À enrichir au fil de l'eau. */

/* ============ Tablet (≤ 1023px) ============ */
@media (max-width: 1023px) {
  .app {
    grid-template-columns: 280px 1fr;
  }
  .sidebar {
    padding: 28px 22px 20px;
  }
  .body {
    padding: 36px;
  }
  .lang {
    right: 36px;
  }
}

/* ============ Mobile (≤ 639px) ============ */
@media (max-width: 639px) {
  .app {
    grid-template-columns: 1fr;
  }
  /* Sidebar → drawer off-canvas. Le chrome (hamburger, overlay,
     mobile-head) est défini dans sidebar.css ; ici on l'active et
     on bascule la sidebar en panneau coulissant. Un seul pattern
     pour les 3 sidebars (home / catégorie / journal). */
  .hamburger { display: flex; }
  .sidebar-overlay { display: block; }
  .sidebar-mobile-head { display: flex; }
  .sidebar-back-desktop { display: none; }
  .sidebar-desktop-tag { display: none; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    min-height: 0;
    padding: 20px 22px 24px;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    z-index: 65;
    box-shadow: 0 0 40px var(--scrim);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  body.sidebar-open .hamburger { display: none; }
  body.sidebar-open { overflow: hidden; }
  .brand-name {
    font-size: 38px;
  }
  .body {
    padding: 24px 18px;
  }
  /* ── Nouveau shell : navbar + sous-navbar empilées sur mobile ──
     Le diptyque diagonal est une signature desktop ; sur petit écran
     on empile proprement en lignes pleine largeur (le dégradé de bleus
     et la section active en brique sont conservés). */
  .snav { flex-direction: column; min-height: 0; }
  .snav-g,
  .snav-sec,
  .snav-sec:last-child { flex: none; width: 100%; clip-path: none; }
  .snav-g {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px;
    padding: 16px 20px;
  }
  .snav-g-mark { font-size: 34px; line-height: 1; }
  .snav-sec {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
  }
  .snav-name { font-size: 19px; }
  .snav-arrow { margin-left: auto; align-self: center; }

  /* Sous-navbar catégories : 2 lignes empilées (soulignement brique
     → barre latérale gauche pour rester lisible en vertical). */
  .csub { flex-direction: column; }
  .csub-pane,
  .csub-left,
  .csub-right {
    clip-path: none;
    margin-left: 0;
    padding: 15px 20px;
  }
  .csub-pane.is-active { box-shadow: inset 4px 0 0 var(--brique); }

  /* Header : champ de recherche resserré pour ne pas déborder. */
  .sh-search input { width: 88px; }

  .tool-name {
    font-size: 48px;
  }
  .idl-emb-row {
    grid-template-columns: 1fr;
  }
  .lm-emb-tab {
    font-size: 12px;
    padding: 0 12px;
  }
  .lang {
    right: 18px;
    bottom: 18px;
  }
}

/* ============ Petit mobile (≤ 480px) ============ */
@media (max-width: 480px) {
  .site-header { padding-left: 16px; }
  .sh-brand { font-size: 21px; }
  /* La recherche globale (pas encore branchée) est masquée sur
     téléphone pour ne pas faire déborder le bandeau. */
  .sh-search { display: none; }
  .site-main { padding: 40px 18px 56px; }
}
