/* guide.css — mode d'emploi de l'organisation. Document lisible et IMPRIMABLE :
   c'est une feuille qu'on pose à côté du clavier le jour J. */

body.guide { background: var(--wc-bg); }

.gd-head {
  padding: 26px 22px 22px; color: #fff;
  background: linear-gradient(120deg, var(--wc-navy-deep), var(--wc-navy) 60%, #0f4a76);
  border-bottom: 4px solid transparent; border-image: var(--wc-rainbow) 1;
}
.gd-head .inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.gd-head img { height: 42px; }
.gd-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.gd-head .sub { opacity: .8; font-size: .88rem; margin-top: 3px; }

.gd { max-width: 900px; margin: 0 auto; padding: 26px 22px 70px; }
.gd h2 { font-size: 1.15rem; font-weight: 800; margin: 34px 0 12px; letter-spacing: -.01em;
  padding-bottom: 7px; border-bottom: 2px solid var(--wc-line); }
.gd h2:first-of-type { margin-top: 8px; }
.gd h3 { font-size: .98rem; font-weight: 800; margin: 20px 0 7px; }
.gd p, .gd li { line-height: 1.62; }
.gd p { margin: 0 0 11px; }
.gd ul, .gd ol { margin: 0 0 12px; padding-left: 22px; }
.gd li { margin: 0 0 6px; }
.gd code { background: #f1ede4; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.gd a { color: var(--wc-indigo); }

.gd-card { background: #fff; border-radius: var(--wc-radius); box-shadow: var(--wc-shadow);
  padding: 18px 20px; margin: 0 0 14px; position: relative; overflow: hidden; }
.gd-card::before { content:""; position:absolute; left:0; top:0; width:52px; height:7px;
  background: var(--accent, var(--wc-green)); border-bottom-right-radius: 8px; }
.gd-card h3 { margin-top: 4px; }
.gd-card .url { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; font-weight: 700;
  color: var(--wc-navy); background: #f1ede4; padding: 3px 9px; border-radius: 6px; display: inline-block; }
.gd-card .who { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--wc-ink-soft); margin-bottom: 5px; }

.gd-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

table.gd-t { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .89rem; }
.gd-t th, .gd-t td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--wc-line); vertical-align: top; }
.gd-t th { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--wc-ink-soft); }
.gd-t tr:last-child td { border-bottom: 0; }

.gd-warn { background: #fff6dd; border-left: 4px solid var(--wc-yellow); padding: 13px 16px;
  border-radius: 0 12px 12px 0; margin: 0 0 14px; font-size: .9rem; line-height: 1.55; }
.gd-note { background: #eef4ff; border-left: 4px solid var(--wc-indigo); padding: 13px 16px;
  border-radius: 0 12px 12px 0; margin: 0 0 14px; font-size: .9rem; line-height: 1.55; }

.gd-steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.gd-steps li { position: relative; padding: 11px 0 11px 46px; border-top: 1px solid var(--wc-line); }
.gd-steps li:first-child { border-top: 0; }
.gd-steps li::before { counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--wc-navy); color: #fff; font-weight: 800; font-size: .82rem;
  display: inline-flex; align-items: center; justify-content: center; }
.gd-steps .h { font-weight: 700; display: block; }
.gd-steps .t { color: var(--wc-ink-soft); font-size: .84rem; font-weight: 700; }

.gd-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.gd-toc a { font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--wc-navy);
  background: #fff; padding: 7px 14px; border-radius: 999px; box-shadow: var(--wc-shadow-sm); }
.gd-toc a:hover { background: var(--wc-navy); color: #fff; }

@media print {
  .gd-head { background: none; color: #000; border-image: none; border-bottom: 2px solid #000; }
  .gd-toc, .gd-head img { display: none; }
  .gd-card, .gd-warn, .gd-note { box-shadow: none; border: 1px solid #bbb; }
  .gd h2 { break-after: avoid; }
  body { background: #fff; }
}

/* Bascule entre les deux versions du mode d'emploi.
   ⚠️ Sélecteurs préfixés par `.gd` : la règle `.gd a { color: var(--wc-indigo) }` plus haut
   porte une spécificité de 0-1-1 et écrasait un simple `.gd-retour` (0-1-0). Résultat visible :
   texte indigo sur fond navy, illisible. On ne monte pas la spécificité par confort — on la
   monte parce qu'une règle générale sur les liens du document existe et gagne autrement. */
.gd-bascule { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 18px; font-size:.84rem; }
.gd .gd-retour { text-decoration:none; font-weight:800; color:#fff; background:var(--wc-navy,#0C3C60);
  padding:6px 14px; border-radius:999px; }
.gd .gd-retour:hover { background:var(--wc-navy-deep,#07294a); color:#fff; }
.gd-sep { width:1px; align-self:stretch; background:var(--wc-line,#ece6da); margin:0 4px; }
.gd .gd-role { text-decoration:none; font-weight:700; color:var(--wc-ink-soft,#687c8c);
  padding:6px 13px; border-radius:999px; background:#f1ede4; }
.gd .gd-role:hover { color:var(--wc-navy,#0C3C60); }
.gd .gd-role.on { background:var(--wc-green,#3DBE8B); color:#fff; }
.gd-vers-org { margin:32px 0 0; padding:14px 17px; background:#eef4ff; border-left:4px solid var(--wc-indigo,#4A5BD4);
  border-radius:0 12px 12px 0; font-size:.9rem; }
