/* ============================================================
    reset de base, police, couleurs (tokens), header/nav
   ============================================================ */
@font-face {
  font-family: 'Softizen';
  src: url('fonts/Softizen.woff2') format('woff2'),
       url('fonts/Softizen.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #000000;
  --white: #ffffff;
  /* Couleur d'interface (nav, boutons, liens, bordures, rôles). */
  --accent: #085fe1;
  --accent-hover: #3d85ec;
  --accent-dim: #0d3474;
  --role-rap: #ffffff;
  --role-prod: #E97132;
  --role-image: #17A2B8;
  --role-collectif: #4472C4;
  --role-culture: #D86DCD;
  --status-nouveau: #F5D742;
  --status-monte: #3ECF6E;
  --status-descend: #FF4D4D;
}

* { box-sizing: border-box; }

/* Échelle globale de toute l'interface */
html { font-size: 16px; }
@media (min-width: 900px) {
  html { font-size: clamp(16px, 0.9vw + 8px, 26px); }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header / nav -------------- */
header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #222;
}
.site-title { text-decoration: none; display: block; }
header h1 {
  margin: 0;
  font-family: 'Softizen', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #085fe1;
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 4px #ffffff);
}
header nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
header nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
header nav a:hover { color: var(--white); }
header nav a.active { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---- Pages simple -------------------- */
main.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
main.page h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2rem 0 1rem;
}
main.page h2:first-child { margin-top: 0; }
main.page p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #ccc;
  margin: 0 0 1.25rem;
}
main.page p a, main.page .placeholder a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
main.page p a:hover, main.page .placeholder a:hover { color: var(--accent-hover); }
main.page .placeholder {
  color: #777;
  font-style: italic;
  font-size: 0.9rem;
  border: 1px dashed #333;
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
}
main.page .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
main.page .contact-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #333;
  padding: 0.55rem 0.85rem;
  transition: border-color 0.15s ease;
}
main.page .contact-links a:hover { border-color: var(--accent); color: var(--accent); }
main.page .btn-primary {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  margin-top: 0.25rem;
  transition: background 0.15s ease;
}
main.page .btn-primary:hover { background: var(--accent-hover); }


/* Icones Header */
header nav .social-icons { display: flex; align-items: center; gap: 0.85rem; margin-left: 0.25rem; }
header nav .social-icons a { display: inline-flex; opacity: 0.6; transition: opacity .15s; }
header nav .social-icons a:hover { opacity: 1; }
header nav .social-icons img { width: 18px; height: 18px; display: block; }

/* ---- Recherche globale (header) -------------- */
#gs-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.25rem;
  color: var(--white);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
#gs-btn:hover { opacity: 1; }

.gs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
  z-index: 200;
}
.gs-overlay.open { display: flex; }

#gs-panel {
  width: 100%;
  max-width: 28rem;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gs-input {
  width: 100%;
  background: #0d0d0d;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
}
.gs-input:focus { outline: none; border-bottom-color: var(--accent); }
.gs-input::placeholder { color: #666; }

.gs-results { overflow-y: auto; }

.gs-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--white);
  border-top: 1px solid #1a1a1a;
}
.gs-row:first-child { border-top: none; }
.gs-row:hover, .gs-row.active { background: #151515; }

.gs-row .gs-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-niveau {
  flex: none;
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  color: #000;
}

.gs-empty, .gs-hint {
  color: #666;
  font-size: 0.8rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-style: italic;
}