/* Miyu Factory : noir et blanc comme le logo ; en descendant, les couleurs de Funky Cards (fondu lent, sans clignotement) */
@font-face { font-family: 'Nothing You Could Do'; src: url('polices/nothing-you-could-do-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-weight: 400; src: url('polices/montserrat-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-weight: 500; src: url('polices/montserrat-latin-500-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-weight: 600; src: url('polices/montserrat-latin-600-normal.woff2') format('woff2'); font-display: swap; }

:root {
  --fond: #000;
  --texte: #f2f2f2;
  --doux: #a3a3a3;
  --trait: #2e2e2e;
  --largeur: 44rem;
  --nuit: #12001F;
  --rose: #EC4899;
  --bleu: #38BDF8;
  --jaune: #FACC15;
  --lavande: #E9D5FF;
  --mauve: #C4B5FD;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--texte);
  font: 400 1.0625rem/1.65 'Montserrat', system-ui, sans-serif;
}
a { color: inherit; text-decoration-color: var(--doux); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--texte); outline-offset: 3px; border-radius: 2px; }

/* En-tête : le nom du studio, la langue, le menu */
header, main, footer { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 0.75rem; }
.marque-petite { display: inline-flex; align-items: baseline; gap: 0.5rem; text-decoration: none; }
.marque-petite .miyu { font-size: 1.9rem; }
.marque-petite .factory { font-size: 0.72rem; }
body.accueil .marque-petite { visibility: hidden; }
.miyu { font-family: 'Nothing You Could Do', cursive; line-height: 1; }
.factory { font-weight: 500; text-transform: uppercase; letter-spacing: 0.45em; }
.langue { padding: 0.3rem 0.75rem; border: 1px solid var(--doux); border-radius: 999px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; }
.langue:hover { border-color: var(--texte); }
.menu { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.25rem 0.85rem; margin-top: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--trait); font-size: 0.78rem; font-weight: 500; }
.menu a { padding: 0.2rem 0; color: var(--doux); text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--texte); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--texte); text-underline-offset: 0.45em; }

/* Le texte */
main { flex: 1; padding-bottom: 3rem; }
.hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--trait); }
.hero .marque { display: flex; justify-content: center; margin: 0; }
.hero .marque img { width: 100%; max-width: 36rem; height: auto; }
h1 { margin: 1.5rem 0 0.5rem; font-size: 1.75rem; font-weight: 600; line-height: 1.25; }
h2 { margin: 3rem 0 1rem; color: var(--doux); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
h3 { margin: 2rem 0 0.4rem; font-size: 1.15rem; font-weight: 600; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: var(--doux); }
strong { font-weight: 600; }
.date { color: var(--doux); font-size: 0.9rem; }
h1 + .date { margin-bottom: 2rem; }

/* Les captures du jeu, en alternance à droite et à gauche du texte */
.une-capture { width: min(7.5rem, 31%); margin: 0.3rem 0 0.8rem; }
.une-capture.droite { float: right; margin-left: 1rem; }
.une-capture.gauche { float: left; margin-right: 1rem; }
.capture { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; border: 1px solid var(--doux); border-radius: 0.9rem; }
.jeu h3, .jeu ul, .magasin { clear: both; }

/* Google Play et les bêta-testeurs */
.magasin { margin: 2.5rem 0 1rem; text-align: center; }
.bouton { display: inline-block; padding: 0.8rem 1.6rem; border: 1px solid var(--texte); border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
.beta { margin: 0 0 1rem; text-align: center; }
.beta-lien { margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 600; }
.beta-lien a { text-decoration-thickness: 2px; }
.beta-texte { margin: 0; color: var(--doux); font-size: 0.85rem; }

/* Pied de page */
footer { clear: both; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--trait); color: var(--doux); font-size: 0.85rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.6rem; margin-bottom: 0.5rem; }
footer p { margin: 0; }

/* Page introuvable */
.introuvable { padding: 3rem 0; text-align: center; }
.introuvable .miyu { margin: 0 0 1rem; font-size: 5rem; }

/* Les couleurs du jeu */
body, footer, .menu, .menu a, .jeu h1, .jeu h2, .jeu h3, .jeu a, .jeu .date, .jeu .capture, .jeu .bouton, .jeu .beta-texte, .jeu li::marker {
  transition: background-color 1.5s ease, color 1.5s ease, border-color 1.5s ease, text-shadow 1.5s ease, box-shadow 1.5s ease;
}
body.en-couleurs { background-color: var(--nuit); }
body.en-couleurs .menu { border-bottom-color: rgb(236 72 153 / 0.35); }
body.en-couleurs .menu a { color: var(--mauve); }
body.en-couleurs .menu a:hover, body.en-couleurs .menu a[aria-current="page"] { color: #fff; text-decoration-color: var(--rose); }
body.en-couleurs .jeu { color: var(--lavande); }
body.en-couleurs .jeu h1, body.en-couleurs .jeu h2 { color: var(--rose); text-shadow: 0 0 14px rgb(236 72 153 / 0.65); }
body.en-couleurs .jeu h3:nth-of-type(3n+1) { color: var(--rose); text-shadow: 0 0 12px rgb(236 72 153 / 0.55); }
body.en-couleurs .jeu h3:nth-of-type(3n+2) { color: var(--bleu); text-shadow: 0 0 12px rgb(56 189 248 / 0.55); }
body.en-couleurs .jeu h3:nth-of-type(3n) { color: var(--jaune); text-shadow: 0 0 12px rgb(250 204 21 / 0.5); }
body.en-couleurs .jeu strong { color: #fff; }
body.en-couleurs .jeu a { text-decoration-color: var(--rose); }
body.en-couleurs .jeu li::marker { color: var(--rose); }
body.en-couleurs .jeu .date, body.en-couleurs .jeu .beta-texte { color: var(--mauve); }
body.en-couleurs .jeu .droite .capture { border-color: var(--rose); box-shadow: 0 0 18px rgb(236 72 153 / 0.35); }
body.en-couleurs .jeu .gauche .capture { border-color: var(--bleu); box-shadow: 0 0 18px rgb(56 189 248 / 0.35); }
body.en-couleurs .jeu .bouton { border-color: var(--jaune); color: var(--jaune); box-shadow: 0 0 16px rgb(250 204 21 / 0.35); }
body.en-couleurs .jeu .beta-lien a { color: var(--jaune); text-decoration-color: var(--jaune); }
body.en-couleurs footer { border-top-color: rgb(236 72 153 / 0.35); color: var(--mauve); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
