/* Flyer intégré à une page HTML (filtre flyer.lua) */

/* Couleurs par encadré : --c (filets, fonds), --c-texte (texte sur blanc, contraste ≥ 4,5:1),
   --c-sur (texte sur fond --c) */
.flyer-c-defaut       { --c: var(--brand-bleu-fonce, #007ea1); --c-texte: var(--brand-bleu-fonce, #007ea1); --c-sur: #fff; }
.flyer-c-traditionnel { --c: var(--brand-orange, #f9b000); --c-texte: #8a5a00; --c-sur: #212121; }
.flyer-c-alternance   { --c: #d28000; --c-texte: #8f5100; --c-sur: #212121; }
.flyer-c-parcoursup   { --c: var(--brand-magenta, #e5005b); --c-texte: #c2004d; --c-sur: #fff; }
.flyer-c-ecandidat    { --c: #4b192f; --c-texte: #4b192f; --c-sur: #fff; }

/* Encadré : barre de titre colorée, fond très clair */
.flyer-encadre {
  border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 5%, white);
  margin-bottom: 1.25rem;
}

.flyer-encadre .flyer-titre {
  background: var(--c);
  color: var(--c-sur);
  font-family: "Red Hat Display", sans-serif;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
}

.flyer-corps {
  padding: 0.75rem;
}

.flyer-corps > :last-child,
.flyer-corps dd > :last-child {
  margin-bottom: 0;
}

.flyer-conteneur {
  background: white;
}

/* Clé / valeur */
.flyer-corps dt {
  color: var(--c-texte);
  font-weight: 600;
}

.flyer-corps dd {
  margin-left: 0;
  margin-bottom: 0.6rem;
}

@media (min-width: 576px) {
  .flyer-grille .flyer-corps > dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    row-gap: 0.4rem;
  }
  .flyer-grille .flyer-corps > dl > dt {
    text-align: right;
  }
  .flyer-grille .flyer-corps > dl > dd {
    margin-bottom: 0;
  }
}

/* Disposition « ligne » : « Clé : valeur » */
.flyer-ligne .flyer-corps > dl > dt {
  float: left;
  clear: left;
  margin-right: 0.35em;
}

.flyer-ligne .flyer-corps > dl > dt::after {
  content: " :";
}

.flyer-ligne .flyer-corps > dl > dd > ul {
  clear: left;
}

.flyer-corps ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

/* Pastilles : listes à puces en étiquettes */
.flyer-pastilles .flyer-corps dd ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
}

.flyer-pastilles .flyer-corps dd li {
  border: 1px solid color-mix(in srgb, var(--c) 40%, white);
  background: white;
  padding: 0.1rem 0.6rem;
  font-size: 0.9em;
}

.accent {
  color: var(--c-texte);
  font-weight: 600;
}

/* Onglets des parcours */
.flyer-colonnes {
  margin-bottom: 1.5rem;
}

.flyer-nav .nav-link {
  color: var(--c-texte);
  font-family: "Red Hat Display", sans-serif;
  font-weight: 500;
  border-top: 3px solid transparent;
}

.flyer-nav .nav-link.active {
  border-top-color: var(--c);
  color: var(--c-texte);
}

.flyer-panneaux {
  border: 1px solid var(--bs-border-color);
  border-top: none;
  padding: 1rem;
}

.flyer-titre-panneau {
  color: var(--c-texte);
  font-family: "Red Hat Display", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.flyer-grille-encadres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  align-items: start;
}

.flyer-grille-encadres > .flyer-encadre {
  margin-bottom: 0;
}

.flyer-cartes {
  margin-bottom: 1.5rem;
}
