/* polhuis.css — compléments du site des études (le reste vient de style.css, comme PolRDV) */
.st { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.st-gris { background: #eef0f4; color: #5b6475; }
.st-bleu { background: #e3ecfd; color: #1d4ed8; }
.st-orange { background: #fff1dd; color: #9a5b00; }
.st-vert { background: #e1f5ea; color: #157347; }
.st-violet { background: #efe8fd; color: #5b21b6; }
.st-rouge { background: #fde8e8; color: #b42318; }
.ph-top-droite { display: flex; align-items: center; gap: 10px; }
.ph-qui { color: #fff; font-size: .88rem; opacity: .9; }
.ph-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #e1f5ea; color: #157347; border: 1px solid #bfe6cf; }
.ph-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ph-entete .h1 { margin: 0; }
.ph-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ph-carte { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px !important; margin: 0 !important; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.ph-carte:hover { transform: translateY(-2px); }
.ph-carte-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-carte-type { font-weight: 700; }
.ph-motif { font-size: .85rem; color: #9a5b00; }
.ph-petit { font-size: .82rem; }
.ph-termines { margin-top: 10px; }
.ph-termines summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.ph-cnx { max-width: 460px; }
.ph-types { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-type { position: relative; }
.ph-type input { position: absolute; opacity: 0; }
.ph-type span { display: inline-block; padding: 12px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; }
.ph-type input:checked + span { border-color: var(--blue); background: rgba(36, 75, 166, .07); color: var(--blue); }
.ph-type input:focus-visible + span { outline: 3px solid rgba(36, 75, 166, .3); }
.ph-bloc-pieces { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ph-pieces { list-style: none; margin: 8px 0; padding: 0; }
.ph-pieces li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; background: #fff; }
.ph-boutons-form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.ph-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.ph-dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 16px; margin: 0; }
.ph-dl dt { color: var(--muted); font-weight: 600; }
.ph-dl dd { margin: 0; }
.ph-histo { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.ph-histo li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ph-histo li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .ph-dl { grid-template-columns: 1fr; } .ph-qui { display: none; } }

/* Champs à libellé fixe (choix, listes, fichiers) */
.ph-champ { margin-bottom: 16px; }
.ph-libelle { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; color: var(--ink); }
.ph-champ select { width: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .9); font: inherit; font-size: 1rem; color: var(--ink); }
.ph-champ select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 5px rgba(36, 75, 166, .12); }
.ph-champ input[type="file"] { width: 100%; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line); background: rgba(255, 255, 255, .7); font: inherit; font-size: .92rem; }
.ph-champ.has-err select, .ph-champ.has-err input[type="file"] { border-color: var(--danger); background: #fff6f5; }
.ph-champ.has-err .ph-types .ph-type span { border-color: var(--danger); }
