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

/* ── VARIABLES ── */
:root {
  --bg:         #0a0a0a;
  --fg:         #f0f0f0;
  --muted:      #555;
  --border:     rgba(255,255,255,0.1);
  --glass-bg:   rgba(20, 20, 20, 0.55);
  --glass-high: rgba(255,255,255,0.06);
  --glass-rim:  rgba(255,255,255,0.12);
}

[data-theme="light"] {
  --bg:         #eaeaea;
  --fg:         #111;
  --muted:      #888;
  --border:     rgba(0,0,0,0.1);
  --glass-bg:   rgba(255,255,255,0.45);
  --glass-high: rgba(255,255,255,0.6);
  --glass-rim:  rgba(255,255,255,0.8);
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}


/* ── CURSEUR ── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 13px;
  height: 13px;
  background: #ff6a00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  box-shadow: 0 0 10px 3px rgba(255,106,0,0.7), 0 0 22px 6px rgba(255,106,0,0.35);
}

#cursor-dot.hovering {
  transform: translate(-50%, -50%) scale(2);
}


/* ── THEME TOGGLE ── */
.theme-toggle {
  position: fixed;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  z-index: 200;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.theme-toggle:hover {
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--fg);
}

/* ── BURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 300;
  padding: 0;
  align-items: center;
}

.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Menu mobile — plein écran avec bulles glass */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nav-mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-high), 0 4px 12px rgba(0,0,0,0.2);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.25s;
  min-width: 200px;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--fg);
  border-color: var(--glass-rim);
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 20px rgba(255,255,255,0.15);
}

.nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.nav-mobile-close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  position: absolute;
}

.nav-mobile-close span:nth-child(1) { transform: rotate(45deg); }
.nav-mobile-close span:nth-child(2) { transform: rotate(-45deg); }


/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem 0 2.5rem;
  height: 58px;
  gap: 1.2rem;
  background: transparent;
  transition: background 0.4s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex: 1;
}

.nav-links li { display: flex; }

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-high), var(--bubble-shadow, 0 4px 12px rgba(0,0,0,0.2));
  transition: color 0.3s, border-color 0.3s, box-shadow 0.25s ease, background 0.3s;
}

.nav-links a span { position: relative; z-index: 1; }

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  border-color: var(--glass-rim);
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), var(--bubble-shadow, 0 0 20px rgba(255,255,255,0.15));
}

.nav-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-right: 4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-high), var(--bubble-shadow, 0 4px 12px rgba(0,0,0,0.2));
  transition: color 0.3s, border-color 0.3s, box-shadow 0.25s ease, background 0.3s;
}

.nav-contact span { position: relative; z-index: 1; }

.nav-contact:hover {
  color: var(--fg);
  border-color: var(--glass-rim);
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), var(--bubble-shadow, 0 0 20px rgba(255,255,255,0.15));
}


/* ── SCRIPT COMMUN (curseur + ombre bulles + theme) ── */
/* à inclure via shared.js dans chaque page */

@media (max-width: 600px) {
  html { cursor: auto; }
  #cursor-dot { display: none; }

  /* Theme toggle → coin supérieur droit, dans la nav */
  .theme-toggle {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .theme-toggle:hover { transform: rotate(180deg); }

  /* Nav desktop cachée, burger visible */
  .nav-links,
  .nav-contact { display: none; }

  nav {
    justify-content: space-between;
    padding: 0 1rem 0 1.5rem;
    align-items: center;
  }

  .nav-burger { display: flex; }
}
