/* ===========================================================================
   abiu — feuille de style unique du site vitrine.

   AUCUN STYLE EN LIGNE NULLE PART. `nginx.conf` sert une politique de sécurité
   de contenu en `style-src 'self'` : un bloc <style> ou un attribut style=
   serait purement bloqué et la page s'afficherait nue. Tout vit ici, y compris
   la mise en forme des pages légales (dernière partie du fichier).

   Organisation :
     1.  Jetons de couleur, thème clair et thème sombre
     2.  Base, accessibilité, utilitaires
     3.  Surfaces de section
     4.  En-tête et navigation
     5.  Boutons
     6.  Hero
     7.  Fenêtre produit (maquette)
     8.  Titres de section
     9.  L'essai : ce qui est vrai, ce qui ne l'est pas
     10. Le produit : les piliers
     11. Le métier : le flux
     12. L'avancement : le tableau d'état
     13. Réforme de la facturation
     14. Vos données
     15. Appel à l'action final
     16. Pied de page
     17. Apparition au défilement
     18. Adaptatif, mouvement réduit, impression
     19. Page 404
     20. Pages légales
   =========================================================================== */

/* --- 1. Jetons ----------------------------------------------------------- */

/* Figtree, police de l'identité Soleil, servie par le site (CSP font-src 'self').
   SIL Open Font License 1.1 : assets/fonts/OFL.txt. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/Figtree-Variable.woff2") format("woff2");
}

:root {
  /* Palette Soleil, source : brand/colors/colors.json (2026-09-25). */
  --ink: #1e231f;
  --surface: #1d2320;
  --accent: #f7c21a;
  --paper: #fffbf3;

  --accent-bright: #f7c94a;
  --accent-dark: #7a5200;
  --sage: #2f7a4b;
  --coral: #b3261e;

  /* Bandeaux toujours sombres (en-tête, hero des pages légales). Ils ne
     basculent pas avec le thème : le doré y reste sur fond sombre. */
  --band-bg: #1e231f;
  --band-bg-soft: #272d29;
  --band-fg: #f4f0e7;
  --band-muted: #a7aea8;
  --band-faint: #a7aea8;
  --band-border: rgba(244, 240, 231, 0.16);
  --band-border-strong: rgba(244, 240, 231, 0.34);
  --header-bg: rgba(30, 35, 31, 0.95);
  --header-bg-blur: rgba(30, 35, 31, 0.82);

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* L'identité Soleil n'a qu'une police : les « étiquettes » restent en Figtree. */
  --mono: var(--sans);

  --shell: min(1180px, calc(100vw - 48px));
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;

  --shadow-small: 0 2px 4px rgba(30, 35, 31, 0.05), 0 12px 28px rgba(30, 35, 31, 0.07);
  --shadow-large: 0 8px 20px rgba(30, 35, 31, 0.1), 0 32px 70px rgba(30, 35, 31, 0.14);

  color-scheme: light dark;
  text-rendering: optimizeLegibility;
}

/* Thème clair (défaut) */
:root {
  --bg: #fffbf3;
  --bg-alt: #f6f0e3;
  --bg-raised: #ffffff;
  --fg: #1e231f;
  --fg-muted: #5a615b;
  --fg-faint: #5a615b;
  --border: #e7e0d1;
  --border-strong: #8a8478;
  --accent-text: var(--accent-dark);
  --accent-wash: rgba(242, 178, 0, 0.16);
  --focus: #7a5200;
}

/* Thème sombre */
@media (prefers-color-scheme: dark) {
  :root {
    /* Trois niveaux distincts : page, section alternée, bandeau. */
    --bg: #141815;
    --bg-alt: #101311;
    --bg-raised: #1d2320;
    --fg: #f4f0e7;
    --fg-muted: #a7aea8;
    --fg-faint: #a7aea8;
    --border: #323b35;
    --border-strong: #6e766f;
    --accent-text: var(--accent-bright);
    --accent-wash: rgba(247, 194, 26, 0.1);
    --focus: var(--accent);

    --band-bg: #0c0f0d;
    --band-bg-soft: #1a1f1c;
    --header-bg: rgba(12, 15, 13, 0.95);
    --header-bg-blur: rgba(12, 15, 13, 0.82);

    --sage: #7cc495;
    --coral: #ff8f6b;

    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.24), 0 12px 28px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 8px 20px rgba(0, 0, 0, 0.34), 0 32px 70px rgba(0, 0, 0, 0.42);
  }
}

/* --- 2. Base ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  /* `clip` et non `hidden` : `hidden` fabrique un conteneur de défilement qui
     casse le `position: sticky` du sommaire des pages légales. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

p a:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

p a:not(.button):hover {
  text-decoration-color: currentcolor;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* --- 3. Surfaces --------------------------------------------------------- */

.section {
  position: relative;
  padding: 96px 0;
}

.section-page,
.section-paper {
  background: var(--bg);
  color: var(--fg);
}

.section-alt {
  background: var(--bg-alt);
  color: var(--fg);
  border-block: 1px solid var(--border);
}

/* Bandeau toujours sombre. `.section-dark` est le nom utilisé par les pages
   légales : les deux sélecteurs doivent rester synchronisés. */
.band,
.section-dark {
  --fg: var(--band-fg);
  --fg-muted: var(--band-muted);
  --fg-faint: var(--band-faint);
  --border: var(--band-border);
  --border-strong: var(--band-border-strong);
  --bg-raised: var(--band-bg-soft);
  --accent-text: var(--accent);
  --focus: var(--accent);
  background: var(--band-bg);
  color: var(--band-fg);
}

/* --- 4. En-tête ---------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  --focus: var(--accent);
  /* Opaque dès le départ, et de la MÊME couleur que le bandeau du hero : en
     haut de page l'en-tête s'y fond, et il reste lisible partout ailleurs même
     si `app.js` n'a pas pu poser `.is-scrolled`. Un en-tête transparent
     au-dessus d'une section claire serait un texte clair sur fond clair. */
  border-bottom: 1px solid transparent;
  background: var(--band-bg);
  color: var(--band-fg);
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.site-header.is-scrolled {
  border-color: var(--band-border);
  background: var(--header-bg);
  box-shadow: 0 6px 24px rgba(10, 13, 17, 0.24);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    background: var(--header-bg-blur);
    backdrop-filter: blur(16px);
  }
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: auto;
}

/* Le mot-logo Soleil est dessiné : jamais « abiu » réécrit dans une police. */
.brand .brand-logo {
  width: auto;
  height: 28px;
}

.brand-name {
  line-height: 1;
}

.brand-product {
  margin-left: 4px;
  padding: 5px 9px;
  border: 1px solid var(--band-border-strong);
  border-radius: 999px;
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav > a:not(.button) {
  position: relative;
  padding: 8px 0;
  color: var(--band-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  content: "";
  transition: transform 160ms ease;
}

.main-nav > a:not(.button):hover,
.main-nav > a[aria-current="page"] {
  color: var(--band-fg);
}

.main-nav > a:not(.button):hover::after,
.main-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--band-border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentcolor;
  transition: transform 160ms ease;
}

/* --- 5. Boutons ---------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button > span {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}

.button-accent {
  background: var(--accent);
  color: var(--ink);
}

.button-accent:hover {
  background: var(--accent-bright);
  box-shadow: 0 6px 20px rgba(255, 211, 105, 0.28);
}

.button-accent:focus-visible {
  outline-color: var(--ink);
}

.button-ghost {
  border-color: var(--border-strong);
  color: var(--fg);
}

.button-ghost:hover {
  border-color: currentcolor;
  background: var(--accent-wash);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--surface);
}

.button-dark:focus-visible {
  outline-color: var(--ink);
}

/* --- 6. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 84px;
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(238, 238, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 238, 238, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -280px;
  left: 55%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 211, 105, 0.13), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 211, 105, 0.14);
}

.eyebrow-separator {
  opacity: 0.4;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--band-fg);
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-lede {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--band-muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--band-muted);
  font-size: 15px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--accent);
  content: "";
}

.hero-warning {
  max-width: 58ch;
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 211, 105, 0.42);
  border-radius: var(--radius-medium);
  background: rgba(255, 211, 105, 0.07);
  color: var(--band-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero-warning strong,
.hero-warning a {
  color: var(--band-fg);
}

.hero-warning-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.hero-visual {
  position: relative;
  align-self: center;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px 4px;
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.preview-caption {
  margin: 16px 4px 0;
  color: var(--band-faint);
  font-size: 14px;
  line-height: 1.5;
}

/* --- 7. Fenêtre produit -------------------------------------------------- */

.product-window {
  overflow: hidden;
  border: 1px solid var(--band-border-strong);
  border-radius: var(--radius-medium);
  background: #20262e;
  box-shadow: var(--shadow-large);
}

.window-bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--band-border);
  background: #2b323b;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.window-brand img {
  width: 15px;
  height: auto;
  image-rendering: pixelated;
}

.window-context {
  color: var(--band-faint);
  font-weight: 400;
}

.window-actions {
  display: flex;
  gap: 7px;
}

.window-actions span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6a727d;
}

.window-actions span:first-child {
  background: var(--accent);
}

.order-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--band-border);
}

.order-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ui-label {
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-field strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-field {
  flex: 1 1 auto;
  padding-left: 18px;
  border-left: 1px solid var(--band-border);
}

.ui-status {
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 211, 105, 0.34);
  border-radius: 999px;
  background: rgba(255, 211, 105, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scan-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 18px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 211, 105, 0.4);
  border-radius: var(--radius-small);
  background: rgba(255, 211, 105, 0.05);
}

.scan-icon {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 5px;
  background: var(--accent);
}

.scan-icon span {
  width: 2px;
  height: 13px;
  background: var(--ink);
}

.scan-icon span:nth-child(2) {
  height: 17px;
}

.scan-icon span:nth-child(4) {
  height: 15px;
}

.scan-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.scan-value {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

kbd {
  display: inline-flex;
  min-width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--band-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #343b45;
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.scan-button {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 12px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.order-table {
  padding: 0 18px;
}

.order-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: 1.9fr 0.6fr 0.45fr 0.75fr;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(238, 238, 238, 0.08);
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 13px;
}

.order-head {
  min-height: 30px;
  color: var(--band-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.article > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.article b {
  overflow: hidden;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article small {
  overflow: hidden;
  color: var(--band-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-marker {
  width: 6px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 2px;
}

.marker-gold {
  background: var(--accent);
}

.marker-cream {
  background: #d8d0bc;
}

.marker-sage {
  background: #9fc3ad;
}

.stock-ok {
  color: #9fc3ad;
}

.stock-low {
  color: #eb8c78;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 20px;
}

.shortcut-list {
  display: flex;
  gap: 14px;
}

.shortcut-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 11px;
}

.order-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.order-total > span {
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-total strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* --- 8. Titres de section ------------------------------------------------ */

.section-heading {
  margin-bottom: 52px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 56px;
}

.compact-heading {
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker-light {
  color: var(--accent);
}

.section-heading h2,
.real-statement h2,
.compliance-copy h2,
.trust-copy h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-heading > p,
.split-heading > p {
  max-width: 52ch;
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.compact-heading > p {
  margin-top: 18px;
}

/* --- 8 bis. Vidéo de présentation ---------------------------------------- */

.video-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--band-bg);
  box-shadow: var(--shadow-small);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* --- 9. L'essai ---------------------------------------------------------- */

.truth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.truth-card {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--bg-raised);
}

.truth-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
}

.truth-card p:not(.truth-tag) {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-size: 16px;
}

.truth-card p:last-child {
  margin-bottom: 0;
}

.truth-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.truth-tag::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
}

.truth-yes .truth-tag {
  color: var(--sage);
}

.truth-yes .truth-tag::before {
  background: var(--sage);
}

.truth-warn {
  grid-column: 1 / -1;
  border-color: var(--accent);
  border-left-width: 5px;
  background: var(--accent-wash);
}

.truth-warn .truth-tag {
  color: var(--accent-text);
}

.truth-warn .truth-tag::before {
  background: var(--accent-text);
}

.truth-warn h3 {
  font-size: 23px;
}

.truth-warn p:not(.truth-tag) {
  max-width: 78ch;
  color: var(--fg);
}

.note-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 88ch;
  margin: 32px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 16px;
}

.note-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.note-line strong {
  color: var(--fg);
}

/* --- 10. Le produit ------------------------------------------------------ */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--bg-raised);
}

.pillar-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--accent-wash);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent-text);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.pillar h3 {
  margin: 22px 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.pillar > p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 16px;
}

.pillar-list {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.pillar-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 20px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.pillar-list li:last-child {
  margin-bottom: 0;
}

.pillar-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-text);
  content: "";
}

/* --- 11. Le métier ------------------------------------------------------- */

.real-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 64px;
}

.real-statement h2 span {
  position: relative;
  white-space: nowrap;
}

/* Soulignement plein sous le mot, et non surlignage par-dessus : le texte
   garde son contraste intégral dans les deux thèmes. */
.real-statement h2 span::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.real-statement > p:not(.kicker) {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.flow-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--bg-raised);
  box-shadow: var(--shadow-small);
}

.flow-track {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-track::before {
  position: absolute;
  z-index: 0;
  top: 34px;
  bottom: 34px;
  left: 33px;
  width: 2px;
  background: var(--border);
  content: "";
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
}

.flow-index {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.flow-step-active {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.flow-step-active .flow-index {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.flow-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.flow-body b {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.flow-body small {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.45;
}

.flow-state {
  flex: 0 0 auto;
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.flow-caption {
  margin: 16px 4px 2px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 15px;
}

/* --- 12. L'avancement ---------------------------------------------------- */

.status-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--bg-raised);
  overflow: hidden;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-head {
  background: var(--bg-alt);
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-name {
  font-size: 17px;
  font-weight: 650;
}

.status-desc {
  color: var(--fg-muted);
  font-size: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 6px 14px;
  border: 1px solid currentcolor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.badge-build {
  color: var(--accent-text);
}

.badge-road {
  color: var(--fg-faint);
}

/* --- 13. Réforme --------------------------------------------------------- */

.compliance-section {
  overflow: hidden;
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.compliance-lede {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--band-muted);
  font-size: 17px;
}

.roadmap-note {
  display: flex;
  max-width: 60ch;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 211, 105, 0.4);
  border-radius: var(--radius-medium);
  background: rgba(255, 211, 105, 0.07);
  color: var(--band-muted);
  font-size: 16px;
}

.roadmap-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--band-fg);
}

.roadmap-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
}

.deadline-card {
  overflow: hidden;
  border: 1px solid var(--band-border-strong);
  border-radius: var(--radius-medium);
  background: var(--band-bg-soft);
  box-shadow: var(--shadow-large);
}

.deadline-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--band-border);
  color: var(--band-fg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--band-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.live-source i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fc3ad;
}

.deadline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 22px;
  border-bottom: 1px solid var(--band-border);
}

.deadline-row time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
  border-right: 1px solid var(--band-border);
  font-family: var(--mono);
}

.deadline-row time span {
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.deadline-row time b {
  color: var(--band-faint);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.deadline-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.deadline-row h3 {
  margin: 0 0 6px;
  color: var(--band-fg);
  font-size: 20px;
  font-weight: 700;
}

.deadline-row div > p:not(.deadline-label) {
  max-width: 44ch;
  margin: 0;
  color: var(--band-muted);
  font-size: 15px;
  line-height: 1.55;
}

.source-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.source-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--band-fg);
}

.source-link span {
  color: var(--accent);
  font-size: 16px;
}

/* --- 14. Vos données ----------------------------------------------------- */

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.trust-copy > p:not(.kicker) {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.trust-points {
  margin: 30px 0 0;
  border-top: 1px solid var(--border);
}

.trust-points > div {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.trust-points dt {
  font-size: 16px;
  font-weight: 700;
}

.trust-points dd {
  margin: 0;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.5;
}

.trust-visual {
  display: grid;
  justify-items: center;
}

.database-orbit {
  position: relative;
  display: grid;
  width: min(400px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.database-orbit::before,
.database-orbit::after {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
}

.database-orbit::before {
  inset: 17%;
}

.database-orbit::after {
  inset: 35%;
  background: var(--accent-wash);
}

.db-core {
  position: relative;
  z-index: 3;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--ink);
  box-shadow: var(--shadow-small);
}

.db-core img {
  width: 42px;
  height: auto;
  image-rendering: pixelated;
}

.db-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
  box-shadow: var(--shadow-small);
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.db-node::before {
  width: 7px;
  height: 7px;
  background: var(--accent-text);
  content: "";
}

.db-node-one {
  top: 4%;
  left: 8%;
}

.db-node-two {
  top: 46%;
  right: -4%;
}

.db-node-three {
  bottom: 6%;
  left: 4%;
}

.trust-caption {
  margin: 22px 0 0;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

/* --- 15. Appel à l'action ------------------------------------------------ */

.cta-section {
  padding: 72px 0;
  background: var(--band-bg);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--accent);
  color: var(--ink);
}

.cta-fruit {
  position: absolute;
  right: 2%;
  bottom: -46px;
  opacity: 0.16;
  filter: saturate(0) contrast(2);
  transform: rotate(-8deg) scale(1.3);
}

.cta-fruit img {
  image-rendering: pixelated;
}

.cta-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 52px 56px;
}

.eyebrow-dark {
  color: rgba(34, 40, 49, 0.72);
}

.eyebrow-dark .status-dot {
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(34, 40, 49, 0.12);
}

.cta-copy > p {
  max-width: 60ch;
  margin: 18px 0 26px;
  color: rgba(34, 40, 49, 0.82);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.cta-mail {
  color: rgba(34, 40, 49, 0.86);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(34, 40, 49, 0.42);
  text-underline-offset: 4px;
}

.cta-mail:hover {
  text-decoration-color: currentcolor;
}

.cta-card :focus-visible {
  outline-color: var(--ink);
}

.cta-small {
  max-width: 60ch;
  margin: 24px 0 0;
  color: rgba(34, 40, 49, 0.78);
  font-size: 15px;
}

/* --- 16. Pied de page ---------------------------------------------------- */

.site-footer {
  padding: 62px 0 22px;
  border-top: 1px solid var(--band-border);
  background: var(--band-bg);
  color: var(--band-fg);
  --focus: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--band-muted);
  font-size: 15px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-column > span {
  margin-bottom: 4px;
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--band-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--band-border);
  color: var(--band-faint);
  font-family: var(--mono);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--band-muted);
}

/* --- 17. Apparition au défilement ---------------------------------------- */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-ready [data-reveal-delay="1"] {
  transition-delay: 70ms;
}

.reveal-ready [data-reveal-delay="2"] {
  transition-delay: 140ms;
}

.reveal-ready [data-reveal-delay="3"] {
  transition-delay: 210ms;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- 18. Adaptatif ------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero {
    padding-top: 132px;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .real-grid,
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .trust-visual {
    order: 2;
  }

  .truth-grid,
  .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .truth-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .split-heading {
    gap: 36px;
  }

  .main-nav {
    gap: 20px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 100dvh;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    padding: 96px 24px 32px;
    background: var(--band-bg);
    opacity: 0;
    font-size: 19px;
    transition:
      visibility 160ms,
      opacity 160ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .main-nav > a:not(.button) {
    padding: 16px 0;
    border-bottom: 1px solid var(--band-border);
  }

  .main-nav .button {
    margin-top: 24px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .truth-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .truth-card:nth-child(3) {
    grid-column: auto;
  }

  .status-row {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
    padding: 18px 20px;
  }

  .status-head {
    display: none;
  }

  .status-name {
    grid-area: 1 / 1;
  }

  .status-badge {
    grid-area: 1 / 2;
    align-self: start;
  }

  .status-desc {
    grid-area: 2 / 1 / 3 / -1;
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta-copy {
    padding: 44px 36px;
  }

  .cta-fruit {
    right: -12%;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  html {
    scroll-padding-top: 78px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-product {
    display: none;
  }

  .hero {
    padding: 112px 0 64px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.4vw, 42px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .eyebrow {
    flex-wrap: wrap;
    gap: 6px 9px;
    font-size: 12px;
  }

  .eyebrow-separator {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    flex-direction: column;
    gap: 8px;
  }

  .order-toolbar {
    gap: 14px;
    padding: 12px 14px;
  }

  .customer-field {
    display: none;
  }

  .scan-entry {
    margin: 12px 14px;
    gap: 10px;
  }

  .scan-entry kbd {
    display: none;
  }

  .order-table {
    padding: 0 14px;
  }

  .order-row {
    grid-template-columns: 1.7fr 0.5fr 0.4fr 0.75fr;
    font-size: 12px;
  }

  .article b {
    font-size: 13px;
  }

  .article small {
    display: none;
  }

  .order-footer {
    padding: 14px 14px 16px;
  }

  .shortcut-list span:nth-child(2) {
    display: none;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .flow-panel {
    padding: 12px;
  }

  .flow-step {
    gap: 12px;
    padding: 10px 8px;
  }

  .flow-state {
    display: none;
  }

  .flow-track::before {
    left: 29px;
  }

  .trust-points > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .deadline-row {
    grid-template-columns: 84px 1fr;
    gap: 16px;
    padding: 22px 16px;
  }

  .deadline-row time {
    padding-right: 14px;
  }

  .deadline-row time span {
    font-size: 21px;
  }

  .live-source {
    display: none;
  }

  .cta-section {
    padding: 44px 0;
  }

  .cta-copy {
    padding: 36px 24px;
  }

  .cta-actions .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-visual,
  .hero-actions,
  .cta-section,
  .trust-visual,
  .skip-link {
    display: none;
  }

  body,
  .band,
  .section-dark,
  .section-alt,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .hero,
  .section {
    padding: 24px 0;
    break-inside: avoid;
  }

  .hero h1,
  .hero h1 span,
  .compliance-copy h2,
  .hero-lede,
  .compliance-lede {
    color: #000;
  }
}

/* --- 19. Page 404 -------------------------------------------------------- */

.not-found-page {
  min-height: 100dvh;
  background: var(--band-bg);
  color: var(--band-fg);
  --focus: var(--accent);
}

.not-found {
  position: relative;
  display: flex;
  width: min(720px, calc(100vw - 40px));
  min-height: 100dvh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-inline: auto;
}

.not-found .brand {
  position: absolute;
  top: 32px;
  color: var(--band-fg);
}

.not-found-code {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
}

.not-found h1 span {
  color: var(--accent);
}

.not-found > p:not(.not-found-code) {
  max-width: 52ch;
  margin: 22px 0 28px;
  color: var(--band-muted);
  font-size: 18px;
}

/* ===========================================================================
   20. Pages légales (/legal/*.html)

   Ces règles vivent ICI et non dans un bloc <style> des pages, parce que la
   politique de sécurité de contenu servie par nginx est `style-src 'self'` :
   un style en ligne serait purement et simplement bloqué, et les pages
   s'afficheraient sans mise en forme. Le contrôle statique ne le voit pas,
   l'en-tête venant du serveur et non du HTML.

   Le HTML de ces pages ne doit pas changer : elles portent une version
   `0.0.1-brouillon` que la console enregistre à l'acceptation.
   =========================================================================== */

.legal-hero {
  padding: 148px 0 62px;
}

.legal-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
}

.legal-hero p {
  max-width: 68ch;
  margin: 0;
  color: var(--band-muted);
  font-size: 17px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-meta span {
  padding: 7px 13px;
  border: 1px solid var(--band-border-strong);
  border-radius: 999px;
  color: var(--band-muted);
  font-family: var(--mono);
  font-size: 13px;
}

.legal-body {
  padding: 60px 0 96px;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 52px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.legal-toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--bg-raised);
}

.legal-toc > span {
  display: block;
  margin-bottom: 12px;
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(toc) ". ";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-text);
}

.legal-toc a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.legal-article {
  max-width: 76ch;
  font-size: 17px;
  line-height: 1.72;
}

.legal-article h2 {
  margin: 48px 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.legal-article h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.legal-article p,
.legal-article li {
  color: var(--fg-muted);
}

.legal-article ul,
.legal-article ol {
  padding-left: 22px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-article strong {
  color: var(--fg);
}

.legal-article a {
  color: var(--fg);
  text-decoration: underline;
}

.legal-warning {
  margin: 0 0 34px;
  padding: 24px 26px;
  border: 1px solid var(--accent);
  border-left-width: 5px;
  border-radius: var(--radius-medium);
  background: var(--accent-wash);
}

.legal-warning p {
  margin: 0 0 10px;
  color: var(--fg);
}

.legal-warning p:last-child {
  margin-bottom: 0;
}

.legal-warning-title {
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-version {
  font-family: var(--mono);
  font-size: 14px;
}

.legal-blank {
  padding: 2px 7px;
  border-bottom: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.legal-note {
  margin: 22px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--border-strong);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--bg-alt);
}

.legal-note p {
  margin: 0 0 10px;
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.legal-note-title {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.legal-table th,
.legal-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-sources {
  margin-top: 14px;
  padding-left: 22px;
  font-size: 16px;
}

.legal-sources li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .legal-toc {
    position: static;
    max-height: none;
  }

  .legal-hero {
    padding: 122px 0 48px;
  }
}

@media (max-width: 620px) {
  .legal-article {
    font-size: 16px;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
  }
}
