/* TK Orbit : bleu nuit, noir laqué, néons cyan, touches ambre.
   Polices du système uniquement : aucune requête vers un service tiers. */

:root {
  color-scheme: dark;
  --noir: #04060d;
  --nuit: #0a1230;
  --panneau: #0c1636;
  --panneau-bas: #070d22;
  --cyan: #52e0ff;
  --cyan-voile: rgba(82, 224, 255, 0.28);
  --ambre: #fba825;
  --texte: #eef3ff;
  --texte-doux: #b7c4e4;
  --titres: Bahnschrift, "DIN Alternate", "Segoe UI Semibold", "Roboto Condensed", system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* Sinon « display: inline-block » des boutons l'emporte sur l'attribut hidden */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--noir) linear-gradient(180deg, var(--nuit) 0, var(--noir) 620px) no-repeat;
  color: var(--texte);
  font: 1.0625rem/1.65 var(--corps);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: #b5f1ff; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--titres);
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 7vw, 3.5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.largeur { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ambre);
  color: #14100a;
  font-weight: 700;
}
.lien-evitement:focus { top: 0.5rem; color: #14100a; }

/* En-tête et navigation */
.entete {
  background: rgba(4, 6, 13, 0.92);
  border-bottom: 1px solid var(--cyan-voile);
  box-shadow: 0 0 24px rgba(82, 224, 255, 0.12);
}
.entete .largeur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.7rem;
}
.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--texte);
  font-family: var(--titres);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.marque img { width: 44px; height: 44px; border-radius: 8px; }
.marque:hover { color: var(--texte); }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid transparent;
  color: var(--texte-doux);
  font-family: var(--titres);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--texte); border-color: var(--cyan); }
.nav a[aria-current="page"] { color: var(--ambre); border-color: var(--ambre); }

main { flex: 1; padding-bottom: 3rem; }
section { margin-top: 3.5rem; }

/* Bandeaux d'ouverture */
.heros { position: relative; margin-top: 0; border-bottom: 1px solid var(--cyan-voile); background: #090d18; }
.heros picture img { width: 100%; max-height: 460px; object-fit: cover; }
.heros-texte { padding-block: 1.75rem 2.25rem; text-align: center; }
.accroche { font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--texte-doux); max-width: 44ch; margin-inline: auto; }
.surtitre {
  margin: 0 0 0.5rem;
  color: var(--ambre);
  font-family: var(--titres);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.tete-page { margin-top: 2.5rem; }
.tete-page p { max-width: 62ch; color: var(--texte-doux); }
.tete-page .surtitre { color: var(--ambre); }

/* Titre de section en onglet biseauté */
.onglet {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 2.2rem 0.35rem 1rem;
  background: linear-gradient(90deg, #123a63, #0c2447);
  border-left: 4px solid var(--cyan);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
  text-transform: uppercase;
}

/* Panneaux */
.panneau {
  background: linear-gradient(180deg, var(--panneau), var(--panneau-bas));
  border: 1px solid var(--cyan-voile);
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(82, 224, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(1rem, 3vw, 1.75rem);
}
.panneau > :last-child { margin-bottom: 0; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.vedette { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 840px) { .vedette { grid-template-columns: 3fr 2fr; } }

figure { margin: 0; }
figcaption { margin-top: 0.5rem; color: var(--texte-doux); font-size: 0.875rem; }
.illustration img { width: 100%; border: 1px solid var(--cyan-voile); border-radius: 4px; }

/* Boutons et pastilles */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.25rem 0; }
.heros .actions { justify-content: center; margin-bottom: 0; }
.bouton {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  background: rgba(82, 224, 255, 0.08);
  color: var(--texte);
  font: 600 1rem/1.3 var(--titres);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
a.bouton:hover, button.bouton:hover { background: rgba(82, 224, 255, 0.22); color: #fff; box-shadow: 0 0 18px var(--cyan-voile); }
.bouton-ambre { background: var(--ambre); border-color: var(--ambre); color: #14100a; }
a.bouton-ambre:hover { background: #ffc15c; color: #14100a; box-shadow: 0 0 20px rgba(251, 168, 37, 0.45); }
.bouton:disabled, .bouton.inactif {
  background: #141c36;
  border: 1px dashed #7483ad;
  color: #c3cce6;
  cursor: not-allowed;
  box-shadow: none;
}
.bouton:disabled:hover { background: #141c36; color: #c3cce6; box-shadow: none; }
.bouton-grand { font-size: 1.15rem; padding: 1rem 1.8rem; }
.bouton-petit { padding: 0.35rem 0.8rem; font-size: 0.85rem; }

.pastille {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--ambre);
  border-radius: 99px;
  color: var(--ambre);
  font-family: var(--titres);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Fiches « libellé : valeur » */
.fiche { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0.4rem 1.25rem; margin: 0 0 1em; }
.fiche dt { color: var(--texte-doux); }
.fiche dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .fiche { grid-template-columns: 1fr; gap: 0; }
  .fiche dd { margin-bottom: 0.7rem; }
}
code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
pre {
  margin: 0 0 1em;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  background: var(--noir);
  border: 1px solid var(--cyan-voile);
  border-radius: 3px;
  font-size: 0.9rem;
}

/* Emplacements de captures */
.emplacement {
  display: grid;
  place-content: center;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  border: 1px dashed #5d7bb5;
  border-radius: 4px;
  background:
    linear-gradient(rgba(82, 224, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(82, 224, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--panneau-bas);
  color: var(--texte-doux);
  font-family: var(--titres);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* Devlog */
.carte { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.carte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carte-texte { padding: 1rem 1.25rem 1.25rem; }
.carte-texte > :last-child { margin-bottom: 0; }
.date { color: var(--ambre); font-size: 0.875rem; font-family: var(--titres); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; }

.billet { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.billet .texte { max-width: 68ch; }
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 0.9rem;
  align-items: start;
}
.galerie a { display: block; }
.galerie img { width: 100%; border-radius: 3px; }
.galerie.seule { grid-template-columns: minmax(0, 640px); }

.liste-simple { padding-left: 1.2rem; }
.liste-simple li { margin-bottom: 0.4rem; }

.version { padding-block: 1rem; border-top: 1px solid var(--cyan-voile); }
.version:first-child { border-top: 0; padding-top: 0; }

.logos { align-items: end; }
.logos img { border-radius: 6px; width: 100%; }
.logos figure:first-child img { max-width: 260px; }
.logos + p { margin-top: 1rem; }
.panneau > .actions:first-child { margin-top: 0; }
.panneau > .actions:last-child { margin-bottom: 0; }
.echantillons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.echantillons span { display: block; width: 8rem; height: 4rem; margin-bottom: 0.35rem; border: 1px solid #6f7fae; border-radius: 4px; }
.couleur-nuit { background: #010e40; }
.couleur-ambre { background: #fba825; }
.couleur-blanc { background: #fcf9f4; }

/* Pied de page */
.pied { border-top: 1px solid var(--cyan-voile); background: var(--noir); color: var(--texte-doux); font-size: 0.9rem; }
.pied .largeur { padding-block: 1.5rem; }
.reseaux { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.reseaux [aria-disabled="true"] { color: #8f9cc0; }

@media (prefers-reduced-motion: no-preference) {
  a, .bouton { transition: color 0.15s, background-color 0.15s, box-shadow 0.15s, border-color 0.15s; }
}
