/* Camiblog - parcours, quiz et cockpit (chargée sur /parcours/*, /preparation-cockpit, /preparer-ton-vol) */
.guide-page { background: linear-gradient(145deg, #fbfdff, #eef7fc); }
.guide-page .page-section-header { background: linear-gradient(120deg, #17285e, #2b709d); }
.guide-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps li { position: relative; padding: 1.1rem 1.25rem 1.1rem 4.25rem; border: 1px solid #cfe0eb; border-radius: 9px; background: #fff; box-shadow: 0 4px 12px rgba(30, 74, 112, .06); counter-increment: guide-step; }
.guide-steps li::before { position: absolute; top: 1rem; left: 1.2rem; display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; content: counter(guide-step); font-weight: 700; }
.guide-steps h2 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.2rem; }
.guide-steps p { margin: 0; color: var(--muted); }
.guide-callout { margin-top: 1.5rem; padding: 1.25rem; border-radius: 9px; background: linear-gradient(145deg, #17285e, #245d8c); color: #fff; }
.guide-callout h2 { margin: 0 0 .45rem; color: #fff; font-size: 1.25rem; }
.guide-callout p { margin: 0; color: #dbeefa; }
.guide-back { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.learning-path { background: linear-gradient(145deg, #fbfdff, #eef7fc); }
.learning-path .page-section-header { background: linear-gradient(120deg, #17285e, #2b709d); }
.learning-path h2 { margin-top: 1.5rem; color: var(--navy); font-size: 1.25rem; }
.learning-path h3 { color: var(--navy); font-size: 1.05rem; }
.learning-progress { display: block; height: 10px; margin: 1.25rem 0 .5rem; border-radius: 999px; background: #dbe9f3; overflow: hidden; }
.learning-progress-bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), #4fa3c7); transition: width .3s ease; }
.learning-progress-text { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.learning-steps { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; padding: 0; list-style: none; }
.learning-step { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.learning-step.is-locked { opacity: .55; }
.learning-step.is-done { border-color: #9dd7b6; background: #f4fbf6; }
.learning-step.is-unlocked:not(.is-done) { border-color: var(--blue); }
.learning-step-badge { display: grid; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.learning-step.is-done .learning-step-badge { background: #16803c; }
.learning-step-body { flex: 1; min-width: 0; }
.learning-step-body h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.learning-step-body h2 a { color: var(--navy); text-decoration: none; }
.learning-step-body h2 a:hover { text-decoration: underline; }
.learning-step-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.learning-step-status { flex: 0 0 auto; padding: .25rem .6rem; border-radius: 999px; background: #eef2f5; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.learning-step.is-done .learning-step-status { background: #dcf3e4; color: #12632f; }
.learning-step.is-unlocked:not(.is-done) .learning-step-status { background: var(--blue-light); color: var(--blue); }
a.learning-step-status { text-decoration: none; cursor: pointer; }
a.learning-step-status:hover { text-decoration: none; filter: brightness(.94); }
.learning-content ul { padding-left: 1.25rem; }
.learning-exercise { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; background: var(--blue-light); }
.learning-exercise h3 { margin-top: 0; }
.learning-exercise p:last-child { margin-bottom: 0; }
.learning-quiz { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.quiz-question { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 7px; }
.quiz-question legend { padding: 0 .4rem; color: var(--navy); font-weight: 600; }
.quiz-question.quiz-wrong { border-color: #e2a6a6; background: #fdf5f5; }
.quiz-option { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; cursor: pointer; }
.quiz-option input { width: auto; margin: 0; }
.quiz-hint { margin: .5rem 0 0; padding: .5rem .75rem; border-radius: 5px; background: #fff8df; color: #644e00; font-size: .9rem; }
.learning-passed { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #9dd7b6; border-radius: 8px; background: #eefaf2; color: #176246; }
.learning-passed h2 { margin-top: 0; color: #176246; }
.learning-quiz-start { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 8px; background: var(--blue-light); }
.learning-quiz-start h2 { margin-top: 0; }
.learning-quiz-start p { color: #31546a; }
.quiz-memory-note { padding: .6rem .9rem; border-left: 4px solid #d79b00; border-radius: 0 6px 6px 0; background: #fff8df; color: #644e00; font-size: .92rem; }
.learning-complete { margin: 1.25rem 0; padding: 1.25rem; border: 1px solid #9dd7b6; border-radius: 8px; background: #eefaf2; color: #176246; }
.learning-complete h2 { margin-top: 0; color: #176246; }
.learning-step-date { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
button.learning-step-status { border: 0; font: inherit; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
button.learning-step-review { background: #dcf3e4; color: #12632f; cursor: pointer; }
button.learning-step-review:hover { filter: brightness(.94); }

/* Modale de révision d'étape */
body.modal-open { overflow: hidden; }
.review-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 25, 45, .55); }
.review-modal.is-open { display: flex; }
.review-modal-card { position: relative; width: min(760px, 100%); max-height: 85vh; overflow-y: auto; padding: 1.5rem; border-radius: 10px; background: #fff; box-shadow: 0 18px 50px rgba(15, 25, 45, .35); }
.review-modal-close { position: absolute; top: .75rem; right: .75rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: var(--blue-light); color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.review-modal-close:hover { background: var(--navy); color: #fff; }
.review-loading { padding: 2rem; color: var(--muted); text-align: center; }
.review-header { margin-bottom: 1rem; }
.review-header h2 { margin: .25rem 0; }
.review-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.review-quiz { margin-top: 1.5rem; }
.review-quiz h3 { margin-top: 0; }
.review-option { margin: .3rem 0; padding: .35rem .6rem; border-radius: 6px; font-size: .9rem; }
.review-option.is-correct { background: #dcf3e4; color: #12632f; font-weight: 600; }

/* Préparation cockpit (bonus de fin de parcours) */
.cockpit-page .page-section-header { background: linear-gradient(120deg, #17285e, #2b709d); }
.cockpit-tabs { display: flex; gap: .5rem; margin: 1.25rem 0; }
.cockpit-tab { padding: .55rem 1.4rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.cockpit-tab:hover { border-color: var(--blue); color: var(--blue); }
.cockpit-tab.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.cockpit-panel { display: none; }
.cockpit-panel.is-active { display: block; }
.cockpit-phase { margin-top: 1.5rem; }
.cockpit-phase h2 { margin-top: 0; }
.cockpit-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cockpit-zone { margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.cockpit-zone legend { padding: 0 .4rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
.cockpit-item { display: flex; align-items: baseline; gap: .55rem; padding: .35rem 0; border-bottom: 1px dashed #e3e8ef; cursor: pointer; font-size: .92rem; }
.cockpit-item:last-child { border-bottom: 0; }
.cockpit-item input { width: auto; margin: 0; flex: 0 0 auto; }
.cockpit-item-name { flex: 1; }
.cockpit-item-state { flex: 0 0 auto; padding: .1rem .5rem; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.cockpit-item:has(input:checked) .cockpit-item-name { color: #16803c; text-decoration: line-through; }
.cockpit-item:has(input:checked) .cockpit-item-state { background: #dcf3e4; color: #12632f; }
.cockpit-phase-progress { margin: .5rem 0 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.cockpit-phase.is-complete .cockpit-phase-progress { color: #16803c; }
