/* Site vitrine Choizii — jetons du système de design (thèmes clair et sombre). Aucune ressource tierce. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fonts/Fredoka_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/Nunito_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/Nunito_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/Nunito_800ExtraBold.woff2') format('woff2'); }

:root {
  --fond: #f7f7fd; --surface: #ffffff; --bordure: #e2e8f0; --texte: #1e1b4b; --texte2: #475569;
  --action: #4f46e5; --sur-action: #ffffff; --focus: #4f46e5; --lien: #4338ca;
  --teinte: #eef2ff; --teinte-bordure: #c7d2fe; --progres: #0f766e; --progres-fond: #f0fdfa;
  --rayon: 24px; --rayon-sm: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f0e24; --surface: #1c1a3d; --bordure: #34306b; --texte: #eef0ff; --texte2: #c7cce0;
    --action: #5b54ec; --focus: #a5b4fc; --lien: #a5b4fc;
    --teinte: #25225c; --teinte-bordure: #3730a3; --progres: #5eead4; --progres-fond: #0d2f2c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 1.125rem/1.6 'Nunito', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--lien); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.cadre { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.evitement { position: absolute; left: -999px; top: 1rem; background: var(--surface); padding: .75rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }

.entete { background: var(--surface); border-bottom: 1px solid var(--bordure); }
.entete-cadre { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.marque { display: inline-flex; align-items: center; gap: .6rem; color: var(--texte); text-decoration: none; font: 600 1.6rem 'Fredoka', sans-serif; }
.zii-mini { width: 40px; height: 40px; }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 1.5rem;
  border-radius: 999px; background: var(--action); color: var(--sur-action); font-weight: 800; text-decoration: none; border: 2px solid var(--action); }
.bouton:hover { filter: brightness(1.08); }
.bouton-secondaire { background: transparent; color: var(--lien); min-height: 48px; }
.bouton-inverse { background: #ffffff; color: #312e81; border-color: #ffffff; }
.lien-fort { font-weight: 800; min-height: 48px; display: inline-flex; align-items: center; }

.heros { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.heros-cadre { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.surtitre { color: var(--progres); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.chapeau { font-size: 1.35rem; color: var(--texte2); }
.slogan { display: inline-block; background: var(--progres-fond); color: var(--progres); font-weight: 700; padding: .6rem 1rem; border-radius: var(--rayon-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1rem; }
.zii { margin: 0; text-align: center; }
.zii svg { width: min(320px, 100%); height: auto; }
.zii figcaption { color: var(--texte2); font-size: .95rem; }

.bloc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.bloc-teinte { background: var(--teinte); }
.etapes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.etapes li, .competences li { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.5rem; }
.numero { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--action); color: var(--sur-action); font: 600 1.25rem 'Fredoka', sans-serif; margin-bottom: .75rem; }
.etapes p { margin: 0; color: var(--texte2); }
.competences { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.competences li { display: flex; flex-direction: column; gap: .25rem; border-color: var(--teinte-bordure); }
.competences span { color: var(--texte2); }
.note { font-size: 1rem; color: var(--texte2); max-width: 70ch; }

.manifeste { font-size: 1.3rem; max-width: 60ch; }
.engagements { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.engagements li { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 2px solid var(--teinte-bordure);
  border-radius: 999px; padding: .6rem 1.1rem; font-weight: 800; }
.coche { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--progres); color: #fff; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .coche { color: #0f0e24; } }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; max-width: 980px; }
.details p { margin: 0; }

.bloc-action { background: #312e81; color: #ffffff; }
.bloc-action-cadre > * { max-width: 760px; }
.bloc-action a:not(.bouton) { color: #ffffff; }
.bloc-action .bouton { margin: .5rem 0 1rem; }
.petit { font-size: .95rem; opacity: .9; }

.pied { padding: 2rem 0 3rem; border-top: 1px solid var(--bordure); color: var(--texte2); }
.pied-cadre p { margin: .3rem 0; }

@media (max-width: 860px) {
  .heros-cadre { grid-template-columns: 1fr; }
  .zii { order: -1; }
  .zii svg { width: 180px; }
  .etapes, .competences, .details { grid-template-columns: 1fr; }
  .entete .bouton-secondaire { display: none; }
}
