/* kickskool.com. Les couleurs, les polices et les formes sont celles du jeu
   (lib/main.dart, lib/full_game_screen.dart) : fond nuit, crème, jaune,
   titres en Anton penché avec une ombre rose, cartes à bord crème. */

@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("fonts/PermanentMarker-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ground: #14121F;
  --panel: #1C1930;
  --ink: #10213A;
  --cream: #F4EFE6;
  --text: #DDD7E6;
  --muted: #A9A3B8;
  --line: rgba(244, 239, 230, .16);
  --sun: #FFC53D;
  --pink: #FF3D8B;
  --teal: #19C3B1;
  --link: #5FE3D3;
  --display: "Anton", Impact, "Arial Narrow", system-ui, sans-serif;
  --display-weight: 400;
  --display-style: italic;
  --ui: "Barlow Semi Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --marker: "Permanent Marker", "Barlow Semi Condensed", system-ui, sans-serif;
  --marker-weight: 400;
  --gutter: 20px;
  --max: 1080px;
}
/* Anton et Permanent Marker n'ont que les lettres latines : ailleurs, les
   titres prennent la police du système, en gras et droite. */
:lang(ja), :lang(ko), :lang(zh), :lang(ru), :lang(ar), :lang(th) {
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --display-weight: 800;
  --display-style: normal;
  --marker: var(--display);
  --marker-weight: 800;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
/* Le ciel du soir du toit et du parking, tout en haut de la page. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 46% at 82% -6%, rgba(108, 75, 216, .34), transparent 70%),
    radial-gradient(ellipse 60% 40% at 6% -10%, rgba(255, 61, 139, .18), transparent 70%);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); text-transform: uppercase; letter-spacing: .01em; line-height: 1.08; margin: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }

/* En-tête */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-style: italic; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--sun); }
.nav .lang { display: inline-flex; align-items: center; gap: 6px; }
.nav .lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Accueil : l'affiche */
.hero { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; padding: 20px 0 64px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.08fr 1fr; gap: 56px; padding: 44px 0 88px; } }
.kicker { margin: 0 0 18px; color: var(--sun); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0 0 18px; line-height: 0; }
.hero h1 img { display: block; width: min(100%, 520px); margin-inline-start: -6px; }
.tagline { margin: 0 0 16px; color: var(--sun); font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(24px, 4.2vw, 36px); line-height: 1.1; text-transform: uppercase; }
.lede { margin: 0 0 28px; max-width: 46ch; font-size: 20px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--sun); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--cream);
  font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; line-height: 1.1;
}
a.btn:hover { color: var(--ink); transform: translateY(-2px); }
.btn.soon { background: transparent; color: var(--cream); border-color: transparent; box-shadow: 0 0 0 3px var(--line); cursor: default; }
.btn.soon small { font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 3px 9px; align-self: center; }

/* La photo de la cour, posée de travers, avec les deux ombres du logo. */
.snap { position: relative; width: min(100%, 460px); margin: 0 auto; }
.snap > img:first-child { display: block; width: 100%; border: 10px solid var(--cream); border-radius: 6px; transform: rotate(2.4deg); box-shadow: 10px 10px 0 var(--pink), 20px 20px 0 var(--teal); }
.snap .sticker { position: absolute; inset-inline-start: -18px; bottom: -30px; width: 112px; height: 112px; border-radius: 24%; border: 5px solid var(--cream); transform: rotate(-9deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
@media (max-width: 520px) { .snap .sticker { width: 84px; height: 84px; inset-inline-start: -6px; bottom: -22px; } }

/* Titres de section */
.home section { padding: 0 0 80px; }
.home h2 { font-size: clamp(30px, 5.2vw, 46px); color: var(--cream); text-shadow: 3px 3px 0 var(--pink); margin: 0 0 12px; }
.sub { margin: 0 0 30px; max-width: 60ch; font-size: 19px; color: var(--muted); }

/* Un tir, trois gestes */
.moves ol { list-style: none; counter-reset: move; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .moves ol { grid-template-columns: repeat(3, 1fr); } }
.moves li { counter-increment: move; position: relative; background: var(--panel); border: 3px solid var(--cream); border-radius: 20px; padding: 46px 22px 22px; margin-top: 30px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); }
.moves li::before {
  content: counter(move); position: absolute; top: -32px; inset-inline-start: 18px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--cream);
  font-family: "Anton", Impact, sans-serif; font-size: 30px; line-height: 1;
}
.moves h3 { font-size: 26px; color: var(--cream); margin: 0 0 8px; }
.moves p { margin: 0; color: var(--text); }

/* Les quatre lieux : des photos légendées au feutre */
.photos { display: grid; grid-template-columns: 1fr; gap: 30px 22px; }
@media (min-width: 520px) { .photos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .photos { grid-template-columns: repeat(4, 1fr); } }
.photos figure { margin: 0; background: var(--cream); padding: 9px 9px 14px; border-radius: 5px; box-shadow: 0 12px 26px rgba(0, 0, 0, .45); transform: rotate(-1.6deg); }
.photos figure:nth-child(2) { transform: rotate(1.2deg); }
.photos figure:nth-child(3) { transform: rotate(-.8deg); }
.photos figure:nth-child(4) { transform: rotate(1.8deg); }
.photos img { display: block; width: 100%; border-radius: 2px; }
.photos figcaption { padding: 10px 4px 0; color: var(--ink); line-height: 1.2; }
.photos figcaption b { display: block; font-family: var(--marker); font-weight: var(--marker-weight); font-size: 23px; }
.photos figcaption span { display: block; margin-top: 3px; font-weight: 700; font-size: 16px; color: #4A4763; }

/* Les épreuves */
.tags { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 7px 16px; border: 2px solid var(--cream); border-radius: 999px; color: var(--cream); font-weight: 700; font-size: 17px; }
.tags li:first-child { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 3px solid var(--cream); border-radius: 20px; padding: 22px; box-shadow: 7px 7px 0 var(--accent, var(--sun)); }
.card.sun { --accent: var(--sun); }
.card.pink { --accent: var(--pink); }
.card.teal { --accent: var(--teal); }
.card h3 { font-size: 24px; color: var(--accent, var(--sun)); margin: 0 0 8px; }
.card p { margin: 0; color: var(--text); }

/* La cour est offerte */
.home section.offer { margin: 0 0 80px; padding: 34px 28px; background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 0 0 3px var(--cream); }
.home .offer h2 { color: var(--ink); text-shadow: none; }
.offer p { margin: 0; max-width: 64ch; font-size: 20px; font-weight: 600; }

/* En bref */
.home section.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; padding-bottom: 72px; }
.spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 760px) { .home section.specs { grid-template-columns: repeat(5, 1fr); } .spec:last-child:nth-child(odd) { grid-column: auto; } }
.spec { overflow-wrap: anywhere; }
.spec b { display: block; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 44px; line-height: 1; color: var(--sun); }
.spec span { display: block; margin-top: 8px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Pages de texte : aide, confidentialité, mentions légales */
.page { padding: 18px 0 72px; }
.page h1 { font-size: clamp(34px, 6vw, 50px); color: var(--cream); text-shadow: 3px 3px 0 var(--pink); margin: 0 0 12px; }
.page .meta { margin: 0 0 34px; color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
/* Sur une page légale traduite : la version qui fait foi. */
.page .note { margin: -20px 0 30px; padding-inline-start: 12px; border-inline-start: 3px solid var(--line); color: var(--muted); font-size: 16px; }
.page h2 { font-size: 24px; color: var(--sun); margin: 42px 0 12px; padding-top: 20px; border-top: 2px solid var(--line); }
.page h3 { font-size: 20px; color: var(--cream); margin: 24px 0 6px; }
.page p, .page li { color: var(--text); }
.page strong { color: var(--cream); }
.page ul { padding-inline-start: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--sun); }
/* Un libellé tel que le jeu l'affiche. */
.ui { font-weight: 700; color: var(--cream); background: rgba(244, 239, 230, .1); border-radius: 7px; padding: 1px 7px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.callout { background: var(--panel); border: 3px solid var(--cream); border-radius: 18px; padding: 18px 20px; margin: 22px 0; box-shadow: 6px 6px 0 var(--sun); }
.callout p { margin: 0; }
details { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
details[open] { border-color: var(--cream); }
details summary { cursor: pointer; padding: 15px 0; color: var(--cream); font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 14px; overflow-wrap: anywhere; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; flex: none; color: var(--sun); font-family: "Anton", Impact, sans-serif; font-size: 22px; line-height: 1.2; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; }
.lost { padding-top: 12vh; }
.lost .lede { max-width: none; }

/* Pied de page */
.foot { border-top: 2px solid var(--line); padding: 26px 0 44px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--cream); }
.foot a[aria-current] { color: var(--cream); }
.foot a[href^="mailto:"] { text-transform: none; letter-spacing: .02em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* Toutes les langues du site, chacune sous son propre nom. */
.foot .langs { flex-basis: 100%; gap: 8px 18px; font-weight: 500; font-size: 15px; letter-spacing: 0; text-transform: none; }

/* Le japonais se coupe entre les groupes de mots plutôt qu'au milieu d'un mot, là où le navigateur sait le faire. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .tagline, :lang(ja) .lede, :lang(ja) .sub { word-break: auto-phrase; }

/* Les lettres arabes se lient et les signes thaïs s'empilent : pas d'espacement des lettres. */
:lang(ar), :lang(ar) *, :lang(th), :lang(th) * { letter-spacing: 0 !important; }
