/* mtc-portfolio — Page Architecture IA (extrait de l'inline) */
:root {
  --dark:     #1B0442;
  --primary:  #5818FF;
  --teal:     #00D8A2;
  --lavender: #E6DEFA;
  --light:    #F8F5FF;
  --white:    #FFFFFF;
  --text:     #1B0442;
  --grey:     #6B7280;
  --purple:   #7C3AED;
  --blue:     #2563EB;
  --red:      #DC2626;
  --shadow:   0 2px 16px rgba(27,4,66,0.10);
  --shadow-lg:0 18px 50px -12px rgba(27,4,66,0.35);
  --radius:   14px;
  --grad-accent: linear-gradient(120deg, var(--teal) 0%, var(--primary) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 128px; }
/* Offset d'arrivée des ancres (sous la nav interne sticky) */
section[id] { scroll-margin-top: 110px; }

/* Fond de base sombre sur tout le document (évite toute bande claire au scroll) */
html { background: #0c0820; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: transparent;           /* laisse voir le fond coloré .cv-bg */
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ══ Fond coloré « Liquid Glass » (cohérent avec accueil & Parcours) ══
   Dégradé profond #0c0820 + blobs vifs flous animés. Le verre des cartes
   réfracte ces couleurs. Mêmes valeurs que home.css / cv.css. */
.cv-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #2a1457 0%, #160a2e 45%, #0c0820 100%);
}
.cv-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}
.cv-blob-1 { width: 42vw; height: 42vw; left: -6vw;  top: 4vh;
  background: radial-gradient(circle at 35% 35%, #ff7a3c, #d6224e 70%);
  animation: cv-blob-a 26s ease-in-out infinite alternate; }
.cv-blob-2 { width: 40vw; height: 40vw; right: -8vw; top: -6vh;
  background: radial-gradient(circle at 50% 50%, #c026d3, #7c3aed 72%);
  animation: cv-blob-b 30s ease-in-out infinite alternate; }
.cv-blob-3 { width: 38vw; height: 38vw; left: 14vw;  bottom: -10vh;
  background: radial-gradient(circle at 50% 50%, #2563eb, #1e3a8a 72%);
  animation: cv-blob-c 28s ease-in-out infinite alternate; }
.cv-blob-4 { width: 34vw; height: 34vw; right: 4vw;  bottom: -6vh;
  background: radial-gradient(circle at 50% 50%, #06b6d4, #0e7490 72%);
  animation: cv-blob-a 32s ease-in-out infinite alternate-reverse; }
.cv-blob-5 { width: 30vw; height: 30vw; left: 38vw;  top: 30vh;
  background: radial-gradient(circle at 50% 50%, #f59e0b, #ec4899 72%);
  animation: cv-blob-b 24s ease-in-out infinite alternate-reverse; }
@keyframes cv-blob-a { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(8vw,6vh) scale(1.15)} }
@keyframes cv-blob-b { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-7vw,8vh) scale(1.1)} }
@keyframes cv-blob-c { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(6vw,-7vh) scale(1.12)} }
@media (prefers-reduced-motion: reduce) { .cv-blob { animation: none; } }

/* ── Barre de progression de lecture ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--primary));
  z-index: 200;
  transition: width 0.1s linear;
}

/* La zone plein écran (.fs-zone / .fs-btn / .fs-arrow) et la nav commune
   (.site-nav / .nav-right) sont stylées dans style.css — plus de duplication ici. */

/* ── Icônes SVG ── */
svg.ico { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ── Reveal au scroll ── */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .timeline .tl-step,
  .timeline .tl-connector { opacity: 1 !important; transform: none !important; transition: none; }
  .timeline::after,
  .timeline.run .tl-icon::after { animation: none; }
  .timeline::after { display: none; }
}

/* ── Header (hero) ──────────────────────────────────────────────
   Transparent : laisse voir le fond coloré .cv-bg (comme les hero des
   autres pages). Le titre reste en dégradé clair, le canvas par-dessus. */
.header {
  position: relative;
  background: transparent;
  padding: 5.5rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
}
.header > *:not(#heroCanvas) { position: relative; z-index: 1; }
/* Canvas constellation derrière le titre */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.header-logo {
  display: inline-block;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0,216,162,0.3);
  border-radius: 999px;
  background: rgba(0,216,162,0.06);
}
.header h1 {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(120deg, #FFFFFF 0%, #E6DEFA 60%, #5EEAD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.12;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,0.35));
}
.header .subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

/* ── Bande chiffres clés (surface de contenu — matériau opaque) ── */
.stats-band {
  max-width: 960px;
  margin: 0.5rem 2rem 0;
  margin-inline: max(2rem, calc(50% - 480px));
  border-radius: 20px;
  background: var(--surface-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: var(--surface-border);
  box-shadow:
    var(--surface-bezel),
    0 18px 44px -22px rgba(0,0,0,0.5);
}
.stats-inner {
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 680px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}
.stat {
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: -0.5rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 680px) {
  .stat:nth-child(odd) + .stat::before { display: none; }
}
.stat-value {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  background: linear-gradient(120deg, #5EEAD4 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.72);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ── Nav interne (ancres de section) — LIQUID GLASS ── */
.nav {
  position: sticky;
  top: 0.9rem;          /* remontée : juste sous le bord haut */
  z-index: 95;
  margin-top: 1rem;
  max-width: 960px;
  margin: 1.5rem auto 0;
  margin-inline: max(2rem, calc(50% - 480px));
  border-radius: 999px;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(12px) saturate(160%) brightness(1.05);
  backdrop-filter: blur(12px) saturate(160%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 14px 36px -20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.45);
  overflow-x: auto;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .nav {
    -webkit-backdrop-filter: blur(8px) url(#liquid-glass) saturate(160%) brightness(1.05);
    backdrop-filter: blur(8px) url(#liquid-glass) saturate(160%) brightness(1.05);
  }
}
.nav::-webkit-scrollbar { display: none; }
.nav { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.2); }

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0 3rem;
}
section + section {
  border-top: none;
}
/* La section #tokens (.dark) reste transparente comme les autres pour laisser
   voir le fond coloré ; on conserve juste le curseur lumineux (piloté par le JS). */
section.dark {
  position: relative;
  background: transparent;
  border-top: none;
  overflow: hidden;
}
section.dark .container { position: relative; z-index: 1; }
/* Curseur lumineux qui suit la souris (effet de profondeur) */
section.dark .cursor-glow {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,0.12) 0%, rgba(88,24,255,0.08) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  left: 0; top: 0;
  will-change: transform;
}

/* Titres de section en clair (fond coloré sombre) */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: 0.5rem 0 0.5rem 0;
}
/* Rail de base (statique) */
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--primary) 40%, #7C3AED 65%, var(--red) 85%, var(--teal));
  opacity: 0.28;
}
/* Flux lumineux animé qui descend le long du rail */
.timeline::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(94,234,212,0) 8%,
    var(--teal) 16%,
    #fff 20%,
    var(--teal) 24%,
    rgba(94,234,212,0) 34%,
    transparent 50%);
  background-size: 100% 280%;
  filter: drop-shadow(0 0 6px rgba(94,234,212,0.8));
  animation: tl-flow 4.14s linear infinite;
  pointer-events: none;
}
@keyframes tl-flow {
  0%   { background-position: 0 180%; }
  100% { background-position: 0 -120%; }
}

.tl-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  /* Visible par défaut (robuste). L'effet de cascade ne joue que si .timeline
     reçoit la classe .anim (posée par le JS quand il observe l'entrée). */
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
              transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.timeline.anim .tl-step { opacity: 0; transform: translateY(34px); }
.timeline.anim.run .tl-step { opacity: 1; transform: none; }
/* Cascade : chaque étape apparaît après la précédente */
.timeline .tl-step:nth-child(1)  { transition-delay: 0.05s; }
.timeline .tl-step:nth-child(3)  { transition-delay: 0.20s; }
.timeline .tl-step:nth-child(5)  { transition-delay: 0.35s; }
.timeline .tl-step:nth-child(7)  { transition-delay: 0.50s; }
.timeline .tl-step:nth-child(9)  { transition-delay: 0.65s; }
.timeline .tl-step:nth-child(11) { transition-delay: 0.80s; }
.timeline .tl-step:nth-child(13) { transition-delay: 0.95s; }
/* Connecteurs aussi en cascade */
.timeline .tl-connector {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.timeline.run .tl-connector { opacity: 1; transform: none; }
.timeline.run .tl-connector:nth-child(2)  { transition-delay: 0.15s; }
.timeline.run .tl-connector:nth-child(4)  { transition-delay: 0.30s; }
.timeline.run .tl-connector:nth-child(6)  { transition-delay: 0.45s; }
.timeline.run .tl-connector:nth-child(8)  { transition-delay: 0.60s; }
.timeline.run .tl-connector:nth-child(10) { transition-delay: 0.75s; }
.timeline.run .tl-connector:nth-child(12) { transition-delay: 0.90s; }
.tl-step:last-child { margin-bottom: 0; }

.tl-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255,255,255,0.12);
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
/* Halo qui pulse autour de chaque icône */
.tl-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  z-index: -1;
}
.timeline.run .tl-icon::after { animation: tl-pulse 2.8s ease-out infinite; }
.tl-icon.c-user::after, .tl-icon.c-go::after  { color: var(--teal); }
.tl-icon.c-lead::after                        { color: var(--primary); }
.tl-icon.c-review::after                       { color: var(--red); }
.tl-icon.c-dispatch::after, .tl-icon.c-workers::after, .tl-icon.c-pr::after { color: #7C3AED; }
@keyframes tl-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
/* Décalage du pulse par étape pour un effet vivant non synchronisé */
.timeline.run .tl-step:nth-child(3)  .tl-icon::after { animation-delay: 0.4s; }
.timeline.run .tl-step:nth-child(5)  .tl-icon::after { animation-delay: 0.8s; }
.timeline.run .tl-step:nth-child(7)  .tl-icon::after { animation-delay: 1.2s; }
.timeline.run .tl-step:nth-child(9)  .tl-icon::after { animation-delay: 1.6s; }
.timeline.run .tl-step:nth-child(11) .tl-icon::after { animation-delay: 2.0s; }
.timeline.run .tl-step:nth-child(13) .tl-icon::after { animation-delay: 2.4s; }
.tl-step:hover .tl-icon { transform: scale(1.12); }
.tl-icon svg { width: 24px; height: 24px; }
.tl-icon.c-dispatch svg, .tl-icon.c-workers svg, .tl-icon.c-pr svg { color: #C4B5FD; }
.tl-icon.c-user    { background: var(--teal); }
.tl-icon.c-lead    { background: var(--primary); }
.tl-icon.c-dispatch{ background: #0F0A1E; border-color: rgba(255,255,255,0.25); }
.tl-icon.c-workers { background: #1a0f3a; border-color: rgba(255,255,255,0.25); }
.tl-icon.c-pr      { background: #1a0f3a; border-color: rgba(255,255,255,0.25); }
.tl-icon.c-review  { background: var(--red); }
.tl-icon.c-go      { background: var(--teal); }

.tl-connector {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  margin-left: 28px;
  flex-shrink: 0;
}

.tl-body {
  flex: 1;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.tl-actor {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  opacity: 0.65;
}
.tl-actor.c-user    { color: var(--teal); }
.tl-actor.c-lead    { color: #A78BFA; }
.tl-actor.c-workers { color: #C4B5FD; }
.tl-actor.c-review  { color: #FCA5A5; }
.tl-actor.c-go      { color: var(--teal); }

.tl-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.tl-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.tl-quote {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  font-style: italic;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 0.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.tl-tag {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #C4B5FD;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
}
.tl-tag.green { color: #6EE7B7; background: rgba(110,231,183,0.07); border-color: rgba(110,231,183,0.2); }
.tl-tag.blue  { color: #93C5FD; background: rgba(147,197,253,0.07); border-color: rgba(147,197,253,0.2); }
.tl-tag.teal  { color: #5EEAD4; background: rgba(94,234,212,0.07); border-color: rgba(94,234,212,0.2); }

/* ════ Timeline redesign — carte épurée par étape (surface de contenu — matériau opaque) ════ */
.tl-card {
  --accent: #A78BFA;
  position: relative;
  /* Verre semi-opaque clair teinté de l'accent de la brique — standardisé avec
     les pastilles du Parcours et les piliers de l'Accueil. */
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,0.16)) 0%,
      rgba(255,255,255,0.12) 55%,
      color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.10)) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 0.4rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 12px 30px -20px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.25s ease, background 0.25s ease;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .tl-card {
    -webkit-backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
    backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
  }
}
.tl-card::before {        /* liseré d'accent à gauche */
  content: '';
  position: absolute;
  left: 0; top: 1.1rem; bottom: 1.1rem;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.tl-card::after {         /* halo d'accent diffus, coin haut-droit */
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: 0.10;
  pointer-events: none;
}
.tl-card:hover {
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.28);
}
.tl-card.c-user    { --accent: #00D8A2; }
.tl-card.c-lead    { --accent: #A78BFA; }
.tl-card.c-dispatch{ --accent: #C4B5FD; }
.tl-card.c-workers { --accent: #818CF8; }
.tl-card.c-review  { --accent: #FCA5A5; }
.tl-card.c-go      { --accent: #5EEAD4; }

/* Badge acteur (pop-up animé) */
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.tl-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
}
.timeline.run .tl-card .tl-badge .dot { animation: badge-ping 2.6s ease-out infinite; }
@keyframes badge-ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.tl-card-title {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}
.tl-card-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Bulle de chat */
.tl-chat {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
}
.tl-chat-avatar {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 22%, #1B0442);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}
.tl-chat-avatar svg { width: 15px; height: 15px; }
.tl-chat-bubble {
  position: relative;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px 12px 12px 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  max-width: 100%;
}
.tl-chat-bubble code {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* Encart code habillé */
.tl-code {
  margin-top: 0.9rem;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  line-height: 1.7;
}
.tl-code .line { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.55); }
.tl-code .line::before {
  content: '›';
  color: var(--accent);
  font-weight: 700;
}
.tl-code .line code { color: #C4B5FD; }

/* Étape 4 — duo de Workers parallèles mis en valeur */
.tl-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .tl-duo { grid-template-columns: 1fr; }
  .tl-duo-link { display: none; }
}
.tl-worker {
  --waccent: #818CF8;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 3px solid var(--waccent);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.tl-worker.ui      { --waccent: #A78BFA; }
.tl-worker.backend { --waccent: #60A5FA; }
.tl-worker-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.tl-worker-head .wdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--waccent);
  box-shadow: 0 0 8px var(--waccent);
}
.tl-worker-name {
  font-family: 'Kanit', sans-serif;
  font-weight: 600; font-size: 0.92rem; color: #fff;
}
.tl-worker-list {
  list-style: none; margin: 0; padding: 0;
  font-size: 0.78rem; color: rgba(255,255,255,0.72); line-height: 1.55;
}
.tl-worker-list li {
  display: flex; gap: 0.45rem; align-items: baseline;
  margin-bottom: 0.2rem;
}
.tl-worker-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--waccent);
  transform: translateY(0.45em);
}
/* Connecteur central "parallèle" */
.tl-duo-link {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.25rem;
  padding: 0 0.2rem;
}
.tl-duo-link .bars {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #C4B5FD;
  letter-spacing: -1px;
}
.tl-duo-link .lbl {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  writing-mode: horizontal-tb;
}
.timeline.run .tl-duo-link .bars { animation: duo-pulse 1.8s ease-in-out infinite; }
@keyframes duo-pulse {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline.run .tl-card .tl-badge .dot { animation: none; }
  .timeline.run .tl-duo-link .bars { animation: none; }
}

/* Workers parallèles */
.tl-parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .tl-parallel { grid-template-columns: 1fr; }
}
.tl-parallel-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}
.tl-parallel-card.ui-card     { border-top: 2px solid #7C3AED; }
.tl-parallel-card.backend-card{ border-top: 2px solid var(--blue); }
.tl-parallel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.tl-parallel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tl-parallel-dot.ui      { background: #7C3AED; }
.tl-parallel-dot.backend { background: var(--blue); }
.tl-parallel-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
}
.tl-parallel-task {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
}

/* Wrapper de la timeline (surface de contenu — matériau opaque) */
.timeline-wrap {
  position: relative;
  /* Grand cadre en Liquid Glass transparent : on voit le fond coloré à travers. */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 2rem 2rem 1.75rem 1.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .timeline-wrap {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}

/* ── Diagramme d'architecture animé ── */
.archi-stage {
  position: relative;
  border-radius: 22px;
  /* Grand cadre Liquid Glass transparent (standardisé avec Accueil / Parcours /
     Flux global) : on voit le fond coloré à travers. */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.5rem 1rem;
  overflow: hidden;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .archi-stage {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
.archi-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(88,24,255,0.30) 0%, transparent 60%),
    radial-gradient(40% 60% at 80% 70%, rgba(0,216,162,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.archi-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
/* Flux : trait pointillé qui défile */
.flow-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  animation: flow-dash 1s linear infinite;
}
.flow-path.teal   { stroke: rgba(94,234,212,0.55); }
.flow-path.purple { stroke: rgba(167,139,250,0.55); }
.flow-path.blue   { stroke: rgba(96,165,250,0.55); }
.flow-path.red    { stroke: rgba(252,165,165,0.55); }
@keyframes flow-dash { to { stroke-dashoffset: -16; } }
/* Halo statique sous le trait */
.flow-rail {
  fill: none;
  stroke: rgba(255,255,255,0.10);
  stroke-width: 4;
  stroke-linecap: round;
}
/* Paquet de données qui circule */
.flow-packet { filter: drop-shadow(0 0 5px currentColor); }
/* Nœuds */
.node-box {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1.5;
}
.node-glow { transform-box: fill-box; transform-origin: center; }
.node-label {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  fill: #fff;
}
.node-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  fill: rgba(255,255,255,0.5);
  font-weight: 500;
}
.node-pulse {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3s ease-out infinite;
}
@keyframes node-pulse {
  0%   { opacity: 0.5; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(1.6); }
}
/* Légende */
.archi-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.archi-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
}
.archi-legend i {
  width: 18px; height: 3px; border-radius: 3px; display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .flow-path { animation: none; }
  .flow-packet { display: none; }
  .node-pulse { animation: none; opacity: 0; }
}

/* ── Agent cards ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  perspective: 1000px;
  /* Grand cadre Liquid Glass transparent (standardisé) */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.5rem;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .agents-grid {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
@media (max-width: 680px) {
  .agents-grid { grid-template-columns: 1fr; padding: 1.1rem; border-radius: 22px; }
}

.agent-card {
  --accent: var(--primary);
  position: relative;
  overflow: hidden;
  /* Verre clair teinté de l'accent du rôle (standardisé Accueil/Parcours) */
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,0.16)) 0%,
      rgba(255,255,255,0.12) 55%,
      color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.10)) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 18px 44px -22px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease, border-color 0.22s ease;
  transform-style: preserve-3d;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .agent-card {
    -webkit-backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
    backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
  }
}
/* Liseré d'accent en haut de carte */
.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.agent-card.tilting { transition: box-shadow 0.22s ease; }
.agent-card:not(.tilting):hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.5); }
.agent-card.ui:hover      { box-shadow: 0 24px 54px -18px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.6); }
.agent-card.backend:hover { box-shadow: 0 24px 54px -18px rgba(37,99,235,0.55),  inset 0 1px 0 rgba(255,255,255,0.6); }
.agent-card.review:hover  { box-shadow: 0 24px 54px -18px rgba(244,63,94,0.50),  inset 0 1px 0 rgba(255,255,255,0.6); }
.agent-card.ui      { --accent: #A78BFA; }
.agent-card.backend { --accent: #60A5FA; }
.agent-card.review  { --accent: #FCA5A5; }

.agent-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.agent-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,0.14));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,0.3));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.agent-dot svg     { width: 18px; height: 18px; }

.agent-name {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.agent-model {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.12rem 0.5rem 0.12rem 0.45rem;
}
.agent-model::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.agent-desc {
  position: relative;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.agent-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.agent-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 28%, rgba(255,255,255,0.12));
  border: 1px solid rgba(255,255,255,0.28);
}

/* ── Dispatch table (surface de contenu — matériau opaque) ── */
.dispatch-table {
  width: 100%;
  border-collapse: collapse;
  /* Cadre Liquid Glass transparent autour du tableau (standardisé) */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .dispatch-table {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
.dispatch-table th {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.dispatch-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  vertical-align: top;
}
.dispatch-table td strong { color: #fff; }
.dispatch-table tbody tr { transition: background 0.15s ease; }
.dispatch-table tr:last-child td { border-bottom: none; }
.dispatch-table tr:nth-child(even) td { background: rgba(255,255,255,0.04); }
.dispatch-table tbody tr:hover td { background: rgba(255,255,255,0.1); }
/* Pastille de scan en début de ligne */
.dispatch-table td.dot-cell { width: 14px; padding-right: 0; }
.row-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 0.35rem;
}
.row-dot.multi  { background: #A78BFA; box-shadow: 0 0 8px rgba(167,139,250,0.7); }
.row-dot.single { background: #6EE7B7; box-shadow: 0 0 8px rgba(110,231,183,0.6); }
/* Tableau scrollable horizontalement sur mobile (évite le débordement de page) */
@media (max-width: 560px) {
  .dispatch-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.25);
}
.badge-multi  { background: rgba(167,139,250,0.22); color: #DDD6FE; }
.badge-single { background: rgba(110,231,183,0.18); color: #A7F3D0; }

/* ── Token costs ── */
.costs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  /* Grand cadre Liquid Glass transparent (standardisé) */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.5rem;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .costs-grid {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
@media (max-width: 680px) {
  .costs-grid { grid-template-columns: 1fr; padding: 1.1rem; border-radius: 22px; }
}

.cost-card {
  --accent: #6EE7B7;   /* défaut, surchargé par .green/.orange/.red ci-dessous */
  position: relative;
  overflow: hidden;
  /* Verre clair teinté de la couleur sémantique (vert/orange/rouge conservés) */
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,0.16)) 0%,
      rgba(255,255,255,0.12) 55%,
      color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.10)) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 18px 44px -22px color-mix(in srgb, var(--accent) 50%, transparent);
  text-align: center;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease, border-color 0.22s ease;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .cost-card {
    -webkit-backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
    backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
  }
}
/* Teinte du verre alignée sur la couleur du multiplicateur */
.cost-card:has(.cost-multiplier.green)  { --accent: #6EE7B7; }
.cost-card:has(.cost-multiplier.orange) { --accent: #FCD34D; }
.cost-card:has(.cost-multiplier.red)    { --accent: #FCA5A5; }
.cost-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 28px 56px -20px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cost-multiplier {
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 14px rgba(0,0,0,0.3);
}
.cost-multiplier.green  { color: #6EE7B7; }
.cost-multiplier.orange { color: #FCD34D; }
.cost-multiplier.red    { color: #FCA5A5; }

.cost-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cost-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
}

/* ── Git workflow (fenêtre terminal — surface de contenu — matériau opaque) ── */
.git-block {
  background: var(--surface-bg);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 18px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: var(--surface-border);
  box-shadow:
    var(--surface-bezel),
    0 18px 44px -22px rgba(0,0,0,0.6);
}
.git-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.git-dot { width: 12px; height: 12px; border-radius: 50%; }
.git-dot.r { background: #FF5F56; }
.git-dot.y { background: #FFBD2E; }
.git-dot.g { background: #27C93F; }
.git-titlebar .git-name {
  margin-left: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
}
.git-block pre.git-body { padding: 1.5rem 2rem; margin: 0; }
/* Bouton copier */
.copy-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-btn:hover { background: rgba(94,234,212,0.12); color: var(--teal); border-color: rgba(94,234,212,0.35); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.copied { color: #6EE7B7; border-color: rgba(110,231,183,0.4); }
.git-block pre {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #C4B5FD;
  white-space: pre;
  overflow-x: auto;
}
.git-block .c-green  { color: #6EE7B7; }
.git-block .c-blue   { color: #93C5FD; }
.git-block .c-yellow { color: #FDE68A; }
.git-block .c-grey   { color: rgba(255,255,255,0.35); }
.git-block .c-teal   { color: #5EEAD4; }
.git-block .c-red    { color: #FCA5A5; }

/* ── Rules ── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  /* Grand cadre Liquid Glass transparent (standardisé) */
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 18px 44px -22px rgba(0,0,0,0.5);
  padding: 1.5rem;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .rules-grid {
    -webkit-backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
    backdrop-filter: blur(10px) url(#liquid-glass) saturate(150%);
  }
}
@media (max-width: 680px) {
  .rules-grid { grid-template-columns: 1fr; padding: 1.1rem; border-radius: 22px; }
}

.rule-card {
  --accent: #C4B5FD;
  position: relative;
  overflow: hidden;
  /* Verre clair teinté violet (standardisé Accueil/Parcours) */
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,0.16)) 0%,
      rgba(255,255,255,0.12) 55%,
      color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,0.10)) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 16px 40px -22px color-mix(in srgb, var(--accent) 50%, transparent);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease, border-color 0.22s ease;
}
@supports (backdrop-filter: url(#liquid-glass)) {
  .rule-card {
    -webkit-backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
    backdrop-filter: blur(12px) url(#liquid-glass) saturate(155%);
  }
}
.rule-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 24px 50px -20px color-mix(in srgb, var(--accent) 55%, transparent);
}
.rule-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  color: #C4B5FD;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.rule-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.rule-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.55;
}

/* ── Notes de bas de section (paragraphes après git / tokens) ── */
#git > .container > p,
#tokens > .container > p {
  color: rgba(255,255,255,0.72) !important;
}
#git code {
  background: rgba(255,255,255,0.14) !important;
  color: #C4B5FD;
}

/* ── Footer ── */
.footer {
  background: transparent;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.8rem;
  margin-top: 3rem;
}
.footer strong { color: var(--teal); }

/* L'ancienne nav portfolio (.portfolio-nav / .pf-*) a été retirée : la page
   utilise désormais la nav commune .site-nav définie dans style.css. */
