/* Site vitrine de Ma Classe. Jetons repris de src/styles/tokens.css (docs/DESIGN.md §2). Aucun script, aucune ressource externe. */
@font-face { font-family: "Andika"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/andika-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/andika-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-2: #f3ede2;
  --ink: #1f2a44;
  --ink-2: #4a5570;
  --primary: #2f5d8a;
  --primary-hover: #244b72;
  --primary-soft: #e3ecf5;
  --on-primary: #ffffff;
  --sun: #f2b441;
  --sun-deep: #b7791f;
  --success-deep: #2e6a47;
  --success-soft: #e3f1e8;
  --board: #2e6a5e;
  --board-frame: #8a6a3a;
  --border: #7d8498;
  --border-soft: #d9d1c2;
  --focus: #1b4f9c;
  --shadow: 0 4px 10px rgb(31 42 68 / 0.12), 0 2px 4px rgb(31 42 68 / 0.08);
  --font-ui: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Andika", "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161b2b;
    --surface: #1f2640;
    --surface-2: #2a3354;
    --ink: #edeff5;
    --ink-2: #b8bfd0;
    --primary: #8db8e6;
    --primary-hover: #a7cbef;
    --primary-soft: #23344f;
    --on-primary: #0f1626;
    --sun: #f2c86b;
    --sun-deep: #f2c86b;
    --success-deep: #8ccba3;
    --success-soft: #1e3a2d;
    --board: #1f4a42;
    --board-frame: #6b5430;
    --border: #7a83a3;
    --border-soft: #2a3354;
    --focus: #8db8e6;
    --shadow: 0 4px 10px rgb(0 0 0 / 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font-text); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-ui); color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.conteneur { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .conteneur { padding: 0 28px; } }
.cache { position: absolute; width: 0; height: 0; overflow: hidden; }

.evitement { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; z-index: 10; font-family: var(--font-ui); font-weight: 800; }
.evitement:focus { top: 12px; }

/* Entête */
.entete { background: var(--surface); border-bottom: 2px solid var(--border-soft); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.marque { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--ink); font-family: var(--font-ui); font-weight: 800; font-size: 1.5rem; }
.marque img { width: 40px; height: 40px; }
.menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; font-family: var(--font-ui); font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; }
.menu a:hover { background: var(--primary-soft); }
.menu a[aria-current="page"] { background: var(--primary-soft); box-shadow: inset 0 -3px 0 var(--primary); }
.menu a.menu__app { background: var(--primary); color: var(--on-primary); }
.menu a.menu__app:hover { background: var(--primary-hover); }

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 3px solid var(--primary); font-family: var(--font-ui); font-weight: 800; font-size: 1.125rem; text-decoration: none; background: var(--surface); color: var(--primary); }
.bouton:hover { background: var(--primary-soft); color: var(--primary-hover); }
.bouton--principal { background: var(--primary); color: var(--on-primary); }
.bouton--principal:hover { background: var(--primary-hover); color: var(--on-primary); }

/* Sections */
.heros { padding: 40px 0 32px; }
.heros__grille { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .heros__grille { grid-template-columns: 1.1fr 0.9fr; } .heros { padding: 64px 0 48px; } }
.surtitre { display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-family: var(--font-ui); font-weight: 800; font-size: 1rem; }
.chapeau { font-size: 1.25rem; color: var(--ink-2); max-width: 60ch; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.puces li { padding: 4px 14px; border-radius: 999px; background: var(--success-soft); color: var(--success-deep); font-family: var(--font-ui); font-weight: 700; font-size: 1rem; }
.tableau { width: 100%; max-width: 480px; margin: 0 auto; }
.section { padding: 40px 0; }
.section--ciel { background: var(--primary-soft); }
.section__tete { max-width: 60ch; margin-bottom: 24px; }

.atouts { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .atouts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .atouts { grid-template-columns: repeat(4, 1fr); } }
.atout { background: var(--surface); border: 2px solid var(--border-soft); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.atout svg { width: 56px; height: 56px; margin-bottom: 12px; }
.atout h3 { margin-bottom: 0.3em; }
.atout p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

.etapes { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: etape; }
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etapes li { counter-increment: etape; background: var(--surface); border: 2px solid var(--border-soft); border-radius: 20px; padding: 20px; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-ui); font-weight: 800; font-size: 1.375rem; }
.etapes h3 { margin-bottom: 0.3em; }
.etapes p { margin: 0; color: var(--ink-2); }

.cartes { display: grid; gap: 16px; }
@media (min-width: 800px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
.carte { background: var(--surface); border: 2px solid var(--border-soft); border-radius: 20px; padding: 20px; }
.carte h2, .carte h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.carte p:last-child { margin-bottom: 0; }
.note { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border-left: 6px solid var(--sun-deep); }
.note p { margin: 0; }

/* Page « installer » */
.pas { display: grid; gap: 16px; align-items: center; background: var(--surface); border: 2px solid var(--border-soft); border-radius: 20px; padding: 20px; margin-bottom: 16px; }
@media (min-width: 800px) { .pas { grid-template-columns: 1.2fr 0.8fr; } }
.pas h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.pas__num { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 1.25rem; }
.pas p { margin-bottom: 0.6em; }
.illustration { width: 100%; max-width: 340px; margin: 0 auto; }

/* Texte long (confidentialité) */
.texte { max-width: 70ch; }
.texte h2 { font-size: 1.5rem; margin-top: 1.6em; }
.texte ul { padding-left: 1.3em; }
.texte li { margin-bottom: 0.4em; }

/* Pied */
.pied { margin-top: 40px; padding: 28px 0 36px; background: var(--surface); border-top: 2px solid var(--border-soft); }
.pied__liens { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.pied__liens a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-family: var(--font-ui); font-weight: 700; }
.pied__note { margin: 0; font-size: 1rem; color: var(--ink-2); max-width: 70ch; }

.page-404 { padding: 56px 0; text-align: center; }
.page-404 .boutons { justify-content: center; }
.page-404 img { margin: 0 auto 16px; }
