/* ======================================================
   NERVYFOX HUB — styles.css
   Source unique pour tout le CSS commun + variables
====================================================== */

/* === VARIABLES === */
:root {
  --bg:           #F8F0E3;
  --ink:          #1A1510;
  --orange:       #F2641E;
  --violet:       #5B22D6;
  --rose:         #F8556B;
  --orange-doux:  #F89B6C;
  --selected-bg:  #FBE6D8;

  --text-muted:   #5C5343;
  --text-subtle:  #8A7C64;
  --text-light:   #9A8C76;
  --text-faint:   #C4B89A;

  --border:       2.5px solid var(--ink);
  --border-light: 1.5px solid rgba(26,21,16,.12);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    20px;
  --radius-pill:  999px;

  --shadow-sm:    4px 4px 0 var(--ink);
  --shadow-md:    5px 5px 0 var(--ink);
  --shadow-lg:    6px 6px 0 rgba(26,21,16,.12);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(26,21,16,.10) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
}
a { color: var(--orange); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* === WRAP === */
.wrap { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }

/* === TICKER === */
.ticker-wrap { background: var(--ink); padding: 7px 0; white-space: nowrap; overflow: hidden; }
.ticker { display: inline-block; font: 700 11px/1 'Space Mono', monospace; letter-spacing: .12em; color: var(--text-light); }
.orange-bar { background: var(--orange); height: 3px; }

/* === HEADER === */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; background: var(--bg); border-bottom: var(--border); }
.masthead-logo { height: 38px; width: auto; display: block; cursor: pointer; }
.masthead nav { display: flex; align-items: center; gap: 24px; }
.masthead nav a { font-size: 13px; font-weight: 600; color: var(--text-light); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.masthead nav a.active { font-weight: 700; color: var(--ink); border-bottom: 2.5px solid var(--orange); padding-bottom: 3px; }
.masthead nav a:hover { color: var(--ink); }
.masthead .cta-site { background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: var(--radius-pill); letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.masthead .cta-site:hover { background: #333; }

/* === BURGER === */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all .2s ease; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* === MENU MOBILE === */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--ink); z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Bagel Fat One', cursive; font-size: 32px; color: var(--bg); text-decoration: none; padding: 12px 24px; border-radius: var(--radius-sm); }
.mobile-menu a.active { color: var(--orange); }
.mobile-menu-close { position: absolute; top: 20px; right: 24px; background: none; border: none; cursor: pointer; font-size: 28px; color: var(--bg); line-height: 1; }
.mobile-menu-logo { height: 28px; margin-bottom: 32px; opacity: .4; }

/* === FOOTER === */
.footer { text-align: center; margin-top: 64px; padding-top: 24px; border-top: 2px solid rgba(26,21,16,.12); }
.footer img { height: 22px; width: auto; margin-bottom: 10px; display: inline-block; }
.footer .tag { font: 700 10px/1.5 'Space Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--text-light); }
.footer .version { font: 400 10px/1.5 'Space Mono', monospace; letter-spacing: .08em; color: var(--text-faint); margin-top: 4px; }

/* === UTILITAIRES === */
.eyebrow-label { font: 700 11px/1 'Space Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--text-light); }
.bagel { font-family: 'Bagel Fat One', cursive; }
.mono { font-family: 'Space Mono', monospace; }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .wrap { padding: 40px 16px 60px; }
  .masthead { padding: 14px 20px; }
  .masthead nav, .masthead .cta-site, .masthead .lang-switcher { display: none; }
  .burger { display: flex; }
}

/* === LANG SWITCHER === */
.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  font: 700 11px/1 'Space Mono', monospace; letter-spacing: .1em;
  border: none; background: none; cursor: pointer; padding: 6px 4px;
  color: var(--text-light); transition: color .12s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 4px; }
.lang-sep { font: 400 11px/1 'Space Mono', monospace; color: var(--text-faint); }
