/* Style commun des fiches d'applis. Chaque page définit ses couleurs :
   --bg (bandeau), --ink (texte du bandeau), --titre (nom de l'appli), --ombre,
   --fond (fond de page), --fonce (titres et liens), --accent (décor). */
:root {
  --nuit: #1F2A44; --creme: #FFF7E8; --ciel: #8ECDF5; --gris: #4F5D80;
  --bg: #1F2A44; --ink: #FFF7E8; --titre: #FFF7E8; --ombre: #131B2E;
  --fond: #F4F6FB; --fonce: #1F2A44; --accent: #8ECDF5;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--fond); color: var(--nuit); font: 17px/1.6 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--fonce); font-weight: 700; touch-action: manipulation; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
h1, h2 { text-wrap: balance; }
img { max-width: 100%; }

/* Barre du haut : retour vers l'accueil et langue */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--nuit); color: var(--creme); }
.barre a { color: var(--creme); }
.moi-lien { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.moi-lien img { width: 36px; height: 36px; border-radius: 30%; background: var(--ciel); border: 2px solid #FFFFFF; object-fit: cover; object-position: center bottom; }
.moi-lien:hover span { text-decoration: underline; }
.barre .langue { font-weight: 700; }
.barre .langue span[aria-current] { color: var(--ciel); }

/* Bandeau de l'appli */
header.fiche { background: var(--bg); color: var(--ink); padding: clamp(44px, 7vw, 88px) 20px clamp(52px, 8vw, 100px); }
.fiche-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 80px); align-items: center; }
header.fiche a { color: var(--ink); }
.nom, header.fiche .nom { display: block; max-width: none; margin: 0 0 14px; font-family: Bungee, "Arial Black", sans-serif; font-weight: 400; font-size: clamp(34px, 9.6vw, 82px); line-height: .96; letter-spacing: -.01em; color: var(--titre); }
header.fiche h1 { margin: 0; font: 800 clamp(20px, 2.4vw, 27px)/1.3 Nunito, sans-serif; }
header.fiche h1 .sous { display: block; }
header.fiche p { margin: 12px 0 0; font-size: clamp(17px, 1.9vw, 20px); max-width: 34em; }
.boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { display: block; height: 48px; width: auto; }
.badge:hover { opacity: .85; }
.bouton { display: inline-block; padding: 9px 18px; border-radius: 12px; border: 3px dashed currentColor; font-weight: 800; color: inherit; background: none; }
header.fiche .note { font-size: 16px; }
.etoiles { letter-spacing: 2px; margin-right: 6px; }
.slogan { display: inline-block; margin-top: 18px; padding: 5px 14px; border-radius: 999px; background: var(--accent); color: #191A26; font-weight: 800; font-size: 15px; }
.sticker { width: clamp(132px, 21vw, 232px); height: auto; aspect-ratio: 1; border-radius: 25%; border: 8px solid #FFFFFF; box-shadow: 12px 12px 0 var(--ombre); transform: rotate(-5deg); }

/* Contenu */
main { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 20px 64px; }
section { background: #FFFFFF; border: 3px solid var(--nuit); border-radius: 22px; box-shadow: 6px 6px 0 var(--nuit); padding: 26px 28px; margin: 0 0 32px; }
h2 { margin: 0 0 14px; font-family: Bungee, "Arial Black", sans-serif; font-weight: 400; font-size: clamp(23px, 3.1vw, 31px); line-height: 1.12; color: var(--fonce); }
h3 { margin: 22px 0 4px; font-size: 18px; font-weight: 800; }
p { margin: 0 0 12px; }
section > :last-child { margin-bottom: 0; }
.date, .mention { color: var(--gris); }
.mention { text-align: center; font-size: 15px; }
.contact { text-align: center; font-size: 19px; }

.captures { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px -28px 0; padding: 6px 28px 16px; }
.captures > img, .captures > figure { flex: 0 0 210px; min-width: 0; margin: 0; scroll-snap-align: start; }
.captures img { display: block; width: 100%; height: auto; border-radius: 18px; }
.captures > img { width: 210px; }
.captures figcaption { margin-top: 8px; font-size: 15px; line-height: 1.4; text-align: center; }

.regle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.regle figure { margin: 0; padding: 14px; text-align: center; background: var(--fond); border: 3px solid var(--nuit); border-radius: 16px; }
.regle img { display: block; width: 120px; height: 100px; margin: 0 auto 6px; }
.regle figcaption { font-weight: 800; }
.ok { color: #27500A; } .ko { color: #A32D2D; }

.themes, .plus { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.themes span, .plus li { padding: 5px 14px; border-radius: 999px; background: var(--fond); border: 2px solid var(--nuit); font-weight: 800; font-size: 15px; }
.jeux, .fonctions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.jeux li, .fonctions li { padding-left: 16px; border-left: 5px solid var(--accent); }
.etapes { padding-left: 24px; margin: 0; }
.etapes li { margin-bottom: 8px; }
.etapes li::marker { font-family: Bungee, sans-serif; color: var(--fonce); }

/* Pied de page */
footer { background: var(--nuit); color: var(--creme); text-align: center; font-size: 15px; padding: 48px 20px 56px; }
footer a { color: var(--ciel); font-weight: 800; display: inline-block; padding: 3px 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 8px; }
.auteur { display: block; width: 76px; height: 76px; margin: 0 auto 18px; padding: 0; border-radius: 26%; overflow: hidden; background: var(--ciel); border: 4px solid #FFFFFF; box-shadow: 5px 5px 0 #131B2E; transform: rotate(-4deg); }
.auteur img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.auteur:hover { transform: rotate(-4deg) translateY(-2px); }

@media (max-width: 720px) {
  .fiche-in { grid-template-columns: 1fr; }
  .sticker { order: -1; width: 112px; border-width: 5px; box-shadow: 7px 7px 0 var(--ombre); }
  section { padding: 22px 18px; box-shadow: 5px 5px 0 var(--nuit); }
  .captures { margin: 8px -18px 0; padding: 6px 18px 14px; }
  .captures > img, .captures > figure { flex-basis: 62%; }
  .captures > img { width: 62%; }
  .badge img { height: 44px; }
}

@media (max-width: 360px) {
  .nom, header.fiche .nom { font-size: 29px; }
}
