/* DLB TECH — bureau d'études EnR. Bandeau marine fixe (identité constante), contenu clair/sombre selon le thème, rouge du logo en accent unique. */
:root {
  --navy: #0B1B2B;          /* bandeaux, en-tête, pied (constant) */
  --navy-2: #12283D;
  --on-navy: #EAF0F6;
  --on-navy-muted: #9DB0C3;
  --red: #E51C24;           /* rouge du logo */
  --red-ink: #C4141B;       /* rouge lisible sur fond clair */
  --bg: #F3F6F9;
  --surface: #FFFFFF;
  --ink: #0E1D2C;
  --muted: #566476;
  --line: #D9E1E9;
  --sun: #F2A93B;           /* soleil, usage ponctuel dans les schémas */

  --f-display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07121D; --surface: #0E2032; --ink: #E6EDF4; --muted: #95A6B8;
    --line: #1D3348; --red-ink: #FF5A60; --navy: #0A1826; --navy-2: #102538;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07121D; --surface: #0E2032; --ink: #E6EDF4; --muted: #95A6B8;
  --line: #1D3348; --red-ink: #FF5A60; --navy: #0A1826; --navy-2: #102538;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-ink); display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: currentColor; }
.on-navy .eyebrow { color: #FF6B70; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.on-navy .lead { color: var(--on-navy-muted); }

/* ---------- Barre supérieure + en-tête ---------- */
.topbar { background: #050E17; color: var(--on-navy-muted); font-size: 0.85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar span { display: inline-flex; gap: 0.5em; align-items: center; }
.topbar b { color: var(--on-navy); font-weight: 600; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--navy) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand .mark { width: 38px; height: 38px; }
.brand .word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--on-navy-muted); text-decoration: none; font-family: var(--f-display); font-size: 0.95rem;
  padding: 0.5rem 0.8rem; border-radius: var(--radius); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--on-navy); background: rgba(255,255,255,0.06); }
.nav a[aria-current="page"] { color: var(--on-navy); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 0.5rem; }
.menu-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.2); color: var(--on-navy);
  border-radius: var(--radius); padding: 0.45rem 0.7rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
         background: var(--navy); padding: 0.5rem var(--gutter) 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.4rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 0.8rem; }
  .nav .btn { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em; justify-content: center;
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.3rem; border-radius: var(--radius); border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s;
}
.btn-red { background: var(--red); color: #fff !important; }
.btn-red:hover { background: #C8141C; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.28); color: var(--on-navy) !important; }
.btn-ghost:hover { border-color: var(--on-navy); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 62ch; }
.on-navy { background: var(--navy); color: var(--on-navy); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Hero d'accueil */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 em { font-style: normal; color: #FF5A60; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-copy { display: grid; gap: 1.3rem; min-width: 0; }
.hero::before { /* trame de cellules PV */
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 34px 52px; mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Fiche d'étude (élément signature) */
.sheet {
  position: relative; background: #0F2438; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--on-navy); min-width: 0;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px dashed rgba(255,255,255,0.15); color: var(--on-navy-muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet-body { padding: 1rem; display: grid; gap: 0.55rem; }
.sheet-row { display: flex; justify-content: space-between; gap: 1rem; font-variant-numeric: tabular-nums; }
.sheet-row span:first-child { color: var(--on-navy-muted); }
.sheet-total { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 0.7rem; margin-top: 0.3rem; font-size: 0.95rem; }
.sheet-total span:last-child { color: #FF6B70; }
.sheet-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 70px; margin: 0.4rem 0 0.2rem; }
.sheet-bars i { display: block; background: linear-gradient(to top, var(--red), #FF8A5B); border-radius: 2px 2px 0 0; opacity: .9; }
.sheet-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; text-align: center; font-size: 0.62rem; color: var(--on-navy-muted); }
.sheet-note { padding: 0.7rem 1rem; border-top: 1px dashed rgba(255,255,255,0.15); font-size: 0.68rem; color: var(--on-navy-muted); line-height: 1.5; }

/* Bandeau de chiffres-clés / engagements */
.strip { background: var(--navy-2); color: var(--on-navy); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 1.4rem 1.2rem; border-left: 1px solid rgba(255,255,255,0.08); display: grid; gap: 0.2rem; }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item strong { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.strip-item span { color: var(--on-navy-muted); font-size: 0.9rem; }
@media (max-width: 860px) { .strip .wrap { grid-template-columns: 1fr 1fr; } .strip-item { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); } }
@media (max-width: 460px) { .strip .wrap { grid-template-columns: 1fr; } }

/* Cartes services */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: grid; gap: 0.8rem; align-content: start; min-width: 0;
  transition: border-color .2s, transform .2s;
}
a.card { text-decoration: none; }
a.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red-ink); }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.97rem; }
.card li { display: flex; gap: 0.6em; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.62em; border-radius: 50%; background: var(--red); }
.card .more { font-family: var(--f-display); font-size: 0.9rem; color: var(--red-ink); margin-top: auto; }

/* Démarche (séquence réelle) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 1.4rem 1.4rem 0 0; border-top: 2px solid var(--line); display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8rem; color: var(--red-ink); }
.steps li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.steps p { color: var(--muted); font-size: 0.97rem; }
.on-navy .steps li { border-top-color: rgba(255,255,255,0.15); }
.on-navy .steps p { color: var(--on-navy-muted); }
.on-navy .steps li::before { color: #FF6B70; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Split texte / visuel */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 1rem; max-width: 62ch; }
.prose p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.7rem; align-items: baseline; }
.checks li::before { content: "✓"; color: var(--red-ink); font-weight: 700; }

/* Encadré technique */
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: color-mix(in srgb, var(--line) 35%, transparent); }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { font-family: var(--f-display); font-weight: 500; white-space: nowrap; }
.spec td { color: var(--muted); }
.spec td:first-child { color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Bandeau d'appel */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.2rem, 5vw, 3rem); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 30ch; }
.cta-band .btn { background: var(--navy); color: #fff; }
.cta-band .btn:hover { background: #050E17; }

/* En-tête de page intérieure */
.page-head .wrap { padding-block: clamp(2.8rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.crumbs { font-family: var(--f-mono); font-size: 0.75rem; color: var(--on-navy-muted); letter-spacing: 0.05em; }
.crumbs a { color: var(--on-navy-muted); text-decoration: none; }
.crumbs a:hover { color: var(--on-navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.coord { display: grid; gap: 0.3rem; }
.coord .label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.coord .value { font-family: var(--f-display); font-size: 1.25rem; user-select: all; overflow-wrap: anywhere; }
.copy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.copy-btn { font: inherit; font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
.brief { counter-reset: b; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.brief li { counter-increment: b; display: grid; grid-template-columns: 2rem 1fr; gap: 0.4rem; color: var(--muted); }
.brief li::before { content: counter(b); font-family: var(--f-mono); color: var(--red-ink); }
.brief b { color: var(--ink); font-weight: 600; }

.placeholder-note {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; color: var(--muted);
  display: grid; gap: 0.4rem; background: var(--surface);
}
.placeholder-note strong { color: var(--ink); font-family: var(--f-display); font-weight: 500; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3.2rem 2rem; }
.site-footer h4 { margin: 0 0 0.8rem; font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-navy); }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Apparition douce (état visible par défaut) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s ease-out both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
}

/* Échelle des domaines de tension (accueil) */
.ladder { list-style: none; margin: 0; padding: 0.4rem 1rem; display: grid; }
.ladder li { display: grid; grid-template-columns: 4.2rem 6.6rem 1fr; gap: 0.8rem; align-items: start; padding: 0.85rem 0; border-bottom: 1px dashed rgba(255,255,255,0.12); position: relative; }
.ladder li:last-child { border-bottom: 0; }
.ladder .lv { font-family: var(--f-display); font-size: 1rem; color: #fff; background: var(--red); border-radius: 4px; text-align: center; padding: 0.15rem 0; }
.ladder li:nth-child(2) .lv { background: color-mix(in srgb, var(--red) 75%, #0F2438); }
.ladder li:nth-child(3) .lv { background: color-mix(in srgb, var(--red) 50%, #0F2438); }
.ladder li:nth-child(4) .lv { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.ladder .rg { font-variant-numeric: tabular-nums; color: var(--on-navy); padding-top: 0.2rem; }
.ladder .ds { font-family: var(--f-body); font-size: 0.92rem; color: var(--on-navy); line-height: 1.4; display: grid; gap: 0.2rem; min-width: 0; }
.ladder .ds em { font-style: normal; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: #FF8A8E; }
@media (max-width: 460px) { .ladder li { grid-template-columns: 3.6rem 1fr; } .ladder .ds { grid-column: 1 / -1; } }

/* Sous-navigation des services */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 62px); z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0.3rem; overflow-x: auto; padding-block: 0.5rem; scrollbar-width: none; }
.subnav a { flex: none; text-decoration: none; font-family: var(--f-display); font-size: 0.88rem; color: var(--muted); padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--line); }
section[id] { scroll-margin-top: 130px; }

/* Carte d'appel dans la grille */
.card-cta { background: transparent; border-style: dashed; }
.card-cta .ico { background: var(--red); color: #fff; }
.on-navy .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.on-navy .card p { color: var(--on-navy-muted); }

/* Tableau sur fond marine */
.spec-navy { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.spec-navy th { background: rgba(255,255,255,0.06); color: var(--on-navy-muted); }
.spec-navy th, .spec-navy td { border-bottom-color: rgba(255,255,255,0.1); }
.spec-navy td { color: var(--on-navy-muted); }
.spec-navy td:first-child { color: var(--on-navy); }
.on-navy .card h3 { color: var(--on-navy); }

/* Catalogue produits */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.gamme-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: start; margin-bottom: 2rem; }
.gamme-head > .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.gamme-head > .ico svg { width: 28px; height: 28px; }
.gamme-head .btn { margin-top: 1.6rem; white-space: nowrap; }
@media (max-width: 760px) { .gamme-head { grid-template-columns: 1fr; } .gamme-head .btn { margin-top: 0; justify-self: start; } }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod { background: var(--surface); padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.alt .prod { background: var(--bg); }
.prod h3 { font-size: 1.05rem; }
.prod p { color: var(--muted); font-size: 0.97rem; }
.prod-specs { list-style: none; margin: 0.3rem 0 0; padding: 0.7rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: 0.3rem; font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink); }
.prod-specs li { display: flex; gap: 0.5em; }
.prod-specs li::before { content: "›"; color: var(--red-ink); }

/* Produits phares */
:root { --volt: #C9781E; --net: #2F74B5; --hl: color-mix(in srgb, var(--red) 9%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --volt: #F0A54A; --net: #6AA8E8; } }
:root[data-theme="dark"] { --volt: #F0A54A; --net: #6AA8E8; }
.feature { display: grid; gap: 1.6rem; margin-bottom: 2.4rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.alt .feature { background: var(--surface); }
.feature-head { display: grid; gap: 0.6rem; max-width: 70ch; }
.feature-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; }
.feature-head p { color: var(--muted); }
.brand-tag { justify-self: start; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.7rem; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .formats { grid-template-columns: 1fr; } }
.format { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem; border-radius: var(--radius); background: var(--bg); }
.format h4 { margin: 0 0 0.2rem; font-family: var(--f-display); font-weight: 500; }
.format p { color: var(--muted); font-size: 0.95rem; }
.fmt { font-family: var(--f-mono); font-size: 0.85rem; color: #fff; background: var(--red); border-radius: 4px; padding: 0.3rem 0.55rem; }
.feature-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: start; }
.feature-split.even { grid-template-columns: 1fr 1fr; }
.feature-split > * { min-width: 0; }
@media (max-width: 900px) { .feature-split, .feature-split.even { grid-template-columns: 1fr; } }
.fig { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.fig-scroll { overflow-x: auto; padding: 1rem; }
.fig figcaption { padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.isa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .isa-grid { grid-template-columns: 1fr; } }
.isa { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: 0.4rem; align-content: start; background: var(--bg); min-width: 0; }
.isa h4 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; }
.isa-role { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-ink); }

/* Schémas */
.dg { display: block; width: 100%; height: auto; min-width: 520px; }
.dg text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.dg text.t { font-family: var(--f-display); font-size: 13px; fill: var(--ink); }
.dg text.sm { font-size: 9.5px; }
.dg .box { fill: var(--surface); stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.2; }
.dg .hlb { fill: var(--hl); stroke: var(--red); }
.dg .fill2 { fill: var(--bg); }
.dg .slot { fill: var(--bg); stroke: color-mix(in srgb, var(--ink) 25%, transparent); }
.dg .unit { fill: var(--surface); stroke: color-mix(in srgb, var(--ink) 35%, transparent); }
.dg .unit.hl { fill: var(--hl); stroke: var(--red); stroke-width: 1.5; }
.dg .lcd { fill: color-mix(in srgb, var(--net) 30%, var(--surface)); stroke: none; }
.dg .led { fill: var(--red); }
.dg .term rect { fill: color-mix(in srgb, var(--volt) 25%, var(--surface)); stroke: color-mix(in srgb, var(--ink) 25%, transparent); }
.dg .cbl, .dg .lead { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1; fill: none; }
.dg .lead { stroke-dasharray: 2 3; }
.dg .dim { stroke: var(--muted); fill: none; }
.dg .wi { stroke: var(--red); stroke-width: 2; fill: none; }
.dg .wi.big { stroke-width: 4; }
.dg .wi.ret { stroke-dasharray: 8 4; }
.dg .wv { stroke: var(--volt); stroke-width: 2; fill: none; }
.dg .wt { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.dg .arrow { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.dg .wn { stroke: var(--net); stroke-width: 1.6; fill: none; }
.dg .bus { stroke: var(--net); stroke-width: 3; fill: none; }
.dg .bus.b2 { stroke-dasharray: 10 5; }
.dg .sw rect, .dg .sw circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; }
.dg .sw path { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.dg .pin circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; }
.dg .tag { fill: var(--surface); stroke: var(--line); }
.dg .tagt { font-size: 10px; fill: var(--ink); }
.feature-stack { display: grid; gap: 1.2rem; }

/* Photos produits */
.showcase { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: stretch; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.showcase > * { min-width: 0; }
.stage { position: relative; border-radius: 8px; padding: clamp(1rem, 3vw, 2rem); display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 20%, #FFFFFF 0%, #E7ECF1 70%, #D5DDE5 100%); border: 1px solid var(--line); }
.stage img { width: 100%; height: auto; max-width: 640px; filter: drop-shadow(0 18px 22px rgba(11,27,43,0.18)); }
.stage-sm { padding: 1.2rem; }
.stage-sm img { max-width: 340px; filter: none; mix-blend-mode: multiply; }
.pin-n { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 0.78rem; box-shadow: 0 0 0 5px rgba(229,28,36,0.22); }
.showcase-side { display: grid; gap: 1rem; align-content: start; }
.legend-n { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; counter-reset: n; }
.legend-n li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: 0.7rem; color: var(--muted); font-size: 0.97rem; }
.legend-n li::before { content: counter(n); width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 0.72rem; display: grid; place-items: center; margin-top: 0.15rem; }
.legend-n b { color: var(--ink); font-weight: 600; }

/* Armoire illustrée */
.cabinet-wrap { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1rem; padding: 1.2rem; align-items: stretch; }
.cabinet { background: #3A4552; border-radius: 6px; padding: 12px; display: grid; gap: 8px; box-shadow: inset 0 0 0 3px #2B3440; }
.cab-row { background: #E9EDF1; border-radius: 3px; padding: 6px; display: grid; place-items: center; min-height: 26px; }
.cab-row img { width: 100%; height: auto; mix-blend-mode: multiply; }
.cab-row.two { grid-template-columns: 1fr 1fr; gap: 6px; }
.cab-row.rail { gap: 4px; place-items: stretch; }
.cab-row.rail i { display: block; height: 9px; background: #4B5563; border-radius: 2px; background-image: radial-gradient(circle, #34D399 1.6px, transparent 2px); background-size: 14px 9px; background-repeat: repeat-x; background-position: 4px 0; }
.cab-row.terms { gap: 4px; place-items: stretch; }
.cab-row.terms i { display: block; height: 8px; background: repeating-linear-gradient(90deg, #D9A15A 0 7px, #9AA4AF 7px 8px); border-radius: 1px; }
.cab-row.psu { min-height: 22px; background: linear-gradient(#DCE1E6, #C9D0D7); }
.cab-labels { list-style: none; margin: 0; padding: 0; display: grid; align-content: space-between; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.cab-labels li { border-left: 2px solid var(--red); padding-left: 0.7rem; }
.cab-labels b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 500; }
@media (max-width: 480px) { .cabinet-wrap { grid-template-columns: 1fr; } }

/* Photos ISA */
.isa-photo { height: 150px; border-radius: 6px; display: grid; place-items: center; padding: 0.8rem; margin-bottom: 0.4rem;
  background: radial-gradient(120% 90% at 50% 20%, #FFFFFF 0%, #E7ECF1 75%); }
.isa-photo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.isa-type { background: var(--navy); gap: 0.2rem; font-family: var(--f-display); font-size: 1.9rem; color: #fff; grid-auto-flow: column; }
.isa-type span:first-child { color: #FF6B70; }
.isa-type span { padding: 0 0.6rem; }

/* Banc d'essai illustré */
.bench { display: grid; grid-template-columns: 1fr minmax(120px, 0.7fr) 1fr; align-items: center; gap: 0.5rem; padding: 1.2rem; border-radius: 8px;
  background: radial-gradient(120% 100% at 50% 0%, #FFFFFF 0%, #E3E9EF 80%); border: 1px solid var(--line); }
.bench-item { display: grid; gap: 0.5rem; justify-items: center; min-width: 0; }
.bench-item img { width: 100%; max-width: 300px; height: auto; mix-blend-mode: multiply; }
.bench-item:last-child img { max-width: 170px; }
.bench-item span { font-family: var(--f-mono); font-size: 0.75rem; color: #3A4552; letter-spacing: 0.05em; text-transform: uppercase; }
.bench-wires { width: 100%; height: auto; }
.bench-wires path { fill: none; stroke-width: 2.2; }
.bench-wires .bw-i { stroke: #E51C24; } .bench-wires .bw-v { stroke: #C9781E; } .bench-wires .bw-t { stroke: #5A6878; stroke-dasharray: 5 4; }
.bench-wires text { font-family: var(--f-mono); font-size: 9px; fill: #3A4552; }
@media (max-width: 620px) { .bench { grid-template-columns: 1fr; } .bench-wires { max-width: 220px; justify-self: center; } }
.stage img { filter: none; mix-blend-mode: multiply; }
.legend-n li { display: block; position: relative; padding-left: 2.1rem; }
.legend-n li::before { position: absolute; left: 0; top: 0; margin: 0; }
.legend-n b { display: block; }
.isa-photo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.isa-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.isa-photo img { height: auto; max-height: 100%; width: auto; max-width: 100%; }
.isa-type { display: flex; }

/* Mentions légales */
.legal-page { display: grid; gap: 2.4rem; max-width: 860px; }
.legal-block { display: grid; gap: 1rem; }
.legal-block h2 { font-size: 1.4rem; }
.legal-page .spec td:first-child { white-space: normal; width: 38%; }
.site-footer .legal a { text-decoration: underline; text-underline-offset: 3px; }
