/*
 * LOOT-US design system (charte graphique LOOT-US 2025)
 * Titles: Orbitron · Text: Futura Bk BT · Product colours: one per card.
 */

/* ---------- Fonts ---------- */
@font-face {
    font-family: "Orbitron";
    src: url("../fonts/orbitron-variable-i2alonT.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}
@font-face {
    font-family: "Futura BT";
    src: url("../fonts/futura-bk-bt-Fl-oiV8.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    /* product colours (charte p.14) */
    --scanner: #c42726;
    --scanner-pro: #1c1c1b;
    --platform: #4a7cbe;
    --linux-platform: #dca841;
    --web: #00a09a;
    /* darker variants for small text on white */
    --linux-platform-ink: #9a6f12;
    --web-ink: #00807b;

    /* institutional (charte p.15) */
    --navy: #053343;
    --navy-2: #0a4357;
    --ocean: #01567b;
    --teal: #006b63;
    /* ecosystem accent: salmon of the charte (CMJN C0 M64 J56 N0); text on it is navy (4.8:1) */
    --accent: #ee7965;
    --accent-hover: #f28e7d;
    --accent-tint: #fbe2dc;

    /* neutrals, biased toward navy */
    --ink: #0b2632;
    --ink-2: #3b5561;
    --ink-3: #647d88;
    --line: #dce5e8;
    --line-2: #cbd8dd;
    --ground: #f4f7f8;
    --surface: #ffffff;
    --surface-2: #eaf0f2;

    /* semantic */
    --ok: #00756f;      --ok-bg: #ddf1ef;
    --warn: #8a5d00;    --warn-bg: #fbf1d9;
    --danger: #b3221f;  --danger-bg: #fbe9e9;
    --info: #01567b;    --info-bg: #e3eef3;

    --f-display: "Orbitron", "Eurostile", "Arial Narrow", sans-serif;
    --f-body: "Futura BT", "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
    --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(5, 51, 67, .06), 0 8px 24px -16px rgba(5, 51, 67, .35);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 72px;

}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 17px/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ocean); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; letter-spacing: .01em; text-wrap: balance; margin: 0; color: var(--navy); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0; }
p + p { margin-top: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(220, 168, 65, .4); }
.icon { flex: none; vertical-align: -.18em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -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(--accent); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-family: var(--f-display);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ocean);
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; margin-bottom: .5em; }
.prose h3 { margin-top: 1.4em; margin-bottom: .4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
/* charte "marqueur" before section titles */
.marker { display: flex; align-items: center; gap: 14px; }
.marker::before { content: ""; flex: none; width: 14px; height: 26px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* charte "séparateur" */
.separator { display: block; width: 100%; height: 28px; color: var(--line-2); margin-block: 40px; }
.separator--light { color: rgba(255, 255, 255, .25); }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--ocean);
    --btn-bd: var(--line-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border: 1.5px solid var(--btn-bd); border-radius: var(--radius-sm);
    background: var(--btn-bg); color: var(--btn-fg);
    font: 600 15px/1.1 var(--f-body); letter-spacing: .01em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { --btn-bd: var(--ocean); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--navy); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--dark { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn--dark:hover { --btn-bg: var(--navy-2); --btn-bd: var(--navy-2); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bd: #fff; }
.btn--danger { --btn-bg: var(--surface); --btn-fg: var(--danger); --btn-bd: #e9b8b6; }
.btn--danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ocean); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Product markers ---------- */
.p-scanner { --pc: var(--scanner); --pc-ink: var(--scanner); }
.p-scanner-pro { --pc: var(--scanner-pro); --pc-ink: var(--scanner-pro); }
.p-platform { --pc: var(--platform); --pc-ink: #2f61a3; }
.p-linux-platform { --pc: var(--linux-platform); --pc-ink: var(--linux-platform-ink); }
.p-web { --pc: var(--web); --pc-ink: var(--web-ink); }
.p-default { --pc: var(--ocean); --pc-ink: var(--ocean); }
.product-label {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
    color: var(--pc-ink, var(--ocean));
}
.product-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--ocean)); }

.tag {
    display: inline-flex; align-items: center;
    font: 500 13px/1 var(--f-body); color: var(--ink-2);
    border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; background: var(--surface);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font: 500 11px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 8px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--accent { background: var(--accent-tint); color: var(--navy); }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-nav__inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.site-nav__brand { display: block; flex: none; line-height: 0; }
.site-nav__brand img { height: 44px; width: auto; }
.site-nav__menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav__menu a {
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none;
}
.site-nav__menu a:hover { color: var(--navy); background: var(--surface-2); }
.site-nav__menu a[aria-current="page"] { color: var(--navy); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-menu { position: relative; }
.nav-menu > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; font-size: 15px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary svg { width: 16px; height: 16px; transition: transform .15s; }
.nav-menu[open] > summary svg { transform: rotate(180deg); }
.nav-menu > summary:hover, .nav-menu[open] > summary { color: var(--navy); background: var(--surface-2); }
.nav-menu > summary[aria-current="page"] { color: var(--navy); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-menu__panel {
    position: absolute; left: 0; top: calc(100% + 8px); min-width: 260px; z-index: 60;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; display: grid;
}
.site-nav__menu .nav-menu__panel a { display: grid; gap: 2px; font-weight: 500; color: var(--ink); }
.nav-menu__panel a small { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.nav-menu__panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.site-nav__account { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.account-menu { position: relative; }
.account-menu > summary {
    list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 6px 8px 6px 12px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 14px; color: var(--ink-2); max-width: 280px;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover { border-color: var(--line-2); }
.account-menu__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ocean); color: #fff; font: 600 12px/1 var(--f-display);
}
.account-menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; display: grid;
}
.account-menu__panel a, .account-menu__panel button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none;
    color: var(--ink); font: 500 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer; text-align: left;
}
.account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--surface-2); }
.account-menu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex; margin-left: auto; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
        background: var(--surface); color: var(--navy); cursor: pointer;
    }
    .site-nav__brand img { height: 38px; }
    .site-nav__menu, .site-nav__account { display: none; }
    .site-nav.is-open .site-nav__inner { flex-wrap: wrap; padding-bottom: 12px; }
    .site-nav.is-open .site-nav__menu { display: grid; order: 3; flex-basis: 100%; gap: 2px; }
    .site-nav.is-open .site-nav__account { display: flex; order: 4; flex-basis: 100%; margin: 0; }
    .site-nav.is-open .account-menu { width: 100%; }
    .site-nav.is-open .account-menu > summary { max-width: none; }
    .site-nav.is-open .account-menu__panel { position: static; margin-top: 8px; box-shadow: none; }
    .site-nav.is-open .nav-menu__panel { position: static; margin: 4px 0 4px 12px; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9dae0; margin-top: 72px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer__band { height: 8px; background: var(--accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.site-footer__brand img { height: 52px; width: auto; }
.site-footer__brand p { margin-top: 14px; max-width: 34ch; }
.site-footer h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: #dce7eb; text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #9fb7c0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head p { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.band { background: var(--navy); color: #fff; }
.band h1, .band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--accent); }
.band .lede, .band p { color: #c9dae0; }
.band a:not(.btn) { color: #fff; }
.page-head { padding-block: 40px 28px; }
.page-head p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
.page-head--band { padding-block: 48px; }

/* ---------- Hero (piste B: flat navy, one salmon trace, a board rising from the band) ---------- */
.hero { position: relative; overflow: hidden; padding-top: 64px; }
.hero__trace { position: absolute; top: 36px; right: 0; width: min(320px, 40vw); color: var(--accent); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; }
.hero__text { padding-bottom: 56px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero__meta { font-size: 14px; color: #9fb7c0; margin-top: 12px; }
.hero__board { align-self: end; border-radius: 10px 10px 0 0; overflow: hidden; background: #eaf0f2; line-height: 0; }
.hero__board > img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: multiply; }
.segmented { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 3px;
    color: #c9dae0; font-weight: 600; font-size: 14px; cursor: pointer;
}
.segmented input:checked + span { background: #fff; color: var(--navy); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; gap: 0; }
    .hero__text { padding-bottom: 32px; }
    .hero__trace { width: 180px; top: 20px; }
}

/* range strip under the hero, grouped like a kit: analysis card | targets (+ Web embedded in them) */
.range-strip { display: grid; grid-template-columns: 1fr 2fr; background: var(--surface); border-bottom: 1px solid var(--line); }
.range-group { display: grid; grid-template-rows: auto 1fr auto; border-left: 1px solid var(--line); min-width: 0; }
.range-group:first-child { border-left: 0; }
.range-group__label { padding: 12px 22px 0; font: 500 10.5px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.range-group__cells { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); }
.range-cell { display: grid; gap: 6px; align-content: start; margin: 8px 0 0; padding: 12px 22px 18px; border-left: 1px solid var(--line); border-top: 4px solid var(--pc); text-decoration: none; color: var(--ink); }
.range-group__cells .range-cell:first-child { border-left: 0; }
.range-cell:hover { background: color-mix(in srgb, var(--pc) 6%, #fff); color: var(--ink); }
.range-cell p { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.range-embedded {
    display: flex; align-items: center; gap: 12px; padding: 12px 22px;
    border-top: 1px dashed color-mix(in srgb, var(--pc) 55%, #fff);
    background: color-mix(in srgb, var(--pc) 7%, #fff);
    color: var(--ink-2); font-size: 14px; line-height: 1.4; text-decoration: none;
}
.range-embedded > .icon:first-child { color: var(--pc-ink); width: 1.4em; height: 1.4em; }
.range-embedded > .icon:last-child { margin-left: auto; color: var(--pc-ink); }
.range-embedded .product-label { vertical-align: 1px; margin-right: 4px; }
.range-embedded:hover { background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--ink); }
@media (max-width: 760px) {
    .range-strip { grid-template-columns: 1fr; }
    .range-group { border-left: 0; border-top: 1px solid var(--line); }
    .range-group:first-child { border-top: 0; }
}

/* Web callout on the target photo: sits in the empty top-left corner, a dashed lead pins it to the Ethernet port */
.hero__board { position: relative; margin: 0; overflow: visible; }
.hero__board > img:first-child { border-radius: 10px 10px 0 0; }
.hero__web {
    position: absolute; left: 5%; bottom: 70%; display: grid; gap: 7px; max-width: 62%;
    padding: 8px 10px 9px; border-radius: 8px; background: rgba(255, 255, 255, .94);
    border-top: 3px solid var(--web); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); line-height: 1.2;
}
.hero__web-bar { display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: #eef3f4; font: 500 11px/1.2 var(--f-mono, ui-monospace, monospace); color: var(--ink-3); }
.hero__web-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c9d4d8; }
.hero__web-bar span { margin-left: 4px; }
.hero__web-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.hero__web-label b { color: var(--ink); font-weight: 600; }
.hero__web-label .icon { flex: none; width: 1.3em; height: 1.3em; color: var(--web-ink); }
.hero__pin { position: absolute; left: 23.6%; top: 30%; height: 11.5%; border-left: 2px dashed var(--web-ink); }
.hero__pin::after {
    content: ""; position: absolute; left: -7px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--web); box-shadow: 0 0 0 4px color-mix(in srgb, var(--web) 30%, transparent);
}
@media (max-width: 520px) { .hero__web { left: 3%; max-width: 80%; } .hero__web-label { font-size: 12px; } }

/* ---------- Product cards ---------- */
.product-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border-radius: var(--radius); color: var(--ink); text-decoration: none;
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}
a.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.product-card__media { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--pc) 15%, #eef2f3); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.product-card__body { padding: 12px 14px 14px; display: grid; gap: 5px; border-top: 3px solid var(--pc); }
.product-card__body p { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.band .product-card { border-color: transparent; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-bottom: 1px solid var(--line); }
.stats > div { padding: 22px var(--gutter); border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font: 700 28px/1.1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.stats span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats > div { border-left: 0; border-top: 1px solid var(--line); } .stats > div:first-child { border-top: 0; } }

/* ---------- Product range (about / categories) ---------- */
.range { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.range-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
a.range-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.range-card__media { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--pc) 15%, #eef2f3); }
.range-card__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.range-card__body { padding: 16px 18px 18px; display: grid; gap: 8px; flex: 1; align-content: start; border-top: 3px solid var(--pc); }
.range-card__body h3 { font-size: 19px; }
.range-card__body p { color: var(--ink-2); font-size: 15px; }
.range-card__foot { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); }
/* featured product under the cards (about page): wide banner, visual on the left */
.range-banner { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* starts from the ink shade, not --pc: white caption text keeps a 4.5:1 contrast on the whole gradient */
.range-banner__media { display: grid; align-content: center; justify-items: center; gap: 16px; min-height: 220px; padding: 28px; background: linear-gradient(135deg, var(--pc-ink), var(--teal)); color: #fff; text-align: center; }
.range-banner__media > svg { width: 76px; height: 76px; }
.range-banner__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.range-banner__caption { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.range-banner__caption svg { width: 18px; height: 18px; }
/* two browser windows, the second overlapping the first's lower right corner */
.range-banner__windows { position: relative; width: min(100%, 540px); aspect-ratio: 540 / 320; }
.range-banner__windows img { position: absolute; width: 61%; height: auto; border-radius: 8px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); }
.range-banner__windows img:first-child { left: 0; top: 0; }
.range-banner__windows img:last-child { right: 0; bottom: 0; }
.range-banner__body { padding: clamp(20px, 3vw, 28px); display: grid; gap: 10px; align-content: center; border-left: 4px solid var(--pc); }
.range-banner__body h3 { font-size: 24px; }
.range-banner__body p { color: var(--ink-2); }
.range-banner__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.range-banner__chips li { font: 500 13px/1 var(--f-body); color: var(--pc-ink); border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); border-radius: 999px; padding: 5px 10px; }
.range-banner__cta { --btn-bg: var(--pc-ink); --btn-fg: #fff; --btn-bd: var(--pc-ink); margin-top: 4px; }
.range-banner__cta:hover { --btn-bg: var(--teal); --btn-bd: var(--teal); }
@media (max-width: 820px) {
    .range-banner { grid-template-columns: 1fr; }
    .range-banner__media { min-height: 180px; padding: 20px 16px; }
    /* side by side they would shrink below legibility: stacked, each takes the full width */
    .range-banner__windows { aspect-ratio: auto; display: grid; gap: 14px; width: min(100%, 420px); }
    .range-banner__windows img { position: static; width: 100%; }
    .range-banner__body { border-left: 0; border-top: 4px solid var(--pc); }
}

/* ---------- Catalogue ---------- */
.catalogue-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 12px; min-width: min(320px, 100%); color: var(--ink-3); }
.search-field:focus-within { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(1, 86, 123, .15); }
.search-field input { border: 0; outline: 0; background: transparent; padding: 11px 0; font: 15px var(--f-body); color: var(--ink); flex: 1; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 22px; }
.filter {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
    border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none;
}
.filter i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--ocean)); }
.filter em { font-style: normal; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ocean); color: var(--navy); }
.filter[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter[aria-current="page"] em { color: #9fb7c0; }
@media (max-width: 640px) { .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .filter { flex: none; } }

.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.scenario-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.scenario-card__media { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--pc) 14%, #eef2f3); position: relative; }
.scenario-card__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.scenario-card__body { padding: 14px 16px 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.scenario-card__body h3 { font: 600 18px/1.3 var(--f-body); color: var(--ink); letter-spacing: 0; }
.scenario-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; margin-top: 12px; border-top: 1px solid var(--line); }
.price { font: 700 18px/1 var(--f-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 400 12px/1.3 var(--f-body); color: var(--ink-3); margin-top: 4px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-2); }
.empty .icon { width: 32px; height: 32px; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
    color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--ocean); color: var(--navy); }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .is-disabled { opacity: .45; }

/* ---------- Panels & cards ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.panel + .panel { margin-top: 20px; }
/* side by side in a grid: the gap spaces them, never a top margin */
:is(.grid-2, .grid-3, .range, .scenario-grid, .kpis) > .panel { margin-top: 0; }
.panel__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field legend, .form-label { font-weight: 600; font-size: 15px; color: #24414d; }
.field .required::after, label.required::after { content: " *"; color: var(--danger); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"],
.field input[type="tel"], .field input[type="url"], .field input[type="search"], .field input[type="date"], .field input[type="datetime-local"], .field input[type="file"],
.field select, .field textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
    font: 16px/1.4 var(--f-body); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select[multiple] { min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 0; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(1, 86, 123, .15); }
.field input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.field .help { font-size: 14px; color: var(--ink-3); }
.field .errors, .form-errors { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: 14px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ocean); flex: none; }
.choices { display: grid; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Auth screens ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth__side { background: var(--navy); color: #fff; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth__side img.logo { height: 150px; width: auto; }
.auth__side h2 { color: #fff; font-size: 24px; margin: 28px 0 10px; }
.auth__side p { color: #c9dae0; max-width: 42ch; }
.auth__side ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; color: #dce7eb; }
.auth__side li { display: flex; gap: 10px; align-items: center; }
.auth__side li .icon { color: var(--accent); }
.auth__main { background: var(--surface); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.auth__form { width: 100%; max-width: 440px; margin-inline: auto; display: grid; gap: 18px; }
.auth__form h1 { font-size: 30px; }
.auth__form > p { color: var(--ink-2); }
.auth__alt { border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; color: var(--ink-2); }
.auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); text-decoration: none; margin-bottom: 8px; }
.auth__back:hover { color: var(--navy); }
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth__side { padding-block: 24px; }
    .auth__side img.logo { height: 72px; }
    .auth__side .auth__pitch, .auth__side svg { display: none; }
}

/* ---------- Flash / alerts ---------- */
.flashes { display: grid; gap: 10px; margin-block: 20px 0; }
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent;
    background: var(--info-bg); color: var(--info); font-size: 15px;
}
.alert .icon { margin-top: 2px; }
.alert__text { flex: 1; color: var(--ink); }
.alert__close { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px; line-height: 0; }
.alert--success { background: var(--ok-bg); color: var(--ok); border-color: #b7e0dc; }
.alert--error, .alert--danger { background: var(--danger-bg); color: var(--danger); border-color: #f0c4c2; }
.alert--warning { background: var(--warn-bg); color: var(--warn); border-color: #efd9a3; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; background: var(--surface-2); font: 500 11.5px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.table tbody tr:hover { background: #f8fafb; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn-row { justify-content: flex-end; flex-wrap: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Version history ---------- */
.os-switch { display: inline-flex; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-sm); }
.os-switch a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 3px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.os-switch a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.release { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: start; }
.release + .release { margin-top: 14px; }
.release__version { font: 700 22px/1.1 var(--f-display); color: var(--navy); }
.release__date { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.release__notes { font-size: 15px; color: var(--ink-2); }
.release__notes > :first-child { margin-top: 0; }
.release__notes ul { padding-left: 1.2em; margin: .4em 0; }
.release__notes h3 { font-size: 16px; margin: 14px 0 4px; letter-spacing: .02em; }
.release--latest { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--ocean); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-2); max-width: 75ch; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .icon-box { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ocean); display: grid; place-items: center; }
.contact-list b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; font-family: var(--f-display); }

/* ---------- Error pages ---------- */
.error-page { padding-block: 80px; text-align: center; }
.error-page__code { font: 900 clamp(64px, 12vw, 120px)/1 var(--f-display); color: var(--navy); letter-spacing: .04em; }
.error-page p { max-width: 52ch; margin: 16px auto 28px; color: var(--ink-2); }
.error-page .btn-row { justify-content: center; }

/* ---------- Kit builder ("Composez votre kit") ---------- */
.kit-builder { background: var(--surface); border-block: 1px solid var(--line); padding-block: 26px; }
.kit-builder__grid { display: grid; grid-template-columns: 1fr 140px 1.2fr; align-items: start; }
.kit-slot { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.kit-slot legend { padding: 0; margin-bottom: 10px; font: 500 11px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.kit-pick {
    position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center;
    padding: 10px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface);
    color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.kit-pick:hover { border-color: color-mix(in srgb, var(--pc) 60%, #fff); color: var(--ink); }
.kit-pick[aria-current="true"] { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 18%, transparent); }
.kit-pick__media { display: block; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--pc) 12%, #f3f6f7); }
.kit-pick__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.kit-pick__text { display: grid; gap: 4px; min-width: 0; }
.kit-pick__text b { font: 600 17px/1.2 var(--f-body); }
.kit-pick__summary { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.kit-pick__check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; }
.kit-pick[aria-current="true"] .kit-pick__check { background: var(--pc); border-color: var(--pc); color: #fff; }
.kit-pick--multi .kit-pick__check { border-radius: 6px; } /* square box: targets add up */
.kit-slot__hint { margin-left: 6px; font: 400 13px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.kit-more {
    display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 6px;
    border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); text-decoration: none; transition: border-color .15s;
}
.kit-more > .icon { flex: none; width: 1.4em; height: 1.4em; padding: 2px; border-radius: 50%; background: var(--pc-ink); color: #fff; }
.kit-more:hover { border-color: var(--pc); color: var(--ink); }
.kit-builder__link { align-self: center; padding: 28px 16px 0; color: var(--accent); }
[data-controller~="kit"][aria-busy="true"] .kit-result { opacity: .55; transition: opacity .15s; }
.kit-result { padding-block: 28px 8px; }
.kit-result__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.kit-figures { display: flex; gap: 32px; margin: 18px 0 14px; }
.kit-figures b { display: block; font: 700 36px/1 var(--f-display); color: var(--navy); }
.kit-figures span { font-size: 14px; color: var(--ink-3); }
.kit-web {
    display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 12px; border-radius: 6px;
    background: color-mix(in srgb, var(--pc) 8%, #fff); border: 1px dashed color-mix(in srgb, var(--pc) 50%, #fff);
    font-size: 14px; color: var(--ink-2);
}
.kit-web > .icon { color: var(--pc-ink); width: 1.4em; height: 1.4em; }
.kit-compare th[scope="row"] { color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.kit-compare .is-current { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.kit-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -8px; font-size: 15px; color: var(--ink-2); }
.kit-filter .icon { color: var(--accent); }
@media (max-width: 900px) {
    .kit-builder__grid, .kit-result__grid { grid-template-columns: 1fr; }
    .kit-builder__link { width: 160px; padding: 14px 0; }
    .kit-pick { grid-template-columns: 90px 1fr auto; }
}

/* Board technical sheet (/cartes/{slug}) */
.board-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.board-head .eyebrow a { color: inherit; }
.board-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-photos img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.board-section { margin-top: 40px; }
.board-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin-top: 16px; }
.board-specs > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.board-specs dt { font-weight: 600; color: var(--ink-3); font-size: 14px; }
.board-specs dd { margin: 4px 0 0; }
.board-interfaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.board-interfaces .panel + .panel { margin-top: 0; }
.board-interfaces h3 { font-size: 18px; margin: 0 0 8px; }
.board-interfaces p { margin: 0; color: var(--ink-2); }
.board-screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.board-screens figure { margin: 0; }
.board-screens img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.board-screens figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board-screens figcaption strong { display: block; color: var(--ink); }
@media (max-width: 1000px) { .board-screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .board-head { grid-template-columns: 1fr; } }

/* Contact page: request form and contact details */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.contact-side { display: grid; gap: 20px; }
.contact-side .panel + .panel { margin-top: 0; }
.panel.band { background: var(--navy); }
.contact-form__kind .choices, .contact-form__products .choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Slideshow (gallery controller) */
.gallery-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-thumb img { display: block; transition: transform .2s; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.03); }
.gallery-thumb__zoom {
    position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(9, 37, 51, .75); color: #fff; opacity: 0; transition: opacity .2s;
}
.gallery-thumb__zoom svg { width: 16px; height: 16px; }
.gallery-thumb:hover .gallery-thumb__zoom, .gallery-thumb:focus-visible .gallery-thumb__zoom { opacity: 1; }
.gallery {
    width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: #06161e; color: #fff;
}
.gallery::backdrop { background: rgba(6, 22, 30, .6); }
.gallery__stage { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 20px; box-sizing: border-box; gap: 14px; }
.gallery__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); background: #fff; min-height: 0; }
.gallery__stage figcaption { max-width: 900px; text-align: center; font-size: 15px; line-height: 1.5; color: #dbe7ec; }
.gallery__stage figcaption strong { color: #fff; }
.gallery__count { font: 500 12px/1 var(--f-display); letter-spacing: .1em; color: #9fb6c0; margin-right: 6px; }
.gallery__btn {
    position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.gallery__btn:hover, .gallery__btn:focus-visible { background: rgba(255, 255, 255, .2); }
.gallery__btn svg { width: 22px; height: 22px; }
.gallery__close { top: 12px; right: 12px; }
.gallery__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.gallery__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
    .gallery__stage { padding: 60px 12px 16px; }
    .gallery__prev, .gallery__next { top: auto; bottom: 12px; transform: none; }
    .gallery__stage { padding-bottom: 76px; }
}
.board-photos__note { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.board-learn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; }
.board-head .board-photos img:only-child { grid-column: 1 / -1; }

/* Range ecosystem: PC, Scanner, target and its Web interface, scenarios */
.ecosystem__chain { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1.4fr auto 1fr; align-items: stretch; }
.ecosystem__step { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ecosystem__step > span:last-child { color: var(--ink-2); font-size: 15px; }
.ecosystem__step a { color: var(--ink); text-decoration: none; }
.ecosystem__step a:hover strong { text-decoration: underline; }
.ecosystem__step.is-current, .ecosystem__step a.is-current { box-shadow: inset 4px 0 0 var(--pc, var(--ocean)); }
.ecosystem__step.p-scanner { border-top: 3px solid var(--pc); }
.ecosystem__icon { color: var(--ocean); }
.ecosystem__step--targets a { display: block; padding: 8px 10px; border-left: 3px solid var(--pc); border-radius: 3px; background: var(--surface-2); }
.ecosystem__step--targets a small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ecosystem__step--targets a.ecosystem__web { display: flex; gap: 10px; align-items: flex-start; border-left-style: dashed; }
.ecosystem__link { display: flex; align-items: center; justify-content: center; position: relative; min-width: 56px; padding: 0 6px; }
.ecosystem__link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line-2); }
.ecosystem__link span { position: relative; background: var(--ground); padding: 2px 6px; font: 500 11px/1.3 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; max-width: 90px; }
@media (max-width: 1000px) {
    .ecosystem__chain { grid-template-columns: 1fr; }
    .ecosystem__link { min-height: 40px; }
    .ecosystem__link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--line-2); }
    .ecosystem__link span { max-width: none; }
}
/* Two-factor authentication (Mon compte) */
.mfa-title { font-size: 17px; margin: 24px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.mfa-qr { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mfa-secret { font-size: 16px; letter-spacing: .06em; overflow-wrap: anywhere; }
.mfa-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 24px; padding-left: 1.4em; font-size: 18px; }
.mfa-disable { margin-top: 16px; display: grid; gap: 10px; }

.account-navigation{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}

.language-switch{display:flex;align-items:center;gap:4px;white-space:nowrap}.language-switch a{padding:5px 6px;border-radius:4px;text-decoration:none}.language-switch a[aria-current]{background:var(--surface, #e8eff1);font-weight:700}.language-switch span{font-size:11px}

/* HTML confirmations: keyboard focus and page isolation are provided by dialog. */
.confirmation { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: clamp(22px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 20px 70px #05334340; }
.confirmation::backdrop { background: #05334399; }
.confirmation h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.4; }
.confirmation p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirmation__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* USB workbench: one connection, three focused views. */
.usb { padding-bottom: 50px; }
.usb .panel { padding: clamp(18px,3vw,28px); }
.usb h2 { font-size: 21px; margin: 0 0 12px; }
.usb__connection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.usb__connection p { margin: 5px 0; }
.usb__settings,.usb__status { flex-basis: 100%; }
.usb__settings summary,.usb details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.usb__target { font-family: var(--f-display); color: var(--ocean); }
.usb__status { border-top: 1px solid var(--line); padding-top: 14px; min-height: 2em; overflow-wrap:anywhere; }
.usb__status[data-error="true"] { color: #aa252c; }
.usb__tabs { display:flex; gap:4px; margin:24px 0 0; border-bottom:2px solid var(--line); }
.usb__tabs button { border:0; background:transparent; padding:14px 20px; font:inherit; color:var(--ink-2); cursor:pointer; border-bottom:3px solid transparent; }
.usb__tabs button[aria-selected="true"] { color:var(--ocean); font-weight:700; border-color:var(--coral,#fa7865); background:var(--surface-2); }
.usb__panel { margin-top:18px; }
.usb [hidden] { display:none !important; }
.usb__fields { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:16px 0; }
.usb__fields .field { min-width:150px; flex:1; margin:0; }
.usb__fields input,.usb__fields select { box-sizing:border-box; width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font:inherit; }
.usb__fields .usb__send { flex:3; }
.usb__file,.usb__dump { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.7; padding:16px; background:var(--surface-2); border:1px solid var(--line); border-radius:4px; }
.usb__dump { min-height:130px; max-height:360px; overflow:auto; }
.usb progress { display:block; width:100%; height:12px; margin:18px 0; accent-color:var(--ocean); }
.usb__columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:18px 0; }
.usb__columns > .panel + .panel { margin-top:0; }
.usb .usb__status { max-width:none; }
.usb__note { padding:14px 18px; background:var(--surface-2); border-left:3px solid var(--ocean); margin:20px 0; }
.usb__note p { margin:8px 0; }
.usb__terminal { height:300px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:18px; background:#073442; color:#e7f0ef; border-radius:5px; font:14px/1.6 monospace; }
.usb__registers { display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); gap:10px 20px; margin:16px 0; }
.usb__registers label { display:flex; gap:8px; align-items:center; font:13px monospace; }
.usb__registers input { width:105px; font:13px monospace; padding:8px; }
.usb__registers button,.usb__points button { padding:6px 10px; font-size:12px; }
.usb__points { padding:0; list-style:none; }
.usb__points li { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:8px 0; font:13px monospace; }
.usb__check { display:flex; gap:8px; align-items:center; margin-top:16px; font-size:14px; }
.usb__footnote { font-size:14px; color:var(--ink-2); margin-top:24px; }
.usb button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:760px) { .usb__columns { grid-template-columns:1fr; } .usb__tabs button { flex:1; padding:12px 8px; font-size:14px; } }
