/* ================================================================
   ECLIPSE — Système de design v2.1
   Palette sobre, typographie rigoureuse, animations élégantes
   ================================================================ */

/* Polices (Sora, Inter, JetBrains Mono) : chargees par <link> dans chaque page, avec preconnect. */

/* ── Aliases de compatibilité (pont v2 → v2.1) ──────────────────── */
:root {
  /* Surfaces — noms courts pour le reste du CSS */
  --bg-base:      var(--bg-900);
  --bg-surface:   var(--bg-800);
  --bg-raised:    var(--bg-700);
  --bg-overlay:   var(--bg-600);
  --bg-hover:     rgba(255,255,255,.05);
  --bg-active:    rgba(255,255,255,.08);
  /* Aliases v1 (rétro-compat modpacks / skins / mods) */
  --bg-card:      var(--bg-700);
  --bg-deep:      var(--bg-800);

  /* Texte */
  --tx-primary:   var(--text);
  --tx-secondary: var(--muted);
  --tx-muted:     var(--faint);
  --tx-invert:    var(--bg-900);

  /* Bordures */
  --bd-subtle:    var(--line);
  --bd-default:   var(--line);
  --bd-strong:    var(--line-strong);
  --bd-focus:     var(--focus);

  /* Action — alias courts */
  --accent-dim:   var(--accent-2-dim);
  --accent-text:  var(--accent-2);
  --cyan:         var(--accent-2);
  --cyan-dim:     var(--accent-2-dim);
  --cyan-text:    var(--accent-2);

  /* États sémantiques */
  --success:      var(--ok);
  --success-dim:  rgba(70,209,127,.12);
  --error:        var(--danger);
  --error-dim:    rgba(245,147,147,.12);
  --warning:      var(--warn);

  /* Ombres */
  --sh-sm:  var(--sh-1);
  --sh-md:  var(--sh-2);
  --sh-lg:  var(--sh-3);
  --sh-accent: var(--glow);

  /* Espacement étendu */
  --sp-10: 40px;
  --sp-12: var(--sp-7);
  --sp-16: var(--sp-8);
  --sp-24: 96px;

  /* Rayons extra */
  --r-xl:  var(--r-lg);
  --r-full: var(--r-pill);

  /* Typographie — noms courts pour le reste du CSS */
  --fs-xs:   var(--fs-label);
  --fs-sm:   var(--fs-meta);
  --fs-base: var(--fs-body);
  --fs-md:   var(--fs-sub);
  --fs-lg:   18px;
  --fs-xl:   var(--fs-title);
  --fs-2xl:  var(--fs-display);
  --fs-3xl:  48px;
  --fs-4xl:  64px;

  /* Transitions */
  --ease:     var(--e-out);
  --dur-fast: var(--d-fast);
  --dur-base: var(--d-base);
  --dur-slow: var(--d-slow);

  /* Largeur de contenu */
  --max-w: 1280px;
  --nav-h: 60px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-900);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: var(--fw-title); line-height: 1.2; }

/* ── Réduction de mouvement (gérée par eclipse-ui-v2.1.css) ─────── */

/* ── Scrollbar ──────────────────────────────────────────────────*/
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bd-strong); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--tx-muted); }

/* ── Focus ring ─────────────────────────────────────────────────*/
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
  transition: outline-color var(--dur-fast) var(--ease);
}

/* ── Icônes SVG (sprite officiel #i-*) ──────────────────────── */
.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
/* Alias rétrocompat */
.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.icon-sm, .ico-sm   { width: 14px; height: 14px; }
.icon-base,.ico-base{ width: 16px; height: 16px; }
.icon-md, .ico-md   { width: 18px; height: 18px; }
.icon-lg, .ico-lg   { width: 20px; height: 20px; }
.icon-xl, .ico-xl   { width: 24px; height: 24px; }

/* ── Fond nébuleuse discret ─────────────────────────────────── */
.nebula-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 12% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, var(--gold-dim) 0%, transparent 60%);
}

/* Grille très subtile */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Barre de progression scroll ───────────────────────────────*/
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-grad);
  z-index: 2000;
  transition: width .12s linear;
}

/* ── Wrapper de contenu ─────────────────────────────────────── */
.content-wrap {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
  background: color-mix(in srgb, var(--void) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--d-base) var(--e-out),
              background var(--d-base) var(--e-out);
}
.navbar.scrolled {
  background: color-mix(in srgb, var(--void) 92%, transparent);
  border-bottom-color: var(--line-strong);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: var(--fs-sub);
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
  transition: opacity var(--d-fast) var(--e-out);
}
.nav-logo:hover { opacity: .85; }
.nav-logo-mark {
  position: relative;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo-mark svg { color: var(--eclipse-cream); }
.nav-logo-name { font-family: var(--font-brand); font-weight: 700; }
.nav-logo-name em {
  font-style: normal;
  color: var(--accent-2);
}

/* Liens principaux */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: var(--sp-2);
}
.nav-link {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out),
              background var(--d-fast) var(--e-out);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: var(--sp-3); right: var(--sp-3);
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }

/* Recherche globale centrale */
.nav-search-wrap {
  flex: 1;
  max-width: 380px;
  margin: 0 var(--sp-4);
}
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-input {
  width: 100%;
  height: 36px;
  padding: 0 var(--sp-10) 0 var(--sp-8);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-meta);
  transition:
    border-color var(--d-fast) var(--e-out),
    box-shadow var(--d-fast) var(--e-out);
  outline: none;
}
.nav-search-input::placeholder { color: var(--faint); }
.nav-search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.nav-search-icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%; transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.nav-search-kbd {
  position: absolute;
  right: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--r-sm);
  background: var(--bg-700);
  border: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: var(--fw-meta);
  color: var(--faint);
  line-height: 1;
}

/* Actions droite */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  flex-shrink: 0;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-hover);
}
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 36px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--on-grad-accent);
  background: var(--grad-accent);
  border: 1px solid var(--btn-border);
  box-shadow: var(--sh-btn), var(--bevel);
  transition:
    filter var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out);
}
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent:active { filter: brightness(.94); transform: translateY(0); }

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.nav-hamburger:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* Drawer mobile */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  pointer-events: none;
}
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}
.nav-drawer-panel {
  position: relative;
  width: 280px;
  height: 100%;
  background: var(--bg-800);
  border-right: 1px solid var(--line);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transform: translateX(-100%);
  transition: transform var(--d-slow) var(--e-out);
  overflow-y: auto;
}
.nav-drawer.open { pointer-events: auto; }
.nav-drawer.open .nav-drawer-overlay { opacity: 1; }
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  margin-bottom: var(--sp-4);
  color: var(--faint);
  transition: color var(--d-fast) var(--e-out);
}
.drawer-close:hover { color: var(--text); }
.drawer-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sub);
  font-weight: var(--fw-body);
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.drawer-link:hover { color: var(--text); background: var(--bg-hover); }
.drawer-link.active { color: var(--accent); background: var(--accent-2-dim); }

/* ================================================================
   PALETTE DE COMMANDES (Cmd+K)
   ================================================================ */
.cmdpal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.cmdpal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cmdpal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transform: translateY(-8px) scale(.98);
  transition: transform var(--d-base) var(--e-out);
}
.cmdpal-overlay.open .cmdpal { transform: translateY(0) scale(1); }
.cmdpal-search {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.cmdpal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: var(--fs-sub);
  font-weight: var(--fw-body);
  color: var(--text);
  caret-color: var(--accent);
}
.cmdpal-input::placeholder { color: var(--faint); }
.cmdpal-results {
  max-height: 360px;
  overflow-y: auto;
  padding: var(--sp-2);
}
.cmdpal-group-label {
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--faint);
}
.cmdpal-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.cmdpal-item:hover,
.cmdpal-item.selected {
  background: var(--bg-hover);
}
.cmdpal-item.selected { background: var(--accent-2-dim); }
.cmdpal-item-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-600);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.cmdpal-item-title { font-size: var(--fs-body); font-weight: var(--fw-meta); color: var(--text); }
.cmdpal-item-sub { font-size: var(--fs-label); color: var(--faint); margin-top: 1px; }
.cmdpal-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
}
.cmdpal-hint {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-label);
  color: var(--faint);
}

/* ================================================================
   CARTES DE CONTENU (style Modrinth+)
   ================================================================ */
.content-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1), var(--bevel);
  transition:
    border-color var(--d-base) var(--e-out),
    background var(--d-base) var(--e-out),
    transform var(--d-base) var(--e-out),
    box-shadow var(--d-base) var(--e-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.content-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-600);
  transform: translateY(-3px);
  box-shadow: var(--sh-2), var(--bevel);
}
.content-card:active { transform: translateY(-1px); }

/* Icône carrée arrondie */
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-600);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: var(--fs-title);
  color: var(--muted);
  overflow: hidden;
  transition: border-color var(--d-fast) var(--e-out);
}
.content-card:hover .card-icon { border-color: var(--line-strong); }

.card-body { flex: 1; min-width: 0; }

.card-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
  flex-wrap: wrap;
}
.card-title {
  font-size: var(--fs-sub);
  font-weight: var(--fw-sub);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-author {
  font-size: var(--fs-label);
  color: var(--faint);
  white-space: nowrap;
}
.card-author a { color: var(--accent-2); }
.card-author a:hover { text-decoration: underline; }

.card-desc {
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  background: var(--bg-600);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color var(--d-fast) var(--e-out);
}
.tag:hover { border-color: var(--line-strong); color: var(--text); }
.tag-accent { background: var(--accent-2-dim); border-color: var(--line); color: var(--accent-2); }
.tag-cream  { background: var(--accent-2-dim); border-color: var(--line); color: var(--accent-2); }

.card-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.card-stat {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-label);
  color: var(--faint);
}
.card-stat .icon { color: var(--faint); }

/* Bouton d'action secondaire (visible au survol) */
.card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-600);
  border: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out),
    color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out);
}
.content-card:hover .card-action {
  opacity: 1;
  transform: translateX(0);
}
.card-action:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: var(--line-strong);
}
.card-action.active {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-2);
  background: var(--accent-2-dim);
  border-color: var(--line);
}

/* Vue liste */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.cards-grid.grid-view {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.cards-grid.grid-view .content-card {
  flex-direction: column;
}
.cards-grid.grid-view .card-icon {
  width: 100%; height: 80px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3);
  width: calc(100% + var(--sp-8));
}
.cards-grid.grid-view .card-action {
  align-self: flex-end;
  margin-top: var(--sp-2);
}

/* ── Skeleton loader ─────────────────────────────────────────── */
.skeleton {
  background: var(--bg-700);
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.04) 50%,
    transparent 100%
  );
  animation: shimmer 1.4s ease infinite;
  transform: translateX(-100%);
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
.skeleton-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.skel-icon { width: 56px; height: 56px; border-radius: var(--r-md); flex-shrink: 0; }
.skel-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); }
.skel-title { height: 16px; width: 60%; border-radius: var(--r-sm); }
.skel-sub   { height: 12px; width: 35%; border-radius: var(--r-sm); }
.skel-desc  { height: 12px; width: 100%; border-radius: var(--r-sm); }
.skel-desc2 { height: 12px; width: 80%;  border-radius: var(--r-sm); }

/* ================================================================
   HERO (index)
   ================================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-24) var(--sp-6) var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--accent-2-dim);
  border: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  color: var(--accent-2);
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-6);
  animation: fadeUp var(--d-slow) var(--e-out) both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(var(--fs-display), 6vw, 64px);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-5);
  animation: fadeUp var(--d-slow) 60ms var(--e-out) both;
}
.hero-title-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(var(--fs-sub), 2.5vw, var(--fs-lg));
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: var(--sp-10);
  animation: fadeUp var(--d-slow) 120ms var(--e-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp var(--d-slow) 180ms var(--e-out) both;
}

/* Boutons hero */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--on-grad-accent);
  background: var(--grad-accent);
  border: 1px solid var(--btn-border);
  box-shadow: var(--sh-btn), var(--bevel);
  transition: filter var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}
.btn-hero-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 44px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sub);
  font-weight: var(--fw-body);
  color: var(--muted);
  background: var(--bg-800);
  border: 1px solid var(--line);
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out);
}
.btn-hero-secondary:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--bg-700);
  transform: translateY(-1px);
}

/* Stats hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  animation: fadeUp var(--d-slow) 240ms var(--e-out) both;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat-val {
  font-family: var(--font);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.hero-stat-val .unit { color: var(--accent-2); font-size: .75em; }
.hero-stat-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
}
.hero-divider { width: 1px; height: 36px; background: var(--line); }

/* ================================================================
   LAYOUT COMMUN
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

section { padding: var(--sp-24) var(--sp-6); }

.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
}
.section-title {
  font-family: var(--font);
  font-size: clamp(var(--fs-title), 3vw, var(--fs-display));
  font-weight: var(--fw-title);
  letter-spacing: var(--ls-title);
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.section-sub {
  font-size: var(--fs-sub);
  color: var(--muted);
  max-width: 500px;
}
.section-header {
  margin-bottom: var(--sp-10);
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

/* Lien "voir tout" */
.link-all {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  color: var(--accent);
  white-space: nowrap;
  transition: gap var(--d-fast) var(--e-out);
}
.link-all:hover { gap: var(--sp-2); }

/* ================================================================
   RECHERCHE & FILTRES
   ================================================================ */
.search-bar-wrap {
  position: relative;
  margin-bottom: var(--sp-5);
}
.search-bar {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-12) 0 var(--sp-10);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--text);
  font-size: var(--fs-sub);
  outline: none;
  transition:
    border-color var(--d-fast) var(--e-out),
    box-shadow var(--d-fast) var(--e-out);
}
.search-bar::placeholder { color: var(--faint); }
.search-bar:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.search-bar-ico {
  position: absolute;
  left: var(--sp-3);
  top: 50%; transform: translateY(-50%);
  color: var(--tx-muted);
  pointer-events: none;
}
.search-bar-btn {
  position: absolute;
  right: var(--sp-2);
  top: 50%; transform: translateY(-50%);
  height: 32px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--on-grad-accent);
  background: var(--grad-accent);
  border: 1px solid var(--btn-border);
  transition: filter var(--d-fast) var(--e-out);
}
.search-bar-btn:hover { filter: brightness(1.06); }

/* Filtres rapides (chips) */
.filter-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 30px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  color: var(--muted);
  background: var(--bg-800);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
  white-space: nowrap;
}
.filter-chip:hover { color: var(--text); border-color: var(--line-strong); }
.filter-chip.active {
  color: var(--accent);
  background: var(--accent-2-dim);
  border-color: var(--line);
}
/* Bouton d'effacement du filtre */
.filter-chip .chip-rm {
  display: inline-flex;
  color: var(--accent-text);
  opacity: .7;
  margin-left: 2px;
  transition: opacity var(--dur-fast) var(--ease);
}
.filter-chip .chip-rm:hover { opacity: 1; }

/* Chips filtres actifs */
.active-filters {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  min-height: 30px;
}
.clear-filters {
  font-size: var(--fs-label);
  font-weight: var(--fw-meta);
  color: var(--faint);
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out);
}
.clear-filters:hover { color: var(--danger); }

/* Barre de contrôles (tri, vue, résultats) */
.controls-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}
.results-count {
  font-size: var(--fs-meta);
  color: var(--faint);
  margin-right: auto;
}
.results-count strong { color: var(--text); font-weight: var(--fw-sub); }

/* Select tri stylisé */
.sort-select {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 34px;
  padding: 0 var(--sp-3);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color var(--d-fast) var(--e-out), color var(--d-fast) var(--e-out);
}
.sort-select:hover { border-color: var(--line-strong); color: var(--text); }
.sort-select:focus { border-color: var(--accent); box-shadow: var(--glow); }
.sort-wrap {
  position: relative;
}
.sort-wrap .icon {
  position: absolute;
  right: var(--sp-2);
  top: 50%; transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

/* Toggle grille/liste */
.view-toggle {
  display: flex;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  color: var(--faint);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.view-btn + .view-btn { border-left: 1px solid var(--line); }
.view-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.view-btn.active { color: var(--accent-2); background: var(--accent-2-dim); }

/* ================================================================
   SIDEBAR DE FILTRES
   ================================================================ */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-6));
}
.sidebar-section {
  margin-bottom: var(--sp-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-800);
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out);
  user-select: none;
}
.sidebar-toggle:hover { color: var(--text); }
.sidebar-toggle .icon {
  transition: transform var(--d-base) var(--e-out);
  color: var(--faint);
}
.sidebar-section.collapsed .sidebar-toggle .icon { transform: rotate(-90deg); }
.sidebar-body {
  padding: 0 var(--sp-3) var(--sp-3);
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease);
}
.sidebar-section.collapsed .sidebar-body {
  max-height: 0 !important;
  opacity: 0;
  padding-bottom: 0;
}
.sidebar-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
  margin-bottom: 2px;
}
.sidebar-option:hover { color: var(--text); background: rgba(255,255,255,.05); }
.sidebar-option.active { color: var(--accent-2); background: var(--accent-2-dim); }
.sidebar-option-count {
  font-size: var(--fs-label);
  color: var(--faint);
}
.sidebar-option.active .sidebar-option-count { color: var(--accent-2); opacity: .7; }

/* Version chips dans sidebar */
.version-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
}
.version-chip {
  padding: 3px 10px;
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
}
.version-chip:hover { color: var(--text); border-color: var(--line-strong); }
.version-chip.active {
  color: var(--accent-2);
  background: var(--accent-2-dim);
  border-color: var(--line-strong);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-12);
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-800);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
}
.page-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--bg-700); }
.page-btn.active {
  color: var(--on-grad-accent);
  background: var(--grad-accent);
  border-color: var(--btn-border);
}

/* ================================================================
   FIL D'ARIANE
   ================================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-meta);
  color: var(--faint);
  margin-bottom: var(--sp-6);
}
.breadcrumb a { color: var(--faint); transition: color var(--d-fast) var(--e-out); }
.breadcrumb a:hover { color: var(--muted); }
.breadcrumb-sep { color: var(--faint); opacity: .5; }
.breadcrumb-current { color: var(--muted); }

/* ================================================================
   MODALES
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-3);
  transform: translateY(12px) scale(.98);
  transition: transform var(--d-base) var(--e-out);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.05); }
.modal-title {
  font-family: var(--font);
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  margin-bottom: var(--sp-1);
}
.modal-sub {
  font-size: var(--fs-meta);
  color: var(--muted);
  margin-bottom: var(--sp-6);
}

/* Formulaires */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-meta);
  outline: none;
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--faint); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* ================================================================
   TOASTS
   ================================================================ */
.toast-container {
  position: fixed;
  bottom: var(--sp-6); right: var(--sp-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
  box-shadow: var(--sh-2);
  max-width: 340px;
  pointer-events: auto;
  animation: toastIn var(--d-base) var(--e-out);
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-icon { flex-shrink: 0; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   CATÉGORIES
   ================================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-3);
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition:
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-600);
  transform: translateY(-2px);
}
.cat-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent-2-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.cat-name {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text);
}
.cat-count {
  font-size: var(--fs-label);
  color: var(--faint);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--bg-800);
  border-top: 1px solid var(--line);
  padding: var(--sp-16) var(--sp-6) var(--sp-8);
  margin-top: var(--sp-24);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.footer-brand-desc {
  font-size: var(--fs-meta);
  color: var(--faint);
  max-width: 260px;
  line-height: 1.65;
  margin: var(--sp-3) 0 var(--sp-5);
}
.footer-socials {
  display: flex;
  gap: var(--sp-2);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-700);
  border: 1px solid var(--line);
  color: var(--faint);
  transition:
    color var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out);
}
.social-link:hover { color: var(--text); border-color: var(--line-strong); }
.footer-col-title {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--faint);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a {
  font-size: var(--fs-meta);
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom-text { font-size: var(--fs-label); color: var(--faint); }
.footer-bottom-links {
  display: flex;
  gap: var(--sp-6);
}
.footer-bottom-links a {
  font-size: var(--fs-label);
  color: var(--faint);
  transition: color var(--d-fast) var(--e-out);
}
.footer-bottom-links a:hover { color: var(--muted); }

/* ================================================================
   REVEAL AU SCROLL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--d-slow) var(--e-out),
    transform var(--d-slow) var(--e-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 60ms; }
.reveal-d2 { transition-delay: 120ms; }
.reveal-d3 { transition-delay: 180ms; }

/* ================================================================
   ANIMATIONS KEYFRAMES
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================================================
   PAGE HÉRO (pages internes)
   ================================================================ */
.page-hero {
  padding: var(--sp-16) 0 var(--sp-10);
}
.page-hero-eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
}
.page-hero-title {
  font-family: var(--font);
  font-size: clamp(var(--fs-display), 4.5vw, 48px);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
  color: var(--text);
  margin-bottom: var(--sp-3);
}
.page-hero-sub {
  font-size: var(--fs-sub);
  color: var(--muted);
  max-width: 520px;
}

/* ================================================================
   UPLOAD ZONE
   ================================================================ */
.upload-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-2-dim);
}
.upload-zone-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--bg-700);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  margin: 0 auto var(--sp-4);
}
.upload-zone-title { font-weight: 600; margin-bottom: var(--sp-1); }
.upload-zone-sub { font-size: var(--fs-meta); color: var(--faint); margin-bottom: var(--sp-5); }

/* ================================================================
   ÉTAT VIDE
   ================================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}
.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--bg-700);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  margin-bottom: var(--sp-5);
}
.empty-state-title { font-weight: var(--fw-title); font-size: var(--fs-sub); margin-bottom: var(--sp-2); }
.empty-state-sub { font-size: var(--fs-meta); color: var(--muted); max-width: 320px; }

/* ================================================================
   SKINS GRID
   ================================================================ */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: var(--sp-4);
}
.skin-card {
  background: var(--bg-700);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out),
    transform var(--d-fast) var(--e-out),
    box-shadow var(--d-fast) var(--e-out);
}
.skin-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-600);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.skin-preview {
  height: 160px;
  background: linear-gradient(180deg, var(--bg-700) 0%, var(--bg-600) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.skin-preview::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--bg-800), transparent);
}
.skin-figure {
  width: 48px;
  height: 96px;
  position: relative;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease);
}
.skin-card:hover .skin-figure { transform: translateY(-4px) rotate(2deg); }
/* Corps simplifié (silhouette SVG) */
.skin-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  opacity: 0;
  background: var(--scrim);
  transition: opacity var(--d-fast) var(--e-out);
  z-index: 2;
}
.skin-card:hover .skin-actions { opacity: 1; }
.skin-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-700);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.skin-action-btn:hover { color: var(--text); background: var(--bg-600); }
.skin-info { padding: var(--sp-3) var(--sp-3) var(--sp-3); }
.skin-name { font-weight: var(--fw-sub); font-size: var(--fs-meta); margin-bottom: 2px; color: var(--text); }
.skin-author { font-size: var(--fs-label); color: var(--faint); margin-bottom: var(--sp-2); }
.skin-stat  { display: flex; align-items: center; gap: 4px; font-size: var(--fs-label); color: var(--faint); }

/* ================================================================
   SECTIONS SPÉCIALES
   ================================================================ */
/* Section .eclps */
.eclps-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--brand-wash) 0%, transparent 60%);
}
.eclps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.eclps-features { display: flex; flex-direction: column; gap: var(--sp-3); }
.eclps-feature {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--e-out);
}
.eclps-feature:hover { border-color: var(--line-strong); }
.eclps-feat-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-2-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.eclps-feat-title { font-weight: var(--fw-sub); font-size: var(--fs-meta); margin-bottom: 4px; }
.eclps-feat-desc  { font-size: var(--fs-meta); color: var(--muted); line-height: 1.55; }

/* Mockup de code */
.code-mockup {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.code-mockup-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-700);
  border-bottom: 1px solid var(--line);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-r { background: rgba(248,113,113,.6); }
.code-dot-y { background: rgba(251,191,36,.6); }
.code-dot-g { background: rgba(52,211,153,.6); }
.code-filename {
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-label);
  color: var(--faint);
  font-family: var(--mono);
}
.code-body {
  padding: var(--sp-5) var(--sp-5);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.code-k { color: var(--tone-violet-fg); }
.code-s { color: var(--tone-green-fg); }
.code-n { color: var(--tone-cyan-fg); }
.code-v { color: var(--tone-red-fg); }
.code-c { color: var(--tx-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eclps-grid  { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; top: auto; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-links, .nav-search-wrap, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: var(--sp-16) var(--sp-4) var(--sp-12); }
  .hero-stats { gap: var(--sp-6); }

  section { padding: var(--sp-16) var(--sp-4); }
  .container { padding: 0 var(--sp-4); }

  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .skins-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }

  .controls-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; }
  .hero-divider { width: 40px; height: 1px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .skins-grid { grid-template-columns: repeat(2, 1fr); }
  .toast-container { right: var(--sp-4); left: var(--sp-4); }
  .toast { max-width: 100%; }
}
