/* ═══════════════════════════════════════
   SCORPX DESIGN — 404 v2
   Style : GRIS OR ANIMATION ©
   ═══════════════════════════════════════ */

:root {
  --gold-hi:   #F5D78E;
  --gold:      #C9A84C;
  --gold-lo:   #9A6E2A;
  --gold-deep: #7A5118;
  --gold-glow: rgba(201, 168, 76, 0.18);
  --gold-rim:  rgba(201, 168, 76, 0.28);
  --text:      #EDE8DF;
  --muted:     rgba(237,232,223,0.45);
  --dim:       rgba(237,232,223,0.18);

  --font-display: 'Cinzel', serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-sans:    'Raleway', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #050404;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  cursor: none;
  user-select: none;
}

/* ══════════════════════════════
   FOND VIDEOS
══════════════════════════════ */

.video-wrap {
  position: fixed; inset: 0; z-index: 0;
}

.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(2.5);
}

/* Assombrissement principal */

.vid-dark {
  position: absolute; inset: 0;
  background: rgba(4, 3, 2, 0.62);
}


/* Légères lignes de scan */

.vid-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* Grain cinéma */

.vid-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.55;
  pointer-events: none;
}

/* ══════════════════════════════
   CURSEUR SOURIS
══════════════════════════════ */

#cursor-dot, #cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

#cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
}

#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(201,168,76,0.5);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.3s, border-color 0.25s;
}

/* ══════════════════════════════
   EN-TETE
══════════════════════════════ */

.header {
  position: fixed; top: 0; left: 0; right: 0;
  
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 56px;
  background: linear-gradient(to bottom, rgba(4,3,2,0.7) 0%, transparent 100%);
  animation: fadeDown 1s 0.2s ease both;
}

.logo-wrap {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}


.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }

.logo-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: 0.3em;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-family: var(--font-sans); font-size: 7.5px; font-weight: 200;
  letter-spacing: 0.55em; color: var(--gold-lo); text-transform: uppercase;
  margin-left: 50px
}

.nav { display: flex; gap: 44px; }

.nav a {
  font-family: var(--font-sans); font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: #c9a84c;
  position: relative; transition: color 0.3s;
}

.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { transform: scaleX(1); }

/* ══════════════════════════════
   MAIN / LAYOUT
══════════════════════════════ */

.main {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  pointer-events: all;
  padding: 0 24px;
}

/* ── Coin décoratifs ── */

.corner {
  position: absolute;
  width: 52px; height: 52px;
  pointer-events: none;
}
.corner::before, .corner::after {
  content: ''; position: absolute;
  background: var(--gold);
  opacity: 0.5;
}
.corner::before { width: 100%; height: 1px; }
.corner::after  { width: 1px; height: 100%; }

.corner-tl { top: 20px; left: 36px; height:895px; width : 1850px; }
.corner-tl::before { top: 0; left: 0; }
.corner-tl::after  { top: 0; left: 0; }

.corner-tr { top: 20px; left: 36px; height:895px; width : 1850px; transform: rotate(-180deg); }
.corner-tr::before { top: 0; left: 0; }
.corner-tr::after  { top: 0; left: 0; }


/* ── Labels verticaux ── */

.side-label {
  position: absolute;
  font-family: var(--font-sans); font-size: 9px; font-weight: 200;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
}
.side-l {
  left: 24px; bottom: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;color: #c9a84c;
}
.side-r {
  right: 24px; bottom: 50%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;color: #c9a84c;
}

/* ══════════════════════════════
   CONTENU
══════════════════════════════ */

/* Badge */

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 9px; font-weight: 300;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-rim);
  padding: 9px 24px 9px 20px;
  margin-bottom: 44px;
  animation: riseIn 0.8s 0.5s ease both;
  backdrop-filter: blur(8px);
  background: rgba(4,3,2,0.3);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* NOMBRE 404 */

.num-wrap {
  position: relative;
  margin-bottom: 28px;
  animation: riseIn 0.9s 0.65s ease both;
}

.num-blur {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(130px, 20vw, 240px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  color: var(--gold);
  opacity: 0.08;
  filter: blur(28px);
  user-select: none;
}

.num-main {
  font-family: var(--font-display);
  font-size: clamp(130px, 20vw, 240px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1;
  background: linear-gradient(160deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 60px rgba(201,168,76,0.22));
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { filter: drop-shadow(0 0 50px rgba(201,168,76,0.18)); }
  50%       { filter: drop-shadow(0 0 80px rgba(245,215,142,0.32)); }
}

/* DIV */


.divider {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 28px;
  animation: riseIn 0.8s 0.8s ease both;
}

.div-line {
  width: 70px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.div-star { color: var(--gold); font-size: 11px; }

/* TITRE */

.page-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 400; letter-spacing: 0.22em;
  color: #c9a84c;
  margin-bottom: 18px;
  animation: riseIn 0.8s 0.9s ease both;
}

/* SOUS-TITRE */

.page-sub {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 300; font-style: italic;
  color: white;
  line-height: 1.9;
  max-width: 480px;
  margin-bottom: 52px;
  animation: riseIn 0.8s 1s ease both;
}

/* ACTIONS */


.actions {
  display: flex; align-items: center; gap: 18px;
  animation: riseIn 0.8s 1.15s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: #050404;
  background: linear-gradient(130deg, var(--gold-hi) 0%, var(--gold) 100%);
  padding: 16px 38px;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(130deg, var(--gold) 0%, var(--gold-lo) 100%);
  opacity: 0; transition: opacity 0.35s ease;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(201,168,76,0.35); }

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

.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-primary svg { width: 18px; height: 18px; transition: transform 0.3s; }

.btn-primary:hover svg { transform: translateX(5px); }

.btn-outline {
  display: inline-flex; align-items: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
  border: 1px solid var(--gold-rim);
  padding: 16px 38px;
  backdrop-filter: blur(8px);
  background: rgba(4,3,2,0.25);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  transform: translateY(-3px);
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════ */

@media (max-width: 768px) {
  .header { padding: 20px 24px; top: 15px; margin-left:90px; }
  .nav { display: none; }
  .side-label { display: none; }
  .corner { width: 370px; height: 870px; top: 20px !important; bottom: 15px !important; left: 20px !important; right: 20px !important; }
  .actions { flex-direction: column; gap: 14px; }
  .btn-primary, .btn-outline { width: 220px; justify-content: center; }
}
