/* Le parcours utilise les surfaces, la typographie et le bleu du lecteur. */
.guided-optional { font-size: .7em; font-weight: 500; opacity: .8; }
.guided-control { border-block: 1px solid var(--line); padding: 1.5rem 0; margin-bottom: 2rem; }
.guided-kicker { color: #3456b8; font-size: .76rem; font-weight: 800; letter-spacing: .05em; margin: 0 0 .6rem; }
.guided-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.guided-heading h2 { margin: 0; }
.guided-control > p { max-width: 68ch; }
.guided-control progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 4px; background: var(--line); }
.guided-control progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.guided-control progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; transition: width .25s ease; }
.guided-control progress::-moz-progress-bar { background: var(--blue); }
.guided-stages { list-style: none; padding: 0 !important; margin: 1rem 0; }
.guided-stages li { border-bottom: 1px solid var(--line); margin: 0; }
.guided-stages button { display: flex; gap: .8rem; width: 100%; text-align: left; align-items: flex-start; padding: .8rem .25rem; border: 0; background: transparent; cursor: pointer; font-size: .9rem; }
.guided-stages button:disabled { color: #737987; cursor: default; }
.guided-stages button:not(:disabled):hover { color: #3456b8; background: #edf1fc; }
.guided-stages button[aria-current] { color: #3456b8; font-weight: 700; }
.guided-stages small { display: block; font-weight: 400; color: var(--muted); margin-top: .15rem; }
.guided-step-number { display: inline-grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.guided-storage, .guided-input-help { font-size: .82rem; color: var(--muted); }
.guided-unit, .guided-checkpoint, .guided-complete { scroll-margin-top: 100px; }
.guided-checkpoint { border-top: 3px solid var(--blue); background: #f1f4fc; padding: 1.5rem; margin: 2rem 0 3rem; }
.guided-checkpoint fieldset { border: 0; padding: 0; min-width: 0; margin: 0 0 1rem; }
.guided-checkpoint legend { font-weight: 750; font-size: 1.1rem; margin-bottom: .7rem; width: 100%; }
.guided-options { display: grid; gap: .5rem; }
.guided-options label { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; background: #fff; border: 1px solid #d6deef; cursor: pointer; border-radius: 6px; }
.guided-options label:has(input:checked) { border-color: var(--blue); background: #e9eefd; }
.guided-options input { margin-top: .4rem; flex: 0 0 auto; accent-color: var(--blue); }
.guided-checkpoint input[type="text"] { display: block; width: min(100%, 24rem); border: 1px solid #8895b3; border-radius: 6px; padding: .8rem; background: #fff; }
.guided-input-label { display: block; margin: .5rem 0; font-weight: 650; }
.guided-checkpoint :is(button,input,select):focus-visible, .guided-stages button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.guided-order { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.guided-order select { padding: .6rem; max-width: 8rem; border: 1px solid #8895b3; background: white; font: inherit; }
.guided-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.guided-success { color: #146552; font-weight: 650; }
.guided-complete { padding: 1.5rem 0; border-block: 1px solid var(--line); }
.guided-complete .btn { margin: .4rem .3rem .4rem 0; }
.is-guided-learning .toc-list a[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.guided-checkpoint [data-guided-feedback]:not(:empty) { animation: guided-appear .18s ease-out; }
@keyframes guided-appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .guided-checkpoint { padding: 1rem; } .guided-heading .btn { width: 100%; } .guided-order { flex-wrap: wrap; } .guided-stages button { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .guided-checkpoint [data-guided-feedback] { animation: none !important; } .guided-control progress::-webkit-progress-value { transition: none; } }
@media print { .guided-control, .guided-checkpoint, .guided-complete { display: none !important; } }
