:root {
  --bg: #f3f5f6; --surface: #ffffff; --ink: #16212b; --muted: #56626f; --line: #d9dfe3;
  --entete: #263845; --entete-ink: #ffffff; --accent: #1f4e8c; --ombre: 0 1px 2px rgba(22, 33, 43, .06), 0 4px 14px rgba(22, 33, 43, .06);
  --test-bg: #fbefcf; --test: #7a5500;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1519; --surface: #161e24; --ink: #e4eaee; --muted: #9aa7b2; --line: #2a363f;
    --entete: #18242d; --entete-ink: #e4eaee; --accent: #8fb6ec; --ombre: none;
    --test-bg: #3a2f10; --test: #efcb69;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1519; --surface: #161e24; --ink: #e4eaee; --muted: #9aa7b2; --line: #2a363f;
  --entete: #18242d; --entete-ink: #e4eaee; --accent: #8fb6ec; --ombre: none;
  --test-bg: #3a2f10; --test: #efcb69;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.45;
}
.entete { background: var(--entete); color: var(--entete-ink); }
.entete-interieur {
  max-width: 980px; margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.entete-logo { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.entete h1 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.entete p { margin: 2px 0 0; opacity: .8; font-size: .95rem; }
.bouton-installer {
  margin-left: auto; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .45);
  background: transparent; color: var(--entete-ink);
}
.bouton-installer:hover { background: rgba(255, 255, 255, .12); }

.contenu { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.tuile {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 40px 18px 18px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--ombre);
  transition: border-color .15s, transform .15s;
}
.tuile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tuile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tuile-icone { flex: none; border-radius: 12px; }
.tuile-texte { min-width: 0; }
.tuile h2 { margin: 0; font-size: 1.08rem; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tuile-sous-titre { margin: 2px 0 6px; color: var(--accent); font-size: .9rem; font-weight: 600; }
.tuile-description { margin: 0; color: var(--muted); font-size: .92rem; }
.tuile-fleche { position: absolute; top: 14px; right: 16px; color: var(--muted); font-size: 1.1rem; }
.pastille-test {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 99px; background: var(--test-bg); color: var(--test);
}
.note { margin: 24px 0 0; color: var(--muted); font-size: .88rem; }
