/* ============================================================
   ONELIX — Guides Design System
   Section éditoriale "Guides" (FR) / "Learn" (EN)
   Hérite des variables et patterns de onelix.css
   ============================================================ */

/* ── Reset spécifique guides ─────────────────────────────── */
/* Échelle typographique — référence guides.html (hub) */
.guides-page {
  --guides-text-body: 15px;
  --guides-text-body-lh: 1.75;
  --guides-text-muted: #4B5563;
  --guides-text-small: 13px;
  --guides-text-xs: 12px;
  --guides-heading-hero: clamp(30px, 5vw, 50px);
  --guides-heading-section: clamp(24px, 3vw, 34px);
  --guides-heading-block: clamp(22px, 3vw, 30px);
  --guides-heading-sub: 16px;
  font-family: var(--font-ui, 'Inter', sans-serif);
  font-size: var(--guides-text-body);
  background: var(--bg-base, #F9FAFB);
  color: var(--text-main, #1F2937);
  line-height: var(--guides-text-body-lh);
}
.guides-page * { box-sizing: border-box; }
.guides-article p,
.guides-article li {
  text-align: justify;
  text-justify: inter-word;
}
.guides-article h1,
.guides-article h2,
.guides-article h3,
.guides-article summary,
.guides-card p,
.guides-figure__caption,
.guides-figure__subtitle,
.guides-screenshot__caption,
.guides-meta-update {
  text-align: left;
}

/* ── Layout container ─────────────────────────────────────── */
.guides-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.guides-container--narrow {
  max-width: 760px;
}

/* ============================================================
   HERO ARTICLE (dark navy + or signature)
   ============================================================ */
.guides-hero {
  position: relative;
  background: linear-gradient(180deg, #0F1F3D 0%, #0a1628 100%);
  color: #fff;
  padding: 72px 24px 88px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.guides-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(30, 111, 217, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.guides-hero__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.guides-hero__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  font-size: 13px;
}
.guides-hero__brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.guides-hero__brand span { color: #D4AF37; }
.guides-hero__lang {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: background 200ms ease, border-color 200ms ease;
}
.guides-hero__lang:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}

/* Globe langue (injecté par guides.js) — aligné légales / app */
.guides-hero__lang-switch {
  position: relative;
  flex-shrink: 0;
}
.guides-hero__lang-switch.onelix-lang--guides {
  display: flex;
  align-items: center;
}
.guides-hero__lang-switch .onelix-lang-trigger {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  color: #94a3b8;
  font: inherit;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.guides-hero__lang-switch .onelix-lang-trigger:hover,
.guides-hero__lang-switch.is-open .onelix-lang-trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}
.guides-hero__lang-switch .onelix-lang-globe {
  font-size: 14px;
  line-height: 1;
}
.guides-hero__lang-switch .onelix-lang-chevron {
  font-size: 8px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.guides-hero__lang-switch.is-open .onelix-lang-chevron {
  transform: rotate(180deg);
}
.guides-hero__lang-switch .onelix-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 120;
  min-width: 56px;
  padding: 4px 0;
  background: #0d1a30;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.guides-hero__lang-switch .onelix-lang-menu[hidden] {
  display: none !important;
}
.guides-hero__lang-switch .onelix-lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-family: inherit;
}
.guides-hero__lang-switch .onelix-lang-option:hover {
  background: rgba(30, 58, 95, 0.55);
  color: #e2e8f0;
}
.guides-hero__lang-switch .onelix-lang-option.is-active {
  color: #d4af37;
}
.guides-hero__breadcrumb {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.guides-hero__breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 200ms ease;
}
.guides-hero__breadcrumb a:hover { color: #D4AF37; }
.guides-hero__breadcrumb span { color: #475569; margin: 0 8px; }

.guides-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #F4CC52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.guides-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
}

.guides-hero__title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: var(--guides-heading-hero);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
}
.guides-hero__subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: #cbd5e1;
  line-height: var(--guides-text-body-lh);
  max-width: 720px;
  margin: 0 0 28px;
}
.guides-hero__mascotte {
  position: absolute;
  right: -18px;
  top: 190px;
  width: clamp(108px, 16vw, 164px);
  height: clamp(108px, 16vw, 164px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06) 44%, transparent 72%),
    linear-gradient(135deg, rgba(15, 31, 61, 0.92), rgba(10, 22, 40, 0.76));
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow:
    0 0 0 10px rgba(212, 175, 55, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(212, 175, 55, 0.18);
  pointer-events: none;
}
.guides-hero__mascotte::before {
  content: "";
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 64%);
  z-index: -1;
}
.guides-hero__mascotte picture,
.guides-hero__mascotte > img {
  width: 72%;
  height: 72%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guides-hero__mascotte img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
}
.guides-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 28px;
}
.guides-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guides-hero__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #475569;
}
.guides-hero__meta span:first-child::before { display: none; }

.guides-hero__ray {
  display: block;
  height: 2px;
  width: 60px;
  background: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.55);
  border-radius: 2px;
  margin-top: 8px;
}
@media (min-width: 1024px) {
  .guides-hero__title,
  .guides-hero__subtitle,
  .guides-hero__meta {
    max-width: 690px;
  }
}
@media (max-width: 1023px) {
  .guides-hero__mascotte {
    position: relative;
    right: auto;
    top: auto;
    width: 92px;
    height: 92px;
    margin: 2px 0 22px;
  }
}

/* ============================================================
   HUB HERO (variant hub page)
   ============================================================ */
.guides-hero--hub .guides-hero__title { max-width: 760px; }
.guides-hero--hub .guides-hero__subtitle { max-width: 680px; }

/* ============================================================
   LAYOUT ARTICLE (sommaire + contenu)
   ============================================================ */
.guides-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .guides-layout {
    grid-template-columns: 240px 1fr;
    gap: 56px;
  }
}

/* ── Sommaire (Table of Contents) ─────────────────────────── */
.guides-toc-mobile {
  display: block;
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(15, 31, 61, 0.06));
  margin-bottom: 24px;
}
.guides-toc-mobile summary {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-text-small);
  color: #0F1F3D;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guides-toc-mobile summary::-webkit-details-marker { display: none; }
.guides-toc-mobile summary::after {
  content: "▾";
  color: #D4AF37;
  font-size: 12px;
  transition: transform 200ms ease;
}
.guides-toc-mobile[open] summary::after { transform: rotate(180deg); }
.guides-toc-mobile ol {
  margin: 0;
  padding: 4px 18px 16px 36px;
  font-size: var(--guides-text-small);
}
.guides-toc-mobile li { padding: 4px 0; }
.guides-toc-mobile a {
  color: #4B5563;
  text-decoration: none;
}
.guides-toc-mobile a:hover { color: #1E6FD9; }
.guides-toc-mobile a.is-active {
  color: #0F1F3D;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .guides-toc-mobile { display: none; }
}

.guides-toc {
  display: none;
}
@media (min-width: 1024px) {
  .guides-toc {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    font-size: 13px;
    border-left: 1px solid var(--border, #E5E7EB);
    padding-left: 18px;
  }
  .guides-toc__label {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
    margin: 0 0 12px;
  }
  .guides-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
  }
  .guides-toc li {
    counter-increment: toc;
    padding: 6px 0;
  }
  .guides-toc a {
    display: flex;
    gap: 8px;
    color: #4B5563;
    text-decoration: none;
    line-height: 1.45;
    transition: color 200ms ease;
  }
  .guides-toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: #9CA3AF;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    padding-top: 2px;
    flex-shrink: 0;
  }
  .guides-toc a:hover { color: #1E6FD9; }
  .guides-toc a.is-active {
    color: #0F1F3D;
    font-weight: 600;
  }
  .guides-toc a.is-active::before { color: #D4AF37; }
}

/* ============================================================
   CONTENU ARTICLE
   ============================================================ */
.guides-article {
  max-width: 760px;
}
.guides-article > * + * { margin-top: 1.1em; }
.guides-article h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-section);
  color: #0F1F3D;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 48px;
  margin-bottom: 12px;
  scroll-margin-top: 24px;
}
.guides-article h2:first-of-type { margin-top: 0; }
.guides-article h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: var(--guides-heading-sub);
  color: #0F1F3D;
  margin-top: 28px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.guides-article p,
.guides-article li {
  font-size: inherit;
  line-height: var(--guides-text-body-lh);
  color: var(--guides-text-muted);
}
.guides-article ul,
.guides-article ol { padding-left: 22px; }
.guides-article li { margin: 8px 0; }
.guides-article strong { color: #0F1F3D; }
.guides-article a {
  color: #1E6FD9;
  text-decoration: underline;
  text-decoration-color: rgba(30, 111, 217, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}
.guides-article a:hover { text-decoration-color: #1E6FD9; }
.guides-article figure { margin: 32px 0; }
.guides-article figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border, #E5E7EB);
  display: block;
}
.guides-article figcaption {
  font-size: 12px;
  color: #6B7280;
  margin-top: 8px;
  text-align: center;
}

/* ── Encadrés pédagogiques ────────────────────────────────── */
.guides-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--border, #E5E7EB);
  background: #fff;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(15, 31, 61, 0.06));
}
.guides-callout__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.guides-callout p {
  margin: 0;
  font-size: inherit;
  line-height: var(--guides-text-body-lh);
  color: var(--guides-text-muted);
}

.guides-callout--retain {
  background: #FFFBEB;
  border-color: rgba(212, 175, 55, 0.35);
  border-left: 3px solid #D4AF37;
}
.guides-callout--retain .guides-callout__label { color: #92400E; }

.guides-callout--limit {
  background: #FEF2F2;
  border-color: rgba(220, 38, 38, 0.25);
  border-left: 3px solid #DC2626;
}
.guides-callout--limit .guides-callout__label { color: #991B1B; }

.guides-callout--lecture {
  background: #E8F1FC;
  border-color: rgba(30, 111, 217, 0.25);
  border-left: 3px solid #1E6FD9;
}
.guides-callout--lecture .guides-callout__label { color: #1E40AF; }

/* ============================================================
   CTA (in-content + final)
   ============================================================ */
.guides-cta {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, #0F1F3D 0%, #0a1628 100%);
  border-radius: 14px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.guides-cta__text { text-align: left; }
.guides-cta__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  margin: 0 0 4px;
}
.guides-cta__desc {
  font-size: 13px;
  color: #F1F5F9;
  margin: 0;
}
.guides-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 220px;
}
.guides-cta__buttons .guides-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}
.guides-btn,
a.guides-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4AF37;
  color: #FFFFFF !important;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.guides-btn:hover,
a.guides-btn:hover {
  background: #E5C158;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.guides-btn--backtest {
  background: transparent !important;
  color: #D4AF37 !important;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: 13px;
  gap: 6px;
  font-weight: 600;
  border-radius: 0;
  transition: opacity 0.2s ease;
  align-self: flex-start;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
}
.guides-btn--backtest:hover {
  opacity: 0.8;
  background: transparent !important;
  color: #D4AF37 !important;
  transform: none;
  box-shadow: none;
}
.guides-btn--backtest i {
  color: #D4AF37;
  font-size: 11px;
}
.guides-btn--backtest span {
  color: #D4AF37 !important;
}
.guides-btn--backtest .guides-btn__icon {
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}
.guides-btn--backtest .guides-btn__arrow {
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.guides-btn--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.guides-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.45);
}

/* ============================================================
   FAQ
   ============================================================ */
.guides-faq { margin-top: 56px; }
.guides-faq__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-block);
  line-height: 1.2;
  color: #0F1F3D;
  margin: 0 0 18px;
}
.guides-faq details {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(15, 31, 61, 0.06));
  transition: border-color 200ms ease;
}
.guides-faq details[open] { border-color: rgba(30, 111, 217, 0.4); }
.guides-faq summary {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: inherit;
  color: #0F1F3D;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.guides-faq summary::-webkit-details-marker { display: none; }
.guides-faq summary::after {
  content: "+";
  color: #D4AF37;
  font-size: 20px;
  font-weight: 400;
  transition: transform 200ms ease;
}
.guides-faq details[open] summary::after { transform: rotate(45deg); }
.guides-faq details > p,
.guides-faq details > div {
  padding: 0 18px 16px;
  margin: 0;
  font-size: inherit;
  line-height: var(--guides-text-body-lh);
  color: var(--guides-text-muted);
}

/* ============================================================
   ARTICLES LIÉS
   ============================================================ */
.guides-related { margin-top: 64px; }
.guides-related__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-block);
  line-height: 1.2;
  color: #0F1F3D;
  margin: 0 0 24px;
}
.guides-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.guides-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(15, 31, 61, 0.06));
}
.guides-card:hover {
  transform: translateY(-2px);
  border-color: #1E6FD9;
  box-shadow: 0 6px 18px rgba(15, 31, 61, 0.1);
}
.guides-card__category {
  font-family: 'Sora', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 8px;
}
.guides-card__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-sub);
  color: #0F1F3D;
  margin: 0 0 8px;
  line-height: 1.3;
}
.guides-card__desc {
  font-size: var(--guides-text-small);
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}
.guides-card__arrow {
  margin-top: 14px;
  font-size: 12px;
  color: #1E6FD9;
  font-weight: 600;
}

/* ============================================================
   HUB — catégories
   ============================================================ */
.guides-hub-section { padding: 56px 24px; }
.guides-hub-section--alt { background: #fff; border-block: 1px solid var(--border, #E5E7EB); }
.guides-hub-section__label {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
  margin: 0 0 8px;
}
.guides-hub-section__title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-block);
  color: #0F1F3D;
  margin: 0 0 12px;
  line-height: 1.2;
}
.guides-hub-section__intro {
  font-size: inherit;
  color: var(--guides-text-muted);
  max-width: 680px;
  margin: 0 0 32px;
  line-height: var(--guides-text-body-lh);
}

.guides-category {
  margin-bottom: 48px;
}
.guides-category__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border, #E5E7EB);
  padding-bottom: 8px;
}
.guides-category__name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-sub);
  color: #0F1F3D;
  margin: 0;
}
.guides-category__count {
  font-size: 12px;
  color: #6B7280;
}

.guides-hub {
  padding: 64px 0 72px;
}
.guides-hub__intro,
.guides-hub__featured,
.guides-hub__categories {
  margin-bottom: 64px;
}
.guides-hub__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}
.guides-hub__intro-text h2,
.guides-section-heading h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: var(--guides-heading-section);
  color: #0F1F3D;
  margin: 0 0 14px;
  line-height: 1.2;
}
.guides-hub__intro-text p,
.guides-section-heading p {
  color: var(--guides-text-muted);
  font-size: inherit;
  line-height: var(--guides-text-body-lh);
  margin: 0 0 14px;
}
.guides-hub__cta {
  margin: 0;
}
.guides-section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}
.guides-section-kicker {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 8px;
}
.guides-card--featured {
  border-color: rgba(212, 175, 55, 0.35);
}
.guides-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.guides-category-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(15, 31, 61, 0.06));
}
.guides-category-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: var(--guides-heading-sub);
  color: #0F1F3D;
  margin: 0 0 10px;
  line-height: 1.3;
}
.guides-category-card p {
  font-size: var(--guides-text-small);
  color: #6B7280;
  line-height: 1.65;
  margin: 0 0 14px;
}
.guides-category-card a,
.guides-category-card span:not(.guides-card__category) {
  font-size: 12px;
  font-weight: 600;
  color: #1E6FD9;
  text-decoration: none;
}
.guides-category-card a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER GUIDES
   ============================================================ */
.guides-footer {
  background: #0F1F3D;
  color: #94a3b8;
  padding: 32px 24px;
  font-size: var(--guides-text-xs);
  text-align: center;
  line-height: 1.7;
}
.guides-footer a { color: #D4AF37; text-decoration: none; }
.guides-footer a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE & ACCESSIBILITÉ
   ============================================================ */

/* Tablette : sommaire mobile, article centré */
@media (min-width: 768px) and (max-width: 1023px) {
  .guides-layout {
    display: block;
    max-width: 720px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .guides-article {
    max-width: none;
    margin: 0 auto;
  }
  .guides-hub__intro {
    grid-template-columns: 1fr;
  }
  .guides-cta {
    grid-template-columns: 1fr;
  }
  .guides-cta__buttons {
    min-width: 0;
  }
}

/* Mobile & tablette portrait (≤767px) */
@media (max-width: 767px) {
  .guides-hero {
    padding: calc(48px + env(safe-area-inset-top, 0px)) 20px calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .guides-hero__nav {
    margin-bottom: 28px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .guides-hero__breadcrumb {
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .guides-hero__meta {
    gap: 6px 14px;
    margin-bottom: 16px;
  }
  .guides-hero__subtitle {
    margin-bottom: 20px;
  }
  .guides-article p,
  .guides-article li {
    text-align: left;
    text-justify: auto;
  }
  .guides-article h2 {
    margin-top: 36px;
  }
  .guides-article h3 {
    margin-top: 24px;
  }
  .guides-cta {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }
  .guides-cta__buttons {
    min-width: 0;
    width: 100%;
  }
  .guides-btn,
  a.guides-btn {
    min-height: 44px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .guides-btn--backtest {
    min-height: 44px;
    align-self: stretch;
    justify-content: center;
    padding: 10px 0;
  }
  .guides-hub {
    padding: 44px 0 56px;
  }
  .guides-hub__intro {
    grid-template-columns: 1fr;
  }
  .guides-container {
    padding: 0 16px;
  }
  .guides-layout {
    padding: 40px 16px calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .guides-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .guides-scale__labels {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 6px;
  }
  .guides-scale__label-item {
    flex: 0 1 calc(33.333% - 6px);
    min-width: 72px;
  }
  .guides-scale__range {
    font-size: 11px;
  }
  .guides-scale__name {
    font-size: 10px;
    white-space: normal;
    line-height: 1.25;
  }
  .guides-figure__chart {
    height: 260px;
    min-height: 220px;
  }
  .guides-figure__dashboard-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .guides-figure__dashboard-cta-btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
  .guides-formula {
    padding: 18px 14px;
  }
}

@media (max-width: 640px) {
  .guides-hero { padding-top: calc(44px + env(safe-area-inset-top, 0px)); }
  .guides-screenshot img { max-width: 100%; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .guides-card,
  .guides-btn,
  .guides-toc a,
  .guides-faq summary::after { transition: none; }
}

/* ============================================================
   COMPOSANTS PÉDAGOGIQUES (formule, échelle, figure, sources)
   Ajoutés pour la refonte des guides 2026
   ============================================================ */

/* — Avertissement AMF en tête d'article ——————————————————— */
.guides-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-left: 3px solid #64748B;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: var(--guides-text-small);
  color: #475569;
  line-height: 1.65;
  margin: 28px 0 4px;
}
.guides-disclaimer::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>") center/contain no-repeat;
}
.guides-disclaimer strong { color: #1F2937; }

/* — Formule visuelle (encadré math) ——————————————————————— */
.guides-formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(160deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 24px 20px;
  margin: 24px 0;
  text-align: center;
}
.guides-formula__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #92400E;
}
.guides-formula__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #92400E;
}
.guides-formula__box {
  font-family: 'Sora', sans-serif;
  font-size: inherit;
  font-weight: 600;
  color: #0F1F3D;
  line-height: var(--guides-text-body-lh);
}
.guides-formula__box p {
  margin: 8px 0 0;
  font-size: var(--guides-text-small);
  font-weight: 400;
  color: var(--guides-text-muted);
  line-height: 1.65;
}
.guides-formula__math {
  font-family: 'Sora', sans-serif;
  font-size: inherit;
  font-weight: 600;
  color: #0F1F3D;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.guides-formula__fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}
.guides-formula__num,
.guides-formula__den {
  padding: 4px 8px;
  font-size: 0.95em;
}
.guides-formula__num { border-bottom: 1.5px solid #0F1F3D; }
.guides-formula__caption {
  font-size: var(--guides-text-xs);
  color: #78350F;
  font-style: italic;
  max-width: 480px;
  line-height: 1.55;
}

/* — Échelle de normalisation ONELIX 0–100 ———————————————— */
.guides-scale {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(15, 31, 61, 0.04);
}
.guides-scale__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guides-scale__head .label { color: #1F2937; }
.guides-scale__head .range { color: #94A3B8; }
.guides-scale__bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 31, 61, 0.08);
}
.guides-scale__bar span { flex: 1; }
.guides-scale__bar .s1 { background: #047857; }
.guides-scale__bar .s2 { background: #10B981; }
.guides-scale__bar .s3 { background: #6B7280; }
.guides-scale__bar .s4 { background: #DC2626; }
.guides-scale__bar .s5 { background: #111827; box-shadow: inset 0 0 0 2px #F59E0B; }
.guides-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.guides-scale__label-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  text-align: center;
}
.guides-scale__range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #1F2937;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.guides-scale__name {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  line-height: 1.2;
  letter-spacing: 0;
}
.guides-scale__labels .dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

/* — Figure légendée (graphique Chart.js, screenshot…) ————— */
.guides-figure {
  margin: 28px 0;
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 31, 61, 0.04);
}
.guides-figure__title {
  font-size: var(--guides-text-small);
  font-weight: 700;
  color: #0F1F3D;
  margin: 0 0 4px;
  font-family: 'Sora', sans-serif;
  line-height: 1.35;
}
.guides-figure__subtitle {
  font-size: var(--guides-text-xs);
  color: #6B7280;
  margin: 0 0 12px;
  line-height: 1.5;
}
.guides-figure__chart {
  position: relative;
  width: 100%;
  height: 360px;
}
.guides-figure__chart--gestures {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.guides-chart-gesture-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  line-height: 1.45;
}
@media (min-width: 768px) {
  .guides-chart-gesture-hint {
    display: none;
  }
}
.guides-figure__caption {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 10px;
  font-style: italic;
  line-height: 1.55;
}
.guides-figure__caption strong { color: #475569; }
.guides-figure__snapshot {
  font-size: 11px;
  color: #94A3B8;
  margin: 8px 0 0;
  line-height: 1.5;
  font-style: normal;
}
.guides-figure__dashboard-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid #B8860B;
  background: linear-gradient(135deg, rgba(15, 31, 61, 0.04) 0%, rgba(212, 175, 55, 0.07) 100%);
}
.guides-figure__dashboard-cta-text {
  flex: 1;
  min-width: 0;
}
.guides-figure__dashboard-cta-title {
  margin: 0 0 4px;
  font-size: inherit;
  font-weight: 700;
  color: #0F1F3D;
  font-family: 'Sora', sans-serif;
  line-height: 1.35;
}
.guides-figure__dashboard-cta-desc {
  margin: 0;
  font-size: var(--guides-text-small);
  color: #475569;
  line-height: 1.5;
}
.guides-figure__dashboard-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 16px !important;
  font-size: 13px !important;
}

/* — Screenshot / Image figée historique ———————————————— */
.guides-screenshot {
  margin: 28px 0;
  background: #0F1F3D;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 31, 61, 0.18);
}
.guides-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.guides-screenshot__caption {
  font-size: 11px;
  color: #FFFFFF;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.55;
}
.guides-screenshot__caption strong { color: #D4AF37; }
.guides-screenshot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #94A3B8;
  font-size: 12px;
  text-align: center;
  padding: 24px;
  gap: 6px;
}
.guides-screenshot__placeholder strong { color: #D4AF37; font-weight: 700; }

/* — Bloc "Sources" en pied de section ——————————————————— */
.guides-sources {
  margin-top: 32px;
  padding: 14px 18px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: var(--guides-text-xs);
  color: #6B7280;
  line-height: 1.7;
}
.guides-sources__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: #475569;
  margin-bottom: 6px;
}
.guides-sources a {
  color: #1E6FD9;
  text-decoration: none;
}
.guides-sources a:hover { text-decoration: underline; }

/* — Pied de guide : dernière mise à jour ————————————————— */
.guides-meta-update {
  margin: 32px 0 0;
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  letter-spacing: 0.04em;
}
.guides-meta-update time { color: #6B7280; font-weight: 600; }

