/* choosered.io : feuille unique, aucune ressource externe */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-200-500.woff2") format("woff2"); font-weight: 200 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --fond: #17181a;
  --carte: rgba(255, 255, 255, 0.025);
  --encre: #f4f5f7;
  --encre-douce: #e9ecef;
  --discret: #8b949c;
  --rouge: #e3281f;
  --rouge-texte: #f0453b;
  --filet: rgba(255, 255, 255, 0.10);
  --filet-fort: rgba(255, 255, 255, 0.24);
  --mono: "Space Mono", ui-monospace, "Cascadia Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marge: clamp(16px, 4vw, 32px);
  --amorti: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; min-height: 100dvh; background: var(--fond); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--encre); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #5aa2ee; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

/* ciel en parallaxe, purement décoratif */
.ciel { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.plan { position: absolute; left: 0; right: 0; top: -200px; height: calc(100% + 400px); will-change: transform; transition: transform 0.8s var(--amorti); }
.plan span { position: absolute; border-radius: 50%; background: var(--encre); }
.plan[data-plan="pres"] span { box-shadow: 0 0 6px rgba(244, 245, 247, 0.5); }
.carte { width: 100%; height: 2600px; top: 0; }
.carte .orbites circle { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 1; stroke-dasharray: 2 10; stroke-linecap: round; }
.carte .traits polyline { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.carte .astres circle { fill: var(--encre); opacity: 0.7; }

.page { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 var(--marge) env(safe-area-inset-bottom); }

/* en-tête */
.entete { display: flex; align-items: center; padding: 24px 0; }
.marque { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.marque img { height: 38px; width: auto; }
.marque span { font-weight: 300; font-size: 20px; letter-spacing: 0.04em; }
.marque b { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--rouge); letter-spacing: 0; }

/* accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px 0 104px; }
.hero-texte { display: flex; flex-direction: column; gap: 28px; }
.surtitre { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--discret); }
h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1.06; font-weight: 200; letter-spacing: 0.005em; text-wrap: balance; }
.point { color: var(--rouge); }
.chapeau { font-size: clamp(17px, 2vw, 19px); color: var(--encre-douce); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.32); background: transparent; color: var(--encre); font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.14s ease, background-color 0.14s ease; }
.bouton:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.05); }
.bouton.principal { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton.principal:hover { background: #c91e18; }
.bouton.clair { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.bouton.clair:hover { background: #fff; color: var(--fond); }

.hero-logo { display: flex; justify-content: center; padding-right: 8%; }
.logo { position: relative; width: min(360px, 72vw); aspect-ratio: 800 / 783; transition: transform 0.8s var(--amorti); }
.logo .planete { position: absolute; inset: 0; width: 100%; height: 100%; animation: respire 7s ease-in-out infinite; }
.orbite { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anneau path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.satellite { fill: #fff; stroke: var(--fond); stroke-width: 3; }
.trainee { fill: #fff; }
.trainee.t1 { opacity: 0.4; }
.trainee.t2 { opacity: 0.2; }
.io { font-family: var(--mono); font-weight: 700; font-size: 40px; fill: var(--encre); stroke: var(--fond); stroke-width: 9; stroke-linejoin: round; paint-order: stroke; }
@keyframes respire { 0%, 100% { filter: drop-shadow(0 0 14px rgba(227, 40, 31, 0.18)); } 50% { filter: drop-shadow(0 0 26px rgba(227, 40, 31, 0.38)); } }

/* jeux */
.jeux { padding-bottom: 88px; }
.jeux-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--filet-fort); }
.jeux-tete h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 300; letter-spacing: 0.01em; }
.compte { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--discret); }
.compte polyline { fill: none; stroke: rgba(255, 255, 255, 0.3); }
.compte circle { fill: var(--encre); }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.jeu { display: flex; flex-direction: column; aspect-ratio: 1 / 1; min-height: 460px; border-radius: 20px; overflow: hidden; background: var(--carte); border: 1px solid var(--filet); }
.visuel { position: relative; flex: 1 1 auto; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.visuel svg { width: 170px; height: 170px; fill: none; stroke: var(--encre); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.visuel .plein { fill: var(--encre); stroke: none; }
.visuel .fin { stroke-width: 0.9; }
.visuel .tirets { stroke-dasharray: 1.5 4.5; }
.visuel.bleu { background: #1b2233; } .visuel.bleu .corps { fill: #2a3550; }
.visuel.vert { background: #18231e; } .visuel.vert .corps { fill: #22302a; }
.visuel.brun { background: #232120; } .visuel.brun .corps { fill: #35322f; }
.visuel.capture { background: #0e0d10; overflow: hidden; }
.visuel.capture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; image-rendering: pixelated; }
.appareils { position: absolute; top: 14px; left: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.appareil { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(14, 15, 17, 0.78); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--encre); font: 400 12px/1 var(--mono); letter-spacing: 0.02em; }
.appareil svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.appareil.conseille { border-color: var(--rouge-texte); color: #fff; }
.appareil.conseille svg { stroke: var(--rouge-texte); }
.infos { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.titre { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.titre h3 { font-size: 28px; font-weight: 400; }
.infos p { color: var(--encre-douce); }
.tampon { padding: 3px 9px; border: 1.5px solid var(--encre-douce); border-radius: 4px; color: var(--encre-douce); font-family: var(--mono); font-size: 12px; transform: rotate(2deg); }
.tampon.rouge { border-color: var(--rouge-texte); color: var(--rouge-texte); transform: rotate(-3deg); }
.tampon.gris { border-color: #7f8a93; color: #a7b0b8; transform: rotate(-2deg); }
.pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.plateforme { font-family: var(--mono); font-size: 13px; color: var(--discret); }
.bientot { display: inline-flex; align-items: center; min-height: 44px; color: var(--discret); font-weight: 500; }
.pied .bouton { min-height: 44px; padding: 0 20px; }

/* pied de page */
.pied-page { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 40px 0 56px; border-top: 1px solid var(--filet); }
.famille { flex: 1 1 480px; min-width: 0; display: flex; gap: 24px; }
.famille svg { flex: 0 0 auto; }
.famille polyline { fill: none; stroke: rgba(255, 255, 255, 0.3); }
.famille circle { fill: var(--encre); }
.famille circle.ici { fill: var(--rouge); }
.famille dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 28px; font-size: 15px; }
.famille dd { margin: 0; color: var(--discret); }
.famille b { color: var(--rouge); font-weight: inherit; }
.mentions { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--discret); }
.mentions a { color: var(--encre-douce); }

/* lecteur de jeu */
.lecteur { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #111214; color: var(--encre); }
.lecteur[open] { display: flex; flex-direction: column; }
.lecteur::backdrop { background: rgba(0, 0, 0, 0.7); }
.lecteur-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--marge); border-bottom: 1px solid var(--filet); }
.lecteur-barre h2 { font-size: 22px; font-weight: 400; }
.lecteur-actions { display: flex; gap: 8px; }
.lecteur-actions .bouton { min-height: 44px; padding: 0 16px; font-size: 14px; }
.lecteur-cadre { flex: 1 1 auto; display: flex; padding: 12px var(--marge); min-height: 0; }
.lecteur-cadre iframe { flex: 1 1 auto; width: 100%; border: 1px solid var(--filet); border-radius: 6px; background: #0b0c0f; }
.lecteur-note { padding: 0 var(--marge) calc(14px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--discret); }

/* pages de texte */
.texte { max-width: 760px; padding: 24px 0 80px; }
.texte h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 32px; }
.texte h2 { font-size: 22px; font-weight: 500; margin: 36px 0 10px; }
.texte p, .texte li { color: var(--encre-douce); margin-bottom: 10px; }
.texte .retour { display: inline-flex; min-height: 44px; align-items: center; }

/* tablette */
@media (max-width: 960px) {
  .hero { gap: 32px; }
  .jeu { aspect-ratio: auto; min-height: 0; }
  .visuel { min-height: 220px; }
}
/* téléphone */
@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 16px 0 72px; }
  .hero-logo { order: -1; padding-right: 0; }
  .logo { width: min(300px, 70vw); }
  .grille { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .visuel { min-height: 200px; }
  .famille dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .famille dd { margin-bottom: 10px; }
}

@media (pointer: coarse) {
  .famille a, .mentions a, .texte .retour { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo .planete { animation: none; }
  .plan, .logo { transition: none; }
}
