/* Base « Stages et sujets 2018-2027 » — styles du gabarit (compatible thème Boost / Bootstrap). */
.st-base { font-size: .95rem; }
.st-aide { color: #555; margin: .25rem 0 .75rem; }
.st-source { color: #6a737b; font-size: .85rem; margin-top: .5rem; }

/* Liste */
.st-liste { margin-bottom: .5rem; }
.st-liste th { white-space: nowrap; background: #f1f3f5; position: sticky; top: 0; }
.st-liste td { vertical-align: top; }
.st-liste .st-annee, .st-liste .st-niveau { white-space: nowrap; }
.st-liste .st-filiere { min-width: 9rem; font-size: .88rem; }
.st-liste .st-organisme { min-width: 10rem; font-weight: 600; }
.st-liste .st-sujet { min-width: 16rem; }
.st-extrait {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-width: 34rem;
}
.st-actions { white-space: nowrap; }

/* Lieu : « Ville, Pays » sans virgule orpheline quand la ville est vide */
.st-ville:not(:empty)::after { content: ", "; }

/* Fiche */
.st-fiche { margin-bottom: 1rem; }
.st-badges .badge { margin-right: .25rem; font-weight: 500; white-space: normal; }
.st-titre { font-size: 1.25rem; margin: .5rem 0 1rem; line-height: 1.35; }
.st-champs dt { color: #495057; font-weight: 600; }
.st-champs dd { margin-bottom: .5rem; }
.st-soustitre { font-size: 1.05rem; margin-top: 1rem; border-top: 1px solid #dee2e6; padding-top: .75rem; }
.st-missions { line-height: 1.5; max-width: 60rem; overflow-wrap: anywhere; }
.st-secteur:empty::before, .st-missions:empty::before { content: "Non renseigné"; color: #6a737b; font-style: italic; }

/* Recherche avancée */
.st-recherche { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; padding: .75rem 1rem .25rem; margin-bottom: .75rem; }
.st-recherche .st-label { display: block; font-weight: 600; margin-bottom: .2rem; }
.st-recherche select, .st-recherche input[type="text"] { width: 100%; max-width: 100%; }

@media (max-width: 767.98px) {
  .st-liste .st-filiere, .st-liste .st-niveau { display: none; }
  .st-extrait { max-width: 18rem; }
}
