/* Polices hébergées sur le site (aucun appel à Google) */
@font-face {
  font-family: "Pixelify Sans";
  src: url("fonts/pixelify-sans.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff") format("woff");
  font-weight: 200 1000;
  font-display: swap;
}

/* Couleurs : Jour par défaut, Nuit si l'appareil est en mode sombre */
:root {
  color-scheme: light dark;
  --bg: #F6F2FC;
  --surface: #FFFFFF;
  --ink: #241E45;
  --soft: #565077;
  --accent: #5B4BD6;
  --onaccent: #FFFFFF;
  --line: #E2DAF2;
  --shade: #CFC8F7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131D;
    --surface: #221C2B;
    --ink: #F1ECFA;
    --soft: #BDB3D6;
    --accent: #B3A6FF;
    --onaccent: #17131D;
    --line: #3A3148;
    --shade: #2C2438;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}
/* Pixelify Sans dessine « fi » d'un seul bloc peu lisible : on coupe les ligatures */
h1, h2, h3, .logo-text, .house figcaption { font-variant-ligatures: none; }
ul { margin: 0; }

.w { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 880px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* En-tête */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { display: grid; grid-template-columns: repeat(2, 12px); gap: 3px; }
.logo-mark span { width: 12px; height: 12px; }
.logo-mark .m { width: 6px; height: 6px; align-self: end; }
.logo-text { font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 26px; font-weight: 600; }
.p1 { background: #7C6CF0; }
.p2 { background: #57C4A0; }
.p3 { background: #F08A8A; }
.p4 { background: #F5C451; }
/* Menu : des étiquettes pixel, chacune avec son petit carré de couleur */
.menu { display: flex; flex-wrap: wrap; gap: 6px; }
.menu a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 19px; font-weight: 500;
  font-variant-ligatures: none;
  color: var(--ink); text-decoration: none;
  border: 2px solid transparent; border-radius: 4px;
}
.menu a::before { content: ""; width: 8px; height: 8px; flex: none; background: #7C6CF0; }
.menu a:nth-child(2)::before { background: #57C4A0; }
.menu a:nth-child(3)::before { background: #F08A8A; }
.menu a:hover { color: var(--ink); background: var(--surface); border-color: var(--ink); box-shadow: 3px 3px 0 var(--shade); }
.menu a[aria-current="page"] { background: var(--line); }
@media (max-width: 480px) {
  .menu { gap: 2px; margin-left: -10px; }
  .menu a { padding: 0 8px; font-size: 17px; gap: 6px; }
}

/* Éléments communs */
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--line); color: var(--ink); line-height: 1.4; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 16px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-1, .btn-1:hover { background: var(--accent); color: var(--onaccent); }
.btn-2, .btn-2:hover { background: var(--surface); color: var(--ink); }
.btn-soon { background: var(--surface); color: var(--soft); border-style: dashed; box-shadow: none; }
.btn-soon:hover { transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.card { background: var(--surface); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 5px 5px 0 var(--shade); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-later { border-style: dashed; box-shadow: none; }
.card .push { margin-top: auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.soft { color: var(--soft); }
.mt-l { margin-top: 40px; }
.mt-xl { margin-top: 72px; }
.mb-m { margin-bottom: 24px; }
.small { font-size: 15px; }

/* Tuiles des applis */
.tile { width: 64px; height: 64px; flex: none; border: 2px solid #241E45; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.tile svg { width: 36px; height: 36px; }
.tile-xl { width: 120px; height: 120px; box-shadow: 5px 5px 0 var(--shade); }
.tile-xl svg { width: 68px; height: 68px; }
.t-farfadet { background: #F9E3A6; }
.t-besace { background: #F8C9C9; }
.t-orq { background: #CFC8F7; }
.t-jeux { background: #BDE9DA; }
.app-head { display: flex; gap: 16px; align-items: center; }
.app-head h3 { font-size: 24px; margin-bottom: 6px; }
.app-head h2 { font-size: 22px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; }
.list-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }

/* Accueil */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-block: 56px 72px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero h1 { font-size: clamp(48px, 8vw, 84px); line-height: 1; }
.lead { font-size: 22px; line-height: 1.45; max-width: 30ch; }
.lead-s { font-size: 19px; }
.card h2 { font-size: 26px; }
.card .app-head h2 { font-size: 22px; }
.house { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.house svg { width: 100%; max-width: 360px; height: auto; }
.house figcaption { font-family: "Pixelify Sans", system-ui, sans-serif; font-size: 18px; color: var(--soft); }
.slot { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.block { padding-top: 112px; }
.section-title { font-size: 40px; }
.intro { margin: 8px 0 32px; color: var(--soft); max-width: 60ch; }
.atelier { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.big-mark { display: grid; grid-template-columns: repeat(2, 88px); gap: 10px; justify-content: center; }
.big-mark span { width: 88px; height: 88px; border-radius: 4px; }
.big-mark .m { width: 44px; height: 44px; align-self: end; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 10px; }

/* Pages intérieures */
.page { padding-top: 40px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); }
.crumbs { font-size: 15px; color: var(--soft); margin-bottom: 32px; }
.app-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.app-hero-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1 1 420px; min-width: 0; }
.facts { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 12px; }
}
/* Passages à compléter avant la mise en ligne */
.todo { background: #FBE7A6; color: #4A3500; padding: 1px 6px; border-radius: 3px; font-weight: 700; }

/* Pied de page */
.bottom { border-top: 2px solid var(--line); margin-top: 96px; }
.bottom .w { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 36px; font-size: 15px; color: var(--soft); }
.bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
