/* parcours.css — Parcours du vendeur (v230). Chargé par index.html après styles.css.
   Préfixe pc-. Couleurs de phase : 1 🎓 bleu, 2 🛠 ambre, 3 🚗 vert, 4 🏆 doré, 5 🥇 or vif, 6 🎖 pourpre (v240, 27/10/2026).
   Accents hérités de « Normbel Coaching » : doré chaleureux (#d7a25d), vert profond (#174f42). */
:root {
  --pc-or: #d7a25d; --pc-or-bg: rgba(215, 162, 93, .16); --pc-or-txt: #f3d9b0;
  --pc-vert-profond: #174f42; --pc-vert-profond-bg: rgba(23, 79, 66, .35);
  --pc-1: var(--blue); --pc-1-bg: rgba(59, 130, 246, .16); --pc-1-txt: #bfdbfe;
  --pc-2: var(--yellow); --pc-2-bg: rgba(245, 158, 11, .16); --pc-2-txt: #fde68a;
  --pc-3: var(--green); --pc-3-bg: rgba(16, 185, 129, .16); --pc-3-txt: #a7f3d0;
  --pc-4: var(--pc-or); --pc-4-bg: var(--pc-or-bg); --pc-4-txt: var(--pc-or-txt);
  --pc-5: #e9b949; --pc-5-bg: rgba(233, 185, 73, .18); --pc-5-txt: #fbe7a8;      /* phase 5 : or vif */
  --pc-6: #a855f7; --pc-6-bg: rgba(168, 85, 247, .18); --pc-6-txt: #e9d5ff;      /* phase 6 : pourpre */
}
.pc-ph-1 { --pc-c: var(--pc-1); --pc-c-bg: var(--pc-1-bg); --pc-c-txt: var(--pc-1-txt); }
.pc-ph-2 { --pc-c: var(--pc-2); --pc-c-bg: var(--pc-2-bg); --pc-c-txt: var(--pc-2-txt); }
.pc-ph-3 { --pc-c: var(--pc-3); --pc-c-bg: var(--pc-3-bg); --pc-c-txt: var(--pc-3-txt); }
.pc-ph-4 { --pc-c: var(--pc-4); --pc-c-bg: var(--pc-4-bg); --pc-c-txt: var(--pc-4-txt); }
.pc-ph-5 { --pc-c: var(--pc-5); --pc-c-bg: var(--pc-5-bg); --pc-c-txt: var(--pc-5-txt); }
.pc-ph-6 { --pc-c: var(--pc-6); --pc-c-bg: var(--pc-6-bg); --pc-c-txt: var(--pc-6-txt); }
.pc-ph-aucune { --pc-c: var(--border); --pc-c-bg: rgba(255,255,255,.06); --pc-c-txt: var(--text2); }   /* ligne d'un autre vendeur vue par un formateur : phase non montrée (v232) */
div.pc-ligne { cursor: default; }
div.pc-ligne:hover { background: inherit; }
.pc-ligne.pc-moi { outline: 1px solid rgba(215,162,93,.45); }

/* ── Passages à valider (v234) : mobile d'abord, une carte par proposition ─────── */
.pc-propositions { margin-top: 6px; }
.pc-prop-liste { display: grid; gap: 10px; }
.pc-prop { padding: 12px; border-radius: var(--radius); border: 1px solid rgba(215, 162, 93, .45); border-left: 4px solid var(--pc-or); background: var(--card2); min-width: 0; }
.pc-carte-etat .pc-prop { margin-top: 8px; padding: 10px; }
.pc-prop-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.pc-prop-sous { margin: 4px 0 8px; font-size: .84rem; line-height: 1.45; color: var(--text2); overflow-wrap: anywhere; }
.pc-prop-motif-lab { display: block; margin: 4px 0; font-size: .82rem; color: var(--text2); }
.pc-prop textarea { width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; resize: vertical; }
.pc-prop-actions { margin-top: 8px; }
.pc-prop-actions .btn-sm { flex: 1 1 160px; min-height: 48px; justify-content: center; font-weight: 700; }
@media (min-width: 640px) { .pc-prop-liste { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } .pc-prop-actions .btn-sm { flex: 0 1 auto; } }

/* ── Section ─────────────────────────────────────────────────────────────────── */
.pc { scroll-margin-top: calc(var(--header-h, 60px) + 12px); margin: 28px 0 8px; padding: 18px 16px 6px; border-radius: var(--radius); border: 1px solid var(--border2);
  background: linear-gradient(180deg, var(--pc-vert-profond-bg), transparent 220px), var(--card); max-width: 100%; overflow: hidden; }
.pc-eyebrow { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pc-or); }
.pc-titre { margin: 4px 0 2px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.pc-accroche { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; color: var(--text2); max-width: 60ch; }
.pc-accroche::first-line { color: var(--text); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
#pc-classement, #pc-fiches, #pc-reperes { scroll-margin-top: calc(var(--header-h, 60px) + 12px); }
.pc-sous { margin: 22px 0 6px; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pc-muet { color: var(--text2); font-size: .86rem; margin: 4px 0; }
.pc-ok { color: var(--pc-3-txt); font-size: .9rem; margin: 4px 0; line-height: 1.45; }
.pc-attention { color: var(--pc-2-txt); font-size: .9rem; margin: 4px 0; }
.pc-puces { margin: 4px 0 2px; padding-left: 20px; font-size: .86rem; line-height: 1.45; }
.pc-puces li { margin: 3px 0; overflow-wrap: anywhere; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.pc-actions .btn-sm { min-height: 44px; padding: 8px 14px; }
.pc-actions .btn-sm.red:hover { background: rgba(239, 68, 68, .2); }
.pc-retour { min-height: 44px; margin: 6px 0 10px; color: var(--text); border: 1px solid var(--border2); }
.pc-oblig { font-weight: 400; color: var(--text2); }

/* Badges de phase */
.pc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap;
  background: var(--pc-c-bg, var(--card2)); color: var(--pc-c-txt, var(--text)); border: 1px solid color-mix(in srgb, var(--pc-c, var(--text3)) 45%, transparent); }
.pc-badge-grand { font-size: .84rem; padding: 4px 12px; }
/* v239 (27/10/2026) : catégorie du vendeur, vendeurs sans parcours, bandeau de la fiche */
.pc-cat { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.pc-cat-pfi { background: rgba(168,85,247,.15); color: #c084fc; }
.pc-cat-apprenant { background: rgba(59,130,246,.15); color: var(--blue); }
.pc-cat-confirme { background: rgba(34,197,94,.15); color: #4ade80; }
.pc-cat-formateur { background: rgba(245,158,11,.15); color: var(--yellow); }
.pc-sans-parcours { margin: 14px 0 4px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; background: var(--card); }
.pc-sans-parcours > summary { cursor: pointer; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.pc-sp-liste { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-sp-ligne { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; background: var(--card2); color: var(--text); border: 1px solid var(--border); cursor: pointer; }
.pc-sp-ligne:hover { border-color: var(--border2); }
.pc-bandeau-sans { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); font-size: .9rem; line-height: 1.45; }

/* ── Frise des phases ─────────────────────────────────────────────────────────── */
.pc-frise { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-frise-etape { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--pc-c-bg); border-left: 4px solid var(--pc-c); }
.pc-frise-num { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pc-c-txt); white-space: nowrap; }
.pc-frise-nom { font-weight: 700; font-size: .92rem; }
.pc-frise-grille { grid-column: 2; font-size: .74rem; color: var(--text2); }
.pc-frise-fleche { display: none; }
.pc-principe { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); font-size: .78rem; line-height: 1.5; color: var(--text2); }
@media (min-width: 760px) {
  .pc-frise { flex-direction: row; align-items: stretch; gap: 6px; }
  .pc-frise-etape { flex: 1 1 0; grid-template-columns: 1fr; gap: 3px; border-left: 0; border-top: 4px solid var(--pc-c); min-width: 0; }
  .pc-frise-grille { grid-column: 1; }
  .pc-frise-fleche { display: flex; align-items: center; color: var(--text3); font-size: 1.2rem; padding: 0 2px; }
}

/* ── Classement ──────────────────────────────────────────────────────────────── */
.pc-liste { display: flex; flex-direction: column; gap: 8px; }
.pc-entete { display: none; }
.pc-ligne { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "rang nom pts" "rang tags tags"; gap: 4px 10px; align-items: center; width: 100%; text-align: left;
  padding: 11px 12px; min-height: 60px; border-radius: var(--radius); border: 1px solid var(--border2); border-left: 4px solid var(--pc-c); background: var(--card2); color: var(--text); font: inherit; cursor: pointer; }
.pc-ligne:hover, .pc-ligne:focus-visible { border-color: var(--border2); background: rgba(255, 255, 255, .06); outline: none; }
.pc-ligne:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.pc-rang { grid-area: rang; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pc-c-bg); color: var(--pc-c-txt); font-weight: 800; font-size: .92rem; }
.pc-ligne:nth-child(2) .pc-rang { background: var(--pc-or); color: #1a1206; }
.pc-nom { grid-area: nom; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .96rem; }
.pc-nom small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .74rem; color: var(--text2); font-weight: 400; }
.pc-pts { grid-area: pts; display: flex; align-items: baseline; gap: 3px; justify-self: end; }
.pc-pts b { font-size: 1.25rem; font-weight: 800; color: var(--pc-or-txt); }
.pc-pts small { font-size: .7rem; color: var(--text2); }
.pc-chiffre { display: none; align-items: baseline; gap: 6px; font-size: .76rem; color: var(--text2); white-space: nowrap; }
.pc-chiffre b { font-size: 1.05rem; color: var(--text); }
.pc-score { padding: 1px 9px; border-radius: 8px; }
.pc-score.ga-n4 { background: rgba(34, 197, 94, .24); color: #bbf7d0; }
.pc-score.ga-n3 { background: rgba(245, 158, 11, .28); color: #fde68a; }
.pc-score.ga-n2 { background: rgba(239, 68, 68, .28); color: #fecaca; }
.pc-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pc-tags:empty { display: none; }
.pc-tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; font-size: .71rem; font-weight: 600; line-height: 1.3; background: rgba(255, 255, 255, .06); color: var(--text2); max-width: 100%; overflow-wrap: anywhere; }
.pc-tag-pret { background: var(--pc-3-bg); color: var(--pc-3-txt); }
.pc-tag-echeance { background: var(--pc-2-bg); color: var(--pc-2-txt); }
.pc-tag-form { background: var(--pc-or-bg); color: var(--pc-or-txt); }
.pc-tag-ouvert { background: rgba(239, 68, 68, .14); color: #fecaca; }
.pc-tag-valider { background: var(--pc-or-bg); color: var(--pc-or-txt); outline: 1px solid rgba(215, 162, 93, .5); }
.pc-tag-vide { display: none; }
@media (min-width: 900px) {
  .pc-liste { gap: 0; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; background: var(--card2); }
  .pc-entete, .pc-ligne { display: grid; grid-template-columns: 40px 1.6fr 90px 120px 100px 1.6fr; grid-template-areas: none; gap: 0 12px; align-items: center; }
  .pc-entete { padding: 8px 14px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); background: rgba(255, 255, 255, .03); }
  .pc-ligne { border: 0; border-top: 1px solid var(--border); border-left: 4px solid var(--pc-c); border-radius: 0; min-height: 56px; padding: 9px 14px; background: transparent; }
  .pc-rang, .pc-nom, .pc-pts, .pc-tags { grid-area: auto; }
  .pc-pts { justify-self: start; }
  .pc-chiffre { display: flex; }
  .pc-chiffre::before { display: none; }
  .pc-tag-vide { display: inline-flex; }
}
@media (max-width: 899px) {
  /* sur téléphone : note à gauche, autonomie à droite, puis les repères */
  .pc-ligne { grid-template-areas: "rang nom pts" "rang note auto" "rang tags tags"; }
  .pc-ligne .pc-chiffre { display: flex; flex-wrap: wrap; white-space: normal; grid-area: note; }
  .pc-ligne .pc-chiffre::before { content: attr(data-lab) " "; white-space: nowrap; }
  .pc-ligne .pc-chiffre[data-lab="Note /100"]::before { content: "Note "; }   /* la pastille colorée suffit sur téléphone */
  .pc-ligne .pc-chiffre + .pc-chiffre { grid-area: auto; justify-self: end; }
  .pc-ligne .ev-evo-n { display: none; }   /* tendance neutre : rien à dire sur téléphone */
}

/* ── Fiche parcours ───────────────────────────────────────────────────────────── */
.pc-fiche { border-radius: var(--radius); border: 1px solid var(--border2); border-top: 4px solid var(--pc-c); background: var(--card2); padding: 14px 14px 12px; }
.pc-fiche-tete { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pc-fiche-nom { margin: 0; font-size: 1.3rem; font-weight: 800; }
.pc-fiche-sous { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .84rem; color: var(--text2); }
.pc-suivante { color: var(--text2); }
.pc-palier { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--pc-c-bg); border-left: 3px solid var(--pc-c); font-size: .86rem; line-height: 1.45; font-style: italic; }
.pc-cartes { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pc-carte { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.pc-carte-titre { margin: 0 0 8px; font-size: .86rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pc-carte-etat { border-color: color-mix(in srgb, var(--pc-c) 45%, transparent); }
.pc-total { margin: 0 0 6px; font-size: .9rem; color: var(--text2); }
.pc-total b { font-size: 1.8rem; font-weight: 800; color: var(--pc-or-txt); margin-right: 4px; }
.pc-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .84rem; }
.pc-dl dt { color: var(--text2); } .pc-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pc-syn-chiffres { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 8px; }
.pc-syn-chiffres > span { display: flex; align-items: baseline; gap: 5px; }
.pc-syn-chiffres b { font-size: 1.35rem; font-weight: 800; }
.pc-syn-chiffres small { font-size: .72rem; color: var(--text2); }
.pc-carte .pt-cols { margin-top: 8px; }
@media (max-width: 479px) { .pc-carte .pt-cols { grid-template-columns: 1fr; gap: 8px; } }
.pc-ouverts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-ouverts li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-xs); background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25); font-size: .86rem; }
.pc-ouverts em { color: var(--text2); font-style: normal; }
.pc-ouverts small { color: var(--text2); font-size: .74rem; }
.pc-chrono { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.pc-chrono::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 2px; background: var(--border2); }
.pc-chrono-item { position: relative; display: flex; gap: 12px; padding: 6px 0; }
.pc-chrono-ico { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card2); border: 1px solid var(--border2); font-size: .9rem; z-index: 1; }
.pc-mode-auto .pc-chrono-ico { border-color: var(--pc-3); } .pc-mode-echeance .pc-chrono-ico { border-color: var(--pc-2); }
.pc-mode-manuel .pc-chrono-ico { border-color: var(--pc-or); } .pc-mode-retour .pc-chrono-ico { border-color: var(--red); }
.pc-chrono-corps { min-width: 0; }
.pc-chrono-tete { margin: 0; font-size: .86rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; overflow-wrap: anywhere; }
.pc-chrono-sous { margin: 2px 0 0; font-size: .78rem; color: var(--text2); line-height: 1.4; }
.pc-direction { border-color: color-mix(in srgb, var(--pc-or) 45%, transparent); background: linear-gradient(180deg, var(--pc-or-bg), transparent 90px), var(--card); }
.pc-form-ligne { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; min-width: 0; }
.pc-form-ligne label { font-size: .8rem; }
.pc-form-ligne select, .pc-form-ligne textarea, .pc-form-ligne input { width: 100%; min-height: 44px; box-sizing: border-box; }
.pc-form-ligne input[type="number"], .pc-form-ligne input[type="text"] { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: var(--bg); color: var(--text); font-size: .92rem; }
.pc-form-ligne input:focus, .pc-form-ligne textarea:focus, .pc-form-ligne select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
@media (min-width: 760px) {
  .pc-fiche-tete { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .pc-palier { max-width: 46%; }
  .pc-cartes { grid-template-columns: 1fr 1fr; }
  .pc-carte-large { grid-column: 1 / -1; }
}

/* ── Fiches du formateur ──────────────────────────────────────────────────────── */
.pc-barre { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pc-seg { flex: none; }
.pc-seg .nf-choix { flex: 1 1 0; min-width: 96px; white-space: nowrap; font-size: .82rem; }
.pc-seg .nf-choix.actif.pc-seg-1 { background: var(--pc-1); } .pc-seg .nf-choix.actif.pc-seg-2 { background: var(--pc-2); color: #1a1206; }
.pc-seg .nf-choix.actif.pc-seg-3 { background: var(--pc-3); color: #04150f; } .pc-seg .nf-choix.actif.pc-seg-4 { background: var(--pc-or); color: #1a1206; }
.pc-seg .nf-choix.actif.pc-seg-5 { background: var(--pc-5); color: #1a1206; } .pc-seg .nf-choix.actif.pc-seg-6 { background: var(--pc-6); color: #fff; }
.pc-tag-nomination { background: var(--pc-6-bg); color: var(--pc-6-txt); border-color: var(--pc-6); }
.pc-barre-dir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.pc-barre-dir .btn-sm { min-height: 44px; padding: 8px 14px; }
.pc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .84rem; color: var(--text2); cursor: pointer; }
.pc-check input { width: 20px; height: 20px; accent-color: var(--pc-or); }
.pc-groupe { margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--text2); }
.pc-mods { display: flex; flex-direction: column; gap: 6px; }
.pc-mod-ligne { display: flex; align-items: stretch; gap: 6px; }
.pc-mod-btn { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; text-align: left; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card2); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.pc-mod-btn:hover, .pc-mod-btn:focus-visible { background: rgba(255, 255, 255, .06); border-color: var(--border2); outline: none; }
.pc-mod-num { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--pc-c-bg); color: var(--pc-c-txt); font-weight: 800; font-size: .9rem; }
.pc-mod-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: .92rem; }
.pc-mod-txt small { font-size: .76rem; color: var(--text2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-mod-statut { color: var(--pc-or-txt) !important; font-weight: 600; }
.pc-mod-inactif .pc-mod-btn { opacity: .6; border-style: dashed; }
.pc-mod-chevron { color: var(--text3); }
.pc-mod-edit { width: 48px; min-height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card2); color: var(--text); font-size: 1rem; cursor: pointer; }
.pc-mod-edit:hover { background: var(--blue-bg); border-color: var(--blue); }
.pc-module { border-radius: var(--radius); border: 1px solid var(--border2); border-top: 4px solid var(--pc-c); background: var(--card2); padding: 14px; }
.pc-module-sur { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--text2); }
.pc-module-titre { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.pc-module-bloc { margin: 14px 0 0; }
.pc-module-bloc h6, .pc-roles h6 { margin: 0 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pc-c-txt); }
.pc-questions { margin: 0; padding-left: 22px; font-size: .9rem; line-height: 1.5; }
.pc-questions li { margin: 4px 0; }
.pc-rubs { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0 0; }
.pc-rub { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.pc-rub dt { font-size: .74rem; font-weight: 700; color: var(--text2); margin-bottom: 3px; }
.pc-rub dd { margin: 0; font-size: .88rem; line-height: 1.45; }
.pc-niveaux { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pc-niveau { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); }
.pc-niveau p { margin: 0; font-size: .86rem; line-height: 1.45; }
.pc-niveau-n { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; font-size: .86rem; }
.pc-niveau-1 .pc-niveau-n { background: rgba(239, 68, 68, .28); color: #fecaca; }
.pc-niveau-3 .pc-niveau-n { background: rgba(245, 158, 11, .28); color: #fde68a; }
.pc-niveau-5 .pc-niveau-n { background: rgba(34, 197, 94, .3); color: #bbf7d0; }
.pc-roles { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pc-roles p { margin: 0; font-size: .88rem; line-height: 1.45; }
.pc-module-pied { margin: 14px 0 0; font-size: .72rem; color: var(--text3); }
@media (min-width: 760px) {
  .pc-barre { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .pc-seg { flex: 1 1 540px; max-width: 640px; }
  .pc-barre-dir { flex: 1 1 auto; justify-content: flex-end; }
  .pc-rubs { grid-template-columns: 1fr 1fr; }
  .pc-niveaux { grid-template-columns: 1fr 1fr 1fr; }
  .pc-roles { grid-template-columns: 1fr 1fr; }
}
/* Formulaire Direction */
.pc-form { border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--pc-or) 45%, transparent); background: var(--card2); padding: 14px; }
.pc-form-grille { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.pc-form-fs { margin: 8px 0; padding: 8px 12px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 6px; }
.pc-form-fs legend { font-size: .8rem; color: var(--text2); padding: 0 4px; }
.pc-form-fs input[type="text"] { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border2); background: var(--bg); color: var(--text); font-size: .92rem; }
.pc-form-fs .pc-form-ligne { margin: 2px 0; }
@media (min-width: 760px) {
  .pc-form-grille { grid-template-columns: 1fr 1fr; }
  .pc-form-large { grid-column: 1 / -1; }
}

/* ── Repères du formateur ─────────────────────────────────────────────────────── */
.pc-rep { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pc-det { border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card2); }
.pc-det summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.pc-det summary::-webkit-details-marker { display: none; }
.pc-det-chev { color: var(--text3); transition: transform .2s; }
.pc-det[open] .pc-det-chev { transform: rotate(180deg); }
.pc-det-corps { padding: 2px 14px 14px; border-top: 1px solid var(--border); }
.pc-moment { margin-top: 12px; }
.pc-moment h6 { margin: 0 0 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pc-or); }
.pc-qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-qlist li { padding: 8px 10px; border-radius: var(--radius-xs); background: var(--card); border: 1px solid var(--border); }
.pc-q { margin: 0; font-size: .9rem; line-height: 1.45; }
.pc-q-sous { margin: 4px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: .76rem; color: var(--text2); line-height: 1.4; }
.pc-q-sous b { color: var(--text3); font-weight: 700; text-transform: uppercase; font-size: .66rem; letter-spacing: .05em; margin-right: 4px; }
.pc-etapes { margin: 10px 0 0; padding-left: 0; list-style: none; counter-reset: etape; display: flex; flex-direction: column; gap: 8px; }
.pc-etapes li { counter-increment: etape; display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.pc-etapes li::before { content: counter(etape); width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pc-or-bg); color: var(--pc-or-txt); font-weight: 800; font-size: .84rem; }
.pc-regles li::before { background: var(--pc-vert-profond); color: #c7f0e4; }
.pc-ex { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pc-ex-entete { display: none; }
.pc-ex-ligne { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); font-size: .84rem; line-height: 1.45; }
.pc-ex-ecart { font-weight: 800; font-size: .95rem; color: var(--pc-or-txt); }
.pc-ex-ligne [data-lab]::before { content: attr(data-lab); display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin-bottom: 1px; }
@media (min-width: 1000px) {
  .pc-ex { gap: 0; border: 1px solid var(--border2); border-radius: var(--radius-sm); overflow: hidden; }
  .pc-ex-entete, .pc-ex-ligne { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr 1.2fr 1.2fr 1.3fr; gap: 0 12px; align-items: start; }
  .pc-ex-entete { padding: 8px 12px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text2); background: rgba(255, 255, 255, .03); }
  .pc-ex-ligne { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; font-size: .8rem; }
  .pc-ex-ligne [data-lab]::before { display: none; content: none; }
  .pc-ex-ecart { font-size: .86rem; }
}

/* ── v235 (23/10/2026) : historique par question et remarques pour la Direction (fiche personne) ── */
.pc-hq { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 6px; }
.pc-hq table { border-collapse: separate; border-spacing: 3px; font-size: .78rem; min-width: 100%; }
.pc-hq th { text-align: left; font-weight: 600; color: var(--text2); white-space: nowrap; padding: 4px 6px; }
.pc-hq thead th { text-align: center; font-variant-numeric: tabular-nums; }
.pc-hq tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); max-width: 160px; min-width: 120px; white-space: normal; line-height: 1.3; font-size: .76rem; font-weight: 500; color: var(--text); }
.pc-hq td { position: relative; width: 40px; min-width: 40px; height: 36px; padding: 2px 4px; border-radius: 8px; text-align: center; font-size: 1rem; background: rgba(255, 255, 255, .04); }
.pc-hq td.pc-hq-n1 { background: rgba(239, 68, 68, .22); }
.pc-hq td.pc-hq-n2 { background: rgba(245, 158, 11, .22); }
.pc-hq td.pc-hq-n3 { background: rgba(34, 197, 94, .22); }
.pc-hq td.pc-hq-n4 { background: rgba(215, 162, 93, .28); }
.pc-hq td.pc-hq-so { background: rgba(148, 163, 184, .18); color: var(--text2); }
.pc-hq td.pc-hq-vide { color: var(--text3); }
.pc-hq-evo { position: absolute; top: 1px; right: 3px; font-size: .62rem; font-weight: 800; color: var(--pc-or-txt); }
.pc-carte-direction-rem { border-color: color-mix(in srgb, var(--pc-or) 50%, transparent); border-style: dashed; }
.pc-remarques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-remarques li { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: var(--radius-xs); background: var(--pc-or-bg); border: 1px solid rgba(215, 162, 93, .3); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.pc-remarques small { color: var(--text2); font-size: .74rem; }
/* Historique par question (24/10/2026) : ombre de bord à droite (et à gauche) tant que le tableau déborde,
   pour montrer qu'il se fait défiler — ombres « locales » qui disparaissent en bout de course */
.pc-hq {
  background:
    linear-gradient(90deg, var(--card) 30%, transparent) 0 0 / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--card) 30%, transparent) 100% 0 / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .45), transparent) 0 0 / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .45), transparent) 100% 0 / 16px 100% no-repeat scroll;
}
