/* ==========================================================================
   GEN PROD — Styles globaux
   Direction « Cinéma de nuit »
   Auteur : Théo Genouel · Site vitrine
   ========================================================================== */

:root {
  /* Couleurs */
  --color-bg: #0A0A0A;
  --color-bg-alt: #1A1A1A;
  --color-text: #FAFAFA;
  --color-text-muted: #8A8A8A;
  --color-accent: #D4633A;
  --color-overlay: rgba(10, 10, 10, 0.6);

  /* Typo */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1440px;
  --nav-height: 80px;
}

/* Reset léger */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-accent); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* Typo */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
@media (max-width: 768px) { .container { padding: 0 var(--space-sm); } }

/* Boutons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn-ghost:hover { background: var(--color-text); color: var(--color-bg); }

/* Section */
section { padding: var(--space-xl) 0; }
@media (max-width: 768px) { section { padding: var(--space-lg) 0; } }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Focus accessibilité */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Curseur custom (desktop pointer fine uniquement) */
.cursor-dot, .cursor-circle { display: none; }
@media (pointer: fine) {
  body { cursor: none; }
  body * { cursor: none; }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0;
    width: 6px; height: 6px; background: var(--color-accent);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
  }
  .cursor-circle {
    display: block; position: fixed; top: 0; left: 0;
    width: 32px; height: 32px; border: 1px solid var(--color-text);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
  }
  .cursor-circle.hover { width: 60px; height: 60px; background: rgba(212, 99, 58, 0.15); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-md);
  background: transparent;
  z-index: 100;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
}
.nav.scrolled, .nav.solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-logo { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em; }
.nav-menu { display: flex; gap: var(--space-md); }
.nav-menu a {
  position: relative;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--color-accent);
  transition: width var(--transition-base);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--color-accent); }

/* Burger (mobile) */
.nav-burger { display: none; }
@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; gap: var(--space-md);
    padding: var(--space-lg) var(--space-md);
    background: var(--color-bg);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 0.5rem;
  }
  .nav-burger span { width: 28px; height: 2px; background: var(--color-text); transition: all var(--transition-base); }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-bg-alt);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer h4 { font-size: 1rem; margin-bottom: var(--space-sm); color: var(--color-accent); }
.footer-brand p { color: var(--color-text-muted); max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-social { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-bg-alt);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); }
}
