.ub-livret {
  --ub-navy: #0b1f3a;
  --ub-blue: #1f4e78;
  --ub-gold: #c9a84c;
  --ub-border: #dfe5ec;
  --ub-soft: #f6f8fb;
  max-width: 1040px;
  margin: 0 auto;
}
.ub-livret .ub-livret-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--ub-border);
}
.ub-livret .ub-livret-kicker {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ub-blue);
  font-weight: 700;
}
.ub-livret .ub-livret-subtitle {
  font-size: 1.15rem;
  color: #4b5563;
  margin: .5rem 0 0;
}
.ub-livret .ub-toc {
  padding: 1rem 1.25rem;
  background: var(--ub-soft);
  border: 1px solid var(--ub-border);
  border-radius: 10px;
  margin: 1.5rem 0;
}
.ub-livret .ub-toc ul { columns: 2; margin: .6rem 0 0 1.25rem; }
.ub-livret .ub-section { scroll-margin-top: 100px; margin: 2rem 0; }
.ub-livret h2 { color: var(--ub-navy); margin-top: 2rem; }
.ub-livret h3 { color: var(--ub-blue); margin-top: 1.4rem; }
.ub-livret table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  display: block;
  overflow-x: auto;
}
.ub-livret th, .ub-livret td {
  border: 1px solid var(--ub-border);
  padding: .7rem .8rem;
  vertical-align: top;
}
.ub-livret th { background: var(--ub-navy); color: #fff; }
.ub-livret .ub-faq-item {
  border: 1px solid var(--ub-border);
  border-radius: 8px;
  padding: .85rem 1rem;
  margin: .7rem 0;
  background: #fff;
}
.ub-livret .ub-faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--ub-navy);
}
.ub-livret .ub-cta {
  padding: 1.5rem;
  background: var(--ub-navy);
  color: #fff;
  border-radius: 12px;
}
.ub-livret .ub-cta a.ub-btn {
  display: inline-block;
  margin: .5rem .5rem 0 0;
  padding: .7rem 1rem;
  border-radius: 7px;
  background: var(--ub-gold);
  color: #111827;
  text-decoration: none;
  font-weight: 700;
}
.ub-livret .ub-related a { font-weight: 600; }
.ub-livret .ub-update {
  color: #6b7280;
  font-size: .9rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .ub-livret .ub-toc ul { columns: 1; }
}

/* Livrable 8.4 — mise en valeur du titre principal des pages Livret.
   Sélecteurs volontairement limités au CPT livret pour ne modifier aucune autre page du site. */
body.single-livret h1.entry-title,
body.single-livret .entry-title,
body.single-livret .wp-block-post-title,
body.single-livret main h1:first-of-type {
  font-size: clamp(2.35rem, 4.6vw, 3.75rem) !important;
  line-height: 1.12 !important;
  text-align: center !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 0.18em !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.35rem !important;
  max-width: 1100px;
}

@media (max-width: 700px) {
  body.single-livret h1.entry-title,
  body.single-livret .entry-title,
  body.single-livret .wp-block-post-title,
  body.single-livret main h1:first-of-type {
    font-size: clamp(2rem, 8vw, 2.65rem) !important;
    line-height: 1.16 !important;
  }
}

