/* ═══════════════════════════════════════════════════════
   GLOBAL — Variables · Reset · Typographie · UI partagé
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg:      #000000;
  --red:     #C1121F;
  --crimson: #7A0F1A;
  --white:   #FAF6F2;
  --muted:   rgba(250,246,242,0.52);
  --pad:     52px;
  --bar-h:   50px;
}

html { scroll-behavior: smooth }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
  cursor: none;
  user-select: none;
}

/* ── FILM BARS ─────────────────────────────────────────── */
.fb { position:fixed; left:0; right:0; height:var(--bar-h); background:var(--bg); z-index:50; pointer-events:none }
.fb.t { top:0 } .fb.b { bottom:0 }

/* ── PROGRESS BAR ──────────────────────────────────────── */
#bar {
  position: fixed; top:0; left:0;
  height: 1.5px; width:0%;
  background: linear-gradient(90deg, transparent, var(--red), var(--crimson));
  z-index: 100;
}

/* ── GRAIN ─────────────────────────────────────────────── */
#grain {
  position: fixed; inset:0;
  opacity: .26; mix-blend-mode: overlay;
  pointer-events: none; z-index: 4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  background-size: 256px;
  animation: gr .09s steps(1) infinite;
}
@keyframes gr {
  0%   { background-position:   0   0 }
  25%  { background-position: -50px -30px }
  50%  { background-position:  30px  50px }
  75%  { background-position: -20px  40px }
  100% { background-position:  50px -50px }
}

/* ── VIGNETTE ──────────────────────────────────────────── */
#vig {
  position: fixed; inset:0; z-index:3;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(4,4,4,.88) 100%);
  pointer-events: none;
}

/* ── CURSEUR ───────────────────────────────────────────── */
#cur {
  width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  /* transform géré en JS via GPU */
  transition: opacity .2s;
  will-change: transform;
}
#cur-ring {
  width: 26px; height: 26px;
  border: 1px solid rgba(193,18,31,.45); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  /* scale hover géré via transform en JS — zéro reflow */
  transition: border-color .25s;
  will-change: transform;
}

/* ── LOADER ────────────────────────────────────────────── */
#loader {
  position: fixed; inset:0; z-index: 600;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.hidden { opacity:0; visibility:hidden }
.load-name {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(28px,5vw,72px);
  letter-spacing: .12em; color: var(--white);
}
.load-bar-wrap { width:180px; height:1px; background:rgba(242,237,232,.15) }
.load-bar-fill { height:100%; width:0%; background:var(--red); transition:width .2s linear }
.load-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px; letter-spacing: .32em;
  color: var(--muted); text-transform: uppercase;
}

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity:1; transform:none }

/* ── SECTION EYEBROW ───────────────────────────────────── */
.s-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px; letter-spacing: .38em;
  color: var(--red); text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.s-eyebrow::before { content:''; display:block; width:28px; height:1px; background:var(--red) }

.s-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(44px,6vw,100px);
  letter-spacing: .06em; line-height: .9;
  color: var(--white);
  text-shadow: 0 0 60px rgba(0,0,0,.8);
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-outline {
  display: inline-block;
  padding: 13px 44px;
  border: 1px solid var(--red);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red); text-decoration: none;
  cursor: pointer; background: transparent;
  transition: background .3s, color .3s;
}
.btn-outline:hover { background:var(--red); color:var(--bg) }

/* ── PAGE CONTENT PADDING ──────────────────────────────── */
.page-section {
  min-height: 100vh;
  padding: 120px var(--pad) 100px;
  position: relative;
}

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  padding: 32px var(--pad);
  border-top: 1px solid rgba(242,237,232,.06);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px; letter-spacing: .12em; color: var(--white);
  text-decoration: none;
}
.footer-cr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 400; letter-spacing: .22em;
  color: rgba(250,246,242,.68); text-transform: uppercase;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) { :root { --pad: 24px } }
@media (max-width: 600px) { :root { --pad: 20px; --bar-h: 38px } }

/* Curseur custom désactivé sur mobile/tactile */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto }
  #cur, #cur-ring { display: none !important }
}

/* Footer mobile */
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px var(--pad);
  }
}
