/* ═══════════════════════════════════════════════════════════════════
   DEMEN MEDIA — common.css
   Styles communs à toutes les pages du site.

   À inclure dans le <head> de chaque page, AVANT le <style> local :

     <link rel="preconnect" href="https://fonts.googleapis.com" />
     <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Syne:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap" rel="stylesheet" />
     <link rel="stylesheet" href="common.css" />
     <style>/* ... styles spécifiques à la page ... */
     /* </style> */
   /* ═══════════════════════════════════════════════════════════════════ */ */


/* ─── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:         #07090e;
  --bg2:        #0d1018;
  --text:       #ddd8cd;
  --muted:      #6b6b6b;
  --accent:     #c6ff00;
  --accent2:    #ff5e3a;
  --border:     rgba(255,255,255,0.07);
  --ff-display: 'DM Serif Display', serif;
  --ff-head:    'Cormorant Garamond', serif;
  --ff-ui:      'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-ui);
  overflow-x: hidden;
  cursor: none;
}


/* ─── CURSEUR PERSONNALISÉ ──────────────────────────────────────── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 38px; height: 38px;
  border: 1px solid rgba(198,255,0,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .12s ease, top .12s ease, width .3s ease, height .3s ease;
}


/* ─── NAVIGATION ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.76,0,.24,1);
  background: rgba(7,9,14,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
#nav.visible { transform: translateY(0); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 68px;
}

.nav-logo {
  font-family: var(--ff-ui); font-size: 18px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo span { color: var(--accent); font-size: 22px; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--ff-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .25s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--ff-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  padding: 10px 20px; text-decoration: none; transition: background .25s;
}
.nav-cta:hover { background: #fff; }

/* Bouton hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; height: 1.5px; background: var(--text);
  transition: transform .35s cubic-bezier(.76,0,.24,1), opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 24px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 20px; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);  width: 22px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }

/* Drawer mobile */
.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 150; pointer-events: none;
}
.nav-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(7,9,14,0.75); opacity: 0;
  transition: opacity .4s; backdrop-filter: blur(6px);
}
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(80vw, 300px);
  background: var(--bg2); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .45s cubic-bezier(.76,0,.24,1);
  padding: 88px 32px 48px; display: flex; flex-direction: column;
}
.nav-drawer.open { pointer-events: all; }
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer.open .nav-drawer-panel    { transform: translateX(0); }

.drawer-links { list-style: none; border-top: 1px solid var(--border); }
.drawer-links li {
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateX(16px);
  transition: opacity .3s, transform .3s;
}
.nav-drawer.open .drawer-links li              { opacity: 1; transform: translateX(0); }
.nav-drawer.open .drawer-links li:nth-child(1) { transition-delay: .08s; }
.nav-drawer.open .drawer-links li:nth-child(2) { transition-delay: .13s; }
.nav-drawer.open .drawer-links li:nth-child(3) { transition-delay: .18s; }
.nav-drawer.open .drawer-links li:nth-child(4) { transition-delay: .23s; }
.nav-drawer.open .drawer-links li:nth-child(5) { transition-delay: .28s; }

.drawer-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-family: var(--ff-head); font-size: 1.35rem;
  color: var(--text); text-decoration: none; transition: color .2s;
}
.drawer-links a:hover { color: #fff; }

.drawer-cta {
  margin-top: 32px; display: block; text-align: center; padding: 14px 20px;
  background: var(--accent); color: var(--bg); font-family: var(--ff-ui);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; opacity: 0; transform: translateY(10px);
  transition: opacity .3s .32s, transform .3s .32s;
}
.nav-drawer.open .drawer-cta { opacity: 1; transform: translateY(0); }


/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 1; transform: scaleY(1.3); }
}


/* ─── FOOTER ────────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 6vw 36px;
  position: relative;
  overflow: hidden;
}

/* ✦ fantôme en fond */
#site-footer::before {
  content: '✦';
  position: absolute; right: -2vw; bottom: -40px;
  font-family: var(--ff-ui);
  font-size: clamp(180px, 22vw, 300px);
  color: rgba(255,255,255,0.018);
  line-height: 1; pointer-events: none; user-select: none;
}

/* Ligne accent en haut */
#site-footer::after {
  content: '';
  position: absolute; top: 0; left: 6vw;
  width: 80px; height: 2px;
  background: var(--accent);
}

/* Ligne supérieure */
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
  margin-bottom: 28px; position: relative;
}

.footer-brand {}

.footer-logo {
  font-family: var(--ff-ui); font-size: 20px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--accent); font-size: 24px; }

.footer-tagline {
  font-family: var(--ff-head); font-size: 1.05rem;
  font-style: italic; font-weight: 300;
  color: rgba(221,216,205,0.45); line-height: 1.6; max-width: 260px;
}

/* Navigation centrale */
.footer-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.footer-nav-label {
  font-family: var(--ff-ui); font-size: 9px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}

.footer-nav a {
  font-family: var(--ff-ui); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s; position: relative;
}
.footer-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.footer-nav a:hover { color: var(--text); }
.footer-nav a:hover::after { transform: scaleX(1); }

/* Icônes sociales */
.footer-social { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.footer-social-label {
  font-family: var(--ff-ui); font-size: 9px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 38px; height: 38px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.social-link:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(198,255,0,0.06); transform: translateY(-3px);
}
.social-link svg { width: 15px; height: 15px; }

/* Newsletter miniature */
.footer-newsletter { margin-top: 6px; display: flex; align-items: center; }

.footer-newsletter input {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-right: none;
  color: var(--text); font-family: var(--ff-ui); font-size: 11px;
  padding: 9px 14px; outline: none; width: 190px; transition: border-color .25s;
}
.footer-newsletter input::placeholder { color: rgba(107,107,107,0.5); }
.footer-newsletter input:focus { border-color: rgba(198,255,0,0.3); }

.footer-newsletter button {
  background: var(--accent); border: none; color: var(--bg);
  font-family: var(--ff-ui); font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 14px; cursor: pointer; transition: background .25s; white-space: nowrap;
}
.footer-newsletter button:hover { background: #fff; }

/* Ligne inférieure */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; position: relative;
}

.footer-copy {
  font-family: var(--ff-ui); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; color: rgba(107,107,107,0.6);
  display: flex; align-items: center; gap: 10px;
}
.footer-copy .copy-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(107,107,107,0.4); flex-shrink: 0;
}
.footer-copy a { color: rgba(198,255,0,0.5); text-decoration: none; transition: color .2s; }
.footer-copy a:hover { color: var(--accent); }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: var(--ff-ui); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(107,107,107,0.45); text-decoration: none; transition: color .2s;
}
.footer-legal a:hover { color: var(--muted); }


/* ─── RESPONSIVE COMMUN ─────────────────────────────────────────── */

/* ≤ 900 px : mode mobile */
@media (max-width: 900px) {
  body         { cursor: auto; }
  #cursor,
  #cursor-ring { display: none; }

  /* Nav desktop → hamburger */
  .nav-links,
  .nav-cta       { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer    { display: block; }

  /* Footer */
  .footer-top    { flex-wrap: wrap; gap: 40px; }
  .footer-social { align-items: flex-start; }
}

/* ≤ 600 px */
@media (max-width: 600px) {
  .footer-bottom          { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-newsletter input{ width: 160px; }
  #site-footer            { padding: 48px 5vw 32px; }
}
