/* Activation de l'ontologie — dispositifs interactifs (/ressources/…).
   S'appuie sur les tokens de public-refonte.css (--plr-*) et complète bdc.css. */

.act .plr-hero p.act-lead { max-width: 760px; color: var(--plr-text-2); margin-top: 18px; }

/* cartes du hub */
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 26px; }
.act-card { display: block; background: var(--plr-white); border: 1px solid var(--plr-border);
  border-radius: var(--plr-r-card, 30px); padding: 26px 24px; text-decoration: none;
  color: var(--plr-text); transition: transform .15s ease, border-color .15s ease; }
.act-card:hover { transform: translateY(-2px); border-color: var(--plr-navy); }
.act-card i { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--plr-text-3); margin-bottom: 8px; }
.act-card b { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.act-card span { color: var(--plr-text-2); font-size: 14.5px; line-height: 1.5; }
.act-card .act-num { display: inline-block; margin-top: 14px; font-size: 13px;
  color: var(--plr-navy); font-weight: 600; }

/* assistant par étapes (diagnostic, mini-profil) */
.act-steps { max-width: 780px; }
.act-progress { font-size: 13px; color: var(--plr-text-3); margin-bottom: 10px; }
.act-step { display: none; border: none; padding: 0; margin: 0 0 18px; }
.act-step.on { display: block; }
.act-step legend, .act-step .act-q { font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.act-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.act-chips label { cursor: pointer; }
.act-chips input { position: absolute; opacity: 0; pointer-events: none; }
.act-chips span { display: inline-block; padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--plr-border); background: var(--plr-white);
  font-size: 14.5px; color: var(--plr-text); transition: all .12s ease; }
.act-chips input:checked + span { background: var(--plr-navy); color: #fff; border-color: var(--plr-navy); }
.act-chips input:focus-visible + span { outline: 2px solid var(--plr-navy); outline-offset: 2px; }
.act-nav { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.act-skip { font-size: 13.5px; color: var(--plr-text-3); text-decoration: underline;
  background: none; border: none; cursor: pointer; }

/* radar (barres par domaine) */
.act-radar { margin-top: 20px; max-width: 720px; }
.act-radar .row { display: grid; grid-template-columns: 220px 1fr 60px; gap: 12px;
  align-items: center; padding: 7px 0; font-size: 14.5px; }
.act-radar .bar { height: 12px; border-radius: 100px; background: var(--plr-grey-neutral); overflow: hidden; }
.act-radar .bar i { display: block; height: 100%; background: var(--plr-navy); border-radius: 100px; }
.act-radar .n { text-align: right; font-weight: 600; color: var(--plr-navy); }

/* alertes */
.act-alerte { background: var(--plr-white); border: 1px solid var(--plr-border);
  border-left: 4px solid var(--plr-navy); border-radius: 16px; padding: 18px 20px; margin: 12px 0; }
.act-alerte p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.act-alerte .src { font-size: 12.5px; color: var(--plr-text-3); font-family: ui-monospace, monospace; }
.act-alerte .cond { font-size: 13.5px; color: var(--plr-text-2); }
.act-alerte .cond b { font-weight: 600; }
.act-flou { position: relative; }
.act-flou .act-alerte { filter: blur(4px); user-select: none; pointer-events: none; }

/* bloc de capture (gate) */
.act-gate { background: var(--plr-navy); color: #fff; border-radius: var(--plr-r-card, 30px);
  padding: 34px 32px; margin: 30px 0; }
.act-gate h3 { color: #fff; font-size: 22px; margin: 0 0 10px; }
.act-gate p { color: rgba(255,255,255,.85); font-size: 14.5px; max-width: 620px; }
.act-gate form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.act-gate input[type=email] { flex: 1 1 260px; padding: 13px 18px; border-radius: 100px;
  border: none; font-size: 15px; }
.act-gate .consent { flex-basis: 100%; font-size: 12.5px; color: rgba(255,255,255,.75);
  display: flex; gap: 8px; align-items: flex-start; }
.act-gate .consent input { margin-top: 3px; }

/* frise (rétroplanning) */
.act-frise { margin-top: 24px; max-width: 820px; position: relative; padding-left: 26px; }
.act-frise::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--plr-blue); }
.act-jalon { position: relative; padding: 0 0 22px; }
.act-jalon::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px;
  height: 12px; border-radius: 50%; background: var(--plr-navy); }
.act-jalon .quand { font-weight: 700; font-size: 15px; color: var(--plr-navy); }
.act-jalon .quoi { font-size: 15px; margin: 4px 0; line-height: 1.55; }
.act-jalon .src { font-size: 12.5px; color: var(--plr-text-3); font-family: ui-monospace, monospace; }
.act-jalon a { color: var(--plr-navy); }

/* jeu des pièges */
.act-piege { max-width: 780px; background: var(--plr-white); border: 1px solid var(--plr-border);
  border-radius: var(--plr-r-card, 30px); padding: 30px 28px; margin-top: 22px; }
.act-piege .situation { font-size: 16.5px; line-height: 1.6; }
.act-choix { display: grid; gap: 10px; margin-top: 18px; }
.act-choix button { text-align: left; padding: 14px 18px; border-radius: 16px;
  border: 1px solid var(--plr-border); background: var(--plr-beige); font-size: 14.5px;
  line-height: 1.5; cursor: pointer; transition: border-color .12s ease; }
.act-choix button:hover { border-color: var(--plr-navy); }
.act-choix button.ok { background: #eef7ee; border-color: #2e7d32; }
.act-choix button.ko { background: #fdf0ef; border-color: #c0392b; }
.act-reveal { margin-top: 16px; display: none; }
.act-reveal.on { display: block; }
.act-reveal .verdict { font-weight: 700; margin-bottom: 8px; }
.act-score { font-size: 40px; font-weight: 700; color: var(--plr-navy); }

/* parcours */
.act-etape { display: flex; gap: 16px; align-items: flex-start; background: var(--plr-white);
  border: 1px solid var(--plr-border); border-radius: 16px; padding: 16px 18px; margin: 10px 0; }
.act-etape .num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--plr-navy);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.act-etape.fait .num { background: #2e7d32; }
.act-etape b { font-size: 15.5px; }
.act-etape a { color: var(--plr-navy); font-size: 13.5px; }
.act-etape input { margin-top: 4px; width: 18px; height: 18px; }

/* carte (constellation) */
.act-carte-wrap { background: var(--plr-navy); border-radius: var(--plr-r-card, 30px);
  margin-top: 24px; overflow: hidden; position: relative; }
.act-carte-wrap svg { display: block; width: 100%; height: auto; cursor: grab; }
.act-carte-wrap .edge { stroke: #AFC8E9; stroke-opacity: .16; stroke-width: .7; }
.act-carte-wrap .node { fill: #AFC8E9; opacity: .8; cursor: pointer; }
.act-carte-wrap .node:hover { fill: #fff; opacity: 1; }
.act-carte-wrap .node.moi { fill: #fff; opacity: 1; }
.act-carte-wrap .blabel { fill: #EFF7FF; font-size: 15px; font-weight: 600; opacity: .9; }
.act-carte-tip { position: absolute; pointer-events: none; background: #fff; color: var(--plr-text);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; display: none; max-width: 280px;
  box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.act-carte-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* veille */
.act-veille { max-width: 820px; }
.act-veille .entree { border-bottom: 1px solid var(--plr-border); padding: 16px 0; }
.act-veille .date { font-size: 12.5px; color: var(--plr-text-3); font-family: ui-monospace, monospace; }
.act-veille .ref { font-weight: 600; font-size: 14.5px; margin: 4px 0; }
.act-veille p { font-size: 14.5px; color: var(--plr-text-2); margin: 4px 0 0; line-height: 1.55; }

/* guide (document) */
.act-doc { max-width: 760px; background: var(--plr-white); border: 1px solid var(--plr-border);
  border-radius: var(--plr-r-card, 30px); padding: 40px 42px; margin-top: 24px; }
.act-doc h2 { margin-top: 0; }
.act-doc .meta { font-size: 13px; color: var(--plr-text-3); margin-bottom: 20px; }
.act-doc p { font-size: 15px; line-height: 1.7; }
.act-doc .avertissement { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--plr-border);
  font-size: 12.5px; color: var(--plr-text-3); }

/* guide — listes à cocher, tableaux, modèles */
.act-check { list-style: none; padding: 0; margin: 8px 0; }
.act-check li { position: relative; padding: 8px 0 8px 34px; font-size: 15px; line-height: 1.55;
  border-bottom: 1px solid var(--plr-grey-neutral); }
.act-check li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 17px;
  height: 17px; border: 2px solid var(--plr-navy); border-radius: 5px; }
.act-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.act-table th { text-align: left; background: var(--plr-beige); padding: 10px 12px;
  font-weight: 600; }
.act-table td { padding: 10px 12px; border-bottom: 1px solid var(--plr-border);
  vertical-align: top; line-height: 1.5; }
.act-modele { margin: 12px 0; padding: 18px 22px; background: var(--plr-beige);
  border-left: 4px solid var(--plr-navy); border-radius: 12px; font-size: 14.5px;
  line-height: 1.7; font-style: italic; }

/* simulateur */
.act-sim-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; margin-top: 26px; max-width: 900px; }
.act-sim-carte { background: var(--plr-white); border: 1px solid var(--plr-border);
  border-radius: var(--plr-r-card, 30px); padding: 26px 24px; }
.act-sim-carte.gagnant { border: 2px solid var(--plr-navy); }
.act-sim-carte i { font-style: normal; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--plr-text-3); }
.act-sim-carte .montant { font-size: 32px; font-weight: 700; color: var(--plr-navy); margin: 8px 0; }
.act-sim-carte p { font-size: 13.5px; color: var(--plr-text-2); line-height: 1.55; }
.act-eco { background: var(--plr-accent); border-radius: 16px; padding: 18px 22px;
  margin-top: 18px; font-size: 16px; max-width: 900px; }
.act-form-inline { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 20px; }
.act-form-inline label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px;
  color: var(--plr-text-2); }
.act-form-inline input { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--plr-border);
  font-size: 15px; width: 190px; }

@media (max-width: 640px) {
  .act-radar .row { grid-template-columns: 1fr; gap: 4px; }
  .act-radar .n { text-align: left; }
  .act-doc { padding: 26px 20px; }
}
@media print {
  .plr-nav, .plr-footer, .act-gate, .act-no-print { display: none !important; }
  .act-doc { border: none; padding: 0; }
}
