/* Le site PredicTFT : sombre, or et bleu, comme l'interface de TFTVoir (`PaletteTFT.h`). */
:root {
  --fond: #0a0e13;
  --fond-2: #111821;
  --trait: #3c3c41;
  --or: #c8aa6e;
  --or-clair: #f0e6d2;
  --texte: #c4c0b8;
  --texte-2: #8a8f98;
  --bleu: #0ac8b9;
  --largeur: 1120px;
  --largeur-du-jeu: 1360px;   /* DRL : « un peu plus, mais pas toute la largeur » */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--or); }

.entete {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--largeur)) / 2));
  background: rgba(10, 14, 19, 0.92);
  border-bottom: 1px solid var(--trait);
  backdrop-filter: blur(6px);
}
.marque { color: var(--or-clair); font-weight: 700; letter-spacing: 0.06em; text-decoration: none; font-size: 18px; }
.entete nav { display: flex; gap: 20px; flex-wrap: wrap; }
.entete nav a { color: var(--texte); text-decoration: none; font-size: 14px; }
.entete nav a:hover { color: var(--or-clair); }
.outils { display: flex; align-items: center; gap: 12px; }
.langue select {
  background: var(--fond-2); color: var(--texte); border: 1px solid var(--trait);
  padding: 6px 8px; font: inherit; font-size: 14px;
}
.cafe {
  padding: 6px 12px; border: 1px solid var(--or); color: var(--or-clair); text-decoration: none;
  font-size: 14px; white-space: nowrap; background: var(--fond-2);
}
.cafe:hover { background: #1e2328; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.accroche { padding: 40px 0 24px; }
.accroche h1 { color: var(--or-clair); font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin: 0 0 10px; }
.accroche p { color: var(--texte); font-size: 18px; max-width: 70ch; margin: 0; }

/* le cadre du jeu : 16:9, plus large que le texte ; en plein écran, tout l'écran */
.jeu { width: min(100% - 32px, var(--largeur-du-jeu)); margin: 0 auto; }
.cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid var(--or);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.cadre:fullscreen { border: 0; aspect-ratio: auto; }
.cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lancer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: #000; color: var(--or-clair); font: inherit;
}
.lancer img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.55); }
.lancer-bouton {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%);
  padding: 14px 28px; border: 2px solid var(--or); background: rgba(10, 14, 19, 0.85);
  font-size: 18px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.lancer:hover .lancer-bouton, .lancer:focus-visible .lancer-bouton { background: #1e2328; border-color: var(--or-clair); }
.lancer-note {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 40px);
  font-size: 13px; color: var(--texte); text-align: center; width: min(90%, 520px);
}
.sous-cadre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 0; }
.astuce { color: var(--texte-2); font-size: 14px; }
.plein-ecran {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--or); background: var(--fond-2); color: var(--or-clair);
  font: inherit; font-size: 14px; cursor: pointer;
}
.plein-ecran:hover { background: #1e2328; }
.plein-ecran[hidden] { display: none; }

.texte { padding: 48px 0 8px; max-width: 75ch; }
.texte h2 { color: var(--or-clair); font-size: 26px; margin: 0 0 12px; }
.texte h3 { color: var(--or); font-size: 18px; margin: 24px 0 6px; }
details { border-top: 1px solid var(--trait); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--trait); }
summary { cursor: pointer; color: var(--or-clair); }
details p { margin: 8px 0 0; }

.pied {
  margin-top: 64px; padding: 24px max(16px, calc((100% - var(--largeur)) / 2)) 40px;
  border-top: 1px solid var(--trait);
  color: var(--texte-2); font-size: 12px;
}
.pied p { max-width: 90ch; }

@media (max-width: 900px) {
  .entete { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .entete nav { gap: 12px; }
  .lancer-note { display: none; }
  .astuce { display: none; }
}
