/* TEAM RH v0.87 — passe complète de Thomas ( 16 oct. 2026 ). Jetons de la couche Astra ( team.css ). */

/* Puces à toucher : l'état choisi se voit ( fond + coche dessinée ), règle « une indication quand on clique ». */
.t-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.t-puce {
  border: 1px solid var(--t-line, #DDE5E5); background: #fff; color: var(--t-ink, #1B3C43);
  border-radius: 999px; padding: 8px 12px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-align: left;
}
.t-puce:hover { border-color: var(--t-ink-soft, #536C72); }
.t-puce:focus-visible { outline: 3px solid #D54A2B; outline-offset: 2px; }
.t-puce.on { background: var(--t-brand, #1B434B); border-color: var(--t-brand, #1B434B); color: #fff; font-weight: 600; }
.t-puce.on::before { content: ""; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.t-puce.alerte.on { background: var(--t-bad, #B3261E); border-color: var(--t-bad, #B3261E); }
.t-puce[disabled] { opacity: .55; cursor: not-allowed; }

/* Disponibilité ( notes 2 et 6 ) */
.v87-dispo { display: grid; gap: 8px; margin: 4px 0 8px; }
.v87-dispo-ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v87-dispo-date { max-width: 190px; min-height: 40px; font-size: 16px; }
.v87-preavis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v87-preavis-q { font-size: 13px; color: var(--t-ink-soft, #536C72); margin-right: 4px; }
.v87-dispo-lu { margin: 0; }

/* Ville et secteurs ( notes 5 et 7 ) */
.v87-lieu-lu { margin: 4px 0 0; }
.v87-secteurs { display: grid; gap: 8px; margin: 4px 0 8px; }
.v87-plus > summary { cursor: pointer; font-size: 13px; color: var(--t-ink, #1B3C43); min-height: 32px; display: flex; align-items: center; }
.v87-plus .t-puces { margin-top: 6px; }
.v87-anciennes { color: var(--t-warn-ink, #775612); }

/* Carte CCQ préremplie ( note 11 ) */
.v87-declare { display: inline-block; font-size: 12px; color: var(--t-warn-ink, #775612); background: #FFF6E0; border: 1px solid #F0DDA8; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.v87-raison { font-size: 13px; color: var(--t-warn-ink, #775612); margin: 4px 0 0; min-height: 0; }
.v87-raison:empty { display: none; }

/* Compétence = résumé + Confirmer ( note 13 ) */
.v87-resume { display: grid; gap: 4px; margin: 6px 0 10px; }
.v87-resume-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--t-line-soft, #E8ECEB); font-size: 14px; }
.v87-resume-ligne:first-child { border-top: 0; }
.v87-resume-ligne .v87-vide { color: var(--t-warn-ink, #775612); font-weight: 700; }
.v87-corriger { margin-top: 8px; }

@media (max-width: 560px) {
  .v87-dispo-date { max-width: 100%; flex: 1 1 160px; }
}

/* ---------------------------------------------------------------- lot B : panneau « Documents » ( notes 15 à 18 ) */
.entrevue-envois { max-height: 55vh; }
.entrevue-envois .doc-groupe { display: flex; flex-direction: column; gap: 4px; }
.entrevue-envois .doc-groupe > h4 { margin: 10px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--t-ink-soft, #536C72); }
.entrevue-envois .doc-recu { grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr); }
.doc-depot { margin-top: 6px; display: grid; gap: 6px; }
.doc-depot-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-depot-ligne select { flex: 1 1 220px; min-height: 40px; }
.doc-depot-ligne input[type=date] { flex: 0 1 180px; min-height: 40px; }
.doc-depot-zone { display: block; border: 2px dashed #B9C7C9; border-radius: 10px; padding: 14px; text-align: center; font-size: 14px; color: var(--t-ink, #1B3C43); cursor: pointer; }
.doc-depot-zone.inactif { opacity: .6; cursor: not-allowed; }
.doc-depot-zone.survol-depot { border-color: var(--t-brand, #1B434B); background: #F7FAF9; }
.doc-etapes { list-style: none; margin: 4px 0 0; padding: 0; }
.doc-etape { display: grid; grid-template-columns: 28px minmax(0, 1.2fr) minmax(140px, 1fr); gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--t-line-soft, #E8ECEB); border-radius: 6px; }
.doc-etape .doc-n { width: 26px; height: 26px; border-radius: 50%; background: #F0F4F3; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.doc-etape.faite .doc-n { background: var(--t-ok, #276E4E); color: #fff; }
.doc-etape.courante { background: #F7FAF9; }
.doc-etape.courante .doc-n { background: var(--t-brand, #1B434B); color: #fff; }
.doc-etape.sautee { opacity: .7; }
.doc-actions-etape { display: grid; gap: 6px; margin-top: 8px; }
.doc-actions-etape .btn-cta { width: 100%; font-size: 17px; }
.doc-zone-action:empty { display: none; }
.doc-zone-action { padding: 0 14px 14px; }
.doc-qr { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #F0F4F3; border: 1px solid var(--t-line, #DDE5E5); border-radius: 10px; padding: 14px; margin-top: 8px; }
.doc-qr-image { background: #fff; padding: 8px; border-radius: 8px; width: 196px; max-width: 100%; flex: none; }
.doc-qr-image svg { display: block; width: 100%; height: auto; }
.doc-qr-texte { flex: 1 1 200px; min-width: 0; display: grid; gap: 6px; }
.doc-qr-url { word-break: break-all; }
.doc-iframe-entete { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 8px; }
.doc-iframe { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--t-line, #DDE5E5); border-radius: 10px; background: #fff; }
#saisie-rep-cible:empty { display: none; }
@media (max-width: 600px) {
  .doc-etape { grid-template-columns: 28px minmax(0, 1fr); }
  .doc-etape .ee-etat { grid-column: 2; }
  .entrevue-envois .doc-recu { grid-template-columns: 1fr; }
  .doc-qr-image { width: 100%; max-width: 240px; margin: 0 auto; }
}

/* ---------------------------------------------------------------- lot B : entrevue Express ( note 16 ) */
.v87-bascule { display: inline-flex; background: rgba(27,67,75,.08); border-radius: 999px; padding: 3px; margin-right: 8px; }
.v87-bascule button { border: 0; background: none; color: var(--t-ink, #1B3C43); padding: 6px 14px; min-height: 36px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.v87-bascule button.on { background: var(--t-brand, #1B434B); color: #fff; font-weight: 700; }
.v87-bascule button:focus-visible { outline: 3px solid #D54A2B; outline-offset: 2px; }
.v87-express { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.v87-main, .v87-cote { min-width: 0; }
.v87-colle { position: sticky; top: 0; display: grid; gap: 12px; }
.v87-carte-bloc { background: #fff; border: 1px solid var(--t-line, #DDE5E5); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.v87-carte-bloc h3 { margin: 0; font-size: 16px; }
.v87-carte-bloc h4 { margin: 0 0 4px; font-size: 14px; }
.v87-theme { background: #fff; border: 1px solid var(--t-line, #DDE5E5); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.v87-theme > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; min-height: 48px; }
.v87-theme > summary::-webkit-details-marker { display: none; }
.v87-theme > summary h3 { margin: 0; font-size: 16px; }
.v87-num { width: 26px; height: 26px; border-radius: 50%; background: #F0F4F3; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.v87-theme.fait .v87-num { background: var(--t-ok, #276E4E); color: #fff; }
.v87-src { font-size: 12px; color: var(--t-ink-soft, #536C72); border: 1px solid var(--t-line, #DDE5E5); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.v87-amorce { color: var(--t-ink-soft, #536C72); font-size: 13px; margin-left: auto; text-align: right; }
.v87-corps { padding: 0 16px 16px 52px; }
.v87-lbl { font-size: 12px; font-weight: 700; color: var(--t-ink-soft, #536C72); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.v87-tag { background: #FFF3D6; color: var(--t-warn-ink, #775612); border: 1px solid #F0DDA8; border-radius: 999px; padding: 1px 8px; font-size: 11px; text-transform: none; letter-spacing: 0; }
.v87-rang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.v87-express input[type=text], .v87-express input[type=date], .v87-express select, .v87-express textarea { width: 100%; font: inherit; font-size: 16px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--t-line, #DDE5E5); border-radius: 8px; background: #fff; color: var(--t-ink, #1B3C43); box-sizing: border-box; }
.v87-express textarea { min-height: 64px; resize: vertical; }
.v87-detail input { padding: 8px 10px; border: 1px solid var(--t-line, #DDE5E5); border-radius: 8px; box-sizing: border-box; font: inherit; font-size: 16px; }
.v87-groupe { margin-bottom: 4px; }
.v87-detail { margin-top: 8px; }
.v87-detail label { font-size: 13px; color: var(--t-ink-soft, #536C72); display: block; margin-bottom: 4px; }
.v87-detail input { width: 100%; font-size: 16px; min-height: 40px; }
.v87-flag { background: #FFF6E0; border: 1px solid #F0DDA8; border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--t-warn-ink, #775612); margin-top: 6px; }
.v87-pourquoi { margin-bottom: 10px; }
.v87-conf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--t-line-soft, #E8ECEB); }
.v87-conf:first-of-type { border-top: 0; }
.v87-conf-v { font-size: 14px; }
.v87-conf-v small { display: block; color: var(--t-ink-soft, #536C72); font-size: 12px; }
.v87-conf-ch { display: flex; gap: 6px; }
.v87-conf-ch .mini { min-height: 40px; }
.v87-conf-ch .mini.on.v87-ok { background: #E6F2EC; border-color: #BFDCCB; color: var(--t-ok, #276E4E); font-weight: 700; }
.v87-conf-ch .mini.on.v87-cor { background: #FFF6E0; border-color: #F0DDA8; color: var(--t-warn-ink, #775612); font-weight: 700; }
.v87-conf-saisie { grid-column: 1 / -1; display: none; }
.v87-conf.corrige .v87-conf-saisie { display: block; }
.v87-q { border-top: 1px solid var(--t-line-soft, #E8ECEB); padding: 8px 0; }
.v87-q > summary { cursor: pointer; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.v87-q.rempli > summary { color: var(--t-ok, #276E4E); font-weight: 600; }
.v87-q textarea { margin-top: 8px; width: 100%; }
.v87-exemples { font-size: 13px; color: var(--t-ink-soft, #536C72); margin: 6px 0 0; padding-left: 18px; }
.v87-mir { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--t-line-soft, #E8ECEB); font-size: 14px; }
.v87-mir:first-child { border-top: 0; }
.v87-mir .k { color: var(--t-ink-soft, #536C72); }
.v87-mir .v.vide { color: var(--t-warn-ink, #775612); font-weight: 700; }
.v87-manque { list-style: none; margin: 6px 0 0; padding: 0; }
.v87-manque li { padding: 6px 0; border-top: 1px solid var(--t-line-soft, #E8ECEB); font-size: 14px; }
.v87-manque li.ok { color: var(--t-ink-soft, #536C72); text-decoration: line-through; }
.v87-terminer { width: 100%; margin-top: 4px; font-size: 19px; font-weight: 700; min-height: 52px; }
.v87-ajout { margin-top: 12px; }
@media (max-width: 860px) {
  .v87-express { grid-template-columns: minmax(0, 1fr); }
  .v87-colle { position: static; }
}
@media (max-width: 560px) {
  .v87-corps { padding: 0 12px 14px 12px; }
  .v87-amorce { display: none; }
  .v87-rang { grid-template-columns: 1fr; }
  .v87-mir { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- lot C : tags ( note 3 ), stats d'accueil ( note 18 ) */
.tags-v87-groupe { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; align-items: start; margin: 6px 0; }
.tags-v87-titre { font-size: 12px; font-weight: 700; color: var(--t-ink-soft, #536C72); text-transform: uppercase; letter-spacing: .04em; padding-top: 10px; }
#filtre-tag.actif { border-color: var(--t-brand, #1B434B); font-weight: 600; }
@media (max-width: 560px) { .tags-v87-groupe { grid-template-columns: 1fr; } .tags-v87-titre { padding-top: 4px; } }

/* lot B : en-tête de l'entrevue avec la bascule — au téléphone, l'état passe sur sa propre ligne, « Quitter » reste visible */
@media (max-width: 600px) {
  .entrevue-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: space-between; row-gap: 6px; }
  .entrevue-actions .entrevue-etat { order: 3; flex: 1 1 100%; white-space: normal; }
  .v87-bascule button { padding: 6px 10px; }
}
