/* =========================================================================
   OG BARBER — design tokens
   Palette: "Cold Luxury" — off-black + chrome neutrals + one royal-blue
   accent lifted from the shop's own blue camo cape (a real, recurring
   brand element across every photo, not an arbitrary AI pick).
   Shape lock: buttons = full pill, cards/images/inputs = 14px radius.
   Type: Space Grotesk (display + body), JetBrains Mono (numbers only).
   ========================================================================= */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/SpaceGrotesk-400.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../assets/fonts/JetBrainsMono-500.woff2") format("woff2");
}

:root {
  --bg: #0b0c0e;
  --bg-raised: #101216;
  --bg-raised-2: #15181d;
  --line: #24272e;
  --text: #f3f2ee;
  --text-muted: #9a9ea6;
  --accent: #3352cc;
  --accent-hover: #4a67e0;
  --accent-tint: #1a2340;
  --radius-card: 14px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --container: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.01em;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ---------- Buttons (shape lock: full pill) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Section rhythm ---------- */

section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 52ch;
}

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-hover);
  margin-bottom: 14px;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-hover);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 32px 24px;
  gap: 4px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 16px 4px;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 25, 70, 0.55);
  aspect-ratio: 4 / 3;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }
}

/* ---------- Services ---------- */

.services-grid {
  display: block;
}

.service-featured-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-featured {
  background: linear-gradient(160deg, var(--accent) 0%, #1f327f 100%);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.service-featured .icon {
  width: 28px;
  height: 28px;
}

.service-featured .price {
  font-size: 36px;
  font-weight: 600;
  margin-top: auto;
}

.service-featured .price span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-left: 8px;
}

/* LATENIGHT OGcut: same shape language, lighter/outline treatment so it
   reads as a distinct, secondary offer next to the signature tile. */
.service-featured-alt {
  background: var(--bg-raised);
  border: 1px solid var(--accent);
}

.service-featured-alt .icon {
  color: var(--accent-hover);
}

.service-featured-alt h3,
.service-featured-alt .price {
  color: var(--text);
}

.service-featured-alt p {
  color: var(--text-muted);
}

.service-featured-alt .price span {
  color: var(--text-muted);
}

.service-featured h3 {
  font-size: 24px;
  font-weight: 600;
}

.service-featured p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 32ch;
}

@media (max-width: 640px) {
  .service-featured-stack {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-raised);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.5s var(--ease);
}

.gallery-item:first-child img {
  aspect-ratio: 4 / 4.6;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 14px 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-row: auto;
  }
}

/* ---------- About ---------- */

.about .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 54ch;
  margin-bottom: 16px;
}

.about-copy strong {
  color: var(--text);
}

@media (max-width: 860px) {
  .about .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testimonials ---------- */

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

.testimonial {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial p {
  font-size: 17px;
  line-height: 1.5;
}

.testimonial .attribution {
  font-size: 14px;
  color: var(--text-muted);
}

.testimonial .attribution strong {
  color: var(--text);
  display: block;
  font-weight: 600;
}

@media (max-width: 700px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Booking ---------- */

.booking {
  position: relative;
  background: var(--bg-raised);
  overflow: hidden;
}

.booking-texture {
  position: absolute;
  inset: 0;
  background-image: url("../assets/photos/texture-cape.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.24;
}

.booking-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-raised) 0%, rgba(16, 18, 22, 0.85) 100%);
}

.booking .container {
  position: relative;
  z-index: 1;
}

.booking-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.booking-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.booking-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.booking-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px;
}

.calendly-inline-widget {
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
}

/* Page de réservation de la plateforme, intégrée à la place de Calendly (js/main.js). */
.booking-frame {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  border-radius: calc(var(--radius-card) - 6px);
  background: var(--bg);
}

.booking-alt {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.booking-alt a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 34ch;
}

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 12px;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-col .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
