/* gallery.css — sites-sur-mesure dark neon theme */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0B0E14;
  background: linear-gradient(135deg, #0B0E14 0%, #1a0a2e 50%, #0B0E14 100%);
  color: #E2E8F0;
  min-height: 100vh;
}

/* Canvas Three.js — particules hero, plein écran fixe */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Contenu principal au-dessus du canvas */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 22px 60px;
}

h1 {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #fff;
  margin: 0 0 14px;
}

h2 {
  font-family: Georgia, serif;
  margin-top: 34px;
  border-bottom: 2px solid #7C3AED;
  padding-bottom: 6px;
  color: #fff;
}

p.intro {
  color: #94A3B8;
  max-width: 72ch;
  margin: 0 0 8px;
}

/* Grid de cartes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Cartes glassmorphism */
a.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
  color: #E2E8F0;
  display: block;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    0 8px 32px rgba(124, 58, 237, 0.25),
    0 0 0 1px rgba(34, 211, 238, 0.2);
}

.card b {
  font-size: 15px;
  color: #F1F5F9;
}

.card .s {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 6px;
}

.tags {
  margin-top: 9px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
}

.arch {
  font-size: 11px;
  font-weight: 700;
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.12);
  border-radius: 999px;
  padding: 2px 9px;
}

/* prefers-reduced-motion : désactive toutes les transitions/animations */
@media (prefers-reduced-motion: reduce) {
  a.card {
    transition: none;
  }
  a.card:hover {
    transform: none;
  }
  #bg-canvas {
    display: none;
  }
}
