/*!
 * MUNGO Fret & Transit — feuille de styles unique (démo de Mike SOBTAMFO).
 * Concept : « le bordereau et la traversée ». Blanc franc, marine profond, orange conteneur, gris béton.
 * Red Hat Display (titres, texte) + Red Hat Mono (codes, numéros, journal de bord).
 */
@layer reset, tokens, base, layout, components, utilities, pages;

/* Polices de repli calées sur Red Hat (largeur et hauteur mesurées) : pendant le chargement des polices,
   le texte occupe déjà la même place, donc rien ne saute quand elles arrivent (CLS). */
@font-face { font-family: 'RHD Repli'; src: local('Arial'), local('ArialMT'); font-weight: 100 550; size-adjust: 98.4%; ascent-override: 103.7%; descent-override: 31.5%; line-gap-override: 0%; }
@font-face { font-family: 'RHD Repli'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 551 650; size-adjust: 94.7%; ascent-override: 107.7%; descent-override: 32.7%; line-gap-override: 0%; }
@font-face { font-family: 'RHD Repli'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 651 750; size-adjust: 96.3%; ascent-override: 105.9%; descent-override: 32.2%; line-gap-override: 0%; }
@font-face { font-family: 'RHD Repli'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 751 1000; size-adjust: 98.2%; ascent-override: 103.9%; descent-override: 31.6%; line-gap-override: 0%; }
@font-face { font-family: 'RHM Repli'; src: local('Courier New'), local('CourierNewPSMT'); font-weight: 100 550; size-adjust: 100%; ascent-override: 102%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: 'RHM Repli'; src: local('Courier New Bold'), local('CourierNewPS-BoldMT'); font-weight: 551 1000; size-adjust: 100%; ascent-override: 102%; descent-override: 31%; line-gap-override: 0%; }

/* =========================================================== RESET */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  table { border-collapse: collapse; }
  dialog { padding: 0; border: 0; }
  [hidden] { display: none !important; }
}

/* =========================================================== TOKENS */
@layer tokens {
  :root {
    color-scheme: light;
    --c-marine: #0B2A4A; --c-marine-2: #14406B; --c-marine-3: #1D5285;
    --c-ink: #0E1A27; --c-white: #FFFFFF; --c-beton: #EEF0F2; --c-beton-2: #E2E6EA;
    --c-muted: #4B5866; --c-line: #C3CAD2; --c-line-soft: #DCE1E6; --c-control: #6B7785;
    --c-orange: #F26A1B; --c-orange-2: #D85A10; --c-orange-text: #B8460B; --c-orange-soft: #FFB27A; --c-orange-pale: #FFF1E8;
    --c-sky: #E4EEF8;
    --c-ok: #1D7348; --c-ok-bg: #E3F2EA; --c-warn: #8A5A00; --c-warn-bg: #FBF0D9; --c-stop: #B3261E; --c-stop-bg: #FBE5E3;
    --c-info: #14406B; --c-info-bg: #E4EEF8;
    --font-sans: 'Red Hat Display', 'RHD Repli', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Red Hat Mono', 'RHM Repli', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --step--1: clamp(0.875rem, 0.86rem + 0.07vw, 0.9375rem);
    --step-0: clamp(1.0625rem, 1.05rem + 0.06vw, 1.125rem);
    --step-1: clamp(1.25rem, 1.21rem + 0.2vw, 1.4rem);
    --step-2: clamp(1.5rem, 1.4rem + 0.5vw, 1.85rem);
    --step-3: clamp(1.8rem, 1.6rem + 1vw, 2.5rem);
    --step-4: clamp(2.15rem, 1.78rem + 1.8vw, 3.4rem);
    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem;
    --section: clamp(3.5rem, 2.4rem + 5vw, 7rem);
    --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
    --maxw: 75rem;
    --r-1: 4px; --r-2: 8px; --r-3: 14px; --r-4: 22px; --r-pill: 999px;
    --sh-1: 0 1px 2px rgb(11 42 74 / 0.06), 0 2px 10px rgb(11 42 74 / 0.06);
    --sh-2: 0 18px 40px -18px rgb(11 42 74 / 0.35), 0 2px 6px rgb(11 42 74 / 0.06);
    --sh-3: 0 30px 70px -20px rgb(11 42 74 / 0.45);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur-1: 150ms; --dur-2: 250ms; --dur-3: 400ms;
    --header-h: 4rem;
    --focus: var(--c-orange-text);
    --msd-font: var(--font-sans); --msd-accent: var(--c-orange-soft);
  }
  @media (min-width: 64em) { :root { --header-h: 4.5rem; } }
}

/* =========================================================== BASE */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6; color: var(--c-ink);
    background: var(--c-white); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
  }
  h1, h2, h3, h4 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--c-marine); text-wrap: balance; }
  h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
  p, li, dd { text-wrap: pretty; }
  a { color: var(--c-orange-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color var(--dur-1) var(--ease); }
  a:hover { color: var(--c-marine); }
  strong, b { font-weight: 700; }
  small { font-size: var(--step--1); }
  code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
  .on-dark :focus-visible, .band--marine :focus-visible, .site-footer :focus-visible { --focus: var(--c-orange); }
  ::selection { background: var(--c-orange); color: var(--c-ink); }
  main { display: block; }
  main:focus { outline: none; }
  table { font-variant-numeric: tabular-nums; }
  input::placeholder, textarea::placeholder { color: #6B7785; opacity: 1; }
}

/* =========================================================== LAYOUT */
@layer layout {
  .wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: var(--section); }
  .section--tight { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
  .section--beton { background: var(--c-beton); }
  .band { position: relative; padding-block: var(--section); }
  .band--marine { background: var(--c-marine); color: #E8EEF5; }
  .band--marine h2, .band--marine h3 { color: var(--c-white); }
  .band--marine a:not(.btn) { color: var(--c-orange-soft); }
  .band--orange { background: var(--c-orange); color: var(--c-ink); padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); overflow: hidden; }
  .band--orange h2 { color: var(--c-ink); }
  .corrugated {
    position: absolute; inset: 0 0 auto; height: 14px;
    background: repeating-linear-gradient(90deg, #F26A1B 0 9px, #E8621A 9px 12px, #D85A10 12px 16px, #E8621A 16px 19px, #F26A1B 19px 24px);
  }
  .band--orange .corrugated { background: repeating-linear-gradient(90deg, #F78A48 0 9px, #E8621A 9px 12px, #D85A10 12px 16px, #E8621A 16px 19px, #F78A48 19px 24px); }
  .two-col { display: grid; gap: var(--sp-6) clamp(2rem, 4vw, 5rem); }
  @media (min-width: 64em) {
    .two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .two-col > .sec-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
    .two-col--even { grid-template-columns: 1fr 1fr; }
  }
  .two-col > div > * + *:not(.faq) { margin-top: var(--sp-4); }
  .two-col > div > .eyebrow + h2 { margin-top: var(--sp-3); }
  .sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.6rem + 2vw, 3.25rem); }
  .sec-head h2 { margin-top: var(--sp-3); }
  .sec-head__lead { margin-top: var(--sp-4); color: var(--c-muted); font-size: var(--step-0); max-width: 62ch; }
  .band--marine .sec-head__lead { color: #C9D5E2; }
  .sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); }
  .sec-head--sub { margin-top: var(--sp-8); margin-bottom: var(--sp-5); }
  .sec-more { margin-top: var(--sp-6); }
}

/* =========================================================== COMPONENTS */
@layer components {  /* ---------- petits éléments ---------- */
  .i { width: 1.25em; height: 1.25em; flex: none; }
  .mono { font-family: var(--font-mono); font-feature-settings: 'zero' 0; }
  .eyebrow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-orange-text);
  }
  .eyebrow__n { color: var(--c-marine); }
  .eyebrow__n::after { content: '—'; margin-left: 0.6em; color: var(--c-line); }
  .eyebrow--light { color: var(--c-orange-soft); }
  .eyebrow--light .eyebrow__n { color: var(--c-white); }
  .eyebrow--light .eyebrow__n::after { color: #4E6B8A; }
  .eyebrow--route { letter-spacing: 0.14em; color: var(--c-marine); gap: 0.5em; }
  .eyebrow--route span[aria-hidden] { color: var(--c-orange-text); font-size: 1.1em; }
  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--c-muted); max-width: 40ch; font-weight: 450; }
  .h3 { font-size: var(--step-1); }
  .link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; text-decoration: none; color: var(--c-orange-text); }
  .link-arrow .i { transition: transform var(--dur-1) var(--ease); }
  .link-arrow:hover .i { transform: translateX(3px); }
  .band--marine .link-arrow { color: var(--c-orange-soft); }

  /* ---------- boutons ---------- */
  .btn {
    --b-bg: var(--c-beton); --b-fg: var(--c-marine); --b-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 3rem; padding: 0.7em 1.25em;
    border: 2px solid var(--b-bd); border-radius: var(--r-2); background: var(--b-bg); color: var(--b-fg);
    font-weight: 700; font-size: 1rem; line-height: 1.15; text-decoration: none; text-align: center;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  }
  .btn:hover { color: var(--b-fg); transform: translateY(-1px); }
  .btn:active { transform: translateY(1px); }
  .btn--primary { --b-bg: var(--c-orange); --b-fg: var(--c-ink); box-shadow: 0 1px 0 #C2530F inset, 0 8px 18px -10px rgb(216 90 16 / 0.8); }
  .btn--primary:hover { --b-bg: #F57A31; }
  .btn--marine { --b-bg: var(--c-marine); --b-fg: var(--c-white); }
  .btn--marine:hover { --b-bg: var(--c-marine-2); }
  .btn--ghost { --b-bg: transparent; --b-bd: var(--c-marine); }
  .btn--ghost:hover { --b-bg: var(--c-marine); --b-fg: var(--c-white); }
  .btn--ghost-light { --b-bg: transparent; --b-bd: rgb(255 255 255 / 0.55); --b-fg: var(--c-white); }
  .btn--ghost-light:hover { --b-bg: var(--c-white); --b-fg: var(--c-marine); }
  .btn--ink { --b-bg: var(--c-ink); --b-fg: var(--c-white); }
  .btn--ink:hover { --b-bg: var(--c-marine); }
  .btn--light { --b-bg: var(--c-white); --b-fg: var(--c-ink); }
  .btn--light:hover { --b-bg: var(--c-orange-pale); }
  .btn--wa { --b-bg: var(--c-marine); --b-fg: var(--c-white); }
  .btn--sm { min-height: 2.75rem; padding: 0.55em 1em; font-size: 0.9375rem; }
  .chip {
    display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.75rem; padding: 0.45em 0.95em; border: 1.5px solid var(--c-line);
    border-radius: var(--r-pill); background: var(--c-white); color: var(--c-marine); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
    text-decoration: none; text-align: left; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
  }
  .chip:hover { border-color: var(--c-orange); background: var(--c-orange-pale); color: var(--c-marine); }

  /* ---------- pastilles d'état (icône + mot, jamais la couleur seule) ---------- */
  .pill {
    font-family: var(--font-sans); letter-spacing: 0; text-transform: none;
    display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.7em 0.3em 0.55em; border-radius: var(--r-pill);
    font-size: 0.875rem; font-weight: 700; line-height: 1.2; white-space: normal;
  }
  .pill .i { width: 1.05em; height: 1.05em; }
  .pill--ok { background: var(--c-ok-bg); color: var(--c-ok); }
  .pill--warn { background: var(--c-warn-bg); color: var(--c-warn); }
  .pill--stop { background: var(--c-stop-bg); color: var(--c-stop); }
  .pill--info { background: var(--c-info-bg); color: var(--c-info); }
  .pill--muted { background: var(--c-beton); color: var(--c-muted); }
  .pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

  /* ---------- étiquette « agent IA simulé » ---------- */
  .ai-label { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.8em 1em; border-radius: var(--r-2); background: var(--c-orange-pale); color: var(--c-ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.45; border-left: 4px solid var(--c-orange); }
  .ai-label .i { color: var(--c-orange-text); margin-top: 0.1em; }
  .ai-label--dark { background: rgb(255 255 255 / 0.07); color: #F2F5F9; border-left-color: var(--c-orange); }
  .ai-label--dark .i { color: var(--c-orange-soft); }
  .ai-label--big { font-size: 1rem; padding: 1rem 1.2rem; }
  .ai-pill { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.15em 0.6em; border-radius: var(--r-pill); background: var(--c-orange); color: var(--c-ink); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; border: 0; }

  /* ---------- tampon « Pesé · Photographié » ---------- */
  .stamp {
    display: inline-grid; place-items: center; gap: 0.1em; padding: 0.55em 0.9em; border: 2.5px solid var(--c-orange-text); border-radius: var(--r-2);
    outline: 1.5px solid var(--c-orange-text); outline-offset: 3px; color: var(--c-orange-text); background: rgb(255 255 255 / 0.92);
    font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; line-height: 1.2;
    transform: rotate(-7deg);
  }
  .stamp small { font-size: 0.625rem; letter-spacing: 0.18em; opacity: 0.85; }

  /* ---------- code-barres CSS (décoratif) ---------- */
  .barcode { display: flex; align-items: center; gap: 0.75rem; }
  .barcode i {
    flex: 1; height: 26px; max-width: 150px;
    background: repeating-linear-gradient(90deg, var(--c-ink) 0 2px, transparent 2px 4px, var(--c-ink) 4px 5px, transparent 5px 8px, var(--c-ink) 8px 11px, transparent 11px 12px, var(--c-ink) 12px 13px, transparent 13px 16px);
  }
  .barcode span { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--c-muted); }

  /* ---------- en-tête ---------- */
  .skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; border-radius: var(--r-2); background: var(--c-marine); color: var(--c-white); font-weight: 700; }
  .skip-link:focus { top: 0.75rem; color: var(--c-white); }
  .site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--c-line-soft); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
  .site-header__in { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
  .logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-marine); text-decoration: none; flex: none; }
  .logo:hover { color: var(--c-marine); }
  .logo__mark { width: 42px; height: auto; }
  .logo__txt { display: grid; line-height: 1; }
  .logo__name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
  .logo__sub { font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.3em; color: var(--c-muted); }
  .logo--light { color: var(--c-white); }
  .logo--light:hover { color: var(--c-white); }
  .logo--light .logo__sub { color: #AFC0D2; }
  .site-nav { margin-left: auto; }
  .site-nav__list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .site-nav__list a { display: inline-flex; align-items: center; gap: 0.35em; min-height: 2.75rem; color: var(--c-ink); font-weight: 600; font-size: 0.975rem; text-decoration: none; position: relative; }
  .site-nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.45rem; height: 2px; background: var(--c-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease); }
  .site-nav__list a:hover::after, .site-nav__list a[aria-current='page']::after { transform: scaleX(1); }
  .site-nav__list a[aria-current='page'] { color: var(--c-marine); }
  .site-nav__hint { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); display: inline-flex; align-items: center; min-height: 2.75rem; }
  .fr-tag { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.05em 0.35em; border: 1px solid var(--c-line); border-radius: var(--r-1); color: var(--c-muted); }
  .site-nav__extra { display: none; }
  /* Version anglaise : 7 entrées sur une seule ligne dès 64em (l'indication « In French » reste lue, les pastilles FR la montrent) */
  @media (min-width: 64em) {
    :root[lang='en'] .site-nav__list { column-gap: 1rem; flex-wrap: nowrap; }
    :root[lang='en'] .site-nav__list a { font-size: 0.9375rem; white-space: nowrap; }
    :root[lang='en'] .site-nav__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  @media (min-width: 64em) and (max-width: 74.99em) {
    :root[lang='en'] .site-nav__list { column-gap: 0.75rem; }
    :root[lang='en'] .site-nav__list a { font-size: 0.875rem; }
    :root[lang='en'] .hdr-assist .ai-tag { display: none; }
  }
  .site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
  .hdr-assist { min-height: 2.75rem; padding-inline: 0.85em; }
  .hdr-assist[aria-current='page'] { box-shadow: 0 0 0 2px var(--c-orange); }
  .ai-tag { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.1em 0.4em; border-radius: var(--r-1); background: var(--c-orange); color: var(--c-ink); }
  .lang-switch { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; border-radius: var(--r-2); font-family: var(--font-mono); font-weight: 600; font-size: 0.875rem; color: var(--c-marine); text-decoration: none; border: 1.5px solid var(--c-line); }
  .lang-switch:hover { border-color: var(--c-marine); color: var(--c-marine); }
  .menu-btn { display: none; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--c-line); border-radius: var(--r-2); background: var(--c-white); }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 2px; background: var(--c-marine); border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
  .menu-btn__bars { position: relative; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  @media (max-width: 63.99em) {
    .site-header__in { flex-wrap: wrap; }
    .site-nav { order: 3; width: 100%; margin-left: 0; padding-bottom: 0.5rem; }
    .js .site-nav { display: none; }
    .js .menu-btn { display: grid; }
    .js .site-header__actions { margin-left: auto; }
    .menu-open .site-nav {
      display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; padding: var(--sp-5) var(--gutter) var(--sp-7);
      background: var(--c-white); border-top: 1px solid var(--c-line-soft);
    }
    .menu-open .site-nav__list { flex-direction: column; gap: 0; }
    .menu-open .site-nav__list a { font-size: 1.375rem; font-weight: 700; min-height: 3.5rem; width: 100%; border-bottom: 1px solid var(--c-line-soft); color: var(--c-marine); }
    .menu-open .site-nav__list a::after { display: none; }
    .menu-open .site-nav__list a[aria-current='page'] { color: var(--c-orange-text); }
    .menu-open .site-nav__extra { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
    .site-nav__note { color: var(--c-muted); font-size: 0.9375rem; }
    .menu-open body { overflow: hidden; }
    /* Le flou d'arrière-plan ferait de l'en-tête le bloc conteneur du panneau fixe : on le retire menu ouvert. */
    .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-white); }
    .menu-open .fab { visibility: hidden; }
    .hdr-assist span:not(.ai-tag) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  }
  @media (max-width: 22em) { .logo__sub { display: none; } .hdr-assist .ai-tag { display: none; } }
  @media (min-width: 64em) and (max-width: 74.99em) { .site-nav__list { gap: 0.25rem 0.9rem; } .site-nav__list a { font-size: 0.925rem; } .hdr-assist span:not(.ai-tag) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

  /* ---------- fil d'Ariane ---------- */
  .crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.875rem; color: var(--c-muted); margin-bottom: var(--sp-5); }
  .crumbs li + li::before { content: '/'; margin-right: 0.5rem; color: var(--c-line); }
  .crumbs a { color: var(--c-muted); }
  .crumbs a:hover { color: var(--c-orange-text); }

  /* ---------- pied de page ---------- */
  .site-footer { position: relative; background: var(--c-marine); color: #C9D5E2; padding: calc(14px + var(--sp-8)) 0 calc(var(--sp-7) + var(--badge-h, 0px)); font-size: 0.9375rem; }
  .site-footer a { color: #E8EEF5; text-decoration: none; }
  .site-footer a:hover { color: var(--c-orange-soft); text-decoration: underline; }
  .ft-top { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
  .ft-brand { grid-column: 1 / -1; display: grid; gap: var(--sp-4); align-content: start; justify-items: start; }
  @media (min-width: 64em) { .ft-top { grid-template-columns: 1.25fr 1fr 1fr 0.8fr 1.45fr; } .ft-brand { grid-column: auto; } }
  .site-footer ul { list-style: none; padding: 0; }
  .ft-sig { font-size: var(--step-1); font-weight: 700; color: var(--c-white); line-height: 1.25; max-width: 16ch; }
  .ft-route { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--c-orange-soft); }
  .ft-route i { width: 1.75rem; border-top: 2px dashed #4E6B8A; }
  .ft-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-orange-soft); font-weight: 600; margin-bottom: var(--sp-3); }
  .ft-title--sp { margin-top: var(--sp-5); }
  .ft-col ul { display: grid; gap: 0.15rem; }
  .ft-col li a { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.5rem; }
  .ft-contacts .i { color: var(--c-orange-soft); width: 1.1em; height: 1.1em; }
  .ft-hours p { margin-bottom: 0.25rem; }
  .muted-on-dark { color: #9FB2C6; font-size: 0.875rem; }
  .ft-bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between; }
  .ft-legal { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
  .ft-legal a { display: inline-flex; min-height: 2.5rem; align-items: center; }
  .ft-copy { color: #9FB2C6; font-size: 0.875rem; align-self: center; }
  .ft-demo { margin-top: var(--sp-4); font-size: 0.875rem; color: #9FB2C6; }
  .ft-demo a { color: var(--c-orange-soft); text-decoration: underline; }

  /* ---------- formulaires ---------- */
  .field { display: grid; gap: 0.35rem; align-content: start; min-width: 0; border: 0; padding: 0; }
  .field__label { font-weight: 700; font-size: 0.9375rem; color: var(--c-marine); padding: 0; }
  .field__input {
    width: 100%; min-height: 3rem; padding: 0.65em 0.85em; border: 1.5px solid var(--c-control); border-radius: var(--r-2); background: var(--c-white);
    color: var(--c-ink); font-size: 1rem; line-height: 1.4; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
  }
  .field__input:hover { border-color: var(--c-marine); }
  .field__input:focus-visible { outline: none; border-color: var(--c-marine); box-shadow: 0 0 0 3px rgb(184 70 11 / 0.35), 0 0 0 1px var(--c-marine) inset; }
  .field__input[aria-invalid='true'] { border-color: var(--c-stop); background: #FFFBFA; }
  .field__input--short { max-width: 14rem; }
  select.field__input { appearance: none; padding-right: 2.5em; background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%230B2A4A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8em center / 1.1em; }
  textarea.field__input { resize: vertical; min-height: 7rem; }
  .field__help { font-size: 0.875rem; color: var(--c-muted); }
  .field__error { display: flex; gap: 0.4em; font-size: 0.875rem; font-weight: 700; color: var(--c-stop); }
  .field__error::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--c-stop); color: var(--c-white); font-size: 0.75rem; margin-top: 0.1em; }
  .field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
  .field--check input { width: 1.375rem; height: 1.375rem; margin-top: 0.15rem; accent-color: var(--c-marine); }
  .field--check label { font-weight: 600; cursor: pointer; }
  .req { font-weight: 500; color: var(--c-muted); font-size: 0.8125rem; }
  .seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .seg label { position: relative; }
  .seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
  .seg label > span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4em 1em; border: 1.5px solid var(--c-line); border-radius: var(--r-pill); font-weight: 600; font-size: 0.9375rem; background: var(--c-white); transition: all var(--dur-1) var(--ease); }
  .seg input:checked + span { background: var(--c-marine); border-color: var(--c-marine); color: var(--c-white); }
  .seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  .seg label:hover > span { border-color: var(--c-marine); }
  .tform__row { display: flex; gap: 0.5rem; }
  .tform__row .field__input { flex: 1; min-width: 0; }
  .tform .field__help, .tform .field__error { margin-top: 0.4rem; }
  .info-note { display: flex; gap: 0.6em; margin-top: var(--sp-5); padding: 0.9rem 1rem; border-radius: var(--r-2); background: var(--c-white); font-size: 0.9375rem; color: var(--c-muted); border: 1px solid var(--c-line-soft); }
  .info-note .i { color: var(--c-marine); margin-top: 0.15em; }
  .nojs-note { color: var(--c-muted); font-size: 0.9375rem; }
  .js .nojs-note { display: none; }
  .notice { display: flex; gap: 0.75em; padding: 1rem 1.2rem; border-radius: var(--r-2); background: var(--c-warn-bg); color: #5C3C00; font-weight: 600; font-size: 0.9375rem; border-left: 4px solid var(--c-warn); max-width: 60rem; }
  .notice .i { color: var(--c-warn); margin-top: 0.1em; }

  /* ---------- tableaux ---------- */
  .table-wrap { position: relative; overflow-x: auto; margin-block: var(--sp-5); border-radius: var(--r-3); border: 1px solid var(--c-line-soft); background: var(--c-white); }
  .tbl { width: 100%; min-width: 38rem; font-size: 0.9375rem; }
  .tbl caption { text-align: left; padding: 1rem 1.1rem 0.6rem; font-weight: 800; color: var(--c-marine); font-size: 1rem; caption-side: top; }
  .tbl th, .tbl td { padding: 0.8rem 1.1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--c-line-soft); }
  .tbl thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; background: var(--c-beton); border-top: 0; }
  .tbl tbody th { font-weight: 700; color: var(--c-marine); }
  .tbl tbody th small, .tbl td small { display: block; font-weight: 500; color: var(--c-muted); font-size: 0.8125rem; margin-top: 0.15rem; }
  .tbl .num { font-weight: 800; color: var(--c-marine); white-space: nowrap; }
  .th-ic { display: inline-flex; align-items: center; gap: 0.45em; }
  .th-ic .i { color: var(--c-orange-text); }
  .tbl tbody tr:hover { background: #FAFBFC; }
  .tbl--tools code { color: var(--c-orange-text); font-weight: 600; font-size: 0.875rem; }

  /* ---------- FAQ ---------- */
  .faq { border-bottom: 1px solid var(--c-line); }
  .faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; font-weight: 700; color: var(--c-marine); cursor: pointer; min-height: 3rem; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: ''; flex: none; width: 0.65rem; height: 0.65rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-2) var(--ease); }
  .faq[open] summary::after { transform: rotate(-135deg); }
  .faq summary:hover { color: var(--c-orange-text); }
  .faq__a { padding-bottom: 1.2rem; color: var(--c-muted); max-width: 65ch; }
  .h-faq { font-size: var(--step-2); margin-bottom: var(--sp-3); }

  /* ---------- listes à coches et numérotées ---------- */
  .checklist { display: grid; gap: 0.85rem; margin-block: var(--sp-5); }
  .checklist li { position: relative; padding-left: 2rem; }
  .checklist li::before { content: ''; position: absolute; left: 0.15rem; top: 0.45em; width: 1.05rem; height: 0.6rem; border-left: 2.5px solid var(--c-ok); border-bottom: 2.5px solid var(--c-ok); transform: rotate(-45deg); }
  .numlist { counter-reset: n; display: grid; gap: 1rem; }
  .numlist li { counter-increment: n; position: relative; padding-left: 3rem; }
  .numlist li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-weight: 600; color: var(--c-orange-text); font-size: 0.9375rem; padding: 0.1em 0.4em; border: 1.5px solid var(--c-orange-text); border-radius: var(--r-1); line-height: 1.3; }

  /* ---------- photos ---------- */
  .ph { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); background: var(--c-beton-2); }

  /* ---------- étiquettes de service (3 façons d'envoyer) ---------- */
  .svc-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
  .svc {
    --notch: 13px; position: relative; display: grid; grid-template-rows: auto 1fr auto; background: var(--c-white); border-radius: var(--r-3);
    box-shadow: var(--sh-1); overflow: hidden; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  }
  .svc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
  .section--beton .svc { box-shadow: none; }
  .svc__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
  .svc__media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgb(11 42 74 / 0.35), transparent); }
  .svc__body { padding: 1.4rem 1.4rem 1rem; display: grid; gap: 0.6rem; align-content: start; }
  .svc__code { display: flex; justify-content: space-between; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--c-muted); }
  .svc__code > span:not(.rt) { color: var(--c-orange-text); font-weight: 600; }
  .svc__title { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-1); }
  .svc__title .i { color: var(--c-orange-text); }
  .svc__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem; color: var(--c-marine); }
  .svc__price b { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .svc__price span { font-weight: 600; color: var(--c-muted); }
  .svc__xaf { font-size: 0.8125rem; color: var(--c-muted); }
  .svc__f { display: grid; margin-top: 0.4rem; border-top: 1.5px dashed var(--c-line); }
  .svc__f div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--c-line-soft); font-size: 0.9375rem; }
  .svc__f dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); padding-top: 0.2em; }
  .svc__f dd { font-weight: 600; }
  .svc__best { font-size: 0.9375rem; color: var(--c-muted); }
  .svc .barcode { padding: 0.9rem 1.4rem 1.2rem; border-top: 1.5px dashed var(--c-line); position: relative; }
  .svc .barcode::before, .svc .barcode::after { content: ''; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(2 * var(--notch)); height: calc(2 * var(--notch)); border-radius: 50%; background: var(--c-beton); }
  .section:not(.section--beton) .svc .barcode::before, .section:not(.section--beton) .svc .barcode::after { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line-soft); }
  .svc .barcode::before { left: calc(-1 * var(--notch)); } .svc .barcode::after { right: calc(-1 * var(--notch)); }
  .svc--back .svc__media .ph { object-position: 50% 70%; }

  /* ---------- messages (extrait et conversation réelle) ---------- */
  .msg { display: flex; gap: 0.6rem; align-items: flex-end; max-width: 100%; }
  .msg--u { justify-content: flex-end; flex-direction: column; align-items: flex-end; }
  .msg__bubble { padding: 0.7rem 0.95rem; border-radius: 1.1rem; font-size: 0.9875rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
  .msg--u .msg__bubble { background: var(--c-marine); color: var(--c-white); border-bottom-right-radius: 0.3rem; max-width: 85%; }
  .msg--b .msg__bubble { background: var(--c-white); color: var(--c-ink); border-bottom-left-radius: 0.3rem; box-shadow: 0 1px 1px rgb(11 42 74 / 0.06); }
  .msg__body { display: grid; gap: 0.5rem; min-width: 0; flex: 1; max-width: 100%; justify-items: start; }
  .msg__body > .card, .msg__body > div { width: 100%; }
  .msg__av { position: relative; display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c-marine); color: var(--c-white); margin-bottom: 0.15rem; }
  .msg__av svg { width: 1.2rem; height: auto; margin-top: -0.25rem; }
  .msg__av b { position: absolute; bottom: -0.3rem; right: -0.35rem; font-family: var(--font-mono); font-size: 0.5625rem; padding: 0.05em 0.3em; border-radius: var(--r-1); background: var(--c-orange); color: var(--c-ink); }
  .msg__demo { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--c-muted); text-transform: uppercase; }
  .msg__why { border: 0; background: none; padding: 0.35rem 0.1rem; min-height: 2rem; font-size: 0.8125rem; font-weight: 700; color: var(--c-orange-text); text-decoration: underline; text-underline-offset: 0.2em; display: inline-flex; align-items: center; gap: 0.35em; }
  .msg__why:hover { color: var(--c-marine); }
  .msg__why .i { width: 1em; height: 1em; }
  .mini-track { background: var(--c-white); border-radius: var(--r-3); padding: 0.85rem 1rem; border: 1px solid var(--c-line-soft); }
  .mini-track__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 0.6rem; }
  .mini-track ol { display: grid; gap: 0.35rem; }
  .mini-track li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--c-ok); }
  .mini-track li.is-cur { color: var(--c-warn); }
  .mini-track li.is-next { color: var(--c-muted); font-weight: 500; }
  .mini-track li .i { width: 1.1em; height: 1.1em; }
  .mini-track__src { margin-top: 0.6rem; font-size: 0.75rem; color: var(--c-muted); }

  /* ---------- il sait faire / il ne fait jamais / il passe la main ---------- */
  .can-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .can { padding: 1.4rem 1.4rem 1.6rem; border-radius: var(--r-3); background: var(--c-beton); }
  .can__t { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step-1); margin-bottom: 0.9rem; }
  .can__t .i { width: 2rem; height: 2rem; padding: 0.35rem; border-radius: 50%; background: var(--c-ok-bg); color: var(--c-ok); }
  .can--1 .can__t .i { background: var(--c-stop-bg); color: var(--c-stop); }
  .can--2 .can__t .i { background: var(--c-orange-pale); color: var(--c-orange-text); }
  .can ul { display: grid; gap: 0.45rem; list-style: none; padding: 0; }
  .can li { position: relative; padding-left: 1.2rem; }
  .can li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 0.45rem; height: 2px; background: var(--c-orange); }
  .band--marine .can { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.1); }
  .band--marine .can li { color: #DCE5EF; }

  /* ---------- cartes de l'agent et des pages (cards.js) ---------- */
  .card { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-3); padding: 1rem 1.1rem; display: grid; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.5; min-width: 0; }
  .card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; }
  .card__head > .i { width: 1.6rem; height: 1.6rem; color: var(--c-orange-text); }
  .card__kicker { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--c-muted); text-transform: uppercase; }
  .card__title { font-size: 1.125rem; color: var(--c-marine); margin-top: 0.15rem; letter-spacing: -0.01em; }
  .card__title.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
  .card__sub { color: var(--c-muted); font-size: 0.875rem; }
  .card__note { font-size: 0.8125rem; color: var(--c-muted); display: flex; gap: 0.4em; }
  .card__note .i { width: 1.1em; height: 1.1em; color: var(--c-ok); }
  .card__src { display: flex; gap: 0.45em; align-items: flex-start; padding-top: 0.65rem; border-top: 1px dashed var(--c-line); font-size: 0.8125rem; color: var(--c-muted); }
  .card__src .i { width: 1.05em; height: 1.05em; margin-top: 0.15em; color: var(--c-marine); }
  .card__next { display: flex; gap: 0.5em; font-size: 0.875rem; padding: 0.6rem 0.75rem; border-radius: var(--r-2); background: var(--c-sky); color: var(--c-marine); }
  .card__next .i { width: 1.1em; height: 1.1em; margin-top: 0.15em; }
  .card__todo { display: flex; gap: 0.6rem; padding: 0.75rem 0.85rem; border-radius: var(--r-2); background: var(--c-stop-bg); color: #6E1712; }
  .card__todo .i { color: var(--c-stop); margin-top: 0.1em; }
  .card__todo b { display: block; color: var(--c-stop); }
  .card__dl { display: grid; gap: 0.5rem; }
  .card__dl dt { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
  .card__dl dd { font-weight: 600; }
  .card__dl--grid { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.6rem 1rem; }
  .card__list { display: grid; gap: 0.2rem; padding-left: 1.1rem; list-style: disc; color: var(--c-muted); font-size: 0.875rem; }
  .card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .muted { color: var(--c-muted); font-weight: 400; }
  .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .tag--hyp { padding: 0.25em 0.65em; border-radius: var(--r-1); background: var(--c-orange-pale); color: #6E2B06; font-size: 0.8125rem; font-weight: 600; border: 1px dashed #E7A16F; }
  .tl { display: grid; gap: 0; position: relative; }
  .tl__item { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; position: relative; padding-bottom: 0.7rem; }
  .tl__item:not(:last-child)::before { content: ''; position: absolute; left: calc(1rem - 1px); top: 2rem; bottom: 0; border-left: 2px solid var(--c-marine); }
  .tl__item.is-current:not(:last-child)::before, .tl__item.is-next:not(:last-child)::before { border-left: 2px dashed var(--c-line); }
  .tl__dot { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-marine); color: var(--c-white); }
  .tl__dot .i { width: 1rem; height: 1rem; }
  .tl__item.is-current .tl__dot { background: var(--c-orange); color: var(--c-ink); box-shadow: 0 0 0 4px var(--c-orange-pale); }
  .tl__item.is-next .tl__dot { background: var(--c-white); color: var(--c-muted); border: 2px dashed var(--c-line); }
  .tl__txt { display: grid; padding-top: 0.2rem; }
  .tl__txt b { color: var(--c-marine); line-height: 1.3; }
  .tl__item.is-next .tl__txt b { color: var(--c-muted); font-weight: 600; }
  .tl__when { font-size: 0.75rem; color: var(--c-muted); letter-spacing: 0.02em; }
  .tl__place { font-size: 0.875rem; color: var(--c-ink); }
  .qt-wrap { position: relative; overflow-x: auto; }
  .qt { width: 100%; font-size: 0.875rem; }
  .qt th, .qt td { padding: 0.55rem 0.5rem; text-align: left; vertical-align: top; border-top: 1px solid var(--c-line-soft); }
  .qt thead th { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; border-top: 0; }
  .qt tbody th { display: flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--c-marine); white-space: nowrap; }
  .qt tbody th .i { width: 1.1em; height: 1.1em; color: var(--c-orange-text); }
  .qt__delay { display: block; color: var(--c-muted); font-size: 0.8125rem; }
  .qt__price { text-align: right !important; white-space: nowrap; }
  .qt__price b { display: block; font-size: 1.125rem; color: var(--c-marine); font-weight: 800; }
  .qt__price small { color: var(--c-muted); font-size: 0.75rem; }
  .qt tr.is-off td { color: var(--c-muted); font-style: normal; }
  .qt__opts { display: grid; gap: 0.3rem; font-size: 0.875rem; }
  .qt__opts li { display: flex; align-items: center; gap: 0.45em; }
  .qt__opts .i { width: 1.05em; height: 1.05em; color: var(--c-marine); }
  .qt__total { padding-top: 0.4rem; border-top: 1px solid var(--c-line-soft); color: var(--c-marine); }
  .dep-list { display: grid; gap: 0.6rem; }
  .dep { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-3); padding: 1rem 1.1rem; display: grid; gap: 0.7rem; align-content: start; position: relative; }
  .dep::before { content: ''; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--c-marine); }
  .dep--air::before { background: var(--c-orange); }
  .dep__head { display: flex; align-items: center; gap: 0.5rem; }
  .dep__head .i { color: var(--c-orange-text); }
  .dep__head h3 { font-size: 1.0625rem; flex: 1; }
  .dep__code { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--c-muted); }
  .dep__lines { display: grid; font-size: 0.875rem; }
  .dep__lines li { display: grid; gap: 0.05rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--c-line-soft); }
  .dep__lines span { color: var(--c-muted); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .dep__lines b { color: var(--c-marine); }
  .dep__lines .dep__avail b { color: var(--c-ok); }
  .dep__lines .dep__past { color: var(--c-warn); font-weight: 600; }
  .dep .btn { justify-self: start; }
  .dpt-list { display: grid; gap: 0.6rem; }
  .dpt { display: grid; gap: 0.35rem; padding: 0.8rem 0.9rem; border-radius: var(--r-2); background: var(--c-beton); }
  .dpt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
  .dpt__head h3 { font-size: 1rem; }
  .dpt__km { font-size: 0.75rem; color: var(--c-orange-text); font-weight: 600; white-space: nowrap; }
  .dpt__addr { font-size: 0.875rem; }
  .dpt__tel a { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; min-height: 2.5rem; }
  .dpt__tel .i { width: 1.05em; height: 1.05em; }
  .hours { width: 100%; font-size: 0.8125rem; }
  .hours th, .hours td { padding: 0.18rem 0; text-align: left; }
  .hours th { font-weight: 600; color: var(--c-muted); width: 3.5rem; }
  .hours td { font-variant-numeric: tabular-nums; }
  .hours .is-closed td { color: var(--c-muted); }
  .slots { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .slot { display: inline-grid; place-items: center; min-width: 4.5rem; min-height: 2.75rem; padding: 0.3rem 0.6rem; border-radius: var(--r-2); border: 1.5px solid var(--c-marine); background: var(--c-white); color: var(--c-marine); font-weight: 700; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
  button.slot:hover { background: var(--c-marine); color: var(--c-white); }
  .slot.is-full { border-style: dashed; border-color: var(--c-line); color: var(--c-muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--c-line); line-height: 1.1; }
  .slot.is-full small { font-size: 0.6875rem; text-decoration: none; display: block; }
  .channels { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .callback { border-top: 1px dashed var(--c-line); padding-top: 0.6rem; }
  .callback summary { display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.75rem; font-weight: 700; color: var(--c-marine); cursor: pointer; }
  .callback summary .i { width: 1.1em; height: 1.1em; }
  .callback__form { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
  .callback__ok { padding: 0.7rem 0.85rem; border-radius: var(--r-2); background: var(--c-ok-bg); color: #10462B; font-weight: 600; }
  .card--handoff { border: 2px solid var(--c-marine); }
  .card--handoff textarea { min-height: 7.5rem; font-size: 0.9375rem; }
  .card--confirm { border: 2px solid var(--c-ok); }
  .card--recap { border: 2px dashed var(--c-warn); }
  .card--departs { padding: 0.75rem; background: var(--c-beton); }
  .card--depots { padding: 0.75rem; }
  .card--source { padding: 0.6rem 0.85rem; background: var(--c-sky); border-color: transparent; }
  .card--source .card__src { border: 0; padding: 0; }

  /* ---------- bouton flottant et widget ---------- */
  .fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 56px; padding: 0 1.15rem 0 1rem; border: 0; border-radius: var(--r-pill); background: var(--c-orange); color: var(--c-ink);
    font-weight: 800; font-size: 0.975rem; text-decoration: none; box-shadow: 0 12px 28px -8px rgb(11 42 74 / 0.55), 0 0 0 3px var(--c-white);
    transition: transform var(--dur-2) var(--ease), background-color var(--dur-1) var(--ease), bottom var(--dur-2) var(--ease);
  }
  .fab:hover { transform: translateY(-2px); background: #F57A31; color: var(--c-ink); }
  .fab .i { width: 1.4rem; height: 1.4rem; }
  .fab__ai { font-family: var(--font-mono); font-size: 0.6875rem; padding: 0.1em 0.4em; border-radius: var(--r-1); background: var(--c-marine); color: var(--c-white); }
  @media (max-width: 47.99em) { .fab { bottom: calc(16px + var(--badge-h, 0px)); } }
  @media (max-width: 39.99em) { .fab { width: 56px; padding: 0; justify-content: center; } .fab .fab__txt, .fab .fab__ai { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
  .fab[aria-expanded='true'] { opacity: 0; pointer-events: none; }

  /* ---------- filtres (aria-pressed) ---------- */
  .filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .filter { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.75rem; padding: 0.4em 0.95em; border: 1.5px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-white); color: var(--c-marine); font-weight: 700; font-size: 0.875rem; transition: all var(--dur-1) var(--ease); }
  .filter .i { width: 1.1em; height: 1.1em; }
  .filter:hover { border-color: var(--c-marine); }
  .filter[aria-pressed='true'] { background: var(--c-marine); border-color: var(--c-marine); color: var(--c-white); }
}

/* =========================================================== UTILITIES */
@layer utilities {
  /* Rendu paresseux des sections hors écran : le navigateur ne met en page que ce qui est visible,
     ce qui allège le premier affichage sur mobile. La hauteur réelle est mémorisée dès la première
     apparition (« auto »). Contenu toujours accessible. Limité aux sections claires et à la bande orange (texte encre) :
     les bandes foncées et le pied de page restent rendus (contrastes vérifiables par les audits). */
  @media screen {
    main > section.section, main > section.band--orange { content-visibility: auto; contain-intrinsic-size: auto 900px; }
    /* Arrivée par une ancre (« index.html#histoire ») : tout est mis en page, le saut tombe pile sur la cible */
    .cv-off main > section.section, .cv-off main > section.band--orange { content-visibility: visible; }
  }
  sup { font-size: 0.68em; line-height: 0; vertical-align: 0.5em; letter-spacing: 0; text-transform: none; }
  .nowrap { white-space: nowrap; }
  .arr { display: inline-block; width: 0.95em; height: 0.6em; margin-inline: 0.06em; vertical-align: 0.08em; flex: none; overflow: visible; }
  .arr--swap { height: 0.72em; vertical-align: -0.02em; }
  .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
  .reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }
}

/* =========================================================== PAGES */
@layer pages {  /* ---------- bande d'info ---------- */
  .infoband { background: var(--c-marine); color: #E8EEF5; font-size: 0.875rem; }
  .infoband__in { display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; min-height: 2.75rem; padding-block: 0.5rem; }
  .infoband__in > .i { color: var(--c-orange-soft); width: 1.1em; height: 1.1em; }
  .infoband p { flex: 1; min-width: 12rem; font-weight: 600; }
  .infoband b { color: var(--c-white); }
  .infoband a { color: var(--c-orange-soft); font-weight: 700; }
  .infoband a:hover { color: var(--c-white); }

  /* ---------- départs ---------- */
  .dep-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
  .dep-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
  .section:not(.section--beton) .dep { background: var(--c-beton); border-color: transparent; }

  /* ---------- appel à l'action orange ---------- */
  .cta { display: grid; gap: var(--sp-5); align-items: center; position: relative; }
  .cta h2 { max-width: 24ch; font-size: var(--step-3); }
  .cta__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  @media (min-width: 64em) { .cta { grid-template-columns: 1fr auto; } }
  .band--orange :focus-visible { outline-color: var(--c-ink); }

  /* ---------- en-tête des pages intérieures ---------- */
  .page-hero { padding-block: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem); background: var(--c-beton); }
  .page-hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: end; }
  @media (min-width: 64em) { .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
  .page-hero__txt { display: grid; gap: var(--sp-4); justify-items: start; padding-bottom: var(--sp-3); }
  .page-hero__txt .crumbs ol { margin-bottom: 0.25rem; }
  .page-hero h1 { max-width: 18ch; }
  .page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-2); }
  .page-hero__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-4); overflow: hidden; box-shadow: var(--sh-2); position: relative; }
  @media (max-width: 63.99em) { .page-hero__media { aspect-ratio: 16 / 9; } }
  .page-hero--plain { background: var(--c-beton); }
  .page-hero--legal .page-hero__txt { max-width: 46rem; }

  /* ---------- formulaire court ---------- */
  .tform { display: grid; gap: 0.35rem; padding: 1.25rem; border-radius: var(--r-3); background: var(--c-white); box-shadow: var(--sh-2); border: 1px solid var(--c-line-soft); }
}

/* =========================================================== IMPRESSION */
@media print {
  .site-header, .site-footer, .fab, .widget, .infoband, .band--orange, [data-demo-badge], .msd-toasts, .scenarios, .tourbar, .chat__form, .chat__chips { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section, .band { padding-block: 1.2rem; }
  .band--marine { background: none; color: #000; }
  .band--marine h2, .band--marine h3 { color: #000; }
  a { color: #000; }
  .chat--page, .app .reason { height: auto !important; }
  .chat__log { overflow: visible; }
}
