@font-face {
  font-family: 'Noto Sans';
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url('/site/polices/noto-sans-latin-wdth-normal.woff2') format('woff2');
}

body {
  margin: 0;
  font-family: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}
a {
  color: #4338ca;
}
a:hover {
  color: #3730a3;
}
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.piege {
  position: absolute;
  left: -9999px;
}
.legal {
  color: #334155;
  line-height: 1.55;
}
.legal header,
.legal main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px);
}
.legal header a {
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
}
.formulaire {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.formulaire label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.formulaire label.case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
.formulaire input:not([type='checkbox']),
.formulaire select,
.formulaire textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-weight: 400;
}
.formulaire button {
  min-height: 44px;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.formulaire button:disabled {
  opacity: 0.6;
}
.formulaire [data-retour] {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}
.ouverts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ouverts li {
  padding-block: 12px;
  border-top: 1px solid #cbd5e1;
}
.ouverts a {
  font-size: 19px;
  font-weight: 700;
}
.ouverts p {
  margin: 4px 0 0;
}

/* L'accueil : le choix du stade. */
.stades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 8px;
}
.stades button {
  min-height: 44px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.stades button[aria-pressed='true'] {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
}
.stades strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.stades span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}
.fiche {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 32px;
  margin-top: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 10px;
  background: #eef2ff;
}
.fiche[hidden] {
  display: none;
}
.fiche dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.fiche dt {
  font-size: 13px;
  color: #475569;
}
.fiche dd {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

/* La vidéo garde sa place avant d'être chargée : `preload="none"`, vignette seule. */
.video {
  margin: 0;
  min-width: 0;
}
.video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* La vidéo à la une de l'accueil, et son bouton de lecture sur la vignette. */
.video-a-la-une {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.video-a-la-une button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 10vw, 84px);
  height: clamp(56px, 10vw, 84px);
  border: 0;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.video-a-la-une button:hover {
  background: #4338ca;
}
.video-a-la-une button[hidden] {
  display: none;
}

/* Les pages d'un programme (`pages.mjs`). */
.programme {
  background: #ffffff;
  color: #334155;
  font-size: 16px;
  line-height: 1.55;
}
.programme h2,
.programme h1 {
  font-stretch: 87.5%;
  font-weight: 800;
  line-height: 1.1;
}
.programme h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 36px);
  color: #0f172a;
}
.programme h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.programme p {
  margin: 0 0 14px;
}
.programme li {
  margin-bottom: 8px;
}
.tete {
  background: #4338ca;
  color: #ffffff;
}
.barre,
.tete-corps,
.reperes,
.bloc,
.chapitre,
.pied {
  box-sizing: border-box;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 14px;
}
.barre nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 500;
}
.barre nav a,
.marque {
  color: #ffffff;
  text-decoration: none;
}
.marque {
  flex-grow: 1;
  font-family: 'Trebuchet MS', 'Noto Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.marque span {
  color: #c7d2fe;
}
.tete-corps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding-block: clamp(32px, 5vw, 64px);
}
.ariane {
  margin-bottom: 16px;
  font-size: 14px;
  color: #e0e7ff;
}
.ariane a {
  color: #ffffff;
}
.tete h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 60px);
}
.tete h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #e0e7ff;
}
.trait {
  width: 96px;
  height: 4px;
  margin: 24px 0;
  background: #10b981;
}
.bouton {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  background: #ffffff;
  color: #3730a3;
  font-weight: 700;
  text-decoration: none;
}
.bouton.sombre {
  background: #4f46e5;
  color: #ffffff;
}
.bouton.vert {
  margin-top: 0;
  background: #065f46;
  color: #ffffff;
}
.reperes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  margin-block: 0;
  padding-block: 32px;
  border-bottom: 1px solid #e2e8f0;
}
.reperes dt {
  font-size: 13px;
  color: #475569;
}
.reperes dd {
  margin: 0;
  font-stretch: 87.5%;
  font-size: 24px;
  font-weight: 800;
  color: #4338ca;
}
.bloc {
  padding-block: 64px;
}
.bloc.deux,
.chapitre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 48px;
}
.bloc.gris {
  max-width: none;
  background: #f8fafc;
  border-block: 1px solid #e2e8f0;
}
.bloc.gris.deux {
  padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - 1120px) / 2));
}
.bloc.gris .etroit {
  max-width: 1120px;
  margin-inline: auto;
}
.sortie {
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
}
.phase {
  margin-top: 40px;
}
.phase-resume {
  color: #475569;
}
.seance {
  border-top: 1px solid #cbd5e1;
}
.seance:last-child {
  border-bottom: 1px solid #cbd5e1;
}
.seance summary {
  min-height: 24px;
  padding-block: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.seance h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.seance[open] {
  padding-bottom: 16px;
}
.demo {
  margin-top: 40px;
  padding: 28px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
}
.programme .demo h3 {
  color: #ffffff;
}
.demo p {
  margin: 0;
}
.voisins {
  display: grid;
  gap: 12px;
}
.voisin {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #eef2ff;
  color: #334155;
  text-decoration: none;
}
.voisin strong {
  font-size: 19px;
  color: #3730a3;
}
.chapitre {
  align-items: center;
  max-width: none;
  padding-block: 64px;
  padding-inline: max(clamp(16px, 4vw, 40px), calc((100% - 1120px) / 2));
  background: #ecfdf5;
  border-top: 1px solid #d1fae5;
}
.chapitre p {
  margin: 0;
}
.chapitre .bouton {
  justify-self: start;
}
.pied {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 24px;
  font-size: 14px;
  color: #475569;
}
.pied span {
  flex-grow: 1;
}
.pied a {
  color: #334155;
}
