/* ==========================================================================
   Centre d'aide Bexxo (préfixe ah-) : base baseAide + layout layoutAide.
   Feuille autonome : style.css du site vitrine n'est pas chargé sur ces pages.
   Palette : encre rgb(18,24,32), accent orange rgb(245,124,0), fond doux rgb(243,243,244) ;
   titres Syne, texte Sora (polices locales).
   ========================================================================== */

@font-face { font-family: Sora; src: url(/fonts/sora-400-500-600.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Syne; src: url(/fonts/syne-400-500-600.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
    --ah-ink: rgb(18, 24, 32);
    --ah-text: rgba(18, 24, 32, .82);
    --ah-muted: rgba(18, 24, 32, .6);
    --ah-line: rgba(18, 24, 32, .11);
    --ah-soft: rgb(243, 243, 244);
    --ah-softer: rgb(248, 248, 249);
    --ah-white: #fff;
    --ah-accent: rgb(245, 124, 0);
    --ah-accent-ink: #a85300;
    --ah-accent-soft: rgba(245, 124, 0, .1);
    --ah-ok: #1d7a4b;
    --ah-ok-soft: rgba(29, 122, 75, .08);
    --ah-radius: 10px;
    --ah-top: 64px;
    --ah-nav: 288px;
}

/* Bannière cookies (variables reprises de custom.css) */
.cc-window, .cc-modal-window { --windowRadius: 10px; --popupRadius: 10px; --buttonsAlign: center; --btnRadius: 10px; --btnInfoBg: rgb(240, 240, 240); --btnRejectBg: rgb(240, 240, 240); --btnSettingsSelectBg: rgb(240, 240, 240); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--ah-top) + 16px); -webkit-text-size-adjust: 100%; }
body.ah-body { margin: 0; font: 400 15px/1.7 "Sora", system-ui, sans-serif; color: var(--ah-text); background: var(--ah-white); }
body.ah-nav-open { overflow: hidden; }
.ah-body a { color: inherit; text-decoration: none; }
.ah-body img { max-width: 100%; }
.ah-body h1, .ah-body h2, .ah-body h3 { margin: 0; }
.ah-body p { margin: 0; }
.ah-body button { font: inherit; color: inherit; }
.ah-body :focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; border-radius: 4px; }
.ah-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ah-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ah-ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
.ah-skip:focus { top: 10px; }

.ah-ico { width: 18px; height: 18px; flex-shrink: 0; }
.ah-ico--sm { width: 14px; height: 14px; }

/* ---------- En-tête ---------- */
.ah-top {
    position: sticky; top: 0; z-index: 50; height: var(--ah-top);
    display: flex; align-items: center; gap: 20px; padding: 0 20px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ah-line);
}
.ah-top__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ah-top__brand img { display: block; height: 24px; width: auto; }
.ah-top__brand span { font: 500 15px "Sora", sans-serif; color: var(--ah-muted); padding-left: 12px; border-left: 1px solid var(--ah-line); }
.ah-top__burger { display: none; width: 40px; height: 40px; margin-left: -8px; border: 0; background: none; border-radius: 8px; cursor: pointer; position: relative; }
.ah-top__burger span, .ah-top__burger::before, .ah-top__burger::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ah-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ah-top__burger span { top: 19px; }
.ah-top__burger::before { top: 13px; }
.ah-top__burger::after { top: 25px; }
body.ah-nav-open .ah-top__burger span { opacity: 0; }
body.ah-nav-open .ah-top__burger::before { transform: translateY(6px) rotate(45deg); }
body.ah-nav-open .ah-top__burger::after { transform: translateY(-6px) rotate(-45deg); }
.ah-top__links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.ah-top__links > a:hover { color: var(--ah-accent-ink); }
.ah-top__login { background: var(--ah-ink); color: #fff !important; padding: 7px 16px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.ah-top__login:hover { background: var(--ah-accent); }
.ah-top__searchbt { display: none; width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }

.ah-lang { position: relative; }
.ah-lang summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-weight: 500; padding: 6px 4px; }
.ah-lang summary::-webkit-details-marker { display: none; }
.ah-lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 140px; background: #fff; border: 1px solid var(--ah-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(18, 24, 32, .12); }
.ah-lang a { display: block; padding: 6px 10px; border-radius: 6px; }
.ah-lang a:hover, .ah-lang a[aria-current] { background: var(--ah-soft); }

/* Recherche */
.ah-search { position: relative; flex: 1; max-width: 520px; margin-left: 12px; }
.ah-search > .ah-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ah-muted); pointer-events: none; }
.ah-search input {
    width: 100%; height: 40px; padding: 0 70px 0 40px; border-radius: 10px; border: 1px solid rgba(18, 24, 32, .16);
    background: var(--ah-softer); font: 400 14px "Sora", sans-serif; color: var(--ah-ink); -webkit-appearance: none; appearance: none;
}
.ah-search input:focus { outline: none; background: #fff; border-color: var(--ah-accent); box-shadow: 0 0 0 3px rgba(245, 124, 0, .15); }
.ah-search__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px "Sora", sans-serif; color: var(--ah-muted); border: 1px solid var(--ah-line); border-radius: 5px; padding: 1px 6px; background: #fff; pointer-events: none; }
.ah-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 480px); overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--ah-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(18, 24, 32, .14); }
.ah-search__results a { display: block; padding: 9px 12px; border-radius: 8px; }
.ah-search__results a:hover, .ah-search__results a.is-focus { background: var(--ah-soft); }
.ah-search__results small { display: block; font-size: 11.5px; color: var(--ah-accent-ink); font-weight: 500; }
.ah-search__results strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ah-ink); }
.ah-search__results span { display: block; font-size: 13px; color: var(--ah-muted); line-height: 1.5; }
.ah-search__empty { padding: 10px 12px; font-size: 14px; color: var(--ah-muted); }

/* ---------- Coque : menu + page ---------- */
.ah-shell { display: grid; grid-template-columns: var(--ah-nav) minmax(0, 1fr); }
.ah-nav {
    position: sticky; top: var(--ah-top); height: calc(100vh - var(--ah-top)); overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 14px 40px; border-right: 1px solid var(--ah-line); font-size: 14px; background: #fff;
}
.ah-nav__home { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-weight: 600; color: var(--ah-ink); margin-bottom: 8px; }
.ah-nav__home:hover { background: var(--ah-soft); }
.ah-nav__home.is-active { background: var(--ah-accent-soft); }
.ah-nav__sec summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none;
    padding: 7px 10px; border-radius: 8px; font-weight: 600; color: var(--ah-ink);
}
.ah-nav__sec summary::-webkit-details-marker { display: none; }
.ah-nav__sec summary:hover { background: var(--ah-soft); }
.ah-nav__chev { width: 16px; height: 16px; color: var(--ah-muted); transform: rotate(-90deg); transition: transform .15s; }
.ah-nav__sec[open] .ah-nav__chev { transform: none; }
.ah-nav__sec ul { list-style: none; margin: 2px 0 10px 16px; padding: 0 0 0 8px; border-left: 1px solid var(--ah-line); }
.ah-nav__sec li a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ah-muted); line-height: 1.45; }
.ah-nav__sec li a:hover { color: var(--ah-ink); background: var(--ah-softer); }
.ah-nav__sec li a.is-active { color: var(--ah-ink); font-weight: 600; background: var(--ah-accent-soft); box-shadow: inset 2px 0 0 var(--ah-accent); }
.ah-nav__foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ah-line); display: flex; flex-direction: column; gap: 2px; }
.ah-nav__foot a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--ah-muted); }
.ah-nav__foot a:hover { color: var(--ah-ink); background: var(--ah-soft); }
.ah-backdrop { position: fixed; inset: var(--ah-top) 0 0 0; z-index: 39; background: rgba(18, 24, 32, .4); }

.ah-page { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--ah-top)); }
.ah-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 18px 40px; border-top: 1px solid var(--ah-line); font-size: 13px; color: var(--ah-muted); }
.ah-foot a:hover { color: var(--ah-ink); }

/* ---------- Article ---------- */
.ah-doc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; padding: 32px 40px 56px; max-width: 1180px; }
.ah-doc--home { grid-template-columns: minmax(0, 1fr); }
.ah-article { min-width: 0; max-width: 780px; }
.ah-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ah-muted); margin-bottom: 10px; }
.ah-crumbs a:hover { color: var(--ah-accent-ink); }
.ah-h1 { font: 500 34px/1.15 "Syne", sans-serif; color: var(--ah-ink); letter-spacing: -.01em; margin-bottom: 12px !important; }
.ah-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--ah-muted); margin-bottom: 16px !important; }
.ah-tag { background: var(--ah-soft); color: var(--ah-ink); border-radius: 999px; padding: 2px 10px; font-weight: 500; }
.ah-tag--pt { background: var(--ah-accent-soft); color: var(--ah-accent-ink); }
.ah-lead { font-size: 16.5px; line-height: 1.7; color: var(--ah-muted); }
.ah-lead p + p { margin-top: 8px; }

.ah-addin { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; padding: 8px 14px 8px 8px; width: fit-content; max-width: 100%; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); font-size: 14px; color: var(--ah-muted); }
.ah-addin img { flex-shrink: 0; display: block; }

.ah-sec { margin-top: 44px; }
.ah-h2 { display: flex; align-items: center; gap: 12px; font: 500 23px/1.25 "Syne", sans-serif; color: var(--ah-ink); margin-bottom: 14px !important; }
.ah-h3 { font: 600 17px/1.35 "Sora", sans-serif; color: var(--ah-ink); margin: 28px 0 10px !important; }
.ah-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ah-ink); color: #fff; font: 600 14px "Sora", sans-serif; }

.ah-prose { font-size: 15px; line-height: 1.75; }
.ah-prose > * + * { margin-top: 10px !important; }
.ah-prose ul { list-style: disc; padding-left: 22px; margin: 0; }
.ah-prose ol { list-style: decimal; padding-left: 22px; margin: 0; }
.ah-prose li + li { margin-top: 5px; }
.ah-prose strong, .ah-table strong { color: var(--ah-ink); font-weight: 600; }
.ah-prose a, .ah-table a, .ah-lead a { color: var(--ah-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ah-prose a:hover, .ah-table a:hover { color: var(--ah-ink); }
.ah-body code { font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--ah-soft); color: var(--ah-ink); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.ah-body kbd { font: 600 13px "Sora", sans-serif; color: var(--ah-ink); background: #fff; border: 1px solid rgba(18, 24, 32, .22); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; }

.ah-steps { counter-reset: ah-step; list-style: none; margin: 16px 0; padding: 0; }
.ah-steps > li { counter-increment: ah-step; position: relative; padding-left: 42px; min-height: 28px; }
.ah-steps > li + li { margin-top: 14px; }
.ah-steps > li::before { content: counter(ah-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ah-accent); color: var(--ah-accent-ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ah-steps .ah-prose { padding-top: 1px; }

.ah-checks { list-style: none; margin: 16px 0; padding: 0; }
.ah-checks li { display: flex; gap: 12px; }
.ah-checks li + li { margin-top: 10px; }
.ah-checks .ah-ico { color: var(--ah-ok); margin-top: 4px; }

.ah-callout { display: flex; gap: 12px; margin: 20px 0; padding: 14px 16px; border-radius: var(--ah-radius); border-left: 4px solid; }
.ah-callout .ah-ico { margin-top: 4px; }
.ah-callout .ah-prose { font-size: 14.5px; }
.ah-callout--info { background: var(--ah-soft); border-color: rgba(18, 24, 32, .35); }
.ah-callout--ok { background: var(--ah-ok-soft); border-color: var(--ah-ok); }
.ah-callout--ok .ah-ico { color: var(--ah-ok); }
.ah-callout--warn { background: rgba(245, 124, 0, .08); border-color: var(--ah-accent); }
.ah-callout--warn .ah-ico { color: var(--ah-accent-ink); }

.ah-figure { margin: 22px 0; }
.ah-figure a { display: block; padding: 6px; background: #fff; border: 1px solid var(--ah-line); border-radius: 10px; }
.ah-figure a:hover { border-color: rgba(18, 24, 32, .25); }
.ah-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ah-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--ah-muted); }

.ah-table { margin: 18px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.ah-table thead th { background: var(--ah-soft); color: var(--ah-ink); font-weight: 600; text-align: left; padding: 10px 14px; vertical-align: bottom; }
.ah-table tbody th, .ah-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--ah-line); }
.ah-table tbody tr:first-child th, .ah-table tbody tr:first-child td { border-top: 0; }
.ah-table thead + tbody tr:first-child th, .ah-table thead + tbody tr:first-child td { border-top: 1px solid var(--ah-line); }
.ah-table tbody th { color: var(--ah-ink); font-weight: 500; }

.ah-privacy { margin-top: 12px !important; }
.ah-privacy a { display: inline-flex; align-items: center; gap: 8px; color: var(--ah-accent-ink); font-weight: 600; }

.ah-guidelink { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 12px 16px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); color: var(--ah-ink) !important; font-weight: 600; }
.ah-guidelink:hover { border-color: var(--ah-accent); }
.ah-guidelink > .ah-ico:first-child { color: var(--ah-accent-ink); }
.ah-guidelink > span { flex: 1; }
.ah-guidelink small { display: block; font-weight: 400; font-size: 13px; color: var(--ah-muted); }
.ah-guidelink__arrow { color: var(--ah-muted); }

.ah-copy { margin: 16px 0; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-copy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ah-line); font-weight: 600; color: var(--ah-ink); font-size: 14.5px; }
.ah-copy__all { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer; background: #fff; border: 1px solid var(--ah-line); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.ah-copy__all .ah-ico { width: 14px; height: 14px; }
.ah-copy__all:hover { border-color: var(--ah-accent); color: var(--ah-accent-ink); }
.ah-copy__all.is-done { border-color: var(--ah-ok); color: var(--ah-ok); }
.ah-copy ul { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 8px; }
.ah-copy--single ul { grid-template-columns: 1fr; }
.ah-copy ul button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; background: none; border: 0; border-radius: 6px; padding: 6px 8px; text-align: left; }
.ah-copy ul button:hover { background: var(--ah-soft); }
.ah-copy ul code { background: none; padding: 0; }
.ah-copy ul .ah-ico { width: 14px; height: 14px; color: var(--ah-muted); opacity: .35; }
.ah-copy ul button:hover .ah-ico { opacity: 1; }
.ah-copy ul button.is-done .ah-ico { opacity: 1; color: var(--ah-ok); }

.ah-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ah-line); }
.ah-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); font-weight: 600; color: var(--ah-ink); line-height: 1.4; }
.ah-pager a:hover { border-color: var(--ah-accent); }
.ah-pager small { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12.5px; color: var(--ah-muted); }
.ah-pager__next { text-align: right; align-items: flex-end; }
.ah-helpline { display: flex; align-items: center; gap: 10px; margin-top: 28px !important; font-size: 14px; color: var(--ah-muted); }
.ah-helpline a { color: var(--ah-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Sur cette page */
.ah-otp { position: sticky; top: calc(var(--ah-top) + 32px); align-self: start; max-height: calc(100vh - var(--ah-top) - 64px); overflow-y: auto; font-size: 13px; }
.ah-otp > p { font-weight: 600; color: var(--ah-ink); margin-bottom: 8px; }
.ah-toclist { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ah-line); }
.ah-toclist a { display: block; margin-left: -1px; padding: 4px 0 4px 12px; border-left: 2px solid transparent; color: var(--ah-muted); line-height: 1.45; }
.ah-toclist a:hover { color: var(--ah-ink); }
.ah-toclist a.is-active { color: var(--ah-ink); font-weight: 500; border-left-color: var(--ah-accent); }
.ah-toc-inline { display: none; margin: 18px 0 0; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); padding: 10px 14px; font-size: 14px; }
.ah-toc-inline summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ah-ink); }
.ah-toc-inline summary::-webkit-details-marker { display: none; }
.ah-toc-inline__chev { margin-left: auto; transition: transform .15s; }
.ah-toc-inline[open] .ah-toc-inline__chev { transform: rotate(180deg); }
.ah-toc-inline .ah-toclist { margin-top: 10px; }

/* ---------- Accueil ---------- */
.ah-userbox { display: flex; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: var(--ah-radius); background: var(--ah-soft); border-left: 4px solid var(--ah-accent); }
.ah-userbox > .ah-ico { color: var(--ah-accent-ink); margin-top: 3px; }
.ah-userbox strong { display: block; color: var(--ah-ink); font-weight: 600; }
.ah-userbox p { font-size: 14px; margin-top: 2px; }
.ah-userbox ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.ah-userbox a { color: var(--ah-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ah-start { list-style: none; counter-reset: ah-start; margin: 18px 0; padding: 0; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-start li { counter-increment: ah-start; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 56px; }
.ah-start li + li { border-top: 1px solid var(--ah-line); }
.ah-start li::before { content: counter(ah-start); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ah-accent); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ah-start strong { color: var(--ah-ink); font-weight: 600; }
.ah-start span { font-size: 14px; color: var(--ah-muted); }
.ah-start__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.ah-start__links a { color: var(--ah-accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ah-fold { margin-top: 10px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-fold summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 10px 14px; font-weight: 600; color: var(--ah-ink); font-size: 14.5px; }
.ah-fold summary::-webkit-details-marker { display: none; }
.ah-fold__chev { margin-left: auto; transition: transform .15s; }
.ah-fold[open] .ah-fold__chev { transform: rotate(180deg); }
.ah-fold .ah-table { margin: 0; border: 0; border-top: 1px solid var(--ah-line); border-radius: 0; }
.ah-fold table { min-width: 560px; }

.ah-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 10px; }
.ah-index h3 { font: 600 15px "Sora", sans-serif; color: var(--ah-ink); padding-bottom: 8px; margin-bottom: 6px !important; border-bottom: 1px solid var(--ah-line); }
.ah-index ul { list-style: none; margin: 0; padding: 0; }
.ah-index li { padding: 6px 0; }
.ah-index li a { display: block; font-weight: 600; color: var(--ah-accent-ink); }
.ah-index li a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ah-index li span { display: block; font-size: 13.5px; color: var(--ah-muted); line-height: 1.5; }

/* ---------- Schémas du guide chiffrement ---------- */
.ah-diagram { margin: 24px 0; }
.ah-orgkey { max-width: 380px; margin: 0 auto; padding: 18px; border-radius: 12px; background: var(--ah-ink); color: #fff; text-align: center; }
.ah-orgkey .ah-ico { width: 28px; height: 28px; color: var(--ah-accent); }
.ah-orgkey strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; }
.ah-orgkey p { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.ah-link-v { width: 2px; height: 26px; margin: 0 auto; background: rgba(18, 24, 32, .25); }
.ah-vaults { padding: 14px; border: 2px dashed rgba(18, 24, 32, .22); border-radius: 14px; }
.ah-vaults__label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; font-size: 13.5px; color: var(--ah-muted); }
.ah-vaults ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ah-vaults li { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ah-line); }
.ah-vaults li > .ah-ico { color: var(--ah-ink); width: 22px; height: 22px; }
.ah-vaults strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ah-ink); }
.ah-vaults small { display: inline-flex; align-items: flex-start; gap: 5px; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ah-muted); }
.ah-vaults small .ah-ico { width: 14px; height: 14px; color: var(--ah-accent-ink); margin-top: 2px; }
.ah-diagram figcaption { margin-top: 10px; font-size: 13px; color: var(--ah-muted); }

.ah-flow { display: grid; grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 14px 0 6px; }
.ah-flow__box { padding: 14px; border-radius: 10px; border: 1px solid var(--ah-line); background: #fff; min-width: 0; }
.ah-flow__box--client { border-left: 4px solid var(--ah-ink); }
.ah-flow__box--dark { background: var(--ah-ink); border-color: var(--ah-ink); color: #fff; }
.ah-flow__box--server { background: var(--ah-soft); border-left: 4px solid rgba(18, 24, 32, .35); }
.ah-flow__box--none { border-style: dashed; border-color: rgba(18, 24, 32, .25); }
.ah-flow__side { font-size: 12px; color: var(--ah-muted); margin-bottom: 4px; }
.ah-flow__box strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ah-ink); margin-bottom: 3px; }
.ah-flow__box p { font-size: 13.5px; line-height: 1.6; }
.ah-flow__box--dark .ah-flow__side { color: rgba(255, 255, 255, .6); }
.ah-flow__box--dark strong { color: #fff; }
.ah-flow__box--dark p { color: rgba(255, 255, 255, .8); }
.ah-flow__box table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.ah-flow__box td { border: 1px solid var(--ah-line); padding: 3px 7px; background: #fff; overflow-wrap: anywhere; }
.ah-flow__box td:first-child { width: 40%; color: var(--ah-muted); background: transparent; }
.ah-flow__box--dark td { border-color: rgba(255, 255, 255, .15); background: transparent; }
.ah-flow__box--dark td:first-child { color: rgba(255, 255, 255, .6); }
.ah-flow__mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ah-flow__mid small { font-size: 11.5px; line-height: 1.4; color: var(--ah-muted); }
.ah-tag--https, .ah-tag--enc, .ah-tag--local { border: 1px solid; font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; }
.ah-tag--https { background: var(--ah-soft); border-color: rgba(18, 24, 32, .25); color: var(--ah-ink); }
.ah-tag--enc { background: var(--ah-accent-soft); border-color: var(--ah-accent); color: var(--ah-accent-ink); }
.ah-tag--local { background: var(--ah-ok-soft); border-color: var(--ah-ok); color: var(--ah-ok); }
.ah-arrow { display: flex; align-items: center; width: 100%; }
.ah-arrow i { flex: 1; height: 2px; background: currentColor; }
.ah-arrow .ah-ico { width: 16px; height: 16px; }
.ah-arrow--https { color: var(--ah-ink); }
.ah-arrow--enc { color: var(--ah-accent); }
.ah-arrow--none i { background: none; border-top: 2px dashed rgba(18, 24, 32, .25); }
.ah-arrow--back .ah-ico { transform: rotate(180deg); margin-right: -6px; }
.ah-arrow--to .ah-ico { margin-left: -6px; }
.ah-v-cipher { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--ah-accent-ink); }
.ah-v-plain { font-weight: 600; color: var(--ah-ink); }
.ah-v-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.ah-v-ok { font-weight: 600; color: var(--ah-ok); }
.ah-flow__box--dark .ah-v-ok { color: #7fd6a4; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
    .ah-doc { grid-template-columns: minmax(0, 1fr); }
    .ah-otp { display: none; }
    .ah-toc-inline { display: block; }
}
@media (max-width: 1023px) {
    .ah-top { gap: 10px; padding: 0 14px; }
    .ah-top__burger { display: block; }
    .ah-shell { grid-template-columns: minmax(0, 1fr); }
    .ah-nav {
        position: fixed; z-index: 40; left: 0; top: var(--ah-top); bottom: 0; height: auto;
        width: min(320px, 86vw); transform: translateX(-102%); transition: transform .25s ease;
        box-shadow: 8px 0 30px rgba(18, 24, 32, .12); visibility: hidden;
    }
    body.ah-nav-open .ah-nav { transform: none; visibility: visible; }
    .ah-doc { padding: 24px 24px 48px; }
    .ah-foot { padding: 16px 24px; }
}
@media (max-width: 860px) {
    .ah-top__hide-sm { display: none; }
    .ah-search__kbd { display: none; }
    .ah-search input { padding-right: 14px; }
}
@media (max-width: 720px) {
    .ah-top__searchbt { display: inline-flex; }
    .ah-search { display: none; position: absolute; left: 0; right: 0; top: var(--ah-top); margin: 0; max-width: none; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--ah-line); box-shadow: 0 10px 20px rgba(18, 24, 32, .08); }
    .ah-search > .ah-ico { left: 27px; }
    .ah-search__results { left: 14px; right: 14px; }
    .ah-top.is-search .ah-search { display: block; }
    .ah-top__links { gap: 8px; }
    .ah-top__brand span { display: none; }
    .ah-index { grid-template-columns: minmax(0, 1fr); }
    .ah-pager { grid-template-columns: minmax(0, 1fr); }
    .ah-pager__next { text-align: left; align-items: flex-start; }
    .ah-vaults ul { grid-template-columns: minmax(0, 1fr); }
    .ah-flow { grid-template-columns: minmax(0, 1fr); }
    .ah-flow__mid { flex-direction: row; flex-wrap: wrap; padding: 2px 0; }
    .ah-arrow { width: auto; flex-direction: column; height: 30px; }
    .ah-arrow i { width: 2px; height: auto; }
    .ah-arrow--none i { border-top: 0; border-left: 2px dashed rgba(18, 24, 32, .25); }
    .ah-arrow--to .ah-ico { transform: rotate(90deg); margin: -6px 0 0; }
    .ah-arrow--back .ah-ico { transform: rotate(-90deg); margin: 0 0 -6px; order: -1; }
}
@media (max-width: 520px) {
    .ah-doc { padding: 20px 16px 40px; }
    .ah-foot { padding: 14px 16px; }
    .ah-h1 { font-size: 27px; }
    .ah-h2 { font-size: 20px; }
    .ah-lead { font-size: 15.5px; }
    .ah-top__login { padding: 6px 12px; font-size: 13px; }
    .ah-steps > li { padding-left: 38px; }
    .ah-copy ul { grid-template-columns: minmax(0, 1fr); }
    .ah-copy__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .ah-body * { transition: none !important; }
}
