/* WatZat, la vitrine (kubozagames.com/watzat/). Les couleurs sont celles de l'univers de Mamie
   (app/src/univers/mamie : papier, encre, rouge, sarcelle, moutarde, menthe) ; chaque personnage
   garde les siennes sur sa tuile. Polices de l'appli (SIL Open Font License 1.1) : Shrikhand pour
   les titres, Fredoka pour le texte. Aucune image lourde, aucun script, aucun cookie. */

@font-face { font-family: "Shrikhand"; font-weight: 400; font-style: normal; font-display: swap; src: url("/watzat/polices/shrikhand.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("/watzat/polices/fredoka.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --papier: #fff6e5; --encre: #2b1b17; --rouge: #c8102e; --sarcelle: #1f7a74;
  --moutarde: #f5b83d; --menthe: #a8e6cf; --gris: #5d4b45; --filet: #ead9bf;
  --titre: "Shrikhand", Georgia, serif;
  --texte: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--papier); }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.6 var(--texte); -webkit-font-smoothing: antialiased; }
a { color: var(--sarcelle); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--sarcelle); outline-offset: 3px; }
.page { max-width: 62rem; margin: 0 auto; padding: 0 16px; }
.etroit { max-width: 44rem; }

/* ---------- la barre du haut ---------- */
.barre { background: var(--menthe); border-bottom: 3px solid var(--encre); }
.barre .page { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { font-family: var(--titre); font-size: 30px; line-height: 1; color: var(--rouge); text-decoration: none; text-shadow: 2px 2px 0 var(--papier); }
.logo b { color: var(--sarcelle); font-weight: 400; }
.langue { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem; border: 2px solid var(--encre); border-radius: 999px;
  background: var(--papier); color: var(--encre); font-weight: 600; text-decoration: none; box-shadow: 3px 3px 0 var(--encre); }
.langue:hover { background: var(--moutarde); }

/* ---------- l'accueil ---------- */
.ouverture { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: 2.5rem 0 1rem; }
@media (max-width: 46rem) { .ouverture { grid-template-columns: 1fr; padding-top: 1.5rem; } }
h1, h2, h3 { line-height: 1.15; }
.ouverture h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(2rem, 7vw, 3.1rem); margin: 0; color: var(--encre); }
.ouverture h1 em { font-style: normal; color: var(--rouge); }
.chapeau { font-size: 1.15rem; margin: 1rem 0 0; max-width: 30rem; }
.etat { display: inline-block; margin-top: 1.4rem; padding: .7rem 1.1rem; border: 2px dashed var(--encre); border-radius: 14px; background: #fff; font-weight: 600; }

/* Le badge officiel de Google Play (fichier fourni par Google, ni recoloré ni recadré), et la ligne qui l'accompagne. */
.installer { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.badge-play { display: inline-block; line-height: 0; border-radius: 12px; }
.badge-play img { display: block; width: 194px; height: auto; }
.mentions { margin: 0; font-weight: 600; color: var(--gris); font-size: .98rem; }

/* Les captures de l'appli : en rangée sur ordinateur ; sur téléphone, la rangée défile d'elle-même (jamais la page). */
.captures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.captures figure { margin: 0; text-align: center; }
.captures img { display: block; width: 100%; max-width: 270px; height: auto; margin: 0 auto; border: 3px solid var(--encre); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--encre); background: #fff; }
.captures figcaption { margin-top: .9rem; font-weight: 600; font-size: .95rem; }
@media (max-width: 46rem) {
  .captures { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 0 0 1rem; margin: 0 -16px; padding-inline: 16px;
    scrollbar-width: thin; }
  .captures figure { flex: 0 0 68%; scroll-snap-align: center; }
}

/* La troupe : la bannière de la fiche Play, les sept personnages dessinés par l'appli elle-même. */
.troupe { display: block; width: 100%; height: auto; margin: 0 0 1.2rem; border: 3px solid var(--encre); border-radius: 22px; box-shadow: 6px 6px 0 var(--encre); }

/* L'appel final. */
.appel { text-align: center; margin: 1rem 0 0; padding: 2rem 1rem; background: var(--moutarde); border: 3px solid var(--encre); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--encre); }
.appel > h2 { color: var(--encre); margin-bottom: .3rem; }
.appel p { margin: 0 0 1rem; font-weight: 600; }
.appel .badge-play { margin: 0 auto; }

/* La démonstration : une partie dessinée en CSS, avec des mots inventés (zibulette, zablet, nivora). */
.demo { background: var(--menthe); border: 3px solid var(--encre); border-radius: 22px; padding: 1.1rem; box-shadow: 6px 6px 0 var(--encre); }
.demo .cible { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: baseline; background: var(--papier); border: 2px solid var(--encre); border-radius: 14px; padding: .6rem .8rem; }
.demo .cible b { font-family: var(--titre); font-weight: 400; color: var(--rouge); font-size: 1.35rem; letter-spacing: .5px; }
.demo .interdits { margin: .6rem 0 0; font-size: .9rem; }
.demo .interdits span { display: inline-block; margin: 0 .2rem; padding: 0 .5rem; border-radius: 999px; background: var(--encre); color: var(--papier); border: 2px solid var(--rouge); }
.bulle { position: relative; margin: .9rem 0 0; padding: .7rem .9rem; border: 2px solid var(--encre); border-radius: 16px; background: #fff; max-width: 92%; }
.bulle.joueur { margin-left: auto; background: var(--moutarde); }
.bulle .qui { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.bulle.joueur .qui { color: var(--encre); }
.demo .gagne { margin: .9rem 0 0; text-align: center; font-family: var(--titre); font-size: 1.3rem; color: var(--sarcelle); }
.demo .note { margin: .5rem 0 0; font-size: .8rem; color: var(--gris); text-align: center; }

/* ---------- les sections ---------- */
section { padding: 1.8rem 0; }
section > h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.1rem); margin: 0 0 1rem; color: var(--rouge); }
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.etapes li { counter-increment: e; position: relative; padding: 1rem 1rem 1rem 3.6rem; background: #fff; border: 2px solid var(--encre); border-radius: 16px; }
.etapes li::before { content: counter(e); position: absolute; left: .9rem; top: .9rem; width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--rouge); color: var(--papier); font-family: var(--titre); }

.persos { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.perso { border: 3px solid var(--encre); border-radius: 18px; overflow: hidden; background: var(--p-papier, #fff); }
.perso header { background: var(--p-barre); padding: .7rem .9rem; border-bottom: 2px solid var(--encre); }
.perso h3 { margin: 0; font-family: var(--titre); font-weight: 400; font-size: 1.3rem; color: var(--p-accent); }
.perso .jour { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--encre); }
.perso p { margin: 0; padding: .7rem .9rem .9rem; font-size: .95rem; }
.perso p i { display: block; margin-bottom: .3rem; color: var(--p-accent); font-weight: 600; font-style: normal; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.carte { background: #fff; border: 2px solid var(--encre); border-radius: 16px; padding: 1rem 1.1rem; }
.carte h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.carte p { margin: 0; font-size: .96rem; }

/* ---------- les pages de texte (confidentialité, suppression) ---------- */
.texte h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--rouge); margin: 1.8rem 0 .2rem; }
.texte h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
.texte .date { color: var(--gris); font-size: .92rem; margin-top: 0; }
.texte li { margin: .4rem 0; }
.tableau { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: .55rem .65rem; border: 1px solid var(--filet); vertical-align: top; }
th { background: #fbeccd; }
.encadre { background: #fff; border: 2px solid var(--encre); border-radius: 14px; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.avert { background: #fdecee; border-left: 5px solid var(--rouge); padding: .8rem 1rem; margin: 1.2rem 0; border-radius: 0 12px 12px 0; }
.insec { white-space: nowrap; }
ol.parcours { padding-left: 1.4rem; }
ol.parcours li { margin: .6rem 0; }
.picto { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -.35em; }

/* ---------- le pied ---------- */
.pied { margin-top: 2.5rem; border-top: 3px solid var(--encre); background: var(--menthe); }
.pied .page { padding-top: 1rem; padding-bottom: 1.5rem; font-size: .92rem; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.pied a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--encre); }
.pied p { margin: .4rem 0 0; color: var(--gris); }

@media (prefers-reduced-motion: no-preference) {
  .demo { animation: pose .6s ease-out both; }
  @keyframes pose { from { transform: translateY(8px) rotate(-1deg); } to { transform: none; } }
}
