/* Les Comptes d'Odin — pages d'assistance et de confidentialité.
   Aucune ressource externe : la police des titres (Rubik Black, OFL, celle de l'app) est servie par le site. */

@font-face {
  font-family: "Rubik";
  src: url("/fonts/Rubik-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f2ed;
  --border: #e6ded5;
  --line: #ece6df;
  --text: #1d3a52;
  --secondary: #6b8193;
  --accent: #1c77a3;
  --sky: #78cce0;
  --snow: #e4f3f8;
  --blue: #3670b5;
  --red: #a6191f;
  --pink: #ed70a8;
  --green: #4bb168;
  --orange: #e78949;
  --brown: #4c3022;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1f2b;
    --surface: #182c3a;
    --soft: #1d3342;
    --border: #27404f;
    --line: #223847;
    --text: #eaf2f7;
    --secondary: #9db3c2;
    --accent: #7cc6e8;
    --sky: #143650;
    --snow: #132533;
    --blue: #4f8bd6;
    --red: #c8353e;
    --pink: #ee7bb0;
    --green: #52bd72;
    --orange: #ee9657;
    --brown: #9c7458;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.top {
  display: flex;
  justify-content: flex-end;
  font-size: 15px;
}

.top a { color: var(--secondary); }

header {
  text-align: center;
  padding: 16px 0 28px;
}

/* L'icône posée sur la neige, comme les cartes de l'app : ombre plate décalée, sans flou. */
header img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
}

h1 {
  margin: 18px 0 6px;
  font: 900 40px/1.05 "Rubik", -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: var(--secondary);
}

h2 {
  margin: 0 0 8px;
  font: 900 22px/1.2 "Rubik", -apple-system, sans-serif;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  box-shadow: 0 3px 0 var(--border);
}

/* Le bloc de présentation : le liseré des six couleurs du paquet, une par joueur. */
section.summary {
  background:
    linear-gradient(90deg, var(--blue) 0 16.66%, var(--red) 16.66% 33.33%, var(--pink) 33.33% 50%, var(--green) 50% 66.66%, var(--orange) 66.66% 83.33%, var(--brown) 83.33%) top / 100% 6px no-repeat,
    var(--soft);
  padding-top: 24px;
}

p { margin: 0 0 10px; }
p:last-child, ul:last-child { margin-bottom: 0; }

ul { margin: 0 0 10px; padding-left: 20px; }
li { margin: 4px 0; }

.muted { color: var(--secondary); }

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

.date {
  text-align: center;
  color: var(--secondary);
  font-size: 15px;
  margin: -12px 0 16px;
}

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { border-top: 0; padding-top: 4px; }
details:last-of-type { padding-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--secondary); }

footer {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--secondary);
}

footer nav { margin-bottom: 10px; }
footer nav a { margin: 0 8px; }
