/* ═══════════════════════════════════════════
   EIKOGRAPH — Premium GFX Portfolio
   Dark Luxury Editorial Aesthetic
═══════════════════════════════════════════ */

:root {
  --bg: #070608;
  --bg-2: #0e0b0f;
  --bg-card: #100d11;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255, 90, 140, 0.35);

  --accent: #ff5a8c;
  --accent-2: #c044ff;
  --accent-glow: rgba(255, 90, 140, 0.25);
  --accent-glow-2: rgba(192, 68, 255, 0.2);

  --text: #f0ecf5;
  --text-muted: #6b6070;
  --text-dim: #3d3545;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --header-h: 72px;
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(135deg, #0d0610 0%, #07060a 40%, #0a0612 70%, #120814 100%);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; }


/* ─── Grain Canvas ───────────────────────── */
.grain-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  image-rendering: pixelated;
  object-fit: fill;
}

/* ─── Sakura ─────────────────────────────── */
.sakura-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(0deg) scale(0); }
  10%  { opacity: 0.35; transform: translateY(5vh) rotate(45deg) scale(1); }
  90%  { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg) scale(0.5); }
}

/* ─── Header ─────────────────────────────── */
.site-header {
  height: var(--header-h);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.4s;
}

.site-header.scrolled {
  background: rgba(7, 6, 8, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 48px;
  gap: 48px;
}

.header-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-2) 70%, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.scrolled .header-line { opacity: 0.4; }

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.logo-bracket { color: var(--text-muted); font-size: 18px; }
.logo-text { color: var(--text); }
.logo-accent {
  color: var(--accent);
  position: relative;
}

/* Nav */
.main-nav {
  display: flex;
  gap: 36px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

/* Grid Toggle */
.grid-toggle {
  width: 36px; height: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.grid-toggle span {
  background: var(--text-muted);
  border-radius: 1px;
  transition: background 0.3s;
}

.grid-toggle:hover { border-color: var(--accent); }
.grid-toggle:hover span { background: var(--accent); }

/* ─── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 60px) 48px 80px;
  overflow: hidden;
  z-index: 10;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(200px, 35vw, 500px);
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  letter-spacing: -10px;
  user-select: none;
  pointer-events: none;
  opacity: 0.3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 40px;
  background: rgba(255,255,255,0.02);
  animation: fadeSlideUp 0.8s var(--transition) both;
}

.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.85;
  letter-spacing: -2px;
  text-transform: uppercase;
  overflow: hidden;
}

.line-wrap {
  display: block;
  overflow: hidden;
}

.line {
  display: inline-block;
  animation: slideUp 1s var(--transition) both;
}

.line-1 { animation-delay: 0.1s; }
.line-2 { animation-delay: 0.2s; }

.hero-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  filter: drop-shadow(0 0 30px var(--accent-glow));
  display: inline-block;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 28px;
  letter-spacing: 1px;
  animation: fadeSlideUp 1s var(--transition) 0.4s both;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  animation: fadeSlideUp 1s var(--transition) 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 1; }

.btn-arrow {
  transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.badge-ring {
  width: 50px; height: 50px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  animation: spin 12s linear infinite;
  position: absolute;
  left: -10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-badge span {
  font-family: var(--font-display);
  font-size: 28px;
  padding-left: 48px;
}

.hero-badge small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeSlideUp 1s var(--transition) 1s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

/* ─── Stats Bar ──────────────────────────── */
.stats-bar {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 11, 15, 0.6);
  backdrop-filter: blur(10px);
}

.stats-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 60px;
  gap: 4px;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1;
}

.stat-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Filter Bar ─────────────────────────── */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(7, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.filter-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  transition: all 0.3s;
  white-space: nowrap;

}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.sort-select {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius);
  outline: none;

  transition: border-color 0.3s;
}

.sort-select:hover { border-color: var(--accent); }
.sort-select option { background: var(--bg-2); }

/* ─── Main Content & Grid ────────────────── */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 48px 100px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.image-grid.list-view {
  grid-template-columns: 1fr;
  gap: 2px;
}

/* Cards */
.image-card {
  position: relative;
  overflow: hidden;

  background: var(--bg-card);
  aspect-ratio: 16/10;
}

.image-card:nth-child(3n+1) { border-radius: 12px 2px 2px 2px; }
.image-card:nth-child(3n+2) { border-radius: 2px; }
.image-card:nth-child(3n+3) { border-radius: 2px 2px 2px 12px; }

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
  filter: brightness(0.85) saturate(0.9);
}

.image-card:hover .card-img {
  transform: scale(1.08);
  filter: brightness(0.6) saturate(1.1);
}

/* Card overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 6, 8, 0.95) 0%,
    rgba(7, 6, 8, 0.4) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.image-card:hover .card-overlay { opacity: 1; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-filename {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 0.4s var(--transition);
  line-height: 1.1;
}

.image-card:hover .card-filename {
  transform: translateY(0);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--transition) 0.05s, opacity 0.4s 0.05s;
}

.image-card:hover .card-cta {
  transform: translateY(0);
  opacity: 1;
}

/* Card number */
.card-number {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.image-card:hover .card-number { opacity: 1; }

/* ─── Lightbox ───────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 5, 0.97);
  backdrop-filter: blur(30px);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.96);
  transition: transform 0.4s var(--transition);
}

.lightbox.open .lightbox-stage {
  transform: scale(1);
}

.lightbox-stage img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 100px rgba(0,0,0,0.8), 0 0 40px var(--accent-glow);
  border: 1px solid rgba(255, 90, 140, 0.2);
}

.lightbox-info {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2;
  color: var(--text-muted);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;

}

.lightbox-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.lightbox-nav {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.lb-btn {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all 0.3s;

}

.lb-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 90, 140, 0.08);
}

/* ─── Footer ─────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 4px;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ─── Animations ─────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Card entrance */
.image-card {
  animation: cardIn 0.6s var(--transition) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile First
═══════════════════════════════════════════ */

/* ─── Tablette large (≤ 1280px) ──────────── */
@media (max-width: 1280px) {
  .header-inner { padding: 0 32px; }
  .stats-inner { padding: 0 32px; }
  .filter-bar-inner { padding: 0 32px; }
  .main-content { padding: 48px 32px 80px; }
  .footer-inner { padding: 48px 32px; }

  .image-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Tablette (≤ 1024px) ────────────────── */
@media (max-width: 1024px) {
  .image-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item { padding: 24px 28px; }
  .stat-item strong { font-size: 30px; }

  .hero-cta-row { gap: 20px; }
}

/* ─── Tablette portrait (≤ 768px) ───────── */
@media (max-width: 768px) {
  /* Désactive le curseur custom sur touch */
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }

  :root { --header-h: 60px; }

  /* Header */
  .header-inner {
    padding: 0 20px;
    gap: 12px;
  }
  .main-nav { display: none; }
  .logo { font-size: 18px; }

  /* Hero */
  .hero {
    padding: calc(var(--header-h) + 48px) 20px 64px;
    min-height: 92vh;
  }
  .hero-bg-text { font-size: clamp(140px, 42vw, 280px); }
  .hero-title { font-size: clamp(64px, 20vw, 140px); letter-spacing: -1px; }
  .hero-tag { font-size: 9px; padding: 7px 14px; }
  .hero-sub { font-size: 13px; margin-top: 18px; }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
  }
  .btn-primary { padding: 14px 28px; font-size: 11px; }

  .hero-badge { justify-content: center; }

  .hero-scroll-hint { display: none; }

  /* Stats — scroll horizontal sur mobile */
  .stats-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stats-inner {
    padding: 0 20px;
    justify-content: flex-start;
    min-width: max-content;
  }
  .stat-item { padding: 20px 24px; }
  .stat-item strong { font-size: 26px; }
  .stat-item span { font-size: 9px; }

  /* Filter bar — scroll horizontal */
  .filter-bar-inner {
    padding: 0 20px;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar-inner::-webkit-scrollbar { display: none; }
  .filter-label { display: none; }
  .filter-pills {
    flex-wrap: nowrap;
    min-width: max-content;
  }
  .pill { font-size: 9px; padding: 5px 14px; white-space: nowrap; }
  .sort-select { display: none; } /* trop étroit, on retire sur mobile */

  /* Grid */
  .main-content { padding: 32px 20px 60px; }
  .image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  /* Normalise les border-radius chelou sur mobile */
  .image-card,
  .image-card:nth-child(3n+1),
  .image-card:nth-child(3n+2),
  .image-card:nth-child(3n+3) {
    border-radius: 4px;
  }

  /* Lightbox */
  .lightbox-stage img {
    max-width: 96vw;
    max-height: 65vh;
  }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-nav { bottom: 20px; }
  .lightbox-info { font-size: 9px; letter-spacing: 1px; text-align: center; padding: 0 16px; }

  /* Footer */
  .footer-inner {
    padding: 40px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-brand .footer-logo { font-size: 40px; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
  .footer-links a { font-size: 10px; }
}

/* ─── Mobile (≤ 480px) ───────────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(56px, 18vw, 100px); }
  .hero-tag { font-size: 8px; letter-spacing: 2px; }

  /* 1 colonne sur très petit écran */
  .image-grid { grid-template-columns: 1fr; gap: 2px; }

  .stat-item { padding: 16px 18px; }
  .stat-item strong { font-size: 22px; }

  /* Affiche l'overlay des cartes en permanence sur mobile (pas de hover) */
  .card-overlay { opacity: 1; background: linear-gradient(to top, rgba(7,6,8,0.92) 0%, transparent 60%); }
  .card-filename { transform: translateY(0); }
  .card-cta { opacity: 1; transform: translateY(0); }
  .card-number { opacity: 1; }

  .hero-scroll-hint { display: none; }
  .hero-cta-row { gap: 16px; }
  .btn-primary { width: 100%; justify-content: center; }
}

/* ─── Très petit (≤ 360px) ───────────────── */
@media (max-width: 360px) {
  .hero-title { font-size: 52px; }
  .logo { font-size: 16px; }
  .footer-brand .footer-logo { font-size: 32px; }
}

/* ─── Desktop XL (≥ 1600px) ─────────────── */
@media (min-width: 1600px) {
  .image-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: clamp(160px, 16vw, 220px); }
}

/* ─── Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sakura-container { display: none; }
  .ambient-orb { animation: none; }
}

/* ─── Footer Discord link ────────────────── */
.footer-link-discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-social-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.footer-link-discord:hover .footer-social-icon {
  opacity: 1;
}

/* ── List View (toggle bouton 4 carrés) ── */
.image-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.image-grid.list-view .image-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100px;
  border-radius: 10px;
}

.image-grid.list-view .image-card .card-img {
  width: 160px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
}

.image-grid.list-view .image-card .card-overlay {
  position: static;
  opacity: 1;
  background: transparent;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.image-grid.list-view .image-card .card-cta {
  display: none;
}