/* Harry Lift, pages intérieures : direction « Instrument », phase 2 (17 novembre 2026).
   Même grammaire que l'accueil : grille fine, repères numérotés, titres en lignes, chiffres tabulaires,
   un seul rouge pour l'action et la coche. Aucun dégradé, aucune ombre, aucun flou.
   Tout est limité à body.hl-i ; les états masqués n'existent qu'avec JavaScript et le mouvement non réduit. */

body.hl-i {
  --hl-obsidian: #0b0b0d;
  --hl-surface: #141416;
  --hl-raised: #1c1c1f;
  --hl-paper: #f5f4f0;
  --hl-text-2: #c4c3be;
  --hl-steel: #8a8f98;
  --hl-line: rgba(245, 244, 240, 0.1);
  --hl-line-strong: rgba(245, 244, 240, 0.28);
  --hl-signal: #e63946;
  --hl-signal-text: var(--brand-signal-on-dark, #ff4d5c);
  --hl-cta: #c72532;
  --hl-cta-hover: #a91624;
  --hl-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --hl-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --hl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hl-gutter: max(16px, env(safe-area-inset-left, 0px));
  margin: 0;
  background: var(--hl-obsidian);
  color: var(--hl-paper);
  font-family: var(--hl-body);
}

/* Socle */
body.hl-i *, body.hl-i *::before, body.hl-i *::after { box-sizing: border-box; }
body.hl-i .hl-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--hl-gutter); }
body.hl-i .hl-num { font-variant-numeric: tabular-nums; }
body.hl-i :is(a, button, select, input, summary, textarea):focus-visible { outline: 2px solid var(--hl-signal-text); outline-offset: 3px; }
body.hl-i .navbar { box-shadow: none; }
body.hl-i :is(.nav-container, footer .container) { max-width: 1320px; padding-inline: var(--hl-gutter); }
@media (min-width: 801px) {
  body.hl-i :is(.nav-container, footer .container, .hl-wrap) { padding-inline: 32px; }
}

/* Grille de mesure en fond, dessinée en SVG (aucun dégradé) */
body.hl-i .hl-grid-bg { position: relative; isolation: isolate; }
body.hl-i .hl-grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0V64' fill='none' stroke='%23f5f4f0' stroke-opacity='0.06' stroke-width='1'/%3E%3Cpath d='M0 0h4M0 0v4' stroke='%23f5f4f0' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
}

/* Repère de section : index, trait, libellé */
body.hl-i .hl-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 500 13px/1.4 var(--hl-body); letter-spacing: 0; text-transform: none; color: var(--hl-steel); font-variant-numeric: tabular-nums; }
body.hl-i .idx { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--hl-body); letter-spacing: 0; color: var(--hl-steel); font-variant-numeric: tabular-nums; }
body.hl-i .idx::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.5; transform-origin: left center; }

/* En-tête de page : relevé, titre en lignes, chapeau */
body.hl-i .hl-page-head { padding: 104px 0 40px; }
body.hl-i .hl-readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--hl-line); font: 500 12px/1.4 var(--hl-body); color: var(--hl-steel); font-variant-numeric: tabular-nums; }
body.hl-i .hl-readout > span:first-child { color: var(--hl-text-2); }
body.hl-i .hl-readout a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
body.hl-i .hl-readout a[aria-current] { color: var(--hl-paper); }
@media (hover: hover) { body.hl-i .hl-readout a:hover { color: var(--hl-paper); } }
body.hl-i .hl-readout nav { display: flex; gap: 16px; }
body.hl-i .hl-title { display: block; margin: 24px 0 0; padding: 0; max-width: none; font: 400 clamp(56px, 15vw, 152px)/0.88 var(--hl-display); letter-spacing: 0.005em; text-transform: uppercase; text-wrap: initial; color: var(--hl-paper); background: none; -webkit-text-fill-color: currentColor; }
body.hl-i .hl-title.is-doc { font-size: clamp(44px, 10vw, 104px); }
body.hl-i .hl-title .line { display: block; overflow: hidden; padding: 0.16em 0 0.03em; margin-top: -0.16em; }
body.hl-i .hl-title .line > span { display: block; }
body.hl-i .hl-title .muted { color: var(--hl-steel); }
body.hl-i .hl-lede { max-width: 38rem; margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--hl-text-2); }
body.hl-i .hl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
body.hl-i .hl-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--hl-steel); }

/* Repères chiffrés sous l'en-tête */
body.hl-i .hl-marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid var(--hl-line); list-style: none; }
body.hl-i .hl-marks li { display: grid; gap: 6px; min-width: 0; padding: 16px 12px; border-right: 1px solid var(--hl-line); }
body.hl-i .hl-marks li:first-child { padding-left: 0; }
body.hl-i .hl-marks li:last-child { border-right: 0; }
body.hl-i .hl-marks b { font: 400 clamp(22px, 6vw, 40px)/0.95 var(--hl-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--hl-paper); }
body.hl-i .hl-marks span { font-size: 13px; line-height: 1.4; color: var(--hl-steel); }

/* Titres de section, coche, bouton d'action, lien texte */
body.hl-i .hl-h2 { margin: 0 0 16px; font: 400 clamp(40px, 9vw, 72px)/0.92 var(--hl-display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--hl-paper); }
body.hl-i .hl-h2 .ln { display: block; overflow: hidden; padding: 0.16em 0 0.03em; margin-top: -0.16em; }
body.hl-i .hl-h2 .ln > span { display: block; }
body.hl-i .hl-h2 .muted { color: var(--hl-steel); }
body.hl-i .hl-tick { display: inline-block; flex: 0 0 auto; width: 10px; height: 6px; border-left: 2px solid var(--hl-signal); border-bottom: 2px solid var(--hl-signal); transform: translateY(-2px) rotate(-45deg); }
body.hl-i .hl-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: fit-content; min-height: 52px; margin: 0; padding: 14px 20px; border: 0; border-radius: 4px; background: var(--hl-cta); color: #fff; font: 500 16px/1.2 var(--hl-body); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; transition: background 160ms var(--hl-ease), transform 160ms var(--hl-ease); }
@media (hover: hover) { body.hl-i .hl-cta:hover { background: var(--hl-cta-hover); color: #fff; } }
body.hl-i .hl-cta:active { transform: scale(0.98); }
body.hl-i .hl-cta .arrow { font-size: 18px; transition: transform 220ms var(--hl-ease); }
@media (hover: hover) { body.hl-i .hl-cta:hover .arrow { transform: translate(3px, -3px); } }
body.hl-i .hl-textlink { padding-block: 4px; border-bottom: 1px solid currentColor; font: 500 15px/1.4 var(--hl-body); text-decoration: none; color: var(--hl-paper); }
@media (hover: hover) { body.hl-i .hl-textlink:hover { color: var(--hl-text-2); } }

/* Document : pages légales, colonne de lecture et sommaire */
body.hl-i .hl-doc { display: grid; gap: 32px; padding-bottom: 96px; }
body.hl-i .hl-toc { display: none; }
body.hl-i .hl-doc-body { max-width: 72ch; min-width: 0; }
body.hl-i .hl-doc-section { padding-block: 32px; border-top: 1px solid var(--hl-line); scroll-margin-top: 96px; }
body.hl-i .hl-doc-section:first-child { border-top: 0; padding-top: 8px; }
body.hl-i .hl-doc-section > h2 { display: grid; justify-items: start; gap: 12px; margin: 0 0 16px; font: 400 clamp(28px, 6vw, 40px)/1 var(--hl-display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--hl-paper); }
body.hl-i .hl-doc-section > h2 .idx { font-size: 13px; }
body.hl-i .hl-doc-section :is(h3, h4) { margin: 24px 0 8px; font: 600 16px/1.4 var(--hl-body); color: var(--hl-paper); }
body.hl-i .hl-doc-section p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--hl-text-2); }
body.hl-i .hl-doc-section ul, body.hl-i .hl-doc-section ol { margin: 0 0 16px; padding-left: 20px; color: var(--hl-text-2); line-height: 1.7; }
body.hl-i .hl-doc-section li { margin: 0 0 8px; }
body.hl-i .hl-doc-section li::marker { color: var(--hl-steel); }
body.hl-i .hl-doc-section :is(strong, b) { color: var(--hl-paper); font-weight: 600; }
body.hl-i .hl-doc-section a { color: var(--hl-paper); text-decoration: underline; text-decoration-color: var(--hl-line-strong); text-underline-offset: 3px; }
@media (hover: hover) { body.hl-i .hl-doc-section a:hover { text-decoration-color: currentColor; } }
body.hl-i .hl-doc-table { display: block; max-width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--hl-line); border-radius: 4px; }
body.hl-i .hl-doc-table table, body.hl-i table.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.55; font-variant-numeric: tabular-nums; }
body.hl-i .hl-doc-table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--hl-line); text-align: left; vertical-align: top; color: var(--hl-text-2); }
body.hl-i .hl-doc-table th { font-weight: 500; font-size: 13px; color: var(--hl-steel); background: var(--hl-surface); }
body.hl-i .hl-doc-table tr:last-child td { border-bottom: 0; }

@media (min-width: 900px) {
  body.hl-i .hl-page-head { padding: 136px 0 56px; }
  body.hl-i .hl-marks li { padding: 24px; }
  body.hl-i .hl-marks span { font-size: 14px; }
  body.hl-i .hl-doc { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  body.hl-i .hl-toc { display: block; position: sticky; top: 104px; align-self: start; }
  body.hl-i .hl-toc p { margin: 0 0 12px; font: 500 12px/1.4 var(--hl-body); color: var(--hl-steel); }
  body.hl-i .hl-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--hl-line); }
  body.hl-i .hl-toc a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 0 6px 16px; font-size: 13px; line-height: 1.4; color: var(--hl-steel); text-decoration: none; }
  body.hl-i .hl-toc a span { font-variant-numeric: tabular-nums; }
  body.hl-i .hl-toc a:hover { color: var(--hl-paper); }
}

/* Mouvement : seulement avec JavaScript et sans préférence de mouvement réduit */
@media (prefers-reduced-motion: no-preference) {
  .js body.hl-i .hl-title .line > span { animation: hli-rise 700ms var(--hl-ease) both; }
  .js body.hl-i .hl-title .line:nth-child(2) > span { animation-delay: 80ms; }
  .js body.hl-i .hl-title .line:nth-child(3) > span { animation-delay: 160ms; }
  .js body.hl-i [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--hl-ease), transform 700ms var(--hl-ease); transition-delay: var(--d, 0ms); }
  .js body.hl-i [data-reveal].in { opacity: 1; transform: none; }
  .js body.hl-i .hl-h2 .ln > span { transform: translateY(105%); transition: transform 760ms var(--hl-ease); }
  .js body.hl-i .hl-h2 .ln:nth-child(2) > span { transition-delay: 90ms; }
  .js body.hl-i .hl-h2.in .ln > span { transform: none; }
  .js body.hl-i .hl-eyebrow .idx::after { transform: scaleX(0); transition: transform 600ms var(--hl-ease) 120ms; }
  .js body.hl-i .hl-eyebrow.in .idx::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.hl-i *, body.hl-i *::before, body.hl-i *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@keyframes hli-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }

/* Lien texte : zone tactile de 44 px, soulignement collé au texte (18 novembre 2026). */
body.hl-i .hl-textlink { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* Téléphone (23 novembre 2026) : textes utiles à 14 px ; tableaux atteignables au clavier. */
@media (max-width: 760px) {
  body.hl-i .hl-note { max-width: 18rem; font-size: 14px; }
}
body.hl-i .hl-doc-table:focus-visible { outline: 2px solid var(--brand-signal-on-dark, #ff4d5c); outline-offset: 2px; }
