.aside-note {
  max-width: 46rem;
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8dee4;
  border-left: 4px solid #8c959f;
  border-radius: 6px;
  background: #f6f8fa;
  color: #57606a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.aside-note p:last-child {
  margin-bottom: 0;
}

.question-example {
  margin: 0.9rem 0 1.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fbfcfe;
  line-height: 1.5;
}

.map-p,
.map-i,
.map-e,
.map-c,
.map-g,
.map-o {
  font-weight: 800;
}

.map-p {
  color: #1f7a8c;
}

.map-i,
.map-e {
  color: #6f5cc2;
}

.map-c,
.map-g {
  color: #8a5a00;
}

.map-o {
  color: #2f7d32;
}

.badge-quadrant,
.badge-green,
.badge-amber,
.badge-red,
.badge-slate,
.badge-purple,
.badge-blue {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-quadrant {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: 0.1em;
  margin-right: 0.35rem;
}

.badge-green {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-amber {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-red {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-slate {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.badge-purple {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-blue {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-benefique {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  vertical-align: 0.05em;
  white-space: nowrap;
}

.badge-deletere {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  vertical-align: 0.05em;
  white-space: nowrap;
}

/* Style sobre et moderne pour le code inline (backticks) */
code:not(pre code),
p code:not(pre code),
li code:not(pre code),
td code:not(pre code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  font-weight: 500;
  color: #1e293b;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.12em 0.38em;
  white-space: break-spaces;
  vertical-align: 0.05em;
}

.decoder-box {
  margin: 1.35rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #c7d2fe;
  border-left: 5px solid #4f46e5;
  border-radius: 8px;
  background: #f8faff;
  color: #1e293b;
  font-size: 0.94rem;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.05);
}

.decoder-box-title {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: #4338ca;
  font-size: 1.02rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.decoder-box-title::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.45em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/solid/globe-alt.svg") no-repeat center / contain;
  mask: url("assets/icons/solid/globe-alt.svg") no-repeat center / contain;
}

.decoder-box p:last-child {
  margin-bottom: 0;
}

/* ================= 🎯 EDN MAXING BOX ================= */
.edn-maxing-box {
  margin: 1.35rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: 8px;
  background: #fffdf5;
  color: #1e293b;
  font-size: 0.94rem;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.06);
}

.edn-maxing-title {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: #b45309;
  font-size: 1.02rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.edn-maxing-title::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.45em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/custom/target.svg") no-repeat center / contain;
  mask: url("assets/icons/custom/target.svg") no-repeat center / contain;
}

.edn-maxing-box p:last-child {
  margin-bottom: 0;
}

/* ================= 💡 QUESTION CLÉ & DÉCLIC ================= */
.concept-box {
  margin: 1.35rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid #bae6fd;
  border-left: 5px solid #0284c7;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0f172a;
  font-size: 0.94rem;
  line-height: 1.55;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.06);
}

.concept-box-title {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: #0369a1;
  font-size: 1.02rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.concept-box-title::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.45em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/solid/light-bulb.svg") no-repeat center / contain;
  mask: url("assets/icons/solid/light-bulb.svg") no-repeat center / contain;
}

.concept-box p:last-child {
  margin-bottom: 0;
}

/* ================= 🩺 FUTUR COLLÈGUE (Quarto Callout Note) ================= */
.callout-note.callout {
  margin: 1.35rem 0 !important;
  border-left: 5px solid #10b981 !important;
  border-top: 1px solid #a7f3d0 !important;
  border-right: 1px solid #a7f3d0 !important;
  border-bottom: 1px solid #a7f3d0 !important;
  background-color: #f6fcf8 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.05) !important;
  padding: 0 !important;
  overflow: hidden;
}

.callout-note .callout-header {
  color: #065f46 !important;
  font-weight: 800 !important;
  padding: 0.75rem 1.25rem !important;
  background-color: transparent !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
}

.callout-note.callout-collapsible:not(.collapsed):not(.callout-collapsed) .callout-header {
  padding-bottom: 0.35rem !important;
}

.callout-note .callout-title-container {
  display: flex;
  align-items: center;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: #065f46 !important;
  letter-spacing: -0.01em;
}

.callout-note .callout-title-container::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.45em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/custom/stethoscope.svg") no-repeat center / contain;
  mask: url("assets/icons/custom/stethoscope.svg") no-repeat center / contain;
}

.callout-note .callout-body {
  padding: 0.25rem 1.25rem 1rem 1.25rem !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
}

.callout-note .callout-body p:last-child {
  margin-bottom: 0;
}

/* The chapter number is useful in headings, but repetitive in the local TOC. */
#TOC .header-section-number {
  display: none;
}

/* ================= 🔍 SVG ZOOM & VECTOR LIGHTBOX ================= */
.svg-zoom-wrapper {
  position: relative;
  display: block;
  margin: 1.5rem 0;
  width: 100%;
  border-radius: 12px;
  overflow: visible;
}

.svg-zoom-wrapper svg {
  cursor: zoom-in;
}

.svg-zoom-wrapper svg text,
.svg-zoom-wrapper svg tspan {
  cursor: text;
  user-select: text;
}

.svg-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@media (hover: hover) {
  .svg-zoom-btn {
    opacity: 0;
    transform: translateY(-3px);
  }
  .svg-zoom-wrapper:hover .svg-zoom-btn,
  .svg-zoom-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.svg-zoom-btn:hover {
  background: #ffffff;
  color: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
  transform: translateY(-1px);
}

.svg-zoom-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

/* Modal Lightbox */
.svg-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.svg-lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Toolbar */
.svg-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  z-index: 10;
  user-select: none;
}

.svg-lightbox-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}

.svg-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svg-lightbox-btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
  text-decoration: none !important;
}

.svg-lightbox-btn.btn-icon {
  width: 32px;
  padding: 0;
}

.svg-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.svg-lightbox-btn.svg-lightbox-btn-close {
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(239, 68, 68, 0.38) !important;
  color: #fca5a5 !important;
  margin-left: 6px;
  padding: 0 14px !important;
}

.svg-lightbox-btn.svg-lightbox-btn-close:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.svg-lightbox-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

.svg-lightbox-scale {
  min-width: 48px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* Lightbox Viewport */
.svg-lightbox-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-lightbox-viewport.is-dragging {
  cursor: grabbing !important;
}

.svg-lightbox-viewport.is-space-down,
.svg-lightbox-viewport.is-space-down * {
  cursor: grab !important;
  user-select: none !important;
}

.svg-lightbox-viewport.is-space-down.is-dragging,
.svg-lightbox-viewport.is-space-down.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

.svg-lightbox-content {
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: text;
}

.svg-lightbox-content text,
.svg-lightbox-content tspan {
  user-select: text;
  cursor: text;
}

.svg-lightbox-content svg {
  width: 100%;
  height: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  background: #ffffff;
}

.svg-lightbox-hints {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  padding: 5px 16px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ================= ⚡ FICHE FLASH EDN ================= */
.fiche-flash {
  margin: 1.5rem 0 2.25rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid #fde68a;
  border-left: 6px solid #d97706;
  border-radius: 12px;
  background: #fffdf5;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.fiche-flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #fde68a;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
}

.fiche-flash-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: -0.01em;
  margin: 0;
}

.fiche-flash-title::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/solid/bolt.svg") no-repeat center / contain;
  mask: url("assets/icons/solid/bolt.svg") no-repeat center / contain;
}

.fiche-flash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 9999px;
  border: 1px solid #fde68a;
}

.fiche-flash table {
  margin: 0.75rem 0 1rem;
  font-size: 0.88rem;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.fiche-flash th {
  background-color: #fef3c7;
  color: #92400e;
  border-bottom: 2px solid #fde68a;
}

.fiche-flash h4,
.fiche-flash-subtitle {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fiche-flash ul {
  margin-bottom: 0.75rem;
}

.fiche-flash svg {
  margin: 0.75rem 0 1.25rem;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.5rem;
  border: 1px solid #fde68a;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.05);
}

/* Table Layout Alignment */
table th,
table td {
  vertical-align: top;
}

.table-comparison {
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.table-comparison th {
  background-color: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.table-comparison td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}



