/* ════════════════════════════════════════
   COMMON — variables, reset, header, footer
   Utilisé par toutes les pages
════════════════════════════════════════ */

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

:root {
  --bg:       #0d0f14;
  --bg-sec:   #090b10;
  --bg-card:  #13151e;
  --border:   #1e2230;
  --gold:     #b8a040;
  --gold-lt:  #d4bc5a;
  --blue:     #4fa8d8;
  --accent:   #4fa8d8;
  --accent-h: #6bbde8;
  --text:     #eef2f7;
  --muted:    #64748b;
  --muted2:   #8898aa;
  --discord:  #5865f2;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 62px;
  background: linear-gradient(180deg, rgba(4,7,18,0.72) 0%, rgba(4,7,18,0.38) 100%);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
header.scrolled {
  background: rgba(4,7,18,0.92);
  border-bottom-color: rgba(74,120,224,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hdr {
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; flex-shrink: 0; gap: 2px; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-sub { font-size: 0.5rem; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; padding-left: 1px; line-height: 1; }

/* ── Nav ── */
nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; }
nav a {
  position: relative; font-size: 0.7rem; font-weight: 600;
  color: #8aa4c4; text-decoration: none; padding: 20px 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.18s; white-space: nowrap;
}
nav a:hover { color: #c8d8f0; }
nav a.active { color: #fff; }
nav a.active::after {
  content: '';
  position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* ── Header right ── */
.hdr-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.social-row { display: flex; align-items: center; gap: 2px; }
.si {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: #8aa4c4; text-decoration: none; transition: color 0.18s; border-radius: 4px;
}
.si:hover { color: #fff; }
.si svg { display: block; }
.btn-search {
  background: none; border: none; cursor: pointer;
  color: #8aa4c4; transition: color 0.18s;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px; padding: 0;
}
.btn-search:hover { color: #fff; }
.hdr-sep { width: 1px; height: 20px; background: rgba(74,120,224,0.15); margin: 0 6px; }
.btn-join {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 7px 16px; border-radius: 4px;
  font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.07em; cursor: pointer; text-decoration: none;
  transition: background 0.18s, border-color 0.18s; white-space: nowrap;
}
.btn-join:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }

/* ── Footer ── */
footer {
  background: var(--bg); border-top: 1px solid rgba(100,140,220,0.1);
  padding: 26px 32px; text-align: center;
}
.footer-wing { opacity: 0.22; margin: 0 auto 10px; display: block; }
.footer-text { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.05em; }

/* ── Skill embed (shortcode [skill:slug]) ── */
.skill-embed {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(58,139,186,0.12); border: 1px solid rgba(58,139,186,0.28);
  border-radius: 4px; padding: 2px 7px 2px 4px;
  font-size: 0.78em; font-weight: 600; color: var(--text);
  vertical-align: middle; white-space: nowrap; cursor: default;
  transition: background 0.15s;
}
.skill-embed:hover { background: rgba(58,139,186,0.22); }
.skill-embed img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.skill-embed-name { color: #c8d8f0; }
.skill-unknown { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25); color: var(--muted); font-style: italic; }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav a { padding: 20px 9px; font-size: 0.62rem; }
}
