/* ══════════════════════════════════════════
   shared.css — Timéo BONNET Portfolio
   Typo : Bebas Neue (titres) + Space Grotesk (corps) + DM Mono (labels)
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600&family=DM+Mono:wght@300;400;500&display=swap');

/* ── TOKENS ── */
[data-theme="dark"] {
  --bg:      #090d12;
  --bg2:     #0e1419;
  --surface: #131c24;
  --border:  rgba(255,255,255,0.08);
  --accent:  #4af0c4;
  --text:    #dce8e2;
  --muted:   #5e7068;
  --white:   #ffffff;
  --comp-n:  rgba(74,240,196,0.18);
}
[data-theme="light"] {
  --bg:      #f3f6f4;
  --bg2:     #e8ece9;
  --surface: #ffffff;
  --border:  rgba(0,0,0,0.09);
  --accent:  #15a87a;
  --text:    #182018;
  --muted:   #6a7a6e;
  --white:   #182018;
  --comp-n:  rgba(21,168,122,0.22);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden; cursor: none;
  transition: background .4s, color .4s;
}

/* ── CURSOR ── */
#cursor {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(74,240,196,.4); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}
body.hov #cursor { width: 14px; height: 14px; background: rgba(74,240,196,.55); }
body.hov #cursor-ring { width: 56px; height: 56px; border-color: rgba(74,240,196,.7); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(9,13,18,.78);
  border-bottom: 1px solid var(--border);
  transition: padding .3s, background .4s;
}
[data-theme="light"] nav { background: rgba(243,246,244,.88); }
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: .12em;
  color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .12em; color: var(--muted);
  text-decoration: none; text-transform: uppercase;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* theme toggle */
.theme-btn {
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  color: var(--accent);
  transition: border-color .3s, background .3s, color .3s;
  flex-shrink: 0;
  padding: 0;
}
.theme-btn:hover { border-color: var(--accent); background: rgba(74,240,196,.08); }
.theme-btn svg { display: block; pointer-events: none; stroke: var(--accent); }
/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.9rem; background: var(--accent); color: #090d12;
  font-family: 'DM Mono', monospace; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
  transition: transform .22s, box-shadow .22s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(74,240,196,.22); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.9rem; border: 1px solid var(--border);
  color: var(--text); font-family: 'DM Mono', monospace;
  font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  transition: border-color .3s, color .3s, transform .22s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── SECTION HEADER ── */
.sh { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 4rem; }
.sh-num { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .2em; color: var(--accent); }
.sh-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: .06em; color: var(--white);
}
.sh-line { flex: 1; height: 1px; background: var(--border); margin-left: 2rem; }

/* ── GRID BG ── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 80px 80px;
}
[data-theme="light"] .grid-bg {
  background-image: linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px);
}

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .06em;
  color: var(--accent); border: 1px solid rgba(74,240,196,.22);
  padding: .28rem .72rem; background: rgba(74,240,196,.04); transition: background .2s;
}
.tag:hover { background: rgba(74,240,196,.12); }
.tag-muted {
  font-family: 'DM Mono', monospace; font-size: .63rem; letter-spacing: .06em;
  color: var(--muted); border: 1px solid var(--border);
  padding: .28rem .72rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 3rem 4rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: .1em; color: var(--white);
}
.footer-brand p { font-size: .84rem; color: var(--muted); line-height: 1.75; margin-top: .7rem; max-width: 260px; }
.footer-col-title { font-family: 'DM Mono', monospace; font-size: .6rem; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { font-size: .84rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: .64rem; letter-spacing: .1em; color: var(--muted); }
.footer-legal-link { font-family: 'DM Mono', monospace; font-size: .64rem; letter-spacing: .1em; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-legal-link:hover { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
/* ── BACK LINK ── */
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'DM Mono', monospace; font-size: .68rem;
  letter-spacing: .1em; color: var(--muted);
  text-decoration: none; text-transform: uppercase;
  transition: color .25s; position: relative; z-index: 1;
}
.back-link:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 2.5rem 1.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
@media (max-width: 680px) {
  .nav-links li:nth-child(n+3):nth-child(-n+5) { display: none; }
}

/* ── SHARED JS BLOCK ── */
/* cursor + theme + reveal + nav shrink handled inline in each page */
