/* ===== Guide de préparation – complète style.css ===== */

html { scroll-behavior: smooth; }


.guide-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

/* ===== Sommaire collant ===== */
.toc {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.toc nav,
.progress {
  background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
}
.toc-title {
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 12px 8px;
}
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: background .15s, color .15s;
}
.toc a:hover { background: var(--blue-soft); color: var(--blue); }
.toc-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.toc a.active { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.toc a.active .toc-num { background: var(--blue); color: var(--white); }

/* Progression */
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-head strong { color: var(--navy); font-size: 16px; }
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width .3s ease;
}
.progress-reset {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.progress-reset:hover { text-decoration: underline; }

/* ===== Étapes ===== */
.guide-content { display: flex; flex-direction: column; gap: 24px; }

.step {
  scroll-margin-top: 24px;
  padding: 28px 34px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15, 31, 92, .04);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step h2 {
  color: var(--navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}
.step h3 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.step-head + h3,
.step-head + p { margin-top: 0; }
.step p { font-size: 16.5px; margin-bottom: 12px; }
.step a:not(.btn) { color: var(--blue); font-weight: 600; }

.bullets, .numbered, .callout ul {
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 16.5px;
}
.bullets li, .numbered li, .callout li { margin-bottom: 6px; }

.btn-inline {
  display: inline-flex;
  margin: 4px 0 8px;
  padding: 11px 22px;
  font-size: 16px;
}

/* Marqueur « à compléter » */
mark.todo {
  background: #fff3c4;
  color: #7a5b00;
  border: 1px dashed #e0b400;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: .92em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* Encadrés */
.callout {
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  border-left: 4px solid;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; color: var(--navy); margin-bottom: 6px !important; }
.callout-info { background: var(--blue-softer); border-color: var(--blue); }
.callout-warn { background: #fff8ec; border-color: #e8930c; }

/* Chemins de menus */
.path {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  background: #eef2f8;
  color: var(--navy);
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 3px 9px;
  margin: 2px 0 4px;
}
dd .path { display: table; }

.os-list { margin: 8px 0 14px; }
.os-list dt, .os-card dt {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
  margin-top: 10px;
}
.os-list dd, .os-card dd { font-size: 16px; color: var(--muted); }

.os-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.os-card {
  background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.os-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 17px;
}
.os-card h4 svg { width: 22px; height: 22px; color: var(--blue); }

/* ===== Check-lists ===== */
.checklist-box {
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--blue-softer);
  border: 1px solid #d5e5f8;
  border-radius: 12px;
}
.checklist-box h3 { margin-top: 0; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16.5px;
  transition: background .15s;
}
.checklist label:hover { background: rgba(11, 91, 196, .06); }
.checklist input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #9bb6dc;
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background .15s, border-color .15s;
}
.checklist input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .15s;
}
.checklist input:checked { background: var(--blue); border-color: var(--blue); }
.checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist input:focus-visible { outline: 3px solid rgba(11, 91, 196, .35); outline-offset: 2px; }
.checklist input:checked + span { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .toc ol { grid-template-columns: 1fr; }
  .step { padding: 22px 18px; }
  .step h2 { font-size: 22px; }
  .step-num { width: 40px; height: 40px; font-size: 18px; }
  .os-grid { grid-template-columns: 1fr; }
  .checklist-box { padding: 16px 12px; }
  .path { white-space: normal; }
  .btn-inline { display: flex; }
}
