/* 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;
  --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);

  --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: #0e1d34; }
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; }

/* === 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;
}

/* === 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; } }

/* === 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: #163052; }
.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; }

/* === 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 */
.profile {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1.5px dashed rgba(244,237,224,0.35);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244,237,224,0.06) 0 6px,
      transparent 6px 12px
    );
}
.profile-name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 2px;
}
.profile-bio {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cream-mute);
  max-width: 220px;
}
.profile-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.profile-links a {
  font-size: 12px;
  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;
}

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

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--cream-faint);
  text-decoration: none;
  color: inherit;
  transition: padding 0.18s ease;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { padding-left: 6px; }
.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); }

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

.search {
  margin-top: 36px;          /* aère après la dernière section feed */
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--cream-faint);
  padding-bottom: 10px;
}

/* 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: 13px;
  color: var(--cream);
}
.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;
}

/* === tool-list.css === */
/* Tool list — liste des outils dans la sidebar (état actif inclus) */

.tool-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tool-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 0;
  font-size: 14px;
  color: var(--cream-mute);
  cursor: pointer;
  position: relative;
}
.tool-list li .num {
  font-size: 12px;
  color: rgba(244,237,224,0.32);
  width: 22px;
  flex-shrink: 0;
}
.tool-list li .name {
  letter-spacing: 0.02em;
}
.tool-list li:hover .name { color: var(--cream); }
.tool-list li:hover .num { color: var(--cream-mute); }

.tool-list li.active {
  background: var(--brique);
  color: var(--on-brique);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: 14px;
  padding: 9px 14px 9px 12px;
  margin-left: -10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.tool-list li.active .num {
  color: var(--marine);
  opacity: 0.55;
  font-family: var(--mono);
  font-weight: 600;
}
.tool-list li.active .name { color: var(--on-brique); }

/* === navbar.css === */
/* Navbar — 2 moitiés diagonales (.nav-left + .nav-right)
   Philosophie LEGO : une seule règle de hover qui s'applique partout, peu importe
   l'état (.no-selection, .sel-left, .sel-right). La logique est unifiée :
   "moitié hoverée = brique + agrandit, autre = marine-dim + rétrécit". */

/* ─── Base structurelle ─── */
.navbar {
  display: flex;
  height: 124px;
  position: relative;
  margin: 0;
  user-select: none;
}
.nav-half {
  position: relative;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  transition:
    flex 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    color 0.25s ease;
}
.nav-half .inner {
  position: absolute;
  inset: 0;
  padding: 18px 28px 18px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}
.nav-half .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0.78;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-half h2 {
  font-family: var(--display);
  font-size: 34px;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: color 0.2s ease;
}
.nav-half .count {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Clip-paths en biais — créent les parallélogrammes croisés.
   Le « seam » crème entre les deux vient du fond crème du parent. */
.nav-left {
  background: var(--brique);
  color: var(--marine);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  padding-right: 24px;
}
.nav-right {
  background: var(--marine);
  color: var(--cream);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 24px;
}
.nav-right .eyebrow { color: var(--brique-light); opacity: 1; }

/* ─── États "par défaut" (sans hover) ─── */
/* Sélectionné : brique + agrandit ; non sélectionné : marine-dim + rétrécit */
.navbar.sel-left .nav-left  { flex: 1.8; background: var(--brique);     color: var(--marine); }
.navbar.sel-left .nav-right { flex: 0.7; background: var(--marine-dim); color: var(--cream); }
.navbar.sel-right .nav-right { flex: 1.8; background: var(--brique);     color: var(--marine); }
.navbar.sel-right .nav-left  { flex: 0.7; background: var(--marine-dim); color: var(--cream); }

/* Couleur texte de la moitié inactive (état sélectionné, pas de hover) */
.navbar.sel-left .nav-right .eyebrow,
.navbar.sel-left .nav-right h2,
.navbar.sel-left .nav-right .count,
.navbar.sel-right .nav-left .eyebrow,
.navbar.sel-right .nav-left h2,
.navbar.sel-right .nav-left .count { color: var(--cream); opacity: 0.42; }

/* ─── HOVER (universel, override TOUS les états ci-dessus) ─── */
/* Quand n'importe quelle moitié est hoverée dans la navbar :
   - elle prend la couleur brique (active) et s'agrandit
   - l'AUTRE moitié devient marine-dim et rétrécit, peu importe son état */
.navbar:has(.nav-half:hover) .nav-half {
  flex: 0.5;
  background: var(--marine-dim);
  color: var(--cream);
}
.navbar:has(.nav-half:hover) .nav-half .eyebrow,
.navbar:has(.nav-half:hover) .nav-half h2,
.navbar:has(.nav-half:hover) .nav-half .count {
  color: var(--cream);
  opacity: 0.42;
}

.navbar:has(.nav-half:hover) .nav-half:hover {
  flex: 2;
  background: var(--brique);
  color: var(--marine);
}
.navbar:has(.nav-half:hover) .nav-half:hover .eyebrow,
.navbar:has(.nav-half:hover) .nav-half:hover h2,
.navbar:has(.nav-half:hover) .nav-half:hover .count {
  color: var(--marine);
  opacity: 1;
}
.navbar:has(.nav-half:hover) .nav-half:hover .eyebrow { opacity: 0.78; }

/* === 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 {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  width: 100%;
}
.cat-card {
  background: var(--cream);
  padding: 18px 20px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  transition: background 0.18s ease;
}
.cat-card:hover { background: var(--cream-2); }
.cat-card .cnum {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.cat-card .cname {
  font-family: var(--display);
  font-size: 22px;
  color: var(--marine);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.cat-card .cdesc {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: auto;
}

/* === 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;
}

.meta-row {
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 720px;
  width: 100%;
}
.meta-cell {
  padding: 14px 18px 14px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-cell:last-child { border-right: 0; padding-left: 18px; }
.meta-cell:nth-child(2) { padding-left: 18px; }
.meta-cell .k {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.meta-cell .v {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* === lang-switcher.css === */
/* Lang pastille (foot right) — switcher FR/EN dans la sidebar/body */

.lang {
  position: absolute;
  right: 48px;
  bottom: 28px;
  display: flex;
  height: 30px;
  user-select: none;
  gap: 0;
}
.lang .pill {
  position: relative;
  flex: 1;
  transition: flex 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.lang .pill.left {
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  padding-right: 18px;
}
.lang .pill.right {
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 18px;
  /* cream parent shows through as a thin parallelogram seam */
}
.lang .pill.active {
  background: var(--brique);
  color: var(--on-brique);
}
.lang .pill.inactive {
  background: var(--marine-dim);
  color: rgba(244, 237, 224, 0.42);
}
.lang:hover .pill { flex: 0.7; }
.lang:hover .pill:hover { flex: 1.6; }

/* === 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-dim);
  color: rgba(244, 237, 224, 0.42);
  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;
}
.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) {
  background: var(--marine);
  color: var(--cream);
}

/* 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;
}
.lm-emb-drop {
  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;
}
.lm-emb-drop:hover {
  background: #e6dcc1;
}
.lm-emb-drop .hint {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-3);
  font-weight: 500;
}
.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: #fff;
  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: #163052; }

.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;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journal-list-intro {
  margin-bottom: 32px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 540px;
}

.journal-item {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding 0.2s;
}
.journal-item:last-child {
  border-bottom: 1px solid var(--line);
}
.journal-item:hover {
  padding-left: 8px;
}
.journal-item:hover .ji-title {
  color: var(--brique);
}

.journal-item .ji-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.journal-item .ji-tags {
  display: flex;
  gap: 6px;
}
.journal-item .ji-tag {
  background: transparent;
  color: var(--brique);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: 0.03em;
}

.journal-item .ji-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: normal;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
  transition: color 0.2s;
}

.journal-item .ji-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 600px;
}

.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;
  color: var(--ink);
}

.journal-article .ja-back {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brique);
  text-decoration: none;
  margin-bottom: 28px;
  display: inline-block;
  transition: color 0.15s;
}
.journal-article .ja-back:hover {
  color: var(--ink);
}

.journal-article .ja-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Tags en début d'article (#android #parser…) — placés entre
   l'eyebrow date/auteur et le titre. Discrets mais lisibles. */
.journal-article .ja-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.journal-article .ja-tags .ja-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brique);
  letter-spacing: 0.02em;
  /* Pas de bordure ni de fond : le `#` suffit à les distinguer. */
}

.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 sont désormais affichés en début d'article
   (cf. .ja-tags ci-dessus) plutôt qu'en pied. */

/* ── Actions de pied d'article ──────────────────────────────── */
.journal-article .ja-actions {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  /* Les boutons sont déjà alignés à gauche de l'article ; pas
     besoin de centrer le bloc — la mesure de l'article (680px)
     centre déjà l'ensemble. */
}

/* Boutons d'action (télécharger, partager) — inspirés du CTA
   marine de LocAtMe (.idl-emb-cta) : présents, voyants, dans la
   typographie display gauloise.

   Deux variantes :
     .is-primary   → marine rempli, blanc cream
     .is-secondary → marine en outline (transparent + bordure),
                     se remplit au survol */
.journal-article .ja-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  line-height: 1;
  white-space: nowrap;
}

/* Primaire — bouton plein marine */
.journal-article .ja-action.is-primary {
  background: var(--marine);
  color: var(--cream);
  border: 1px solid var(--marine);
}
.journal-article .ja-action.is-primary:hover {
  background: #163052;
  border-color: #163052;
}

/* Secondaire — outline marine */
.journal-article .ja-action.is-secondary {
  background: transparent;
  color: var(--marine);
  border: 1px solid var(--marine);
}
.journal-article .ja-action.is-secondary:hover {
  background: var(--marine);
  color: var(--cream);
}

/* Icône — hérite de la couleur du bouton (currentColor) pour
   suivre les transitions hover sans surcharge CSS. */
.journal-article .ja-action-icon {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  /* L'icône peut être un caractère (↓) ou un SVG ; les deux
     héritent de la couleur via `color: currentColor`. */
}
.journal-article .ja-action-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive : passer les boutons en empilement vertical
   plein-largeur sur mobile pour rester lisibles. */
@media (max-width: 480px) {
  .journal-article .ja-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .journal-article .ja-action {
    justify-content: center;
  }
}

/* === 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;
  }
  .nav-half h2 {
    font-size: 28px;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lang {
    right: 36px;
  }
}

/* ============ Mobile (≤ 639px) ============ */
@media (max-width: 639px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    min-height: auto;
    padding: 24px 20px 18px;
  }
  .brand-name {
    font-size: 38px;
  }
  .body {
    padding: 24px 18px;
  }
  .navbar {
    height: 96px;
  }
  .nav-half .inner {
    padding: 14px 18px;
  }
  .nav-half h2 {
    font-size: 22px;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .tool-name {
    font-size: 48px;
  }
  .meta-row {
    grid-template-columns: 1fr;
  }
  .meta-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 !important;
  }
  .meta-cell:last-child {
    border-bottom: 0;
  }
  .idl-emb-row {
    grid-template-columns: 1fr;
  }
  .lm-emb-tab {
    font-size: 12px;
    padding: 0 12px;
  }
  .lang {
    right: 18px;
    bottom: 18px;
  }
}
