/* Guides pratiques Evoir (/guides/) : compléments de evoir-service-premium.css.
   Fichier chargé uniquement par includes/guide-template-page.php ($additionalStylesheets).
   Les variables --sp-* viennent de evoir-service-premium.css. */

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 0;
  color: var(--sp-text-soft);
  font: 500 0.86rem/1.5 Inter, Arial, sans-serif;
}

.guide-meta span + span::before {
  content: "\00b7";
  margin-right: 16px;
}

.guide-toc {
  margin: 22px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  background: var(--sp-panel);
}

.guide-toc__title {
  margin: 0 0 8px;
  color: var(--sp-blue-deep);
  font: 700 0.95rem/1.3 Georgia, "Times New Roman", serif;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 32px;
}

.guide-toc li {
  margin: 0 0 4px;
  break-inside: avoid;
  color: var(--sp-text);
  font: 500 0.93rem/1.5 Inter, Arial, sans-serif;
}

.guide-toc a {
  color: var(--sp-blue);
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  text-decoration: underline;
}

/* Corps de texte des sections */
.guide-blocks {
  max-width: 920px;
  color: var(--sp-text);
  font: 500 1rem/1.75 Inter, Arial, sans-serif;
}

.guide-blocks > * + * {
  margin-top: 16px;
}

.guide-blocks p,
.guide-blocks ul,
.guide-blocks ol {
  margin-bottom: 0;
}

.guide-blocks h3 {
  margin: 26px 0 0;
  color: var(--sp-blue-deep);
  font: 700 1.15rem/1.35 Georgia, "Times New Roman", serif;
}

.guide-blocks a,
.sp-step__text a,
.sp-faq a {
  color: var(--sp-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-blocks ul,
.guide-blocks ol,
.sp-step__text ul,
.sp-step__text ol {
  padding-left: 1.4rem;
  list-style-position: outside;
}

.guide-blocks ul,
.sp-step__text ul {
  list-style-type: disc;
}

.guide-blocks ol,
.sp-step__text ol {
  list-style-type: decimal;
}

.guide-blocks li + li {
  margin-top: 7px;
}

.guide-blocks code,
.sp-step__text code,
.sp-faq code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.guide-code {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font: 500 0.88rem/1.6 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-note {
  padding: 14px 18px;
  border-left: 4px solid var(--sp-blue);
  border-radius: 0 12px 12px 0;
  background: var(--sp-blue-soft);
  color: var(--sp-blue-deep);
  font: 500 0.95rem/1.65 Inter, Arial, sans-serif;
}

.guide-note--warn {
  border-left-color: #d97706;
  background: #fff7e6;
  color: #7c4a03;
}

.guide-note strong:first-child {
  display: block;
  margin-bottom: 2px;
}

.guide-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  background: var(--sp-panel);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font: 500 0.93rem/1.55 Inter, Arial, sans-serif;
}

.guide-table caption {
  padding: 10px 14px 0;
  color: var(--sp-text-soft);
  font-size: 0.85rem;
  text-align: left;
  caption-side: bottom;
}

.guide-table th,
.guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sp-border);
  color: var(--sp-text);
  text-align: left;
  vertical-align: top;
}

.guide-table thead th {
  background: var(--sp-blue-soft);
  color: var(--sp-blue-deep);
  white-space: nowrap;
}

.guide-table tbody th {
  color: var(--sp-blue-deep);
  font-weight: 700;
}

.guide-table tr:last-child th,
.guide-table tr:last-child td {
  border-bottom: 0;
}

/* Cases à cocher (checklists) */
.guide-blocks .guide-checklist {
  padding-left: 0 !important;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding-left: 30px;
}

.guide-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border: 2px solid var(--sp-blue);
  border-radius: 5px;
  background: #fff;
}

.sp-step__text > * + * {
  margin-top: 10px;
}

.sp-step__text p,
.sp-step__text ul,
.sp-step__text ol {
  margin-bottom: 0;
}

.sp-step__text ul,
.sp-step__text ol {
  padding-left: 1.3rem;
}

/* Téléchargement du PDF d'origine */
.guide-download {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  background: var(--sp-panel);
  box-shadow: var(--sp-shadow);
}

.guide-download h2 {
  margin: 0 0 6px;
  color: var(--sp-blue-deep);
  font: 700 1.25rem/1.3 Georgia, "Times New Roman", serif;
}

.guide-download p {
  margin: 0;
  color: var(--sp-text);
  font: 500 0.95rem/1.6 Inter, Arial, sans-serif;
}

.guide-limits {
  margin: 0;
  color: var(--sp-text-soft);
  font: 500 0.88rem/1.6 Inter, Arial, sans-serif;
}

/* Hub /guides/ */
.guide-hub-group + .guide-hub-group {
  margin-top: 8px;
}

.guide-card-meta {
  display: block;
  margin-top: 10px;
  color: var(--sp-text-soft);
  font: 600 0.8rem/1.4 Inter, Arial, sans-serif;
}

@media (max-width: 767px) {
  .guide-toc ol {
    columns: 1;
  }

  .guide-blocks {
    font-size: 0.98rem;
  }

  .guide-download {
    padding: 18px;
  }
}
