/* Introducer guides (/guide-apporteur, /charte-apporteur, js/guides-apporteur.js):
   read top to bottom, chips under the title bar to jump to a part (owner pick B,
   2026-10-29). The rows / sheet / « Mes guides » box are also used on /carte
   and /suivi-apporteur. */
.ag-page { gap: 12px; }
.ag-page h1 { font-size: 22px; }
.ag-jump {
  position: sticky; top: var(--ag-top, 64px); z-index: 29;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -6px -18px 0; padding: 4px 18px 10px; background: #f7f5f0;
}
.ag-jump::-webkit-scrollbar { display: none; }
.ag-jump a {
  flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid #e4e6e3; background: #fff;
  font-size: 14px; color: var(--z-ink, #2e3235); text-decoration: none; white-space: nowrap;
}
.ag-jump a.on { background: var(--z-green, #3f5e4f); border-color: var(--z-green, #3f5e4f); color: #fff; }
.ag-intro { margin: 0; font-size: 15px; line-height: 1.5; color: #5f6467; }
.ag-sec {
  display: flex; flex-direction: column; gap: 8px; scroll-margin-top: calc(var(--ag-top, 64px) + 56px);
  padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #e4e6e3;
}
.tab-page .ag-sec h2 { margin: 0; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.tab-page .ag-sec h3 { margin: 6px 0 0; font-size: 15px; color: var(--z-green, #3f5e4f); }
.ag-sec p, .ag-sec li { margin: 0; font-size: 15px; line-height: 1.5; color: #454a4e; }
.ag-sec ul, .ag-sec ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ag-sec li::marker { color: var(--z-green, #3f5e4f); font-weight: 700; }
.ag-sec .ag-small { font-size: 14px; color: #6b7073; }
.ag-sec .ag-strong { font-weight: 600; color: var(--z-ink, #2e3235); }
.ag-say { margin: 0; padding: 10px 14px; border-radius: 12px; background: #eef3f0; font-size: 15px; line-height: 1.5; color: #2e3235; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { padding: 4px 10px; border-radius: 999px; background: #eef3f0; color: var(--z-green, #3f5e4f); font-size: 13px; font-weight: 600; }
.ag-chip--no { background: #f6e9e4; color: #9a4a2c; }
.ag-qa { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid #efede8; }
.ag-qa:first-of-type { padding-top: 0; border-top: 0; }
.ag-qa b { font-size: 15px; color: var(--z-ink, #2e3235); }
.ag-group { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #eef3f0; }
.ag-group span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--z-green, #3f5e4f); }
.ag-group--wait { background: #f8f1e4; } .ag-group--wait span { color: #7a6236; }
.ag-group--no { background: #f6e9e4; } .ag-group--no span { color: #9a4a2c; }
.ag-end { align-items: flex-start; }
.ag-other { font-size: 15px; font-weight: 600; color: var(--z-green, #3f5e4f); text-decoration: none; }

/* Rows to open the two guides: « Mes guides » box on /carte and the header sheet. */
.ag-rows { display: flex; flex-direction: column; background: #fff; border-radius: 16px; border: 1px solid #ebe9e3; padding: 0 14px; }
.ag-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--z-ink, #2e3235); }
.ag-row + .ag-row { border-top: 1px solid #ebe9e3; }
.ag-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-row b { font-size: 15px; }
.ag-row small { font-size: 13px; color: #8a8f92; }
.ag-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #eef3f0; display: grid; place-items: center; }
.ag-ico svg, #ag-open svg { width: 20px; height: 20px; fill: none; stroke: var(--z-green, #3f5e4f); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-chev { flex: none; width: 16px; height: 16px; fill: none; stroke: #8a8f92; stroke-width: 2.4; }
.ag-kick { margin: 4px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b8975a; }
#ag-box { margin-top: 12px; }
/* Round « Mes guides » button, right of the Espace apporteur title. */
#ag-open {
  position: absolute; right: 12px; bottom: 4px; width: 40px; height: 40px; border: 0; padding: 0; cursor: pointer;
  border-radius: 50%; background: var(--z-green, #3f5e4f); display: grid; place-items: center; box-shadow: 0 1px 4px rgb(0 0 0 / .14);
}
#ag-open svg { stroke: #fff; }
#ag-sheet .ag-rows { margin-top: 8px; }
