/* Charte du site cours.generation-enseignement.fr, inspirée des documents D0 à D9 */
:root {
  --nuit: #002F5A;
  --sombre: #17324D;
  --ardoise: #547C9F;
  --bleu-clair: #E6EFF7;
  --bleu-pale: #F6F9FC;
  --bleu-trait: #B9CEE0;
  --ambre: #FFB000;
  --ambre-fonce: #C77700;
  --creme: #FFF3D9;
  --blanc: #FFFFFF;
}
* { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; color: var(--sombre); background: var(--blanc); }
body { margin: 0 auto; max-width: 960px; padding: 0 16px 24px; line-height: 1.45; }
a { color: var(--nuit); }

/* Bandeau supérieur */
.bandeau { display: flex; align-items: stretch; gap: 12px; margin-top: 12px;
  background: var(--bleu-clair); border-bottom: 2px solid var(--bleu-trait); font-size: .9rem; }
/* Le cadre ambre porte la matière ; il reste présent, vide, sur l'accueil. */
.bandeau .pastille { background: var(--ambre); color: var(--nuit); font-weight: bold; font-size: 1rem;
  min-width: 180px; padding: 7px 16px; text-align: center; }
.bandeau .college { font-weight: bold; color: var(--nuit); padding: 7px 0; flex: 1; }
.bandeau .annee { color: var(--ardoise); padding: 7px 12px; white-space: nowrap; }

/* Bloc de titre */
/* Barre de titre centrée, à la largeur de son contenu */
.titre { display: flex; justify-content: center; margin: 28px 0 10px; }
.titre .intitule { background: var(--nuit); color: var(--blanc); min-width: min(100%, 460px); max-width: 100%;
  padding: 12px 32px; text-align: center; border: 1px solid var(--bleu-trait); }
.titre h1 { margin: 0; font-size: 1.4rem; }
.titre p { margin: 2px 0 0; font-size: .9rem; color: var(--bleu-trait); font-style: italic; }

.chapeau { text-align: center; color: var(--ardoise); font-style: italic; margin: 22px auto 30px; max-width: 640px; }
h2 { color: var(--ambre-fonce); font-size: 1rem; margin: 30px 0 10px; }

/* Tableau d'entrées, comme l'architecture générale de D0 */
table.entrees { width: 100%; border-collapse: collapse; border: 1px solid var(--bleu-trait); }
table.entrees th { background: var(--nuit); color: var(--blanc); text-align: left; padding: 8px 10px; }
table.entrees td { border-top: 1px solid var(--bleu-trait); padding: 14px 12px; vertical-align: middle; }
table.entrees tr:nth-child(odd) td { background: var(--bleu-pale); }
table.entrees td.cle { width: 32%; text-align: center; font-weight: bold; color: var(--nuit); }
table.entrees td.cle a { text-decoration: none; display: block; }
table.entrees td.cle a:hover, table.entrees td.cle a:focus { text-decoration: underline; }
table.entrees td.cle small { display: block; font-weight: normal; color: var(--ardoise); }
.badge { display: inline-block; background: var(--ambre); color: var(--nuit); font-weight: bold;
  font-size: .8rem; padding: 1px 8px; margin-left: 6px; }
.attente { color: var(--ardoise); font-style: italic; }
.encart { background: var(--creme); border-left: 4px solid var(--ambre); padding: 8px 12px; margin: 14px 0; }

/* Choix de la matière (accueil) */
.matieres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 4px; }
.matieres a { border: 2px solid var(--nuit); color: var(--nuit); background: var(--blanc); padding: 6px 16px;
  font-weight: bold; text-decoration: none; }
.matieres a[aria-pressed="true"] { background: var(--nuit); color: var(--blanc); }
.matieres a:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
table.entrees tr.inactif td { color: var(--ardoise); opacity: .6; }
table.entrees tr.inactif a { pointer-events: none; text-decoration: none; color: inherit; }

/* Compléments du site 1.0.0 (mise en page de la maquette du 17/10/2026 inchangée) */
main { display: block; }
h2 a, table.entrees td.cle a.type { color: inherit; text-decoration: none; }
h2 a:hover, h2 a:focus, table.entrees td.cle a.type:hover, table.entrees td.cle a.type:focus { text-decoration: underline; }
/* Niveau, type ou rubrique sans document : « à venir », grisé */
.vide, h2.vide { color: var(--ardoise); opacity: .6; }
.adresse { display: block; font-weight: normal; font-size: .8rem; color: var(--ardoise); margin-top: 4px; }
.etat { text-align: center; color: var(--ardoise); font-size: .85rem; margin: 6px 0 0; min-height: 1.2em; }
.nb { white-space: nowrap; }

/* Pied de page */
.pied { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 40px; padding: 6px 10px;
  background: var(--bleu-clair); color: var(--ardoise); font-size: .75rem; }
.pied a { color: var(--ardoise); text-underline-offset: 2px; }

@media (max-width: 560px) {
  .bandeau { flex-wrap: wrap; gap: 0 12px; }
  .bandeau .pastille { min-width: 0; width: 100%; }
  .bandeau .college { padding-left: 12px; }
  .bandeau .annee { padding-left: 0; }
  .titre .intitule { padding: 12px 16px; }
  table.entrees td.cle { width: 40%; }
}
