/* ═══════════════════════════════════════════════════════════════
   AIDE.CSS — centre d'aide (/aide)
   ───────────────────────────────────────────────────────────────
   Pages générées par scripts/build-help.js à partir de content/aide.
   Comportements : js/aide.js (recherche, sommaire actif, agrandissement
   des captures, avis sur l'article). L'URL de ce fichier porte son hash :
   relancer node scripts/build-help.js après toute retouche.

   Charte du site : bleu #006DE5, encre #0B1220, Space Grotesk pour les
   titres, Inter pour le texte, hero sombre comme le blog. Tout est
   préfixé ha- : bundle.css remet à zéro marges et listes (reset global).
   ═══════════════════════════════════════════════════════════════ */

.ha {
  --ink: #0B1220; --ink-2: #4A5568; --ink-3: #6B778C; --line: #E1E7F0; --line-2: #EDF1F7;
  --blue: #006DE5; --blue-d: #0050B3; --blue-bg: #EBF3FF; --bg: #F5F7FB;
  --fd: 'Space Grotesk', system-ui, sans-serif; --fb: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sticky-top: 88px;
  color: var(--ink); background: #fff; font-family: var(--fb);
}
.ha-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ha-ico { width: 1.25em; height: 1.25em; flex: none; }
.ha .lp-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ═════════════ 1. HERO ═════════════ */

.ha-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(0, 109, 229, .42), transparent 62%),
    radial-gradient(700px 360px at -8% 115%, rgba(124, 92, 255, .22), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #0D1830 100%);
}
.ha-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 80%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 80%);
}
.ha-hero__inner { position: relative; }
.ha-hero--home .ha-hero__inner { padding-top: 84px; padding-bottom: 132px; text-align: center; }
.ha-hero--rub .ha-hero__inner { padding-top: 36px; padding-bottom: 44px; }
.ha-kicker {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 22px; padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .07);
  font: 600 .75rem/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.ha-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #4DA3FF; box-shadow: 0 0 0 4px rgba(77, 163, 255, .22); }
.ha-hero__title { font: 700 clamp(2.1rem, 4.6vw, 3.5rem)/1.06 var(--fd); letter-spacing: -.025em; margin: 0 auto 16px; max-width: 18ch; }
.ha-hero--rub .ha-hero__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 8px; max-width: none; }
.ha-hero__lead { color: rgba(226, 234, 248, .78); font-size: 1.125rem; line-height: 1.6; max-width: 58ch; margin: 0 auto 34px; }
.ha-hero--rub .ha-hero__lead { margin: 0; font-size: 1.0625rem; }
.ha-hero__row { display: flex; align-items: center; gap: 20px; margin: 18px 0 28px; }
.ha-hero--rub .ha-search { margin: 0; max-width: 560px; }

.ha-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px auto 0; max-width: 760px; font-size: .875rem; color: rgba(226, 234, 248, .65); }
.ha-popular span { margin-right: 4px; }
.ha-popular a { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; transition: background .2s, border-color .2s; }
.ha-popular a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }

/* Pictogramme carré, repris des menus du site (lx-tile) */
.ha-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--blue);
  background: linear-gradient(160deg, #F2F7FF, #E2EDFF); box-shadow: inset 0 0 0 1px rgba(0, 109, 229, .12);
}
.ha-tile .lp-ico { width: 22px; height: 22px; }
.ha-hero .ha-tile { color: #fff; background: linear-gradient(160deg, rgba(77, 163, 255, .35), rgba(0, 109, 229, .18)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.ha-tile--lg { width: 60px; height: 60px; border-radius: 16px; }
.ha-tile--lg .lp-ico { width: 28px; height: 28px; }

/* ═════════════ 2. RECHERCHE ═════════════ */

.ha-search { position: relative; max-width: 660px; margin: 0 auto; text-align: left; }
.ha-search > .ha-ico { position: absolute; left: 20px; top: 30px; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.ha-search input {
  display: block; width: 100%; height: 60px; padding: 0 56px 0 56px; border: 1px solid transparent; border-radius: 16px;
  background: #fff; color: var(--ink); font: 500 1.0625rem/1 var(--fb); outline: none;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .65), 0 0 0 4px rgba(255, 255, 255, .06);
  transition: box-shadow .2s, border-color .2s;
}
.ha-search input::placeholder { color: #8A94A6; }
.ha-search input:focus { border-color: #8EC2FF; box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .65), 0 0 0 4px rgba(142, 194, 255, .35); }
.ha-search input::-webkit-search-cancel-button { display: none; }
.ha-search__kbd {
  position: absolute; right: 18px; top: 30px; transform: translateY(-50%); min-width: 26px; padding: 3px 8px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--bg); color: var(--ink-3); font: 600 .75rem/1.2 var(--fb); text-align: center; pointer-events: none;
}
.ha-search input:focus ~ .ha-search__kbd { opacity: 0; }
.ha-search--bar { margin: 0; max-width: 320px; width: 100%; }
.ha-search--bar > .ha-ico { left: 13px; top: 21px; width: 18px; height: 18px; }
.ha-search--bar input { height: 42px; padding: 0 40px 0 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: .9375rem; box-shadow: none; }
.ha-search--bar input:focus { background: #fff; border-color: #8EC2FF; box-shadow: 0 0 0 4px rgba(0, 109, 229, .12); }
.ha-search--bar .ha-search__kbd { right: 12px; top: 21px; }

.ha-search__results {
  position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; right: 0; max-height: min(62vh, 520px); overflow-y: auto;
  padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 30px 70px -24px rgba(11, 18, 32, .5);
}
.ha-search--bar .ha-search__results { left: auto; width: min(520px, 92vw); }
.ha-result { display: grid; gap: 3px; padding: 12px 14px; border-radius: 11px; color: var(--ink); }
.ha-result + .ha-result { margin-top: 2px; }
.ha-result[aria-selected="true"], .ha-result:hover { background: var(--blue-bg); }
.ha-result__r { font: 600 .6875rem/1.2 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ha-result__t { font-weight: 600; font-size: .9875rem; line-height: 1.35; }
.ha-result__s { font-size: .875rem; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ha-result mark { background: #FFF0B3; color: inherit; border-radius: 3px; padding: 0 1px; }
.ha-noresult { padding: 16px 14px; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.ha-noresult a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ═════════════ 3. ACCUEIL ═════════════ */

.ha-section { padding: 72px 0; }
.ha-section--tint { background: var(--bg); }
.ha-section--profiles { padding: 0 0 24px; margin-top: -84px; position: relative; z-index: 2; }
.ha-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.ha-section__head h2 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--fd); letter-spacing: -.02em; }
.ha-section__head p { color: var(--ink-3); }

.ha-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ha-profile {
  display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff;
  box-shadow: 0 24px 50px -30px rgba(11, 18, 32, .35);
}
.ha-profile h3 { margin: 16px 0 6px; font: 700 1.1875rem/1.25 var(--fd); letter-spacing: -.01em; }
.ha-profile p { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; margin-bottom: 14px; }
.ha-profile ul { display: grid; gap: 2px; margin: 0 0 18px; }
.ha-profile li a { display: block; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.ha-profile li a:hover { color: var(--blue); }
.ha-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: .9375rem; color: var(--blue); }
.ha-more .lp-ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ha-more:hover .lp-ico { transform: translateX(3px); }

.ha-rubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ha-rub {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.ha-rub:hover { border-color: #B9D5FB; box-shadow: 0 18px 40px -26px rgba(0, 80, 179, .45); transform: translateY(-2px); }
.ha-rub__body { display: grid; gap: 4px; }
.ha-rub__body strong { font: 700 1.125rem/1.3 var(--fd); letter-spacing: -.01em; }
.ha-rub__body span { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.ha-rub__body small { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--blue); }

/* Parcours : liste numérotée, du plus léger au plus structuré */
.ha-paths { display: grid; gap: 12px; counter-reset: none; }
.ha-path {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.ha-path:hover { border-color: #B9D5FB; box-shadow: 0 18px 40px -30px rgba(0, 80, 179, .5); transform: translateX(2px); }
.ha-path__n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9375rem/1 var(--fd); }
.ha-path:not(:last-child)::after { content: ''; position: absolute; left: 39px; top: calc(100% + 1px); width: 2px; height: 10px; background: var(--line); }
.ha-path__body { display: grid; gap: 4px; min-width: 0; }
.ha-path__body strong { font: 700 1.0625rem/1.3 var(--fd); color: var(--ink); }
.ha-path__body span { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.ha-path__go { width: 20px; height: 20px; flex: none; margin-left: auto; color: var(--blue); transition: transform .25s var(--ease); }
.ha-path:hover .ha-path__go { transform: translateX(3px); }

.ha-faq__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ha-faq__list a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-weight: 500; font-size: .9375rem; line-height: 1.4; transition: border-color .2s, color .2s; }
.ha-faq__list a:hover { border-color: #B9D5FB; color: var(--blue); }
.ha-faq__list .lp-ico { width: 20px; height: 20px; color: var(--blue); }

.ha-contact { padding: 0 0 80px; }
.ha-page--article .ha-contact, .ha-page--rub .ha-contact { padding-top: 24px; }
.ha-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.ha-contact__inner {
  padding-top: 32px; padding-bottom: 32px; border-radius: 22px;
  background: radial-gradient(500px 200px at 100% 0%, rgba(0, 109, 229, .14), transparent 70%), linear-gradient(135deg, #F2F7FF, #EAF1FD);
  border: 1px solid #D6E5FB;
}
.ha-contact__text { max-width: 60ch; }
.ha-contact h2 { font: 700 1.375rem/1.25 var(--fd); margin-bottom: 6px; }
.ha-contact p { color: var(--ink-2); line-height: 1.6; }
.ha-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ha-btn-ghost { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border: 1px solid #C9DAF3; border-radius: 12px; background: #fff; font-weight: 600; font-size: .9375rem; color: var(--ink); transition: border-color .2s; }
.ha-btn-ghost:hover { border-color: var(--blue); }

/* ═════════════ 4. RUBRIQUE ET ARTICLE : MISE EN PAGE ═════════════ */

.ha-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; }
.ha-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.ha-crumbs li + li::before { content: '›'; color: #A0AABB; }
.ha-crumbs a { color: var(--ink-2); transition: color .2s; }
.ha-crumbs a:hover { color: var(--blue); }
.ha-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.ha-hero .ha-crumbs li, .ha-hero .ha-crumbs a { color: rgba(226, 234, 248, .7); }
.ha-hero .ha-crumbs a:hover { color: #fff; }
.ha-hero .ha-crumbs [aria-current] { color: #fff; }

.ha-topbar { position: sticky; top: 72px; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.ha-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.ha-topbar .ha-crumbs { min-width: 0; }
.ha-topbar .ha-crumbs ol { flex-wrap: nowrap; overflow: hidden; }
.ha-topbar .ha-crumbs li:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.ha-layout { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.ha-layout--rub { grid-template-columns: 250px minmax(0, 1fr); }
.ha-layout--article { grid-template-columns: 250px minmax(0, 1fr) 210px; }
.ha-layout__side { position: sticky; top: calc(var(--sticky-top) + 64px); max-height: calc(100vh - var(--sticky-top) - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ha-page--rub .ha-layout__side { top: var(--sticky-top); }

.ha-side__title, .ha-toc__title { margin: 0 0 10px; font: 600 .6875rem/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ha-side__list { display: grid; gap: 2px; }
.ha-side__rub { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.ha-side__rub:hover { background: var(--bg); color: var(--ink); }
.ha-side__ico { width: 18px; height: 18px; flex: none; color: #8A94A6; }
.is-open > .ha-side__rub { color: var(--ink); font-weight: 600; }
.is-open > .ha-side__rub .ha-side__ico, .ha-side__rub[aria-current] .ha-side__ico { color: var(--blue); }
.ha-side__rub[aria-current] { background: var(--blue-bg); color: var(--blue-d); }
.ha-side__arts { display: grid; margin: 4px 0 10px 19px; padding-left: 12px; border-left: 1px solid var(--line); }
.ha-side__arts a { display: block; position: relative; padding: 6px 8px; border-radius: 8px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); transition: color .2s, background .2s; }
.ha-side__arts a:hover { color: var(--ink); background: var(--bg); }
.ha-side__arts a[aria-current] { color: var(--blue-d); font-weight: 600; background: var(--blue-bg); }
.ha-side__arts a[aria-current]::before { content: ''; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--blue); }

/* Liste d'une rubrique et cartes */
.ha-count { margin-bottom: 14px; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.ha-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ha-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.ha-card:hover { border-color: #B9D5FB; box-shadow: 0 18px 40px -28px rgba(0, 80, 179, .5); transform: translateY(-2px); }
.ha-card__kicker { font: 600 .6875rem/1.2 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ha-card__title { font: 700 1.0625rem/1.3 var(--fd); letter-spacing: -.005em; }
.ha-card__text { font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.ha-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

.ha-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg); color: var(--ink-2); }
.ha-chip--apprenant { background: #E9F8EF; color: #157347; }
.ha-chip--concepteur { background: var(--blue-bg); color: var(--blue-d); }
.ha-chip--administrateur { background: #F3EEFF; color: #5B35B5; }

/* ═════════════ 5. ARTICLE ═════════════ */

.ha-article { min-width: 0; }
.ha-article__head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.ha-article__rub { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .875rem; font-weight: 600; color: var(--blue); }
.ha-article__rub .lp-ico { width: 18px; height: 18px; }
.ha-article h1 { font: 700 clamp(1.9rem, 3.4vw, 2.6rem)/1.12 var(--fd); letter-spacing: -.025em; color: var(--ink); }
.ha-article__lead { margin-top: 14px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.ha-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: .875rem; color: var(--ink-3); }
.ha-article__meta > span:not(.ha-chip) + span::before { content: '·'; margin-right: 14px; color: #B5BDCB; }
.ha-article__meta .ha-chip + span:not(.ha-chip) { margin-left: 4px; }

.ha-mobile-nav { display: none; }

.ha-prose { font-size: 1.0625rem; line-height: 1.75; color: #1E2635; }
.ha-prose > :first-child { margin-top: 0; }
.ha-prose p { margin: 0 0 1.15em; }
.ha-prose h2 { margin: 2.3em 0 .75em; font: 700 1.55rem/1.25 var(--fd); letter-spacing: -.015em; color: var(--ink); scroll-margin-top: calc(var(--sticky-top) + 84px); }
.ha-prose h3 { margin: 1.8em 0 .55em; font: 700 1.2rem/1.3 var(--fd); color: var(--ink); scroll-margin-top: calc(var(--sticky-top) + 84px); }
.ha-anchor { margin-left: .35em; color: #A8B3C4; font-weight: 500; opacity: 0; transition: opacity .2s; }
.ha-prose h2:hover .ha-anchor, .ha-prose h3:hover .ha-anchor, .ha-anchor:focus { opacity: 1; }
.ha-prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 109, 229, .35); transition: text-decoration-color .2s; }
.ha-prose a:hover { text-decoration-color: var(--blue); }
.ha-prose a.ha-anchor { text-decoration: none; color: #A8B3C4; }
.ha-prose strong { font-weight: 600; color: var(--ink); }
.ha-prose em { font-style: italic; }
.ha-prose code { padding: .1em .4em; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: .875em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.ha-prose ul { margin: 0 0 1.25em; padding-left: 1.3em; list-style: disc; }
.ha-prose ul ul { margin: .4em 0 .2em; list-style: circle; }
.ha-prose li { margin: .4em 0; padding-left: .2em; }
.ha-prose li::marker { color: #8EA2C0; }
/* Étapes numérotées : pastilles bleues */
.ha-prose ol { margin: 0 0 1.4em; padding: 0; list-style: none; counter-reset: ha-step; }
.ha-prose ol > li { position: relative; margin: .75em 0; padding-left: 2.6em; counter-increment: ha-step; }
.ha-prose ol > li::before {
  content: counter(ha-step); position: absolute; left: 0; top: .12em; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: var(--blue-bg); color: var(--blue-d); font: 700 .85rem/1.75em var(--fb); text-align: center; box-shadow: inset 0 0 0 1px rgba(0, 109, 229, .18);
}
.ha-prose ol ul, .ha-prose ol ol { margin-top: .4em; }

.ha-table { margin: 1.5em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.ha-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.ha-table th { background: var(--bg); font-weight: 600; color: var(--ink); text-align: left; white-space: nowrap; }
.ha-table th, .ha-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ha-table tr:last-child td { border-bottom: 0; }
.ha-table td:first-child { font-weight: 500; }

.ha-shot { margin: 1.7em 0 1.9em; }
.ha-shot__zoom { display: block; cursor: zoom-in; border-radius: 14px; }
.ha-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 22px 44px -30px rgba(11, 18, 32, .45); transition: box-shadow .25s; }
.ha-shot__zoom:hover img { box-shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 26px 50px -26px rgba(0, 80, 179, .45); }
.ha-shot figcaption { margin-top: .7em; font-size: .875rem; line-height: 1.5; color: var(--ink-3); text-align: center; }

.ha-callout { display: flex; gap: 14px; margin: 1.5em 0; padding: 16px 18px; border: 1px solid; border-radius: 14px; font-size: 1rem; line-height: 1.65; }
.ha-callout__ico { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ha-callout__body { min-width: 0; }
.ha-callout__label { margin: 0 0 .2em !important; font: 700 .75rem/1.4 var(--fb); letter-spacing: .08em; text-transform: uppercase; }
.ha-callout__body > :last-child { margin-bottom: 0; }
.ha-callout__body ul, .ha-callout__body ol { margin-bottom: .4em; }
.ha-callout--tip { background: #EEFBF3; border-color: #C3EBD2; } .ha-callout--tip .ha-callout__ico, .ha-callout--tip .ha-callout__label { color: #157347; }
.ha-callout--info { background: #EEF5FF; border-color: #CFE0FA; } .ha-callout--info .ha-callout__ico, .ha-callout--info .ha-callout__label { color: var(--blue-d); }
.ha-callout--warn { background: #FFF8EB; border-color: #F5DCAE; } .ha-callout--warn .ha-callout__ico, .ha-callout--warn .ha-callout__label { color: #A35A00; }
.ha-callout--sector { background: #F6F2FF; border-color: #DFD3FA; } .ha-callout--sector .ha-callout__ico, .ha-callout--sector .ha-callout__label { color: #5B35B5; }

.ha-prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--line); color: var(--ink-2); }

/* Pour aller plus loin, avis, articles voisins */
.ha-related { margin-top: 48px; }
.ha-related h2 { margin-bottom: 16px; font: 700 1.3rem/1.25 var(--fd); }
.ha-related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ha-card--related { padding: 18px 20px; }
.ha-card--related .ha-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ha-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.ha-feedback > p:first-child { font-weight: 600; }
.ha-feedback__btns { display: flex; gap: 10px; }
.ha-feedback__btns button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #CDD6E4; border-radius: 10px; background: #fff;
  font-weight: 600; font-size: .9375rem; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.ha-feedback__btns button:hover { border-color: var(--blue); color: var(--blue); }
.ha-feedback__btns .ha-ico { width: 18px; height: 18px; }
.ha-feedback__thanks { flex-basis: 100%; color: var(--ink-2); font-size: .9375rem; }
.ha-feedback.is-done .ha-feedback__btns { display: none; }

.ha-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ha-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.ha-pager a:hover { border-color: #B9D5FB; }
.ha-pager small { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ha-pager span { font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.ha-pager__prev small::before { content: '← '; }
.ha-pager__next { text-align: right; }
.ha-pager__next small::after { content: ' →'; }

/* Sommaire de l'article */
.ha-toc { position: sticky; top: calc(var(--sticky-top) + 64px); max-height: calc(100vh - var(--sticky-top) - 88px); overflow-y: auto; scrollbar-width: thin; }
.ha-toc ol { display: grid; border-left: 1px solid var(--line); }
.ha-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; font-size: .84375rem; line-height: 1.4; color: var(--ink-3); transition: color .2s, border-color .2s; }
.ha-toc a:hover { color: var(--ink); }
.ha-toc a.is-active { color: var(--blue-d); border-left-color: var(--blue); font-weight: 600; }

/* Agrandissement des captures */
.ha-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(6, 10, 22, .86); backdrop-filter: blur(4px); cursor: zoom-out; }
.ha-lightbox[hidden] { display: none; }
.ha-lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ha-lightbox__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.ha-lightbox__close .lp-ico { width: 22px; height: 22px; }

/* ═════════════ 6. RESPONSIVE ═════════════ */

@media (max-width: 1180px) {
  .ha-layout--article { grid-template-columns: 230px minmax(0, 1fr); }
  .ha-toc { display: none; }
}
@media (max-width: 960px) {
  .ha-profiles { grid-template-columns: 1fr; }
  .ha-section--profiles { margin-top: -64px; }
  .ha-rubs, .ha-list { grid-template-columns: 1fr; }
  .ha-faq__list { grid-template-columns: 1fr 1fr; }
  .ha-layout--rub, .ha-layout--article { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ha-layout__side { display: none; }
  .ha-mobile-nav { display: block; margin: -10px 0 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
  .ha-mobile-nav summary { padding: 13px 16px; font-weight: 600; font-size: .9375rem; cursor: pointer; }
  .ha-mobile-nav ul { display: grid; gap: 2px; padding: 0 10px 12px; }
  .ha-mobile-nav a { display: block; padding: 8px 8px; border-radius: 8px; font-size: .9375rem; color: var(--ink-2); }
  .ha-mobile-nav a[aria-current] { color: var(--blue-d); font-weight: 600; background: var(--blue-bg); }
  .ha-search--bar { max-width: 220px; }
}
@media (max-width: 680px) {
  .ha-hero--home .ha-hero__inner { padding-top: 56px; padding-bottom: 108px; }
  .ha-hero__lead { font-size: 1rem; }
  .ha-search input { height: 54px; font-size: 1rem; }
  .ha-search > .ha-ico, .ha-search__kbd { top: 27px; }
  .ha-search__kbd { display: none; }
  .ha-popular { justify-content: flex-start; }
  .ha-section { padding: 52px 0; }
  .ha-faq__list, .ha-related__grid, .ha-pager { grid-template-columns: 1fr; }
  .ha-path { gap: 14px; padding: 16px; }
  .ha-path:not(:last-child)::after { left: 33px; }
  .ha-path__go { display: none; }
  /* fil d'Ariane réduit à un retour vers la rubrique */
  .ha-topbar .ha-crumbs li, .ha-topbar .ha-crumbs li:last-child { display: none; }
  .ha-topbar .ha-crumbs li:nth-last-child(2) { display: inline-flex; }
  .ha-topbar .ha-crumbs li:nth-last-child(2)::before { content: '‹'; color: var(--ink-3); font-size: 1.1em; }
  .ha-topbar .ha-crumbs a { font-weight: 600; color: var(--blue-d); }
  /* tableaux en cartes : l'intitulé de colonne passe au-dessus de chaque valeur */
  .ha-table { border: 0; border-radius: 0; overflow: visible; }
  .ha-table table, .ha-table tbody, .ha-table tr, .ha-table td { display: block; width: 100%; }
  .ha-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ha-table tr { margin-bottom: 10px; padding: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .ha-table td { padding: 7px 14px; border: 0; }
  .ha-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 .6875rem/1.4 var(--fb); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
  .ha-topbar__inner { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .ha-search--bar { max-width: none; }
  .ha-search--bar .ha-search__results { width: auto; left: 0; }
  .ha-topbar { position: static; }
  .ha-hero__row { align-items: flex-start; }
  .ha-tile--lg { width: 48px; height: 48px; }
  .ha-contact__inner { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ha *, .ha *::before { transition: none !important; }
}
@media print {
  .lx-header, .hx-mobile, .lx-footer, .ha-topbar, .ha-layout__side, .ha-toc, .ha-feedback, .ha-pager, .ha-contact, .ha-lightbox, .cookie-banner { display: none !important; }
  .ha-layout--article { display: block; }
  .ha-shot img { box-shadow: none; }
}
