/* ETIM : feuille de plan. Papier, trait, aplats bleu ETIM, rouge réservé aux repères de soudure. */

@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(../fonts/barlow-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(../fonts/barlow-sc-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(../fonts/barlow-sc-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(../fonts/barlow-sc-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'osifont'; src: url(../fonts/osifont.woff2) format('woff2'), url(../fonts/osifont.woff) format('woff'); font-weight: 400; font-display: swap; }

:root {
  --paper: #F4F6F7;
  --white: #FFFFFF;
  --ink: #1A3049;
  --ink-2: #3B5570;
  --muted: #5C6B78;
  --blue: #2B4F73;
  --blue-deep: #1E3B57;
  --blue-tint: #C8D6E3;
  --red: #A6342B;
  --steel: #C9CED2;
  --steel-light: #E3E7EA;
  --rule: rgba(26, 48, 73, .22);
  --rule-soft: rgba(26, 48, 73, .12);
  --grid: rgba(26, 48, 73, .065);
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --font-cote: 'osifont', 'Barlow', sans-serif;
  --container: 1200px;
  --split: minmax(0, 7fr) minmax(0, 5fr);
  --split-gap: 64px;
  --fs-small: .9rem;
  --fs-micro: .72rem;
  --gutter: 16px;
  --u: 8px;
  --radius: 2px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 12px 32px -12px rgba(26, 48, 73, .28), 0 2px 6px -2px rgba(26, 48, 73, .18);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  caret-color: var(--blue);
}
::selection { background: var(--blue); color: var(--white); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--steel-light); }
::-webkit-scrollbar-thumb { background: var(--ink-2); border: 2px solid var(--steel-light); border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.intro { font-size: 1.0625rem; color: var(--ink-2); max-width: 40em; }
.cote { font-family: var(--font-cote); font-size: .95em; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--font-body);
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}

.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

/* En-tête */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 118px; height: auto; margin-left: -12px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0 8px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 100% / 0% 2px;
  transition: background-size .2s var(--ease-out);
}
.nav > a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; }

/* Zone « plan » : grille de la feuille */
.sheet { background-color: var(--paper); }

/* Hero */
.hero { position: relative; padding: calc(var(--u) * 6) 0 calc(var(--u) * 3); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-head { display: grid; grid-template-columns: var(--split); gap: 20px var(--split-gap); align-items: end; }
.hero-head h1 { grid-row: 1 / span 2; font-size: clamp(2.5rem, 1.2rem + 3.4vw, 3.9rem); }
.hero-head .actions { margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Encart « Détail » : vue de détail d'un plan */
.detail-inset {
  margin: 0; background: var(--white); border: 1px solid var(--ink); padding: 10px;
  position: relative;
}
.detail-inset figcaption a { margin-left: auto; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.detail-inset figcaption {
  display: flex; align-items: baseline; gap: 12px; padding: 2px 4px 10px;
  border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 1.0625rem;
}
.detail-inset figcaption .cote { color: var(--red); font-size: 1rem; }
.detail-inset::before, .detail-inset::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink); pointer-events: none; }
.detail-inset::before { left: -9px; top: -9px; border-width: 1px 0 0 1px; }
.detail-inset::after { right: -9px; bottom: -9px; border-width: 0 1px 1px 0; }
.detail-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel-light); margin-top: 10px; position: relative; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img .next { position: absolute; inset: 0; visibility: hidden; }
.detail-inset p { padding: 10px 4px 2px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.45; }

/* Dessin isométrique */
.iso-wrap { margin-top: 40px; }
.iso-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.iso { display: block; width: 100%; height: auto; }
.iso .grid { pointer-events: none; }
.iso .pipe-outline { fill: none; stroke: var(--ink); stroke-width: 22; stroke-linejoin: round; stroke-linecap: round; }
.iso .pipe-body { fill: none; stroke: #DCE1E5; stroke-width: 16; stroke-linejoin: round; stroke-linecap: round; }
.iso .pipe-light { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.iso .line { fill: none; stroke: var(--ink); stroke-width: 2; }
.iso .line-thin { fill: none; stroke: var(--ink-2); stroke-width: 1.25; }
.iso .fill-paper { fill: var(--paper); }
.iso .fill-ink { fill: var(--ink); }
.iso .lbl { font-family: var(--font-cote); font-size: 17px; fill: var(--ink-2); }
.iso .dash { stroke-dasharray: 8 6; }
.iso .weld { cursor: pointer; }
.iso .weld circle.bal { fill: #fff; stroke: var(--red); stroke-width: 2.5; transition: fill .18s, stroke-width .18s; }
.iso .weld .joint { fill: var(--red); }
.iso .weld line { stroke: var(--red); stroke-width: 1.5; }
.iso .weld text { font-family: var(--font-cote); font-size: 19px; fill: var(--red); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .18s; }
.iso .weld.is-active circle.bal { fill: var(--red); }
.iso .weld.is-active text { fill: #fff; }
.iso .weld:focus { outline: none; }
.iso .weld:focus-visible circle.bal { stroke: var(--ink); }
.iso .pipe-shade { fill: none; stroke: var(--ink-2); stroke-opacity: .22; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.iso .seg { fill: none; stroke: var(--blue); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s var(--ease-out); pointer-events: none; }
.iso[data-active="1"] .seg[data-seg="1"], .iso[data-active="2"] .seg[data-seg="2"], .iso[data-active="3"] .seg[data-seg="3"], .iso[data-active="4"] .seg[data-seg="4"], .iso[data-active="5"] .seg[data-seg="5"] { opacity: .18; }
.iso[data-hot="1"] .seg[data-seg="1"], .iso[data-hot="2"] .seg[data-seg="2"], .iso[data-hot="3"] .seg[data-seg="3"], .iso[data-hot="4"] .seg[data-seg="4"], .iso[data-hot="5"] .seg[data-seg="5"] { opacity: .38; }
.iso[data-hot="1"] .weld[data-weld="1"] circle.bal, .iso[data-hot="2"] .weld[data-weld="2"] circle.bal, .iso[data-hot="3"] .weld[data-weld="3"] circle.bal, .iso[data-hot="4"] .weld[data-weld="4"] circle.bal, .iso[data-hot="5"] .weld[data-weld="5"] circle.bal { fill: var(--red); }
.iso[data-hot="1"] .weld[data-weld="1"] text, .iso[data-hot="2"] .weld[data-weld="2"] text, .iso[data-hot="3"] .weld[data-weld="3"] text, .iso[data-hot="4"] .weld[data-weld="4"] text, .iso[data-hot="5"] .weld[data-weld="5"] text { fill: #fff; }
.iso .glint, .iso .glint-wide { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.iso .glint { stroke: #fff; stroke-width: 7; opacity: .9; }
.iso .glint-wide { stroke: var(--steel-light); stroke-width: 13; opacity: .45; }
.iso .halo { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.iso .zone { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 7 5; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .2s, transform .42s var(--ease-out); pointer-events: none; }
.iso .weld.is-active .zone { opacity: 1; transform: scale(1); }
.iso .weld .joint { transition: r .18s; }
.iso .weld.is-active .joint { r: 5px; }
.iso .disc { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease-out); }
.iso .rotor { transform-box: fill-box; transform-origin: center; }
.iso .rotor line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.iso.is-running .rotor { animation: spin 1.6s cubic-bezier(.3, .8, .3, 1) forwards; }
.iso.is-settled .rotor { animation: none; }
@keyframes spin { to { transform: rotate(720deg); } }
.iso .reveal, .iso .exit, .iso .weld { transition: opacity .5s var(--ease-out); }
/* Masquages réservés au mode animé : sans script ou en mouvement réduit, le plan est complet */
html.js-motion .iso:not(.is-drawn) .pipe { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
html.js-motion .iso:not(.is-drawn) .reveal { opacity: 0; }
html.js-motion .iso:not(.is-flowed) .exit { opacity: 0; }
html.js-motion .iso:not(.is-lit-all) .weld:not(.is-lit) { opacity: 0; }
html.js-motion .iso:not(.is-flowed) .seg { opacity: 0; }
html.js-motion .iso:not(.is-flowed) .zone { opacity: 0; transform: scale(.4); }
html.js-motion .iso:not(.is-open) .disc { transform: rotate(90deg); }

/* Plateau du plan */
.iso-stage { position: relative; }
.iso-wrap { margin-top: 32px; }

/* Puces de repères sous le dessin (navigation principale sur téléphone) */
.weld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.weld-chips button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 6px;
  font: 500 var(--fs-small)/1 var(--font-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.weld-chips button .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); font-family: var(--font-cote); font-size: 1rem;
  transition: background-color .18s, color .18s;
}
.btn, .weld-chips button, .wa-float { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.weld-chips button[aria-selected="true"] .n { box-shadow: 0 0 0 5px rgba(166, 52, 43, .16); }
.weld-chips button[aria-selected="true"] { border-color: var(--ink); background: var(--paper); }
.weld-chips button[aria-selected="true"] .n { background: var(--red); color: #fff; }
.iso-note { margin-top: 14px; color: var(--muted); font-size: var(--fs-small); }

/* Ligne de rappel entre repère actif et encart */
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.leader line { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 5; }
.leader circle { fill: var(--red); }

main { position: relative; }

/* Sections */
.sec { padding: calc(var(--u) * 11) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: var(--split); gap: 32px var(--split-gap); align-items: end; margin-bottom: 40px; }
.sec-head .intro { margin: 0; }
.why-intro { margin-top: 20px; }
.why-grid .why { margin-top: 32px; }
.podcast-intro { margin-top: 12px; }

/* Nomenclature des prestations */
.nomen { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--ink); }
.nomen th, .nomen td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.nomen th { font: 600 var(--fs-small)/1.2 var(--font-body); color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--ink); }
.nomen td.rep { width: 72px; }
.nomen td.name { width: 24%; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.nomen td.desc { color: var(--ink-2); }
.nomen td.link { width: 150px; text-align: right; white-space: nowrap; }
.nomen tr:last-child td { border-bottom: 0; }
.nomen .balloon { transition: background-color .15s, color .15s; }
.balloon {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); font-family: var(--font-cote); font-size: 1.0625rem; background: #fff; flex: none;
}

/* Figures avec légendes en lignes de rappel */
.fig { margin: 0; }
.fig-media { position: relative; overflow: hidden; background: var(--steel-light); border: 1px solid var(--ink); }
.fig-media img { width: 100%; height: 100%; object-fit: cover; }
.fig-media.r43 { aspect-ratio: 4 / 3; }
.fig-media.r34 { aspect-ratio: 3 / 4; }
.fig-media.r32 { aspect-ratio: 3 / 2; }
.fig-media.r11 { aspect-ratio: 1 / 1; }
.callout { --k: 1; position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.callout i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
/* --dx / --dy sont des nombres sans unité (pixels), convertis ici */
.callout { --ox: calc(var(--dx) * var(--k) * 1px); --oy: calc(var(--dy) * var(--k) * 1px); }
.callout::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1.5px; background: var(--red);
  width: 64px;
  width: hypot(var(--ox), var(--oy));
  transform-origin: 0 50%;
  transform: rotate(atan2(var(--oy), var(--ox)));
}
.callout b {
  position: absolute; left: 0; top: 0; transform: translate(var(--ox), calc(var(--oy) - 50%));
  white-space: nowrap; font: 400 var(--fs-small)/1 var(--font-cote); color: var(--ink); background: #fff;
  padding: 7px 10px; border: 1px solid var(--ink);
}
.callout.left b { transform: translate(calc(var(--ox) - 100%), calc(var(--oy) - 50%)); }
.callout i { transition: transform .15s var(--ease-out), opacity .15s; }
.callout::before { transition: transform .45s var(--ease-out) .12s; }
.callout b { transition: opacity .2s var(--ease-out) .48s; }
html.js-motion .fig-media:not(.is-drawn) .callout i { transform: scale(.5); opacity: 0; }
html.js-motion .fig-media:not(.is-drawn) .callout::before { transform: rotate(atan2(var(--oy), var(--ox))) scaleX(0); }
html.js-motion .fig-media:not(.is-drawn) .callout b { opacity: 0; }
figcaption.fig-cap { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }

/* Réalisations (accueil) */
.proj-grid { display: grid; grid-template-columns: var(--split); gap: 48px var(--split-gap); align-items: start; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.projects li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.projects .client-logo { width: 88px; height: 88px; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule); padding: 8px; }
.projects .client-logo img { max-height: 100%; width: auto; object-fit: contain; }
.projects h3 { margin-bottom: 6px; }
.projects p { color: var(--ink-2); }
.projects a { display: inline-block; margin-top: 10px; font-weight: 600; }

/* Pourquoi ETIM */
.why-grid { display: grid; grid-template-columns: var(--split); gap: 48px var(--split-gap); align-items: start; }
.why { margin: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.why-grid > .fig { order: 2; }
.why div { padding-top: 14px; border-top: 2px solid var(--ink); }
.why dt { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; margin-bottom: 8px; }
.why dd { margin: 0; color: var(--ink-2); }

/* Clients */
.iso-hint { display: none; align-items: center; gap: 8px; margin-top: 8px; font: 400 var(--fs-small)/1 var(--font-cote); color: var(--muted); }
.iso-hint::before { content: ""; width: 28px; height: 1.5px; background: var(--muted); }
.client-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.client-names li { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); padding: 12px 0; border-top: 1px solid var(--rule); line-height: 1.2; }

/* Podcast */
.podcast { display: grid; grid-template-columns: var(--split); gap: 24px var(--split-gap); align-items: center; border-top: 1px solid var(--ink); padding-top: 32px; }
.player { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.player-btn { width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }
.player-btn .ic { width: 20px; height: 20px; }
.player-bar { position: relative; height: 24px; cursor: pointer; touch-action: none; }
.player-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--rule); }
.player-fill { position: absolute; left: 0; top: 11px; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.player-knob { position: absolute; top: 6px; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--red); }
.player-time { font: 400 var(--fs-small)/1 var(--font-cote); color: var(--ink-2); min-width: 7.5em; text-align: right; }
.podcast audio { width: 100%; }
html.js .podcast audio { display: none; }
html:not(.js) .player { display: none; }

/* Bande d'appel (aplat bleu) */

/* Cartouche (pied de page) */

/* WhatsApp flottant (téléphone) */
.wa-float {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; place-items: center;
  background: var(--blue); color: #fff; box-shadow: var(--shadow);
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out);
}

.wa-float .ic { width: 28px; height: 28px; }

.hero.sheet, .sheet-title { position: relative; }

/* Pages intérieures : titre de feuille */
.sheet-title { padding: calc(var(--u) * 7) 0 calc(var(--u) * 6); border-bottom: 1px solid var(--rule); }
.sheet-title .wrap { display: grid; grid-template-columns: var(--split); gap: 24px var(--split-gap); align-items: end; }
.sheet-title h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 3.9rem); }
.sheet-title .actions { margin-top: 20px; }
.sheet-title .lede { margin-top: 0; }

/* Sommaire des services */
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.toc a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.toc .balloon { width: 28px; height: 28px; font-size: var(--fs-small); }

/* Services : une feuille par famille */
.srv { padding: calc(var(--u) * 10) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 88px; }
.srv-grid { display: grid; grid-template-columns: var(--split); gap: 40px var(--split-gap); align-items: start; }
.srv-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; align-items: start; }
.srv-head .balloon { margin-top: 6px; }
.srv-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.0625rem; max-width: 38em; }
.ops { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--ink); }
.ops li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); line-height: 1.45; }
.ops li b { display: block; color: var(--ink); font-weight: 600; }
.srv-note { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); }
.srv-side { display: grid; gap: 20px; }

/* Réalisations : projets */
.proj { padding: calc(var(--u) * 10) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 88px; }
.proj-head { display: grid; grid-template-columns: 36px 112px minmax(0, 1fr); gap: 28px; align-items: start; }
.proj-head .balloon { margin-top: 38px; position: relative; }
.proj-head .balloon::after { content: ""; position: absolute; left: 100%; top: 50%; width: 28px; height: 1.5px; background: var(--red); }
.proj-head .client-logo { width: 112px; height: 112px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ink); padding: 10px; }
.proj-head .client-logo img { max-height: 100%; width: auto; object-fit: contain; }
.proj-head .meta { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
.proj-body { display: grid; grid-template-columns: var(--split); gap: 32px var(--split-gap); margin-top: 28px; align-items: start; }
.proj-body p { color: var(--ink-2); font-size: 1.0625rem; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--fs-small); color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border: 1px solid var(--ink); background: var(--steel-light); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: #fff; border: 1px solid var(--ink); padding: 6px 10px; font: 400 var(--fs-small)/1.2 var(--font-cote); color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: var(--split); gap: 40px var(--split-gap); align-items: start; }
.form { background: #fff; border: 1px solid var(--ink); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 11px 12px;
  transition: border-color .15s, background-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(43,79,115,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--red); }
.field .err { display: block; margin-top: 6px; color: var(--red); font-size: var(--fs-small); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form-foot small { color: var(--muted); }
.notice { padding: 16px 18px; border: 1px solid var(--ink); background: #fff; margin-bottom: 20px; }
.notice.ok { border-color: #2E7D4F; background: #F0F7F2; }
.notice.ko { border-color: var(--red); background: #FBF2F1; }
.notice p + p { margin-top: 8px; }
.contact-side { display: grid; gap: 20px; }
.coord { background: #fff; border: 1px solid var(--ink); }
.coord a, .coord div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.coord > :last-child { border-bottom: 0; }
.coord .ic { width: 22px; height: 22px; color: var(--blue); }
.coord small { display: block; color: var(--muted); font-size: var(--fs-small); }
.coord b { font-weight: 600; }
.side-note { color: var(--muted); font-size: var(--fs-small); padding: 0 4px; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iso .weld.is-active .halo { opacity: .22; transform: scale(1.3); }
  *, *::before, *::after { animation-duration: 0s !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: .15s !important; }
}

/* Tablette */
@media (max-width: 1023px) {
  .hero-head { grid-template-columns: 1fr; gap: 20px; }
  .hero-head h1 { grid-row: auto; }
  .detail-inset { max-width: 560px; margin-top: 24px; }
  .leader { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .proj-grid, .why-grid, .srv-grid, .proj-body, .contact-grid, .sheet-title .wrap { grid-template-columns: 1fr; }
  .podcast { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
}

@media (min-width: 1024px) {
  .iso-stage { display: grid; }
  .iso-stage > .iso-scroll, .iso-stage > .detail-inset { grid-area: 1 / 1; }
  .iso-stage .detail-inset { position: relative; align-self: start; margin: 19.1% 0 0 33.75%; width: 30.8%; z-index: 2; }
  .weld-chips { margin-top: 32px; }
}

/* Ordinateur : rail visible (points seuls), libellés quand la marge le permet */
@media (min-width: 1360px) {
  .page-accueil   }

/* Téléphone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wa-float { display: grid; }
  .head-row { min-height: 64px; }
  .brand img { width: 96px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px;
    font: 600 var(--fs-small)/1 var(--font-body); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars { width: 18px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--rule-soft); font-size: 1.0625rem; }
  .nav > a[aria-current="page"] { border-bottom-color: var(--rule-soft); color: var(--blue); }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .hero { padding-top: 40px; }
  .detail-inset::before { left: -6px; top: -6px; }
  .detail-inset::after { right: -6px; bottom: -6px; }
  .nav > a:not(.btn) { background: none; border-bottom: 1px solid var(--rule-soft); padding: 14px 4px; }
  html.js body.page-accueil:not(.is-away) .wa-float { transform: translateY(96px); opacity: 0; pointer-events: none; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .detail-inset { max-width: none; }
  .iso-wrap { margin-top: 32px; }
  .sec { padding: 56px 0; }
  .nomen, .nomen tbody, .nomen tr, .nomen td { display: block; }
  .nomen thead { display: none; }
  .nomen tr { padding: 16px 16px 18px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 36px 1fr; gap: 6px 14px; }
  .nomen td { padding: 0; border: 0; width: auto !important; }
  .nomen td.rep { grid-row: 1 / span 3; }
  .nomen td.name { font-size: 1.25rem; }
  .nomen td.link { text-align: left; margin-top: 4px; }
  .callout { --k: .55; }
  .why { grid-template-columns: 1fr; }
  .iso-hint { display: flex; }
  .iso-wrap { display: flex; flex-direction: column; }
  .iso-stage { display: contents; }
  .iso-scroll { order: 1; } .iso-hint { order: 2; } .weld-chips { order: 3; } .detail-inset { order: 4; } .iso-note { order: 5; }
  .weld-chips button, .toc a, .nav-toggle { min-height: 44px; }
  .contact-side { order: -1; }
  .client-names { grid-template-columns: 1fr 1fr; }
  .client-names li { font-size: 1.0625rem; }
  .player { grid-template-columns: 48px minmax(0, 1fr); }
  .player-time { grid-column: 2; text-align: left; }
  .toc a { font-size: var(--fs-small); }
  .ops { grid-template-columns: 1fr; }
  .proj-head { grid-template-columns: 28px 80px 1fr; gap: 14px; }
  .proj-head .balloon { width: 28px; height: 28px; font-size: var(--fs-small); margin-top: 26px; }
  .proj-head .balloon::after { width: 14px; }
  .proj-head .client-logo { width: 80px; height: 80px; }
      .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .gallery figcaption { font-size: var(--fs-micro); left: 6px; bottom: 6px; max-width: calc(100% - 12px); }
  .form { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .srv, .proj { padding: 56px 0; }
}

/* Appui : un seul geste, ressenti en 120 ms */
.btn, .weld-chips button, .toc a, .coord a, .nav-toggle, .player-btn { transition-property: background-color, border-color, color, transform, opacity; transition-duration: .18s, .18s, .18s, .12s, .2s; transition-timing-function: var(--ease-out); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active, .weld-chips button:active, .toc a:active, .coord a:active, .nav-toggle:active, .player-btn:active { transform: scale(.97); }
.wa-float:active { transform: scale(.95); transition-duration: .1s; }

/* Focus clavier visible sur les aplats bleus et sur le plan */
.iso .weld:focus-visible .zone { opacity: 1; transform: scale(1); stroke: var(--ink); }

/* Formulaire : liste déroulante dessinée, poignée retirée */
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231A3049' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 9px; }
.field textarea { resize: none; }
.form button[disabled] { opacity: .7; cursor: progress; }

/* Le bouton flottant s'efface quand il ferait doublon ou masquerait un champ */
.page-contact .wa-float { display: none; }
body.is-band .wa-float, body:has(.form :focus) .wa-float { transform: translateY(96px); opacity: 0; pointer-events: none; }

.nav > a:not(.btn):focus-visible, .nav > a[aria-current="page"] { background-size: 100% 2px; }
.iso .weld:focus-visible circle.bal { stroke-width: 3.5; }
.nomen tbody tr:focus-within .balloon { background: var(--red); color: #fff; }
/* La ligne entière de la nomenclature ouvre sa feuille */
.nomen tbody tr { position: relative; }
.nomen td.link a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) { .nomen tbody tr { cursor: pointer; } }

/* Survol réservé aux souris (pas d'état collé après un appui sur Android) */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--blue-deep); }
  .btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
  .btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
  .btn-light:hover { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }
  .btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
  .nav > a:not(.btn):hover { background-size: 100% 2px; }
  .iso .weld:hover circle.bal { stroke-width: 3.5; }
  .weld-chips button:hover { border-color: var(--ink); }
  .nomen tbody tr:hover td { background: #FAFBFC; }
  .nomen tbody tr:hover .balloon { background: var(--red); color: #fff; }
  .toc a:hover { border-color: var(--ink); }
  .coord a:hover { background: var(--paper); }
}

/* Téléphone : le plan entier dans la largeur, repères agrandis, libellés secondaires masqués */
@media (max-width: 767px) {
  .iso .lbl { display: none; }
  .iso .weld circle.bal { r: 30px; stroke-width: 5; }
  .iso .weld text { font-size: 30px; }
  .iso .weld .joint, .iso .weld.is-active .joint { r: 7px; }
  .iso .weld line { stroke-width: 3; }
  .proj-head { grid-template-columns: 28px 80px minmax(0, 1fr); align-items: center; }
  .proj-head > div:last-child { grid-column: 1 / -1; }
  .proj-head .balloon { margin-top: 0; }
}

/* Échelle : 62 / 40 / 20 / 17 / 14,4 / 11,5 px */
.iso .weld text { font-size: 20px; }
/* Feuilles de Services : le texte accompagne les photos */
@media (min-width: 1024px) { .srv-grid > div:first-child { position: sticky; top: 104px; } }
/* Clients : colonnes fixes, jamais de rangée orpheline */
.client-names { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1263px) { .client-names { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .client-names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Un seul filet au-dessus du podcast ; note de contact sur l'axe */
#podcast { border-top: 0; }
.side-note { padding: 0; }
/* Légende de la vue : le repère ne se coupe jamais */
.detail-inset figcaption { flex-wrap: wrap; row-gap: 4px; }
.detail-inset figcaption .cote { white-space: nowrap; }
/* Appui et relâché : le relâché est plus rapide */
.wa-float { transition: transform .15s var(--ease-out), opacity .2s var(--ease-out); }
.nomen tbody tr { -webkit-tap-highlight-color: transparent; }
.nomen tbody tr:active td { background: var(--steel-light); }
/* Cibles tactiles */
.player-bar { height: 44px; }
.player-bar::before, .player-fill { top: 21px; }
.player-knob { top: 16px; }
@media (max-width: 767px) {
  .nav .btn { min-height: 48px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .lede, .intro { font-size: 1rem; }
}
.player.is-waiting .player-btn { opacity: .7; cursor: progress; }
@media (max-width: 767px) {
  .iso .weld circle.bal { r: 32px; stroke-width: 5; }
  .iso .weld text { font-size: 30px; }
}

/* Partenaires : un mur de logos à cases égales */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.logo-wall li { background: #fff; border: 1px solid var(--rule); height: 96px; display: grid; place-items: center; padding: 10px; }
.logo-wall img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.also { margin-top: 16px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 1023px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logo-wall li { height: 104px; } }
@media (max-width: 767px) { .logo-wall li { height: 84px; padding: 8px; } .logo-wall img { max-height: 56px; } }

/* Téléphone : textes alignés sur le bord, une photo par service, liens faciles à toucher */
@media (max-width: 767px) {
  .srv-head { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .srv-head .balloon { width: 28px; height: 28px; font-size: var(--fs-small); margin-top: 4px; }
  .srv-head > div { display: contents; }
  .srv-head h2 { grid-column: 2; }
  .srv-head p { grid-column: 1 / -1; margin-top: 4px; }
  .srv-side .fig + .fig { display: none; }
  .projects a, .detail-inset figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Pied de page : un seul cartouche de plan (appel, cases, menu) */
.site-foot { --foot-rule: rgba(255, 255, 255, .28); background: var(--blue-deep); color: #fff; }
.site-foot .band { padding: calc(var(--u) * 11) 0 calc(var(--u) * 6); }
.band-grid { display: grid; grid-template-columns: var(--split); gap: 28px var(--split-gap); align-items: end; }
.band h2 { color: #fff; max-width: none; }
.band p { margin-top: 14px; color: var(--blue-tint); max-width: 34em; font-size: 1.0625rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band-actions .btn { flex: 1 1 200px; justify-content: center; }
.site-foot > .wrap:first-child { padding-top: calc(var(--u) * 8); }
.cart { display: grid; grid-template-columns: 172px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.2fr); border: 1px solid var(--foot-rule); }
.cart-cell { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; min-height: 96px; padding: 16px 18px; border-right: 1px solid var(--foot-rule); font-size: .9375rem; line-height: 1.35; }
.cart-cell:last-child { border-right: 0; }
.cart-k { font-size: var(--fs-micro); color: var(--blue-tint); letter-spacing: .02em; }
.cart-desig strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.15; }
.cart-cell a { color: #fff; text-underline-offset: .2em; overflow-wrap: anywhere; }
.cart-logo { background: #fff; align-items: center; justify-content: center; padding: 12px 18px; }
.cart-logo img { width: 128px; height: auto; }
.cart-plan { display: grid; grid-template-columns: auto auto; justify-content: start; align-content: start; gap: 8px 28px; }
.cart-plan > span { display: flex; flex-direction: column; gap: 2px; }
.cart-plan .cote { font-size: 1.0625rem; white-space: nowrap; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 28px; font-size: var(--fs-small); color: var(--blue-tint); }
.cart-foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.cart-foot a { color: #fff; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cart-foot a:hover, .cart-cell a:hover { text-decoration: underline; } }
@media (max-width: 1023px) {
  .band-grid { grid-template-columns: 1fr; }
  .band-actions { max-width: 560px; }
  .cart { grid-template-columns: 160px minmax(0, 1fr); }
  .cart-cell { border-bottom: 1px solid var(--foot-rule); }
  .cart-cell:nth-child(2n) { border-right: 0; }
  .cart-plan { grid-column: 1 / -1; grid-template-columns: repeat(4, auto); justify-content: space-between; border-bottom: 0; }
}
@media (max-width: 767px) {
  .site-foot .band { padding: 56px 0 32px; }
  .band-actions .btn { flex-basis: 100%; }
  .site-foot > .wrap:first-child { padding-top: 48px; }
  .cart { grid-template-columns: 1fr; }
  .cart-cell { min-height: 0; border-right: 0; padding: 14px 16px; }
  .cart-logo { padding: 12px; }
  .cart-logo img { width: 116px; }
  .cart-cell a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
  .cart-plan { gap: 8px 16px; }
  .cart-foot { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .cart-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .page-contact .cart-foot { padding-bottom: 28px; }
}
.cart-desig strong { text-wrap: balance; }
.proj-photos { margin-top: 32px; }
@media (min-width: 768px) { .proj-photos { grid-auto-rows: 260px; } }

/* Photos (ordinateur et tablette seulement) : balayage court sur les grandes photos, fondu rapide dans la galerie */
.ph-reveal, .ph-fade { position: relative; }
.ph-reveal img, .ph-fade img { transition: transform .7s var(--ease-out); }
.callout { z-index: 2; }
@media (min-width: 768px) {
  html.js-motion .ph-reveal::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: 100% 50%; z-index: 1; pointer-events: none; transition: transform .6s var(--ease-out) var(--d, 0ms); }
  html.js-motion .ph-reveal.is-in::before { transform: scaleX(0); }
  html.js-motion .ph-reveal::after { content: ""; position: absolute; inset: 0; border-right: 2px solid var(--ink); transform: translateX(-100%); opacity: 0; pointer-events: none; z-index: 1; }
  html.js-motion .ph-reveal.is-in::after { animation: ph-scan .6s var(--ease-out) var(--d, 0ms) both; }
  html.js-motion .ph-reveal:not(.is-in) .callout { opacity: 0; }
  html.js-motion .ph-fade { transition: opacity .25s var(--ease-out) var(--d, 0ms); }
  html.js-motion .ph-fade:not(.is-in) { opacity: 0; }
}
@keyframes ph-scan { 0% { transform: translateX(-100%); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }

/* Galerie : la photo s'approche sous la souris, s'ouvre au clic */
.gallery figure { cursor: zoom-in; }
.gallery figure:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.04); } }

/* Visionneuse */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
dialog.viewer::backdrop { background: rgba(16, 30, 46, .97); }
html:has(dialog.viewer[open]) { overflow: hidden; }
.v-fig { margin: 0; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 64px 72px 28px; }
.v-frame { transform-origin: 0 0; }
.v-img { display: block; max-width: min(100%, 1200px); max-height: calc(100dvh - 150px); width: auto; height: auto; border: 1px solid rgba(255, 255, 255, .3); background: #0d1a29; user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
.v-cap { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; font-size: var(--fs-small); color: var(--blue-tint); text-align: center; }
.v-count { color: #fff; font-size: 1rem; }
.v-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); background: rgba(16, 30, 46, .6); color: #fff; cursor: pointer; transition: background-color .18s, border-color .18s, transform .12s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.v-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-btn:active { transform: scale(.95); }
.v-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .v-btn:hover { background: var(--blue); border-color: #fff; } }
.v-prev { left: 16px; top: 50%; margin-top: -24px; }
.v-next { right: 16px; top: 50%; margin-top: -24px; }
.v-close { right: 16px; top: 12px; }
@media (max-width: 767px) {
  .v-fig { padding: 64px 12px 84px; }
  .v-img { max-height: calc(100dvh - 190px); }
  .v-prev, .v-next { top: auto; bottom: 18px; margin-top: 0; }
  .v-prev { left: calc(50% - 60px); } .v-next { right: calc(50% - 60px); }
}
