/* Le site de Lumen : la nuit du jeu, la lueur du phare. Couleurs et polices de src/game/content.ts (PALETTE, FONTS),
   polices servies par le site lui-même (aucune requête vers un tiers). */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/Fraunces_700Bold_Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope_800ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --abysse: #060a18;
  --nuit: #0a1024;
  --encre: #141c3a;
  --encre-clair: #1f2a52;
  --lueur: #ffb547;
  --lueur-pale: #ffd99a;
  --ecume: #e8ecf6;
  --brume: #8a93b8;
  --algue: #5fd3b0;
  --ombre: #c9a8ff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--abysse);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 181, 71, 0.16), transparent 70%),
    linear-gradient(180deg, var(--nuit) 0%, var(--abysse) 60%);
  background-attachment: fixed;
  color: var(--ecume);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lueur);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lueur-pale);
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête : le nom du jeu et le choix de la langue */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ecume);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
}

.brand img {
  width: 32px;
  height: 32px;
}

.lang {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--brume);
  border: 1.5px solid var(--encre-clair);
  border-radius: 999px;
  padding: 6px 14px;
}

.lang:hover {
  color: var(--ecume);
  border-color: var(--brume);
}

/* La présentation */
.hero {
  text-align: center;
  padding: 36px 0 28px;
}

.hero .lighthouse {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 36px rgba(255, 181, 71, 0.45));
}

h1,
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(36px, 8vw, 54px);
  color: var(--lueur);
  margin-top: 18px;
}

h1 .sub {
  display: block;
  font-size: 0.48em;
  color: var(--lueur-pale);
  margin-top: 6px;
}

.tagline {
  font-size: 19px;
  color: var(--ecume);
  max-width: 560px;
  margin: 18px auto 0;
}

.badge {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--lueur);
  color: var(--abysse);
  font-weight: 800;
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px 0 8px;
  margin: 0;
  list-style: none;
}

.features li {
  background: var(--encre);
  border: 1px solid var(--encre-clair);
  border-radius: 16px;
  padding: 18px;
}

.features h2 {
  font-size: 21px;
  color: var(--lueur-pale);
  margin-bottom: 6px;
}

.features p {
  margin: 0;
  color: var(--brume);
  font-size: 15.5px;
}

.panel {
  background: var(--encre);
  border: 1px solid var(--encre-clair);
  border-radius: 16px;
  padding: 22px;
  margin: 22px 0;
}

.panel h2 {
  font-size: 24px;
  color: var(--lueur);
  margin-bottom: 8px;
}

.panel p {
  margin: 0.4em 0;
}

/* La page de confidentialité */
.doc {
  padding: 18px 0 8px;
}

.doc h1 {
  font-size: clamp(30px, 6vw, 42px);
}

.doc .date {
  color: var(--brume);
  margin-top: 6px;
}

.doc h2 {
  font-size: 23px;
  color: var(--lueur-pale);
  margin: 30px 0 8px;
}

.doc p,
.doc li {
  color: var(--ecume);
}

.doc ul {
  padding-left: 22px;
}

.summary {
  border-left: 3px solid var(--algue);
  background: rgba(95, 211, 176, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 22px 0 0;
}

/* Pied de page */
.foot {
  border-top: 1px solid var(--encre-clair);
  margin-top: 40px;
  padding: 22px 0 36px;
  color: var(--brume);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.foot a {
  color: var(--brume);
}

.foot a:hover {
  color: var(--ecume);
}

/* Le faisceau du phare tourne doucement ; jamais pour qui préfère moins d'animations. */
.beam {
  transform-origin: 60px 38px;
  animation: sweep 6s ease-in-out infinite alternate;
}

@keyframes sweep {
  from {
    transform: rotate(-18deg);
  }
  to {
    transform: rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beam {
    animation: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 22px;
  }
  .hero .lighthouse {
    width: 120px;
    height: 120px;
  }
}
