:root {
  --vert: #0d5c2e;
  --vert-clair: #e8f3ea;
  --vert-moyen: #2e7d32;
  --bleu: #0d47a1;
  --bleu-clair: #eaf1fb;
  --ocre: #8a5a00;
  --ocre-clair: #fdf3dc;
  --rouge: #a12a1e;
  --encre: #1f2a24;
  --gris: #5b6b61;
  --trait: #d5ddd8;
  --fond: #f6f8f6;
  --carte: #ffffff;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--vert); }
a:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #f0a500;
  outline-offset: 2px;
}
.saut { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 10; }
.saut:focus { left: 8px; top: 8px; }

.bandeau { background: var(--vert); color: #fff; position: sticky; top: 0; z-index: 5; }
.bandeau-in { max-width: 1080px; margin: 0 auto; padding: .55rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; }
.marque-sigle { background: #fff; color: var(--vert); font-weight: 800; border-radius: 6px; padding: .1rem .45rem; letter-spacing: .04em; }
.marque-texte { font-size: .95rem; }
#nav { display: flex; flex-wrap: wrap; gap: .15rem .3rem; margin-left: auto; }
#nav a { color: #e3f1e6; text-decoration: none; padding: .3rem .6rem; border-radius: 5px; font-size: .9rem; }
#nav a:hover { background: rgba(255,255,255,.14); }
#nav a[aria-current="page"] { background: #fff; color: var(--vert); font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; padding: 1.4rem 16px 3rem; }
main:focus { outline: none; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: .2rem 0 .6rem; color: var(--vert); }
h2 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; color: var(--vert); }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p { margin: .5rem 0; }
.chapeau { font-size: 1.1rem; color: #33443a; max-width: 62ch; }
.sur-titre { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--gris); font-weight: 700; margin: 0; }
.discret { color: var(--gris); font-size: .9rem; }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 1rem 1.1rem; margin: .8rem 0; }
.carte > :first-child { margin-top: 0; }
.carte > :last-child { margin-bottom: 0; }
.carte.vert { background: var(--vert-clair); border-color: #b9d8bf; }
.carte.bleu { background: var(--bleu-clair); border-color: #bcd0ee; }
.carte.ocre { background: var(--ocre-clair); border-color: #ecd49a; }
.carte.maintenant { border-left: 6px solid var(--vert-moyen); }
.grille { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grille .carte { margin: 0; }
a.carte { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.carte:hover { border-color: var(--vert-moyen); box-shadow: 0 2px 10px rgba(13,92,46,.12); }
.carte h3 { margin-top: 0; color: var(--vert); }
.num { display: inline-block; min-width: 1.9rem; height: 1.9rem; line-height: 1.9rem; text-align: center; border-radius: 50%; background: var(--vert); color: #fff; font-weight: 700; font-size: .9rem; margin-right: .5rem; }
.etiquette { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--vert-clair); color: var(--vert); margin-right: .3rem; }
.etiquette.atelier { background: var(--bleu-clair); color: var(--bleu); }
.etiquette.pause { background: #eceff1; color: #455a64; }
.etiquette.anim { background: var(--ocre-clair); color: var(--ocre); }

ul, ol { padding-left: 1.3rem; margin: .4rem 0; }
li { margin: .3rem 0; }
ol.etapes { counter-reset: e; list-style: none; padding-left: 0; }
ol.etapes li { counter-increment: e; position: relative; padding: .5rem .6rem .5rem 2.7rem; background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; margin: .4rem 0; }
ol.etapes li::before { content: counter(e); position: absolute; left: .6rem; top: .5rem; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; border-radius: 50%; background: var(--bleu); color: #fff; font-weight: 700; font-size: .85rem; }

table { width: 100%; border-collapse: collapse; background: var(--carte); margin: .6rem 0; }
th, td { border: 1px solid var(--trait); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--vert-clair); color: var(--vert); font-size: .9rem; }
.table-scroll { overflow-x: auto; }

.horaire { display: grid; grid-template-columns: 7.2rem 1fr; gap: .2rem .9rem; padding: .7rem .9rem; border: 1px solid var(--trait); border-radius: 8px; background: var(--carte); margin: .4rem 0; }
.horaire.pause, .horaire.repas { background: #f0f2f1; color: var(--gris); padding: .35rem .9rem; }
.horaire.en-cours { border-left: 6px solid var(--vert-moyen); background: var(--vert-clair); }
.horaire .heure { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.horaire h3 { margin: 0 0 .2rem; font-size: 1rem; }
.horaire p { margin: .15rem 0; }
.liens { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.bouton, button.bouton {
  display: inline-block; border: 1px solid var(--vert); background: var(--vert); color: #fff; border-radius: 7px;
  padding: .4rem .85rem; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.bouton:hover { background: #0a4a25; }
.bouton.second { background: #fff; color: var(--vert); }
.bouton.second:hover { background: var(--vert-clair); }
.bouton.petit { padding: .2rem .6rem; font-size: .85rem; }
.outils { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }

video { width: 100%; max-width: 760px; border-radius: 10px; background: #000; display: block; }
details { background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; color: var(--vert); }

.minuteur { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.minuteur .temps { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--bleu); min-width: 6.2ch; }
.minuteur .temps.fin { color: var(--rouge); }
.minuteur .temps.bientot { color: var(--ocre); }

label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
textarea, select, input[type="number"] {
  width: 100%; font: inherit; padding: .5rem .6rem; border: 1px solid #b6c2ba; border-radius: 7px; background: #fff; color: var(--encre);
}
textarea { min-height: 6.5rem; resize: vertical; }
input[type="number"] { width: 5.5rem; }
select { max-width: 30rem; }
.enregistre { font-size: .85rem; color: var(--gris); min-height: 1.3em; }

.animateur { display: none; }
body.vue-animateur .animateur { display: block; }
.pied { max-width: 1080px; margin: 0 auto; padding: 1rem 16px 2rem; color: var(--gris); font-size: .85rem; border-top: 1px solid var(--trait); }
.noscript { max-width: 1080px; margin: 2rem auto; padding: 0 16px; }
.region dl { margin: .3rem 0 0; display: grid; grid-template-columns: 6.5rem 1fr; gap: .25rem .7rem; font-size: .93rem; }
.region dt { font-weight: 700; color: var(--gris); }
.region dd { margin: 0; }
.total { font-size: 1.4rem; font-weight: 800; color: var(--vert); }

@media (max-width: 620px) {
  html { font-size: 16px; }
  .horaire { grid-template-columns: 1fr; }
  #nav { margin-left: 0; }
  .region dl { grid-template-columns: 1fr; }
}
@media print {
  .bandeau, .pied, .outils, .minuteur, video, .saut, .non-imprime, details { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { padding: 0; max-width: none; }
  .carte, .horaire, ol.etapes li { break-inside: avoid; border-color: #999; }
  textarea { border: 1px solid #999; min-height: 0; }
  .feuille-impression p.reponse { white-space: pre-wrap; border: 1px solid #999; padding: .4rem .6rem; border-radius: 4px; min-height: 2.2rem; }
  a { color: inherit; text-decoration: none; }
}
.feuille-impression p.reponse { white-space: pre-wrap; background: #fff; border: 1px solid var(--trait); padding: .5rem .7rem; border-radius: 6px; min-height: 2.4rem; }
