/* Espace Informatique — site vitrine
 *
 * Même charte que le portail client : bleu EI, nuit, brume ; une seule famille (Instrument Sans),
 * condensée pour les titres comme une étiquette d'inventaire. Les statuts et les puces sont des voyants,
 * comme les LED d'un switch ; les sections sont repérées comme les unités d'une baie (U01, U02…).
 */

@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #0a6fb0;
  --blue-hover: #08609a;
  --blue-soft: #e3eff8;
  --sky: #5fb3ea;
  --night: #06375a;
  --night-deep: #04253d;
  --mist: #edf2f6;
  --tint: #f5f8fb;
  --paper: #ffffff;
  --ink: #13283a;
  --slate: #5b6e80;
  --line: #d7e0e8;
  --line-soft: #e8eef3;

  --led-ok: #1fa45b;
  --led-ok-glow: #36d27a;
  --led-warn: #e3a008;
  --led-info: #2f95dc;

  --font: "Instrument Sans Variable", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 2px;
  --r: 3px;
  --r-lg: 3px;
  --shadow: none;
  --shadow-lg: 0 0 0 1px rgba(4, 37, 61, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  font-stretch: 78%;
  font-variation-settings: "wdth" 78;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--night);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
strong { font-weight: 640; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Étiquette d'inventaire : repère de section façon unité de baie */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.tag b { font-weight: 600; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; letter-spacing: .04em; }
.on-dark .tag, .tag--light { color: var(--sky); }

.led { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--led-ok); box-shadow: none; flex: none; }
.led--warn { background: var(--led-warn); box-shadow: none; }
.led--info { background: var(--led-info); box-shadow: none; }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--slate); max-width: 62ch; }
.on-dark .lead { color: rgba(255, 255, 255, .78); }
.muted { color: var(--slate); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--r);
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --bg: var(--blue-hover); --bd: var(--blue-hover); color: var(--fg);  box-shadow: none; }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--night); --bd: var(--line); }
.btn--ghost:hover { --bg: var(--paper); --fg: var(--night); --bd: var(--blue); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--night); --bd: #fff; }
.btn--light:hover { --bg: #eaf3fa; --fg: var(--night); --bd: #eaf3fa; box-shadow: none; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { --bg: rgba(255, 255, 255, .08); --fg: #fff; --bd: rgba(255, 255, 255, .7); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--night); text-decoration: none; flex: none; }
.brand:hover { color: var(--night); }
.brand-mark { width: 40px; height: 40px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong { font-size: 21px; font-weight: 660; font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: .005em; }
.brand-name small { margin-top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a { white-space: nowrap;
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--ink); font-size: 15.5px; font-weight: 520; text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-list a:hover { color: var(--blue); background: var(--tint); }
.nav-list a[aria-current="page"] { color: var(--blue); }
.nav-list a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; background: var(--blue); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; color: var(--night); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--blue); }
.nav-phone .led { width: 7px; height: 7px; }
.nav-cta .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-phone span { display: none; }
}
@media (max-width: 1100px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--night); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .header-inner { flex-wrap: wrap; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding: 4px 0 22px; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 13px 4px; font-size: 18px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 6px 0 0; flex-direction: column; align-items: stretch; }
  .nav-cta .btn { min-height: 50px; }
  .nav-phone { justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); }
  .nav-phone span { display: inline; }
}

/* ---------- Héros accueil ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(47, 149, 220, .35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(10, 111, 176, .45), transparent 60%),
    var(--night);
}
.hero::before {
  /* trame de baie : rails verticaux et graduations */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 2.9vw, 4.1rem); }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { margin: 24px 0 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); list-style: none; }
.hero-proof li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .85); }

.hero-visual { position: relative; }
.rack { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.rack .frame { fill: #052e4c; stroke: rgba(255, 255, 255, .16); }
.rack .rail { fill: #042640; stroke: rgba(255, 255, 255, .1); }
.rack .hole { fill: rgba(255, 255, 255, .14); }
.rack .unit { fill: #0b4670; stroke: rgba(255, 255, 255, .14); }
.rack .unit-dark { fill: #083a5e; stroke: rgba(255, 255, 255, .12); }
.rack .port { fill: #031d31; stroke: rgba(255, 255, 255, .16); }
.rack .bay { fill: #06314f; stroke: rgba(255, 255, 255, .14); }
.rack .label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; fill: rgba(255, 255, 255, .55); }
.rack .label-strong { fill: rgba(255, 255, 255, .85); }
.rack .bar-bg { fill: rgba(255, 255, 255, .1); }
.rack .bar { fill: var(--sky); }
.rack .l { fill: #33536c; }
.rack .l.on { fill: var(--led-ok-glow); }
.rack .l.blink { fill: var(--led-ok-glow); animation: blink 1.6s steps(2, jump-none) infinite; }
.rack .l.blink.d2 { animation-duration: 1.1s; animation-delay: .3s; }
.rack .l.blink.d3 { animation-duration: 2.3s; animation-delay: .7s; }
.rack .l.amber { fill: #f2b632; }
.rack .l.blue { fill: #5fb3ea; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.float-card {
  position: absolute; left: -6%; bottom: -4%; width: min(300px, 70%);
  padding: 16px 18px; border-radius: var(--r-lg);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45;
  animation: rise .9s .2s var(--ease) both;
}
.float-card .fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.float-card .fc-title { margin: 8px 0 10px; font-weight: 640; font-size: 15.5px; color: var(--night); }
.float-card .fc-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 2px; background: #e7f6ee; color: #17713f; font-weight: 600; font-size: 13px; }
.float-card .fc-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--slate); font-size: 13px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 2px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12px; flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 8px auto 24px; width: 100%; }
  .float-card { left: 0; bottom: -10%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--mist { background: var(--mist); }
.section--tint { background: var(--tint); }
.section--night { background: var(--night); color: #fff; }
.section--night h2, .section--night h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 + p { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; }
.section-head--split .lead { margin: 0; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: rgba(10, 111, 176, .45);  box-shadow: var(--shadow); }
.card-id { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--slate); }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 26px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--slate); font-size: 16px; }
.card ul { list-style: none; margin: 4px 0 22px; display: grid; gap: 8px; font-size: 15px; }
.card ul li { display: flex; gap: 10px; align-items: baseline; }
.card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--led-ok);  flex: none; }
.card .link-arrow { margin-top: auto; font-size: 15.5px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Bloc deux colonnes */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split h2 { margin-bottom: 20px; }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } .split .split-visual { order: 2; } }

.checks { list-style: none; display: grid; gap: 18px; margin: 28px 0 34px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 3px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fb0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { display: block; color: var(--night); font-size: 17.5px; margin-bottom: 2px; }
.checks span { color: var(--slate); font-size: 16px; }
.on-dark .checks li::before { background-color: rgba(95, 179, 234, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fb3ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.on-dark .checks strong { color: #fff; }
.on-dark .checks span { color: rgba(255, 255, 255, .72); }

/* Carte technicien référent */
.referent {
  position: relative; max-width: 460px; margin-inline: auto; padding: 28px;
  border-radius: 3px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.referent::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 3px;
  background: repeating-linear-gradient(135deg, var(--blue-soft) 0 10px, transparent 10px 20px);
}
.ref-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ref-person { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.ref-person .avatar { width: 58px; height: 58px; font-size: 19px; background: var(--night); color: #fff; }
.ref-person strong { display: block; font-size: 20px; color: var(--night); font-stretch: 85%; font-variation-settings: "wdth" 85; }
.ref-person span { color: var(--slate); font-size: 15px; }
.ref-rows { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.ref-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.ref-rows dt { color: var(--slate); }
.ref-rows dd { margin: 0; font-weight: 600; color: var(--night); text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.ref-note { margin: 18px 0 0; font-size: 13px; color: var(--slate); }

/* Maquette du portail */
.portal {
  border-radius: 3px; overflow: hidden; background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: none;
  color: var(--ink); font-size: 13.5px;
}
.portal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.portal-bar i { width: 10px; height: 10px; border-radius: 2px; background: #cfd8e1; }
.portal-bar span { margin-left: 12px; flex: 1; max-width: 300px; padding: 5px 12px; border-radius: 3px; background: #fff; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-body { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.portal-side { padding: 18px 14px; background: var(--night); color: rgba(255, 255, 255, .78); display: flex; flex-direction: column; gap: 4px; }
.portal-side b { display: block; margin: 0 6px 16px; color: #fff; font-size: 15px; font-stretch: 78%; font-variation-settings: "wdth" 78; }
.portal-side span { padding: 7px 8px; border-radius: 3px; }
.portal-side span.is-on { background: rgba(255, 255, 255, .1); color: #fff; }
.portal-side .ps-ref { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; line-height: 1.4; }
.portal-side .ps-ref strong { display: block; color: #fff; font-size: 13px; }
.portal-main { padding: 20px 22px; }
.portal-main h4 { font-size: 19px; margin-bottom: 4px; }
.portal-main > p { color: var(--slate); font-size: 12.5px; margin-bottom: 14px; }
.p-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-radius: 3px; background: #fff7e1; color: #7a5400; font-weight: 560; font-size: 12.5px; }
.p-alert .led { animation: blink 1.4s steps(2, jump-none) infinite; }
.p-rows { display: grid; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.p-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.p-row:last-child { border-bottom: 0; }
.p-row .ref { font-family: var(--mono); font-size: 11.5px; color: var(--slate); }
.p-row .t { font-weight: 560; color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row .s { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--slate); white-space: nowrap; }
@media (max-width: 560px) { .portal-body { grid-template-columns: 1fr; } .portal-side { display: none; } }

.portal-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); overflow: hidden; }
.portal-features > div { padding: 26px 24px; background: var(--night); }
.portal-features h3 { font-size: 1.2rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.portal-features p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, .72); }
@media (max-width: 860px) { .portal-features { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 34px 28px 0 0; counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block; margin-bottom: 18px;
  font-size: 56px; font-weight: 640; line-height: 1; font-stretch: 75%; font-variation-settings: "wdth" 75;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 0 4px var(--paper); }
.section--mist .steps li::after { box-shadow: 0 0 0 4px var(--mist); }
.steps h3 { font-size: 1.3rem; margin-bottom: 10px; }
.steps p { color: var(--slate); font-size: 16px; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.zone-map { width: 100%; max-width: 520px; margin-inline: auto; }
.zone-map .ring { fill: none; stroke: var(--blue); stroke-opacity: .25; stroke-dasharray: 3 6; }
.zone-map .ring-fill { fill: var(--blue); fill-opacity: .06; }
.zone-map .road { fill: none; stroke: #c6d3df; stroke-width: 1.5; }
.zone-map .river { fill: none; stroke: #9fc9e8; stroke-width: 3; stroke-linecap: round; }
.zone-map .dot { fill: var(--night); }
.zone-map .dot-hq { fill: var(--blue); }
.zone-map .pulse { fill: var(--blue); opacity: .25; transform-origin: center; transform-box: fill-box; animation: pulse 2.6s var(--ease) infinite; }
.zone-map text { font-family: var(--font); font-size: 12.5px; fill: var(--ink); font-weight: 520; }
.zone-map .hq-label { font-weight: 680; font-size: 15px; fill: var(--night); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.chips li { padding: 7px 13px; border-radius: 2px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
@media (max-width: 900px) { .zone { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq--center { margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(10, 111, 176, .4); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; color: var(--night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 3px; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6fb0' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--slate); }
.faq .answer p:last-child { margin: 0; }

/* Bandeau d'appel */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 7vw, 88px) 0; background: var(--blue); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(6, 55, 90, .55), transparent 70%); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px 56px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); }
.cta-band p { margin: 14px 0 0; color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 54ch; }
.cta-phone { display: block; margin-top: 4px; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 640; font-stretch: 80%; font-variation-settings: "wdth" 80; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.cta-phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.cta-side { display: grid; gap: 14px; justify-items: start; }
.cta-side small { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--mist); padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 460px; height: 460px; z-index: 0;
  background-image: radial-gradient(var(--line) 1.3px, transparent 1.4px); background-size: 18px 18px;
  mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); }
.page-hero .lead { margin: 22px 0 32px; }
.page-hero--grid .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: end; }
@media (max-width: 900px) { .page-hero--grid .wrap { grid-template-columns: 1fr; } }

.breadcrumb { margin-bottom: clamp(28px, 4vw, 48px); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a9b7c4; }
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.facts { display: grid; gap: 0; padding: 8px 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.facts div { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.facts div:last-child { border-bottom: 0; }
.facts svg { width: 22px; height: 22px; color: var(--blue); flex: none; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; list-style: none; }
.features li { padding-top: 22px; border-top: 2px solid var(--night); }
.features h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 10px; }
.features p { margin: 0; color: var(--slate); font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.panel { padding: clamp(28px, 4vw, 44px); border-radius: 3px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 14px; }
.panel-night { background: var(--night); color: #fff; border-color: transparent; }
.panel-night h3 { color: #fff; }

.timeline { list-style: none; position: relative; display: grid; gap: 26px; margin: 8px 0 0; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.timeline li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 18px; }
.timeline li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--paper); border: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 14px; }
.timeline strong { display: block; color: var(--night); font-size: 17.5px; margin-bottom: 3px; }
.timeline p { margin: 0; color: var(--slate); font-size: 16px; }

.audience { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.audience li { padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.audience strong { display: block; margin-bottom: 4px; color: var(--night); font-size: 17px; }
.audience span { color: var(--slate); font-size: 15px; }
@media (max-width: 960px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.related a:hover { border-color: var(--blue);  color: var(--ink); }
.related small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.related strong { font-size: 19px; color: var(--night); font-stretch: 85%; font-variation-settings: "wdth" 85; }
.related span { color: var(--blue); font-weight: 600; font-size: 15px; }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--night); }
.field label small { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid #c4d0db; border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 111, 176, .15); }
.field-hint { font-size: 13.5px; color: var(--slate); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-legal { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--slate); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.notice { padding: 16px 18px; border-radius: var(--r); margin-bottom: 22px; font-weight: 520; }
.notice--ok { background: #e7f6ee; color: #17713f; }
.notice--error { background: #fdecea; color: #b3261e; }

.coords { display: grid; gap: 22px; }
.coord { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.coord .ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); }
.coord .ci svg { width: 22px; height: 22px; }
.coord small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
.coord a, .coord strong { font-size: 18px; font-weight: 620; color: var(--night); text-decoration: none; }
.coord a:hover { color: var(--blue); text-decoration: underline; }
.coord p { margin: 2px 0 0; color: var(--slate); font-size: 15px; }

/* Texte long (mentions légales) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.prose dt { color: var(--slate); }
.prose dd { margin: 0; font-weight: 520; }
.todo { padding: 1px 6px; border-radius: 4px; background: #fff3cd; color: #7a5400; font-weight: 600; font-size: .92em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night-deep); color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: clamp(56px, 7vw, 80px) 0 48px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: rgba(255, 255, 255, .55); }
.footer-about { margin: 20px 0 0; max-width: 34ch; }
.site-footer h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 16px; font-stretch: 100%; font-variation-settings: normal; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 10px; }
.footer-phone { font-size: 20px; font-weight: 640; color: #fff !important; font-variant-numeric: tabular-nums; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-leds { display: flex; gap: 6px; margin-top: 26px; }
.footer-leds i { width: 10px; height: 4px; border-radius: 1px; background: #2a4a63; }
.footer-leds i.on { background: var(--led-ok-glow); }
.footer-leds i.blink { background: var(--led-ok-glow); animation: blink 1.8s steps(2, jump-none) infinite; }
.footer-leds i.amber { background: #f2b632; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; color: var(--blue); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .cta-band, .site-footer .footer-leds, .nav-toggle { display: none; }
  .hero, .section--night { background: #fff; color: #000; }
}

/* =====================================================================
 * Mouvement : séquence de démarrage, voyants, balayage. Tout est coupé
 * si l'utilisateur préfère réduire les animations (voir plus bas).
 * ===================================================================== */

/* Barre de progression du défilement, comme une barre de chargement */
.scroll-meter { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--sky), var(--led-ok-glow)); }
@supports (animation-timeline: scroll()) {
  .scroll-meter { animation: meter linear both; animation-timeline: scroll(root); }
  @keyframes meter { to { transform: scaleX(1); } }
}

/* Titre du héros : mots qui montent un par un, puis un trait de balayage sous le mot clé */
.js .kinetic .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.js .kinetic .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.js .kinetic.is-on .w > span { transform: none; }
.hero h1 .scanline { display: block; height: .08em; margin-top: .12em; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--led-ok-glow), transparent); transition: width 1.2s var(--ease) 1.1s; }
.js .kinetic.is-on .scanline, html:not(.js) .hero h1 .scanline { width: min(320px, 60%); }
.js .hero .fade-up { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, .6s); }
.js .hero.is-on .fade-up { opacity: 1; transform: none; }

/* Baie du héros : chaque unité s'allume à tour de rôle, puis les voyants vivent */
.rack-tilt { transition: transform .6s var(--ease); will-change: transform; }
.js .rack .u { opacity: .3; transition: opacity .5s var(--ease); }
.js .rack .u .l { fill: #33536c; transition: fill .25s; }
.js .rack.booted .u { opacity: 1; }
.js .rack.booted .u.u2 { transition-delay: .25s; }
.js .rack.booted .u.u3 { transition-delay: .5s; }
.js .rack.booted .u.u4 { transition-delay: .75s; }
.js .rack.live .u .l.on, .js .rack.live .u .l.blink { fill: var(--led-ok-glow); }
.js .rack.live .u .l.amber { fill: #f2b632; }
.js .rack.live .u .l.blue { fill: #5fb3ea; }
.js .rack .l.blink { animation-play-state: paused; }
.js .rack.live .l.blink { animation-play-state: running; }
.rack .scan { opacity: 0; }
.js .rack.booted .scan { animation: scan 1.5s var(--ease) .05s 1 both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(350px); } }
.rack .bar { transform-box: fill-box; transform-origin: 0 50%; }
.js .rack .bar { transform: scaleX(0); transition: transform 2.4s var(--ease) 1.2s; }
.js .rack.live .bar { transform: scaleX(1); }
.js .float-card { animation: none; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .7s var(--ease) 1.6s, transform .7s var(--ease) 1.6s; }
.js .hero.is-on .float-card { opacity: 1; transform: none; }
.float-card .fc-status { transition: background .4s, color .4s; }
.float-card .fc-status.is-pending { background: #fff4d6; color: #7a5400; }
.float-card .fc-status.is-pending .led { background: var(--led-warn); box-shadow: none; animation: blink 1s steps(2, jump-none) infinite; }

/* Services présentés comme les unités d'une baie */
.bay-units { list-style: none; display: grid; gap: 10px; padding: 14px; border-radius: 3px; background: var(--night); box-shadow: var(--shadow-lg); position: relative; }
.bay-units::before, .bay-units::after { content: ""; position: absolute; top: 18px; bottom: 18px; width: 6px; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .16) 0 3px, transparent 3px 14px); }
.bay-units::before { left: 4px; }
.bay-units::after { right: 4px; }
.bay-unit { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 92px minmax(0, 1.05fr) minmax(0, 1.25fr) auto; gap: 24px; align-items: center; padding: 26px 30px; margin: 0 8px; border-radius: 3px; background: #0b4670; color: #fff; border: 1px solid rgba(255, 255, 255, .1); transition: border-color .3s var(--ease); }
.bay-unit::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 179, 234, .22), transparent 60%); }
.bay-unit:hover { border-color: rgba(95, 179, 234, .5); }
.bay-unit:hover::before { opacity: 1; }
.bu-id { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); display: grid; gap: 10px; }
.bu-leds { display: flex; gap: 5px; }
.bu-leds i { width: 10px; height: 4px; border-radius: 1px; background: #33536c; transition: background .3s; }
.bay-unit.is-visible .bu-leds i, html:not(.js) .bu-leds i { background: var(--led-ok-glow); }
.bay-unit.is-visible .bu-leds i:nth-child(2) { animation: blink 1.4s steps(2, jump-none) infinite; transition-delay: .15s; }
.bay-unit.is-visible .bu-leds i:nth-child(3) { background: #5fb3ea; transition-delay: .3s; }
.bay-unit h3 { color: #fff; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); display: flex; align-items: center; gap: 14px; }
.bay-unit h3 svg { width: 28px; height: 28px; color: var(--sky); flex: none; }
.bay-unit h3 a { color: inherit; text-decoration: none; }
.bay-unit h3 a::after { content: ""; position: absolute; inset: 0; }
.bay-unit p { margin: 0; color: rgba(255, 255, 255, .76); font-size: 16px; }
.bu-go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.bu-go svg { width: 20px; height: 20px; }
.bay-unit:hover .bu-go { background: var(--blue); border-color: var(--blue); transform: translateX(4px); }
@media (max-width: 960px) {
  .bay-unit { grid-template-columns: 1fr auto; gap: 12px 20px; padding: 24px; }
  .bu-id { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 14px; }
  .bay-unit h3 { grid-column: 1; }
  .bay-unit p { grid-column: 1 / -1; grid-row: 3; }
  .bu-go { grid-column: 2; grid-row: 2; }
}

/* Panneau d'engagements : chaque ligne passe au vert quand elle entre à l'écran */
.status-board { border-radius: 3px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.sb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; background: var(--tint); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.sb-head span { display: inline-flex; align-items: center; gap: 8px; }
.sb-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 22px; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line-soft); }
.sb-row:last-child { border-bottom: 0; }
.sb-num { font-family: var(--mono); font-size: 13px; color: var(--slate); }
.sb-row h3 { font-size: 1.3rem; }
.sb-row p { margin: 0; color: var(--slate); font-size: 16px; }
.sb-state { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: #eef2f6; color: var(--slate); transition: background .4s, color .4s; white-space: nowrap; }
.sb-state .led { background: #b8c4cf; box-shadow: none; transition: background .4s, box-shadow .4s; }
.sb-row.is-visible .sb-state, html:not(.js) .sb-state { background: #e7f6ee; color: #17713f; transition-delay: .5s; }
.sb-row.is-visible .sb-state .led, html:not(.js) .sb-state .led { background: var(--led-ok); box-shadow: none; transition-delay: .5s; }
@media (max-width: 860px) {
  .sb-row { grid-template-columns: 40px 1fr auto; gap: 8px 16px; }
  .sb-row p { grid-column: 2 / -1; }
}

/* Bandeau défilant des communes desservies */
.ticker { position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 72px); padding: 18px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 620; font-stretch: 78%; font-variation-settings: "wdth" 78; color: var(--night); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Tickets du portail : un statut change sous vos yeux */
.p-row .s { transition: color .4s; }
.p-row .s .led { transition: background .4s, box-shadow .4s; }
.p-row.flip .s { color: #17713f; }
.p-row.flip .s .led { background: var(--led-ok); box-shadow: none; }
.js .portal .p-row { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.js .portal.is-visible .p-row { opacity: 1; transform: none; }

/* Survol : lueur qui suit le pointeur, boutons légèrement aimantés */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 111, 176, .1), transparent 65%); pointer-events: none; }
.spot:hover::before { opacity: 1; }
.btn.magnetic { transition: transform .35s var(--ease), background .2s, border-color .2s, box-shadow .2s; }

/* Apparitions : décalage en cascade via --d (attribué par le script) */
.js .reveal { transition-delay: var(--d, 0s); }
.js .reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-mask.is-visible { clip-path: inset(0 0 0 0); }

/* Repère de section : le trait se dessine au défilement */
.tag::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .35; transform-origin: 0 50%; }
@supports (animation-timeline: view()) {
  .tag::after { animation: tagline linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  @keyframes tagline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Transitions entre pages (navigateurs compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--ease) both vt-leave; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-enter; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-enter { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .js .kinetic .w > span, .js .hero .fade-up, .js .float-card, .js .portal .p-row { transform: none !important; opacity: 1 !important; }
  .js .rack .u { opacity: 1; }
  .js .rack .bar { transform: none; }
  .js .reveal-mask { clip-path: none; }
  .js .kinetic .scanline { width: min(320px, 60%); }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .scroll-meter { display: none; }
}

/* Compléments */
.hero .fade-up.d0 { --d: .05s; }
.hero .fade-up.d1 { --d: .75s; }
.hero .fade-up.d2 { --d: .9s; }
.hero .fade-up.d3 { --d: 1.05s; }
.avatar svg { width: 26px; height: 26px; }
.panel p + h3 { margin-top: 26px; }
.panel .btn { margin-top: 10px; }
.panel-night p { color: rgba(255, 255, 255, .78); }
.error-page .lead { margin: 18px auto 30px; }
.error-page .btn-row { justify-content: center; }
.error-page .error-code { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.error-page h1 { margin-inline: auto; max-width: 18ch; }

/* =====================================================================
 * Sobriété : aplats, filets, angles droits. Pas de dégradés ni de halos.
 * ===================================================================== */
.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.hero { background: var(--night); }
.hero::before { display: none; }
.hero h1 em { color: inherit; }
.hero h1 .scanline { display: none; }
.hero-proof { border-top-color: rgba(255, 255, 255, .18); }
.rack { filter: none; }
.float-card { box-shadow: 0 0 0 1px var(--line), 8px 8px 0 rgba(0, 0, 0, .18); }
.referent::before { display: none; }
.referent { box-shadow: none; }
.cta-band::before, .page-hero::after { display: none; }
.cta-band { background: var(--night-deep); border-top: 4px solid var(--blue); }
.timeline::before { background: var(--line); }
.scroll-meter { background: var(--blue); height: 2px; }
.bay-unit::before, .spot::before { display: none; }
.bay-units { box-shadow: none; }
.bay-unit { background: #0a4269; }
.bay-unit:hover { background: #0c4c78; border-color: rgba(255, 255, 255, .28); }
.ticker { display: none; }
.card-icon, .coord .ci { background: transparent; border: 1px solid var(--line); }
.checks li::before { background-color: transparent; border: 1px solid var(--line); }
.on-dark .checks li::before { background-color: transparent; border-color: rgba(255, 255, 255, .25); }
.faq details[open] { box-shadow: none; border-color: var(--blue); }
.faq summary::after { content: "+"; background: none; width: auto; height: auto; font-size: 26px; font-weight: 400; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "−"; transform: none; }
.avatar { border-radius: 2px; }
.ref-person .avatar { background: var(--night); }
.facts, .panel, .status-board, .portal { box-shadow: none; }
.btn:hover { box-shadow: none; }
.tag b { border-radius: 2px; }
.sb-state, .chips li, .fc-status { border-radius: 2px; }
.page-hero { background: var(--tint); }
.p-alert { border-left: 3px solid var(--led-warn); }
.float-card .fc-status { border-left: 3px solid var(--led-ok); }
.float-card .fc-status.is-pending { border-left-color: var(--led-warn); }
.zone h2 { margin-bottom: 18px; }
.zone-map .ring-fill { display: none; }
@media (max-width: 1100px) { .header-inner { gap: 12px; } }
@media (max-width: 480px) { .brand-name small { font-size: 9px; letter-spacing: .06em; } .brand-mark { width: 36px; height: 36px; } }
@media (max-width: 400px) { .brand-name small { display: none; } }
.brand-mark { width: 46px; height: auto; flex: none; }
@media (max-width: 480px) { .brand-mark { width: 40px; } }

/* Solutions administrées (MSP) : une étiquette de baie par produit */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.sol-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 18px; background: var(--night); color: rgba(255, 255, 255, .78); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r) var(--r) 0 0; }
.sol-bar span { display: inline-flex; align-items: center; gap: 9px; }
.led-dot { width: 10px; height: 4px; border-radius: 1px; background: var(--led-ok-glow); }
.led-dot.blink { animation: blink 1.4s steps(2, jump-none) infinite; }
.sol-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.sol h3 { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.1rem); margin-bottom: 12px; }
.sol p { color: var(--slate); font-size: 16px; }
.sol ul { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 15px; }
.sol li { display: flex; gap: 10px; align-items: baseline; }
.sol li::before { content: ""; width: 6px; height: 6px; background: var(--blue); flex: none; transform: translateY(-2px); }
.stack-note { margin: 22px 0 0; font-size: 13px; color: var(--slate); }
@media (max-width: 960px) { .stack { grid-template-columns: 1fr; } }
.related { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 1320px) { .nav-phone span { display: none; } .nav-list a { padding-inline: 10px; } }
@media (max-width: 1100px) { .nav-phone span { display: inline; } }
.alert-log { margin-top: 48px; }
