/* ═══════════════════════════════════════════
   BarberClub — Barbers listing page CSS
   (pages/meylan/barbers.html & pages/grenoble/barbers.html)
   Requires: base.css loaded first
   ═══════════════════════════════════════════ */

/* ═══ CURSOR: FINE POINTER ═══ */
@media (pointer: fine) { .back-btn { cursor: none; } }

/* ═══ PAGE TITLE ═══ */
.page-header {
  padding: 80px 20px 20px; text-align: center;
  position: relative; z-index: 5;
}
.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(26px, 8vw, 42px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  overflow: hidden;
}
.page-title .letter {
  display: inline-block; opacity: 0; transform: translateY(110%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.page.loaded .page-title .letter { opacity: 1; transform: translateY(0); }
.page-subtitle {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 6px;
  opacity: 0; transition: opacity 0.6s ease 0.5s;
}
.page.loaded .page-subtitle { opacity: 1; }
.page-intro {
  max-width: 520px; margin: 14px auto 0;
  font-size: 13px; line-height: 1.6;
  color: rgba(255,255,255,0.45); text-align: center;
  opacity: 0; transition: opacity 0.6s ease 0.6s;
}
.page.loaded .page-intro { opacity: 1; }

/* ═══ BARBERS GRID ═══ */
.barbers {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 10px 16px 100px;
  max-width: 440px; margin: 0 auto;
  position: relative; z-index: 5;
}

.barber-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none; color: #fff;
  display: block;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  opacity: 0; transform: translateY(20px);
}
@media (pointer: fine) { .barber-card { cursor: none; } }
.page.loaded .barber-card { opacity: 1; transform: translateY(0); }
.page.loaded .barber-card:nth-child(1) { transition-delay: 0.3s; }
.page.loaded .barber-card:nth-child(2) { transition-delay: 0.4s; }
.page.loaded .barber-card:nth-child(3) { transition-delay: 0.5s; }
.page.loaded .barber-card:nth-child(4) { transition-delay: 0.6s; }

.barber-card:active { transform: scale(0.97) !important; }

/* Media */
.barber-media {
  position: relative; width: 100%; aspect-ratio: 3/4;
  overflow: hidden;
}
.barber-media img, .barber-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.barber-card:hover .barber-media img,
.barber-card:hover .barber-media video { transform: scale(1.05); }

.barber-media-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
}

/* Info */
.barber-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.barber-details { flex: 1; }
.barber-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(16px, 5vw, 20px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1;
}
.barber-role {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 4px;
}
.barber-cta {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.barber-cta svg { width: 14px; height: 14px; }
.barber-card:hover .barber-cta {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4);
}

/* ═══ BOTTOM NAV ═══ */
.bottom-nav {
  position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 50;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 8px 4px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.6s ease;
}
.page.loaded .bottom-nav { opacity: 1; transition-delay: 0.7s; }
.nav-row {
  display: flex; justify-content: space-around; align-items: flex-end;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  transition: color 0.3s ease; padding: 4px 8px;
}
@media (pointer: fine) { .nav-item { cursor: none; } }
.nav-item.active { color: #fff; }
.nav-item svg { width: 20px; height: 20px; }
.nav-cta {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; margin-top: -26px;
}
@media (pointer: fine) { .nav-cta { cursor: none; } }
.nav-cta-btn {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%; color: #000;
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.nav-cta-btn svg { width: 22px; height: 22px; }
.nav-cta:active .nav-cta-btn { transform: scale(0.95); box-shadow: 0 2px 12px rgba(255,255,255,0.2); }
.nav-cta-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══ DESKTOP 768px ═══ */
@media (min-width: 768px) {
  .barbers { max-width: 600px; gap: 20px; padding-bottom: 60px; }
  .barber-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
  .barber-name { font-size: clamp(18px, 3vw, 22px); }
  .back-btn:hover { background: rgba(255,255,255,0.15); }
  .logo { height: 50px; }
  .bottom-nav { left: 50%; right: auto; transform: translateX(-50%); width: 500px; border-radius: 28px; bottom: 16px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .page-title .letter, .page-subtitle, .page-intro, .barber-card, .bottom-nav, .back-btn { opacity: 1; transform: none; }
  body { cursor: auto; }
}

/* ═══ LARGE DESKTOP — Cinematic Filmstrip (shared) ═══ */
@media (min-width: 1024px) {
  body { background: #000; }
  body::before, body::after { display: none; }

  .page {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh;
    overflow: hidden;
  }

  .header { z-index: 100; }

  .page-header {
    padding-top: 80px; padding-bottom: 6px;
    position: relative; z-index: 5;
  }
  .page-title { font-size: clamp(36px, 4vw, 52px); }
  .page-intro { max-width: 600px; font-size: 14px; line-height: 1.7; }

  .barbers {
    flex: 1;
    display: flex !important;
    grid-template-columns: unset;
    gap: 28px;
    max-width: 800px;
    padding: 16px 40px 140px;
    align-items: center;
    justify-content: center;
    position: relative; z-index: 5;
  }

  .barber-card {
    flex: 1;
    max-width: 360px;
    min-height: 0;
    height: 55vh;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .barber-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 10;
  }

  .barber-media { aspect-ratio: unset; height: 100%; }
  .barber-name { font-size: 28px; }
  .barber-role { font-size: 11px; letter-spacing: 0.15em; }
  .barber-info { padding: 20px; }
  .barber-cta { width: 36px; height: 36px; }
  .barber-cta svg { width: 16px; height: 16px; }

  /* Floating dock nav — same style as hub */
  .bottom-nav {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: auto; z-index: 50;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 14px 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  }
  .nav-row { gap: 12px; }
  .nav-item {
    flex-direction: row; gap: 10px;
    padding: 16px 24px; flex-shrink: 0; white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-item.active { color: #fff; }
  .nav-item svg { width: 18px; height: 18px; opacity: 0.6; }
  .nav-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }
  .nav-item:hover svg { opacity: 1; }
  .nav-cta { margin-top: 0; flex-direction: row; gap: 10px; }
  .nav-cta-btn {
    width: auto; height: auto;
    padding: 16px 32px; flex-shrink: 0; white-space: nowrap;
    border-radius: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    box-shadow: 0 8px 32px rgba(255,255,255,0.12);
    display: flex; align-items: center; gap: 10px;
  }
  .nav-cta-btn svg { width: 18px; height: 18px; }
  .nav-cta-label { display: none; }
  .nav-cta-btn::after { content: 'Rendez-vous'; }
  .nav-cta:hover .nav-cta-btn {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255,255,255,0.15);
  }

  .grain { z-index: 9000; }
  .page-transition { z-index: 9999; }
  .cursor-dot, .cursor-ring { z-index: 10001; }
}
