/* =====================================================================
   Radicule.games — assets/css/style.css
   Feuille de style unique, extraite de la maquette validée.
   Palette, sections par accent, nav latérale, cartes, pagination,
   fond ambient, page article. À charger depuis _partials/head.php.
   ===================================================================== */

:root {
  --bg: #101418;
  --bg-soft: #171d23;
  --panel: #1c242c;
  --ink: #e8e6e0;
  --ink-dim: #9aa3ab;
  --green: #38d75d;
  --orange: #d75d38;
  --beige: #e2d2ae;
  --violet: #5d38d7;
  --pink: #d73862;
  --line: #2a333d;
  --radius: 14px;
  --glow: #38d75d; /* couleur ambiante pilotée par main.js */
}

@font-face
{
  font-family: rubik;
  src: url(/assets/fonts/Rubik.ttf);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: rubik, sans-serif; /* "Segoe UI", system-ui, -apple-system, sans-serif;*/
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== FOND MOUVANT (toute la page) ===== */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; background: var(--glow); }
.blob.b1 { width: 45vw; height: 45vw; top: -15vh; right: -10vw; animation: drift1 26s ease-in-out infinite alternate; }
.blob.b2 { width: 30vw; height: 30vw; bottom: -10vh; left: -8vw; animation: drift2 32s ease-in-out infinite alternate; }
.blob.b3 { width: 22vw; height: 22vw; top: 45vh; left: 45vw; opacity: 0.18; animation: drift3 21s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-12vw, 10vh) scale(1.2); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(14vw, -12vh) scale(0.9); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(-18vw, 14vh); } }

.seed {
  position: absolute;
  background: var(--glow);
  opacity: 0.45;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
@keyframes rise {
  0%   { transform: translate(0, 105vh) rotate(0deg); opacity: 0; }
  8%   { opacity: .45; }
  92%  { opacity: .45; }
  100% { transform: translate(var(--dx, 30px), -8vh) rotate(320deg); opacity: 0; }
}
.seed.s1 { width: 9px;  height: 13px; left: 12%; animation-duration: 17s; --dx: 60px;  animation-delay: 0s; }
.seed.s2 { width: 12px; height: 17px; left: 28%; animation-duration: 23s; --dx: -50px; animation-delay: 4s; }
.seed.s3 { width: 7px;  height: 10px; left: 41%; animation-duration: 15s; --dx: 40px;  animation-delay: 8s; }
.seed.s4 { width: 11px; height: 15px; left: 58%; animation-duration: 26s; --dx: -70px; animation-delay: 2s; }
.seed.s5 { width: 9px;  height: 13px; left: 72%; animation-duration: 19s; --dx: 30px;  animation-delay: 11s; }
.seed.s6 { width: 13px; height: 18px; left: 86%; animation-duration: 28s; --dx: -40px; animation-delay: 6s; }
.seed.s7 { width: 6px;  height: 9px;  left: 33%; animation-duration: 14s; --dx: 50px;  animation-delay: 13s; }
.seed.s8 { width: 10px; height: 14px; left: 66%; animation-duration: 21s; --dx: -60px; animation-delay: 9s; }

/* ===== BARRE DE PROGRESSION DE LECTURE (pages article) ===== */
.read-progress {
  position: fixed;
  top: 0; left: 88px; right: 0;
  height: 3px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.read-progress.visible { opacity: 1; }
.read-progress span {
  display: block; height: 100%; width: 0;
  background: var(--beige);
  box-shadow: 0 0 10px rgba(226, 210, 174, 0.6);
  transition: width 0.1s linear;
}

/* ===== NAVIGATION LATÉRALE ===== */
nav {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 88px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 8px;
  z-index: 100;
}
.nav-logo {
  width: 65px; height: 65px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.nav-logo img {
  width: 65px; height: 65px;
}
.nav-link {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--beige);
}
/*.nav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }*/
/*.nav-link:hover { color: var(--ink); background: var(--panel); }*/
/*.nav-link.active { color: var(--green); background: rgba(56, 215, 93, 0.14); }*/
.nav-link img.nav-ico {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s;
}
.nav-link:hover img.nav-ico,
.nav-link.active img.nav-ico {
  filter: none;
}
.nav-spacer { flex: 1; }
.nav-lang { font-size: 10px; color: var(--ink-dim); display: flex; gap: 6px; cursor: pointer; }
.nav-lang b { color: var(--green); }

main { margin-left: 88px; position: relative; }

/* ===== SECTIONS GÉNÉRIQUES ===== */
section { padding: 90px 8vw 70px; max-width: 1100px; margin: 0 auto; }
section.separated { border-top: 1px dashed var(--line); }
.section-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sec-accent, var(--green));
  margin-bottom: 10px;
  font-weight: 600;
}
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-intro { color: var(--ink-dim); max-width: 640px; margin-bottom: 40px; }

.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

#articles    { --sec-accent: var(--beige); }
#games       { --sec-accent: var(--orange); }
#terro       { --sec-accent: var(--violet); }
#engrainage  { --sec-accent: var(--pink); }
#liens       { --sec-accent: var(--green); }
.page-hero   { --sec-accent: var(--beige); min-height: 40vh; display: flex; flex-direction: column; justify-content: center; }

/* ===== HERO ACCUEIL ===== */
#accueil { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; --sec-accent: var(--green); }
.hero-flex { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title span { color: var(--green); text-shadow: 0 0 30px rgba(56, 215, 93, 0.45); }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--ink-dim); max-width: 520px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  border: none;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--sec-accent, var(--green));
  color: #10240a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 22px 0 color-mix(in srgb, var(--sec-accent, var(--green)) 45%, transparent);
}
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.hero-portrait {
  aspect-ratio: 1/1;
  max-width: 340px;
  width: 100%;
  justify-self: center;
  border-radius: 50%;
  border: 2px solid var(--green);
  box-shadow: 0 0 40px rgba(56, 215, 93, 0.3), inset 0 0 0 6px var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  background: radial-gradient(circle at 35% 28%, #2a4a35, #17231b);
  position: relative;
  overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait .ph-label {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(232,230,224,0.45);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  font-size: 12px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }

/* ===== FILTRES ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
#articles .filter-btn:hover, .page-articles .filter-btn:hover { color: var(--ink); border-color: var(--beige); }
#games .filter-btn:hover, .page-games .filter-btn:hover { color: var(--ink); border-color: var(--orange); }
#articles .filter-btn.active, .page-articles .filter-btn.active {
  background: var(--beige); border-color: var(--beige); color: #3a3018;
  box-shadow: 0 4px 16px rgba(226, 210, 174, 0.3);
}
#games .filter-btn.active, .page-games .filter-btn.active {
  background: var(--orange); border-color: var(--orange); color: #fff;
  box-shadow: 0 4px 16px rgba(215, 93, 56, 0.35);
}

/* ===== GRILLES + PAGINATION ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid > .filtered-out { display: none; }
.pager { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin-top: 30px; min-height: 44px; }
.pager-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-dim);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  justify-self: center;
}
.pager-arrow:not(:disabled):hover { color: var(--ink); border-color: var(--sec-accent, var(--green)); transform: scale(1.08); }
.pager-arrow:disabled { opacity: 0.25; cursor: default; }
.pager-dots { display: flex; justify-content: center; align-items: center; gap: 10px; }
.pager-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.pager-dot:hover { background: var(--ink-dim); }
.pager-dot.current {
  background: var(--sec-accent, var(--green));
  box-shadow: 0 0 8px color-mix(in srgb, var(--sec-accent, var(--green)) 60%, transparent);
  transform: scale(1.25);
  cursor: default;
}
.pager.single-page .pager-arrows, .pager.single-page .pager-dots { visibility: hidden; }

/* ===== CARTES ARTICLE ===== */
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-card:hover {
  border-color: var(--beige);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(226, 210, 174, 0.08);
}
.cat-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.cat-devlog   { background: rgba(226, 210, 174, 0.16); color: var(--beige); border: 1px solid rgba(226, 210, 174, 0.4); }
.cat-tech     { background: rgba(56, 215, 93, 0.14); color: var(--green); border: 1px solid rgba(56, 215, 93, 0.4); }
.cat-hardware { background: rgba(93, 56, 215, 0.2); color: #a58ff0; border: 1px solid rgba(93, 56, 215, 0.5); }
.cat-design   { background: rgba(215, 93, 56, 0.16); color: var(--orange); border: 1px solid rgba(215, 93, 56, 0.45); }
.article-date { font-size: 12px; color: var(--ink-dim); margin-bottom: 8px; padding-right: 76px; }
.article-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.article-card p { font-size: 13.5px; color: var(--ink-dim); }
.article-more { margin-top: 28px; }
.article-more a { color: var(--beige); text-decoration: none; font-weight: 600; }

/* ===== CARTES JEU ===== */
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(215, 93, 56, 0.12);
}
.game-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  position: relative;
}
.thumb-green { background: linear-gradient(160deg, #2a5a37, #18291c); }
.thumb-teal  { background: linear-gradient(160deg, #2a5556, #1c3334); }
.thumb-brown { background: linear-gradient(160deg, #5a4430, #33261c); }
.thumb-mix   { background: linear-gradient(150deg, #4a3a63, #26203a 50%, #63243d); }
.status-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
}
.st-release { background: var(--green); color: #10240a; }
.st-wip     { background: var(--orange); color: #fff; }
.st-jam     { background: var(--pink); color: #fff; }
.game-body { padding: 16px 18px 20px; }
.game-body h3 { font-size: 17px; margin-bottom: 6px; }
.game-body p { font-size: 13px; color: var(--ink-dim); }
.game-more { margin-top: 28px; }
.game-more a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* ===== GALERIE DE CAPTURES (cartes jeu) ===== */
.game-thumb { position: relative; }

.gc-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.gc-slide.gc-active { opacity: 1; }

.gc-controls {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gc-live .gc-controls { opacity: 1; pointer-events: auto; }
/* Voile léger : rend les contrôles lisibles sur n'importe quel screenshot */
.gc-controls::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 14, 18, 0.45);
  z-index: -1;
}

.gc-arrow, .gc-zoom {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23, 29, 35, 0.88);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
  padding: 0;
}
.gc-arrow:hover, .gc-zoom:hover {
  background: var(--orange); border-color: var(--orange);
  color: #fff; transform: scale(1.1);
}
.gc-arrow.gc-prev { position: absolute; left: 8px; }
.gc-arrow.gc-next { position: absolute; right: 8px; }

.gc-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.gc-live .gc-dots { opacity: 1; pointer-events: auto; }
.gc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s;
}
.gc-dot:hover { background: #fff; }
.gc-dot.current { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.8); transform: scale(1.25); cursor: default; }

/* Badge de statut au-dessus des slides */
.gc-carousel .status-badge { z-index: 4; }

/* Bouton play — coin bas-droit de la zone description */
.game-body { position: relative; padding-bottom: 56px; }
.gc-play {
  position: absolute; right: 14px; bottom: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(215, 93, 56, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.gc-play:hover { transform: scale(1.12); background: #e56a43; }

/* Lightbox (zoom plein écran) */
.gc-lightbox {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(8, 10, 13, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.gc-lightbox.open { opacity: 1; pointer-events: auto; }
.gc-lightbox img {
  max-width: 92vw; max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

/* Flèches de la lightbox */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(23, 29, 35, 0.88);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
  padding: 0;
  z-index: 1;
}
.lb-arrow:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-50%) scale(1.1); }
.lb-arrow.lb-prev { left: 18px; }
.lb-arrow.lb-next { right: 18px; }

/* Compteur discret "2 / 5" en bas */
.lb-count {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(232, 230, 224, 0.7);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Tactile : pas de survol → contrôles et dots toujours visibles/cliquables */
@media (hover: none) {
  .gc-controls, .gc-dots { opacity: 1; pointer-events: auto; }
}

/* ===== PAGE ARTICLE (détail) ===== */
.article-view { max-width: 720px; margin: 0 auto; }
.av-meta { color: var(--ink-dim); font-size: 14px; margin-bottom: 12px; }
.av-meta .av-cat { color: var(--beige); font-weight: 600; }
.article-view h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin-bottom: 28px; }
.av-lead { font-size: 19px; color: var(--ink); margin-bottom: 28px; }
.av-lead::first-letter {
  color: var(--beige);
  font-weight: 800;
  font-size: 1.6em;
  line-height: 0;
  padding-right: 4px;
}
.body-p { margin-bottom: 20px; font-size: 16px; color: #cfcfd4; }
.av-quote {
  border-left: 3px solid var(--beige);
  padding: 8px 0 8px 22px;
  margin: 30px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--beige);
}
.av-code {
  background: #0d1116;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13.5px;
  white-space: pre;      /* préserve les retours à la ligne */
  overflow-x: auto;
  line-height: 1.7;
  color: var(--ink);
}
.av-code .k { color: var(--pink); }
.av-code .t { color: var(--green); }
.av-code .c { color: var(--ink-dim); }
.av-code .s { color: var(--orange); }
.av-fig { margin: 32px 0; }
.av-fig img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.av-fig figcaption {
  font-size: 13px;
  color: var(--ink-dim);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
}
.av-footer { margin-top: 60px; padding-top: 40px; border-top: 1px dashed var(--line); }
.av-footer .btn-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.back-link { color: var(--beige); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-block; margin-bottom: 30px; }
.next-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-dim);
  margin-bottom: 20px;
  font-weight: 600;
}
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ===== PROJETS PHARES ===== */
.feature-project { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.project-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 70px;
  position: relative;
  overflow: hidden;
}
.project-visual img {
  max-width: 100%;
}
.pv-terro {
  background: radial-gradient(circle at 30% 25%, rgba(93, 56, 215, 0.55), transparent 60%),
              linear-gradient(150deg, #26203a, #1a1626 60%, #14102a);
  box-shadow: inset 0 0 60px rgba(93, 56, 215, 0.35);
}
.pv-engrainage {
  background: radial-gradient(circle at 70% 30%, rgba(215, 56, 98, 0.45), transparent 55%),
              linear-gradient(150deg, #3a2028, #24161c 55%, #2a1420);
  box-shadow: inset 0 0 60px rgba(215, 56, 98, 0.3);
}
.project-visual .tagline {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 2px;
}
.project-text h3 { font-size: 30px; margin-bottom: 12px; }
.project-text p { color: var(--ink-dim); margin-bottom: 20px; }
.spec-list { list-style: none; margin-bottom: 24px; }
.spec-list li { padding-left: 26px; position: relative; font-size: 14px; margin-bottom: 8px; }
.spec-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--sec-accent); }
#terro .btn-primary { color: #fff; background: var(--violet); box-shadow: 0 6px 24px rgba(93, 56, 215, 0.4); }
#engrainage .btn-primary { color: #fff; background: var(--pink); box-shadow: 0 6px 24px rgba(215, 56, 98, 0.4); }

/* ===== LIENS ===== */
.links-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.link-pill:hover { border-color: var(--green); background: rgba(56, 215, 93, 0.08); transform: translateY(-2px); }
.link-ico {
  width: 18px; height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

footer {
  margin-left: 88px;
  border-top: 1px solid var(--line);
  padding: 30px 8vw;
  color: var(--ink-dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-flex { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait { max-width: 220px; }
}
@media (max-width: 720px) {
  nav {
    top: auto; bottom: 0;
    width: 100%; height: 64px;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 6px;
    justify-content: space-around;
  }
  .nav-logo, .nav-spacer, .nav-lang { display: none; }
  .nav-link { width: auto; flex: 1; height: 52px; }
  main, footer { margin-left: 0; }
  .feature-project { grid-template-columns: 1fr; }
  section { padding: 60px 6vw 50px; }
  body { padding-bottom: 64px; }
  .read-progress { left: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .article-date { padding-right: 0; margin-top: 26px; }
  .cat-badge { top: auto; bottom: 14px; right: 14px; }
}