/* ==========================================================================
   XeniLabs — Design System
   Vert de marque #099109 · Light (blanc) / Dark (noir)
   ========================================================================== */

/* --------------------------------------------------------- 1. Reset & base */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Doit rester après les autres déclarations de display : toute règle auteur
   posant un `display` (ex. .sensor { display: flex }) l'emporterait sinon sur
   le [hidden] de la feuille navigateur, et l'élément masqué resterait visible. */
[hidden] { display: none !important; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ------------------------------------------------------------- 2. Tokens */
:root {
  /* Marque */
  --brand:          #099109;
  --brand-strong:   #077507;
  --brand-bright:   #16b516;
  --brand-pale:     #85f185;
  --on-brand:       #ffffff;

  /* Surfaces */
  --bg:             #ffffff;
  --bg-soft:        #f4f8f5;
  --bg-sunken:      #eef4ef;
  --surface:        #ffffff;
  --surface-2:      #f7faf8;

  /* Texte */
  --text:           #0a1410;
  --text-soft:      #47574d;
  --text-dim:       #6d7d73;

  /* Traits */
  --border:         #e1e9e3;
  --border-strong:  #c9d7cd;
  --border-brand:   rgba(9, 145, 9, .28);

  /* Effets */
  --brand-tint:     rgba(9, 145, 9, .07);
  --brand-tint-2:   rgba(9, 145, 9, .14);
  --glow:           rgba(9, 145, 9, .16);
  --grid-line:      rgba(9, 145, 9, .07);
  --shadow-sm:      0 1px 2px rgba(10, 20, 16, .05), 0 2px 8px rgba(10, 20, 16, .04);
  --shadow-md:      0 4px 12px rgba(10, 20, 16, .06), 0 16px 40px rgba(10, 20, 16, .07);
  --shadow-lg:      0 8px 24px rgba(10, 20, 16, .08), 0 32px 80px rgba(10, 20, 16, .10);
  --shadow-brand:   0 8px 30px rgba(9, 145, 9, .22);

  --header-bg:      rgba(255, 255, 255, .78);

  /* Typo */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Rythme */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  /* Hauteur de la barre de navigation collante : sert d'ancrage aux blocs
     qui doivent se figer juste sous elle. */
  --header-h: 68px;
  --maxw: 1240px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:          #2ed92e;
    --brand-strong:   #4bf04b;
    --brand-bright:   #5cff5c;
    --brand-pale:     #a8ffa8;
    --on-brand:       #04170a;

    --bg:             #050806;
    --bg-soft:        #090e0a;
    --bg-sunken:      #030503;
    --surface:        #0c130d;
    --surface-2:      #111a13;

    --text:           #edf5ee;
    --text-soft:      #9db0a2;
    --text-dim:       #7a8d80;

    --border:         #1a271c;
    --border-strong:  #26372a;
    --border-brand:   rgba(46, 217, 46, .30);

    --brand-tint:     rgba(46, 217, 46, .09);
    --brand-tint-2:   rgba(46, 217, 46, .16);
    --glow:           rgba(46, 217, 46, .20);
    --grid-line:      rgba(46, 217, 46, .07);
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md:      0 4px 14px rgba(0, 0, 0, .55), 0 18px 50px rgba(0, 0, 0, .45);
    --shadow-lg:      0 10px 30px rgba(0, 0, 0, .6), 0 40px 100px rgba(0, 0, 0, .55);
    --shadow-brand:   0 8px 34px rgba(46, 217, 46, .20);

    --header-bg:      rgba(5, 8, 6, .74);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand:          #2ed92e;
  --brand-strong:   #4bf04b;
  --brand-bright:   #5cff5c;
  --brand-pale:     #a8ffa8;
  --on-brand:       #04170a;

  --bg:             #050806;
  --bg-soft:        #090e0a;
  --bg-sunken:      #030503;
  --surface:        #0c130d;
  --surface-2:      #111a13;

  --text:           #edf5ee;
  --text-soft:      #9db0a2;
  --text-dim:       #7a8d80;

  --border:         #1a271c;
  --border-strong:  #26372a;
  --border-brand:   rgba(46, 217, 46, .30);

  --brand-tint:     rgba(46, 217, 46, .09);
  --brand-tint-2:   rgba(46, 217, 46, .16);
  --glow:           rgba(46, 217, 46, .20);
  --grid-line:      rgba(46, 217, 46, .07);
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md:      0 4px 14px rgba(0, 0, 0, .55), 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-lg:      0 10px 30px rgba(0, 0, 0, .6), 0 40px 100px rgba(0, 0, 0, .55);
  --shadow-brand:   0 8px 34px rgba(46, 217, 46, .20);

  --header-bg:      rgba(5, 8, 6, .74);

  color-scheme: dark;
}

/* ---------------------------------------------------------- 3. Typographie */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -.025em; }
h4 { font-size: 1.05rem; letter-spacing: -.02em; }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 62ch;
}

.muted { color: var(--text-soft); }
.dim   { color: var(--text-dim); }

strong, b { font-weight: 600; color: var(--text); }

::selection { background: var(--brand); color: var(--on-brand); }

/* Eyebrow / label technique */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.mono { font-family: var(--font-mono); letter-spacing: -.02em; }

/* -------------------------------------------------------------- 4. Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 1.1rem; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* Fond quadrillé technique */
.tech-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------- 5. Boutons */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .3s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
}
.btn--ghost:hover {
  --btn-bd: var(--brand);
  --btn-fg: var(--brand);
  box-shadow: none;
  background: var(--brand-tint);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  --btn-bd: var(--border-brand);
}
.btn--outline:hover { background: var(--brand-tint); box-shadow: none; }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--brand);
  font-weight: 550;
  font-size: .92rem;
}
.link-arrow:hover { color: var(--brand-strong); }

/* --------------------------------------------------------------- 6. Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem .35rem .65rem;
  border: 1px solid var(--border-brand);
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--brand-tint-2); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.tag {
  display: inline-block;
  padding: .2rem .6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* -------------------------------------------------------------- 7. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img { height: 34px; width: auto; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.brand-mark span { color: var(--brand); }

.nav-links {
  display: none;
  align-items: center;
  gap: .15rem;
}
@media (min-width: 1060px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .8rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--brand-tint); }
.nav-link[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

/* Dropdown */
.has-menu { position: relative; }
.has-menu > .nav-link svg { transition: transform .25s var(--ease); }
.has-menu[data-open="true"] > .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: min(560px, calc(100vw - 3rem));
  padding: .6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-menu[data-open="true"] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 1060px) and (hover: hover) {
  .has-menu:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  gap: .75rem;
  padding: .75rem .8rem;
  border-radius: var(--r-md);
  transition: background-color .2s var(--ease);
}
.dropdown-item:hover { background: var(--bg-soft); }
.dropdown-item .di-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
}
.dropdown-item .di-t { display: block; font-size: .89rem; font-weight: 600; letter-spacing: -.015em; }
.dropdown-item .di-d { display: block; font-size: .78rem; color: var(--text-dim); line-height: 1.45; }

/* Icon buttons */
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--border-brand); background: var(--brand-tint); }
.icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.burger { display: grid; }
@media (min-width: 1060px) { .burger { display: none; } }

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--pad) 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1060px) { .mobile-menu { display: none; } }

.mm-group + .mm-group { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.mm-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .6rem;
}
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--border);
}
.mm-link:hover, .mm-link[aria-current="page"] { color: var(--brand); }
.mm-link .arrow { color: var(--text-dim); }
.mm-cta { margin-top: 1.6rem; display: grid; gap: .7rem; }
.mm-cta .btn { width: 100%; }

/* ---------------------------------------------------------------- 8. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}
.hero .glow-a { width: 620px; height: 620px; top: -280px; left: -140px; }
.hero .glow-b { width: 520px; height: 520px; top: -120px; right: -180px; opacity: .7; }

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

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-top: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
.hero .btn-row { margin-top: 2.2rem; }

.hero-meta {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-meta .k {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero-meta .k span { color: var(--brand); }
.hero-meta .v {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .3rem;
}

/* Console / visuel hero */
.console {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.console-dots { display: flex; gap: .35rem; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.console-dots i:first-child { background: var(--brand); }
.console-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}
.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}
.console-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.console-body { padding: 1.1rem; display: grid; gap: .8rem; }

.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.readout {
  padding: .75rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.readout .rl {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.readout .rv {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.03em;
  margin-top: .2rem;
}
.readout .rv u { text-decoration: none; font-size: .7rem; color: var(--text-dim); margin-left: .12rem; }
.readout .rd { font-family: var(--font-mono); font-size: .66rem; color: var(--brand); margin-top: .1rem; }

.chart-card {
  padding: .9rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.chart-head .ct { font-size: .82rem; font-weight: 600; letter-spacing: -.015em; }
.chart-head .cs { font-family: var(--font-mono); font-size: .66rem; color: var(--text-dim); }
.spark { width: 100%; height: auto; display: block; }
.spark .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .axis { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.spark .cursor { fill: var(--brand); }

.alert-line {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border: 1px solid var(--border-brand);
  border-radius: var(--r-md);
  background: var(--brand-tint);
}
.alert-line .ai {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  flex-shrink: 0;
}
.alert-line .at { display: block; font-size: .82rem; font-weight: 550; letter-spacing: -.01em; }
.alert-line .ad { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); }

/* Bandeau preuve */
.proof {
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 1.4rem;
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .8rem clamp(1.2rem, 4vw, 3rem);
}
.proof-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.proof-item {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------- 9. Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  border-color: var(--border-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-soft); font-size: .93rem; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: 1.2rem; }

.card-ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border-brand);
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

/* Coins techniques */
.card--bracket::before,
.card--bracket::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--border-brand);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card--bracket::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.card--bracket::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.card--bracket:hover::before, .card--bracket:hover::after { opacity: 1; }

/* ------------------------------------------------------ 10. Grille modules */
/* 9 modules : le nombre de colonnes est fixé par palier plutôt que laissé à
   auto-fit, pour qu'aucune rangée ne reste incomplète.
     1 colonne  -> empilement
     2 colonnes -> 1re carte sur 2 colonnes, soit 5 rangées pleines
     3 colonnes -> 3 rangées pleines, toutes les cartes identiques          */
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }

@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  /* .b-span est un crochet de mise en page, pas une mise en avant : il évite
     la carte orpheline en fin de grille quand 9 items tombent sur 2 colonnes. */
  .bento > .b-span { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento > .b-span { grid-column: auto; }
}

/* Au repos, toutes les cartes sont identiques. Le vert n'arrive qu'au survol
   de la carte entière. */
.bento .card {
  padding: 1.4rem;
  background-image: linear-gradient(150deg, transparent, transparent 60%);
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease), background-image .3s var(--ease);
}
.bento .card:hover {
  background-image: linear-gradient(150deg, var(--brand-tint-2), transparent 60%);
}
.bento .card:hover .app-ico {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.app-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--brand);
  margin-bottom: .95rem;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.app-card h4 { margin-bottom: .4rem; font-size: 1rem; }
.app-card p { font-size: .87rem; color: var(--text-soft); line-height: 1.6; }

/* --------------------------------------------------------------- 11. Steps */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 1.9rem 1.6rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--border-brand); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -.05em;
  color: var(--brand);
  opacity: .13;
  line-height: 1;
}
.step-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--on-brand);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-brand);
}
.step h3 {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.step .st { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: .55rem; }
.step p { font-size: .92rem; color: var(--text-soft); }

/* ------------------------------------------------------------ 12. Secteurs */
.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    linear-gradient(160deg, var(--brand-tint), transparent 55%),
    var(--surface);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sector-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.sector-card .sc-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--brand);
  position: relative;
  z-index: 1;
}
.sector-card h3 { margin: .8rem 0 .6rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); position: relative; z-index: 1; }
.sector-card p { color: var(--text-soft); font-size: .93rem; position: relative; z-index: 1; }
.sc-list { margin-top: 1.2rem; display: grid; gap: .45rem; position: relative; z-index: 1; }
.sc-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .87rem;
  color: var(--text-soft);
}
.sc-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--brand);
}
.sector-card .link-arrow { margin-top: auto; padding-top: 1.4rem; position: relative; z-index: 1; }

.sc-glyph {
  position: absolute;
  right: -18px; bottom: -18px;
  color: var(--brand);
  opacity: .07;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.sector-card:hover .sc-glyph { opacity: .13; transform: scale(1.06) rotate(-4deg); }

/* -------------------------------------------------------------- 13. Listes */
.feat-list { display: grid; gap: 1.1rem; }
.feat { display: flex; gap: .95rem; align-items: flex-start; }
.feat-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--brand);
}
.feat h4 { margin-bottom: .2rem; }
.feat p { font-size: .9rem; color: var(--text-soft); line-height: 1.6; }

.check-list { display: grid; gap: .7rem; }
.check-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text-soft);
}
.check-list svg { flex-shrink: 0; margin-top: .25rem; color: var(--brand); }

/* ------------------------------------------------------------ 14. Capteurs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2rem;
}
.chip {
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--border-brand); color: var(--brand); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.search-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
  margin-left: auto;
}
.search-field svg {
  position: absolute;
  left: .85rem; top: 50%;
  translate: 0 -50%;
  color: var(--text-dim);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search-field input::placeholder { color: var(--text-dim); }

.sensor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  /* Toutes les rangées prennent la hauteur de la plus haute : les cartes ont
     donc exactement le même gabarit sur toute la grille, pas seulement par
     rangée comme le ferait le `stretch` par défaut. */
  grid-auto-rows: 1fr;
}
.sensor {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sensor:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* La vignette garde son ratio quelle que soit la taille du visuel source.
   `flex: none` + `min-height: 0` empêchent l'image de dicter la hauteur du
   bloc : sans ça, aspect-ratio n'est qu'une préférence et le contenu déborde. */
.sensor-media {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  padding: 1.1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.sensor-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .sensor-media { background: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sensor-media { background: #ffffff; }
}
/* Même valeur pour le retrait bas du corps de carte et pour l'écart minimal
   au-dessus de l'étiquette : la catégorie respire pareil dessus et dessous,
   y compris sur la carte la plus remplie où `margin-top: auto` vaut zéro. */
.sensor-body { --tag-gap: 1.1rem; padding: 1rem 1.1rem var(--tag-gap); display: flex; flex-direction: column; flex: 1; }
/* Deux lignes réservées au titre : les descriptions démarrent au même niveau
   d'une carte à l'autre. */
.sensor-body h3 { font-size: .95rem; line-height: 1.3; margin-bottom: .4rem; min-height: 2.6em; }
.sensor-body p { font-size: .82rem; color: var(--text-soft); line-height: 1.55; margin-bottom: var(--tag-gap); }
/* Poussée en bas de carte, l'étiquette s'aligne sur toute la grille. */
.sensor-body .tag { margin-top: auto; align-self: flex-start; }

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .88rem;
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------- 15. Stats */
.stats {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.stat {
  padding: 1.8rem 1.4rem;
  background: var(--surface);
  text-align: center;
}
.stat .sv {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--brand);
  line-height: 1;
}
.stat .sl {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- 16. Team */
.person {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.person:hover { border-color: var(--border-brand); transform: translateY(-4px); }
.avatar {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
  box-shadow: var(--shadow-brand);
}
.person h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.person .role {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ----------------------------------------------------------------- 17. CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-brand);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, var(--brand-tint-2), transparent 60%),
    var(--surface);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }
.cta-band .tech-grid {
  mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent 75%);
}
.cta-band > *:not(.tech-grid) { position: relative; z-index: 1; }

/* ------------------------------------------------------------ 18. Formulaire */
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}
.consent input { margin-top: .2rem; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }

.form-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
}
.form-status {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--border-brand);
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: .88rem;
}

.contact-line {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line .cl-ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  color: var(--brand);
}
.contact-line .cl-l {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-line .cl-v { font-size: .98rem; font-weight: 550; letter-spacing: -.015em; display: block; }
.contact-line a.cl-v:hover { color: var(--brand); }

/* ----------------------------------------------------------- 19. Page header */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-hero .glow { width: 520px; height: 420px; top: -240px; left: 50%; translate: -50% 0; }
/* Le .container garde sa largeur et son alignement de grille : on ne contraint
   que les blocs de texte, sinon le bloc se recentre dans la fenêtre et décroche
   de l'alignement des sections suivantes. */
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-inner > .breadcrumb,
.page-hero-inner > .eyebrow,
.page-hero-inner > h1,
.page-hero-inner > p { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero .lead { margin-top: 1.2rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { opacity: .5; }

/* -------------------------------------------------------------- 20. Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand p { font-size: .89rem; color: var(--text-soft); margin-top: 1rem; max-width: 34ch; }
.footer-brand .brand { margin-right: 0; }

.f-title {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.f-links { display: grid; gap: .55rem; }
.f-links a { font-size: .89rem; color: var(--text-soft); transition: color .2s var(--ease); }
.f-links a:hover { color: var(--brand); }

.socials { display: flex; gap: .5rem; margin-top: 1.3rem; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-soft);
  transition: all .2s var(--ease);
}
.socials a:hover { color: var(--brand); border-color: var(--border-brand); background: var(--brand-tint); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-dim);
}
.footer-bottom a:hover { color: var(--brand); }

/* --------------------------------------------------------- 21. Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.no-scroll { overflow: hidden; }

/* ------------------------------------------------- 22. Fiche produit capteur */
/* Composants propres à la version Laravel : galerie multi-photos, tableau de
   caractéristiques et liste de documentation technique. */

/* La galerie se cale en haut de la colonne — le centrage de .split la ferait
   flotter au milieu d'une fiche bien plus haute qu'elle — puis suit le
   défilement, figée juste sous la barre de navigation. */
.sensor-gallery-col { align-self: start; }
@media (min-width: 900px) {
  .sensor-gallery-col {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.sensor-gallery { display: grid; gap: .75rem; }

.sensor-media--large {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.sensor-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: .55rem;
}
.sensor-thumb {
  aspect-ratio: 1;
  padding: .4rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.sensor-thumb:hover { border-color: var(--border-brand); transform: translateY(-2px); }
.sensor-thumb[aria-pressed="true"] { border-color: var(--brand); }
.sensor-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

:root[data-theme="dark"] .sensor-thumb { background: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sensor-thumb { background: #ffffff; }
}

/* Caractéristiques */
.spec-list {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 40%) 1fr;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec-row dd { font-size: .9rem; }

/* Documentation technique */
.doc-list { display: grid; gap: .6rem; }

.doc-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.doc-item:hover { border-color: var(--border-brand); transform: translateY(-2px); background: var(--brand-tint); }

.doc-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-brand);
  background: var(--brand-tint);
  color: var(--brand);
}
.doc-body { flex: 1; min-width: 0; }
.doc-title { display: block; font-size: .92rem; font-weight: 550; letter-spacing: -.01em; }
.doc-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-dim);
  margin-top: .15rem;
}
.doc-meta a { color: var(--brand); }
.doc-action { flex-shrink: 0; color: var(--text-dim); }
.doc-item:hover .doc-action { color: var(--brand); }

/* Document réservé : présenté comme une information, pas comme un lien mort. */
.doc-item--locked {
  background: var(--bg-soft);
  border-style: dashed;
  cursor: default;
}
.doc-item--locked:hover { transform: none; background: var(--bg-soft); border-color: var(--border); }
.doc-item--locked .doc-ico {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-dim);
}

/* Retours de validation du formulaire */
.field-error {
  font-size: .78rem;
  color: #c0392b;
  margin-top: .1rem;
}
:root[data-theme="dark"] .field-error { color: #ff7a6b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-error { color: #ff7a6b; }
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }

.form-status--error {
  border-color: #c0392b;
  background: rgba(192, 57, 43, .08);
  color: #c0392b;
}

/* Réservé aux technologies d'assistance : retiré du flux visuel sans être
   masqué à l'arbre d'accessibilité (contrairement à display:none). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
