/* =========================================================
   FLEXROL by ROLTECH — feuille de style
   Clair, inox et bleu nuit ; cyan ROLTECH en accent
   ========================================================= */

:root {
  --navy: #0b2545;
  --navy-2: #13345e;
  --cyan: #00aeef;
  --cyan-dark: #0089c2;
  --cyan-soft: rgba(0, 174, 239, .1);
  --steel: #8a939f;
  --steel-2: #d5dae1;

  --bg: #ffffff;
  --bg-2: #f3f5f8;
  --surface: #ffffff;
  --text: #0e1726;
  --muted: #586273;
  --border: #e2e6ec;
  --shadow: 0 18px 44px rgba(11, 37, 69, .09);

  --ink: #0b2545;
  --btn: #0b2545;
  --btn-hover: #13345e;
  --btn-text: #ffffff;
  --chip: #0b2545;
  --band: #0b2545;
  --header-bg: rgba(255, 255, 255, .9);
  --hero-a: #f7f9fc;
  --hero-b: #eef2f7;
  --glass: rgba(255, 255, 255, .88);
  --img-bg: #ffffff;
  --bar-a: #dfe4ea;
  --bar-b: #c7ced8;
  --stage-a: #ffffff;
  --stage-b: #e9eef4;
  --warn-bg: #fff4e5;
  --warn-text: #8a4b00;
  --foot-bg: #071a31;
  color-scheme: light;

  --radius: 14px;
  --header-h: 76px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* thème sombre : réglage de l'ordinateur, ou bouton lune/soleil */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08111e; --bg-2: #0d1828; --surface: #111e31; --text: #e3eaf3; --muted: #93a3b8; --border: #22324a;
    --shadow: 0 18px 44px rgba(0, 0, 0, .45); --ink: #f2f7fd; --cyan-dark: #45c6f5; --cyan-soft: rgba(0, 174, 239, .15);
    --btn: #00aeef; --btn-hover: #24bdf3; --btn-text: #04182e; --chip: #17365c; --band: #0e2240; --header-bg: rgba(8, 17, 30, .86);
    --hero-a: #0d1a2c; --hero-b: #08111e; --glass: rgba(17, 30, 49, .88); --img-bg: #e9edf2;
    --bar-a: #2a3c56; --bar-b: #3d5373; --stage-a: #18273d; --stage-b: #0b1524;
    --warn-bg: #3a2a10; --warn-text: #ffcf8a; --foot-bg: #050c16; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08111e; --bg-2: #0d1828; --surface: #111e31; --text: #e3eaf3; --muted: #93a3b8; --border: #22324a;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45); --ink: #f2f7fd; --cyan-dark: #45c6f5; --cyan-soft: rgba(0, 174, 239, .15);
  --btn: #00aeef; --btn-hover: #24bdf3; --btn-text: #04182e; --chip: #17365c; --band: #0e2240; --header-bg: rgba(8, 17, 30, .86);
  --hero-a: #0d1a2c; --hero-b: #08111e; --glass: rgba(17, 30, 49, .88); --img-bg: #e9edf2;
  --bar-a: #2a3c56; --bar-b: #3d5373; --stage-a: #18273d; --stage-b: #0b1524;
  --warn-bg: #3a2a10; --warn-text: #ffcf8a; --foot-bg: #050c16; color-scheme: dark;
}
/* logo : version blanche en sombre */
.logo .on-dark, .theme-sun { display: none; }
:root[data-theme="dark"] .logo .on-light, :root[data-theme="dark"] .theme-moon { display: none; }
:root[data-theme="dark"] .logo .on-dark, :root[data-theme="dark"] .theme-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .on-light, :root:not([data-theme="light"]) .theme-moon { display: none; }
  :root:not([data-theme="light"]) .logo .on-dark, :root:not([data-theme="light"]) .theme-sun { display: block; }
}

html[data-lang="fr"] [data-l="en"],
html[data-lang="en"] [data-l="fr"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); overflow-x: hidden; transition: background .3s, color .3s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: var(--cyan); color: #fff; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--cyan); }
.h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.lead { font-size: clamp(1.03rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 660px; }
.center .lead { margin-inline: auto; }
.hl { color: var(--cyan-dark); }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font: 700 .95rem/1 var(--font-head); border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 37, 69, .25); }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { background: var(--cyan-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 137, 194, .3); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.btn-sm { padding: 11px 18px; font-size: .86rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* en-tête */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 10px 14px; border-radius: 999px; font: 600 .93rem/1 var(--font-head); color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.active { color: var(--ink); background: var(--cyan-soft); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; font: 800 .78rem/1 var(--font-head); }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { display: none; }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 18px; transform: translateY(-130%); transition: transform .3s; z-index: -1; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 10px; font-size: 1.05rem; border-radius: 10px; }
  .tools { margin-left: auto; }
  .tools .btn { display: none; }
  .burger { display: grid; }
}
@media (max-width: 420px) { .logo img { height: 32px; } }

/* hero 3D */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--hero-a) 0%, var(--hero-b) 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; min-height: min(760px, calc(100vh - var(--header-h))); padding: 48px 0; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.hero .lead { margin-bottom: 30px; }
.hero-3d { position: relative; height: min(640px, 70vh); min-height: 380px; cursor: grab; touch-action: pan-y; }
.hero-3d:active { cursor: grabbing; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-badge { position: absolute; left: 12px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); font: 600 .78rem/1 var(--font-head); color: var(--ink); pointer-events: none; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0, 174, 239, 0); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-dark); font: 700 .8rem/1 var(--font-head); margin-bottom: 22px; }
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding: 40px 0 8px; }
  .hero-3d { height: 380px; min-height: 0; }
}
.page-hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 70px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 900px; }

/* chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-top: -46px; position: relative; z-index: 3; }
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; }
.stat strong small { font-size: .5em; color: var(--cyan-dark); margin-left: 3px; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; margin-top: 24px; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }

/* cartes */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0, 174, 239, .4); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--chip); color: var(--cyan); display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 26px; height: 26px; }
.media { padding: 0; overflow: hidden; }
.media .img { aspect-ratio: 4 / 3; background: var(--img-bg); overflow: hidden; border-bottom: 1px solid var(--border); }
.media .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.media:hover .img img { transform: scale(1.05); }
.media .img.cover img { object-fit: cover; }
.media .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.more { margin-top: auto; padding-top: 16px; color: var(--cyan-dark); font: 700 .9rem/1 var(--font-head); display: inline-flex; gap: 8px; align-items: center; }
.more svg { width: 16px; height: 16px; }
.tag { display: inline-block; font: 800 .72rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-dark); margin-bottom: 8px; }

/* gamme MCC */
.range { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .range { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; background: var(--surface); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan); }
.model .w { font: 800 2.6rem/1 var(--font-head); color: var(--ink); letter-spacing: -.04em; }
.model .w small { font-size: .38em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.model h3 { font-size: 1rem; margin: 6px 0 14px; color: var(--cyan-dark); }
.model .bar { height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--bar-a) 0 9px, var(--bar-b) 9px 11px); margin-bottom: 14px; }
.model p { color: var(--muted); font-size: .9rem; margin: 0; }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 76px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--img-bg); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.photo.cover img { object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* tableaux */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { color: var(--muted); font-weight: 500; width: 55%; }
.spec-table td { font-weight: 600; color: var(--ink); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: .92rem; white-space: nowrap; }
.data th, .data td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.data thead th { background: var(--chip); color: #fff; font: 700 .82rem/1.2 var(--font-head); letter-spacing: .02em; }
.data tbody tr:last-child td { border-bottom: 0; }
.data td.k { font-weight: 700; color: var(--ink); }
.note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* bandeau sombre */
.dark { background: var(--band); color: #e8eef6; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark p { color: #a9b8ca; }
.cta { border-radius: 28px; padding: clamp(32px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 46px solid rgba(0, 174, 239, .16); pointer-events: none; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 640px; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 560px; }
.cta > * { position: relative; z-index: 1; }

/* formulaires */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label, .lbl { display: block; font: 700 .82rem/1.2 var(--font-head); margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.status { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1.4em; }
.status.ok { color: #16a34a; } .status.err { color: #dc2626; }
.hp { position: absolute; left: -9999px; }

/* configurateur */
.cfg { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
@media (max-width: 1000px) { .cfg { grid-template-columns: 1fr; } }
.cfg-view { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1000px) { .cfg-view { position: static; order: -1; } }
.stage3d { position: relative; height: clamp(340px, 58vh, 600px); border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(120% 90% at 50% 0%, var(--stage-a), var(--stage-b)); overflow: hidden; cursor: grab; touch-action: none; }
.stage3d:active { cursor: grabbing; }
.stage3d canvas { display: block; width: 100% !important; height: 100% !important; }
.stage-hint { position: absolute; left: 14px; bottom: 12px; font-size: .76rem; color: var(--muted); pointer-events: none; }
.stage-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.stage-tools button { border: 1px solid var(--border); background: var(--glass); border-radius: 999px; padding: 8px 12px; font: 700 .78rem/1 var(--font-head); color: var(--ink); cursor: pointer; }
.stage-tools button:hover, .stage-tools button.on { border-color: var(--cyan); color: var(--cyan-dark); }
.stage3d[hidden], .plan2d[hidden] { display: none; }
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.view-tabs button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font: 700 .84rem/1 var(--font-head); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button.on { background: var(--btn); color: var(--btn-text); }
.plan2d { position: relative; height: clamp(340px, 58vh, 600px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.plan2d svg { display: block; width: 100%; height: 100%; }
.plan2d line, .p-axis, .p-flow, .p-ext, .p-dim { vector-effect: non-scaling-stroke; fill: none; }
.p-grid { stroke: var(--border); stroke-width: 1; }
.p-frame { fill: none; stroke: var(--bar-b); stroke-linejoin: round; }
.p-chain { fill: none; stroke: var(--bar-a); stroke-linejoin: round; }
.p-plate { stroke: var(--bar-b); stroke-width: .6; opacity: .7; }
.p-axis { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 8 5; }
.p-flow { stroke: var(--cyan-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-end { fill: var(--bar-b); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.p-motor { fill: var(--cyan); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.p-wheel { fill: #2b333e; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.p-leg { fill: var(--ink); opacity: .75; }
.p-ctr { fill: var(--muted); }
.p-ext { stroke: var(--muted); stroke-width: .8; }
.p-dim { stroke: var(--ink); stroke-width: 1; }
.p-dim-t, .p-tag { fill: var(--ink); font-family: var(--font-body); font-weight: 600; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.p-tag { fill: var(--muted); font-weight: 500; }
.p-num { fill: var(--btn); }
.p-num-t { fill: var(--btn-text); font-family: var(--font-head); font-weight: 800; text-anchor: middle; }
.step { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin-bottom: 16px; }
.step h3 { font-size: 1.04rem; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step h3 i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: block; height: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink); transition: border-color .2s, background .2s; }
.choice > span small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.segs { display: grid; gap: 8px; }
.seg { display: grid; grid-template-columns: 28px minmax(0, 1fr) 128px 42px; gap: 8px; align-items: center; }
.seg > b { width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-dark); display: grid; place-items: center; font: 800 .8rem/1 var(--font-head); }
.seg select, .seg input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; min-width: 0; }
.seg select:focus, .seg input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
.seg-len { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.seg .icon-btn { font-size: 1.2rem; }
.seg .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 520px) { .seg { grid-template-columns: 28px minmax(0, 1fr) 42px; } .seg-len { grid-column: 2; } .seg .icon-btn { grid-row: 1; grid-column: 3; } }
.hint { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.warn { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: .88rem; }
.summary { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 20px 22px; }
.summary .ref { font: 800 1.05rem/1.3 var(--font-head); color: var(--cyan-dark); word-break: break-all; margin-bottom: 12px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--ink); }
.summary .actions { margin-top: 18px; }

/* pied de page */
.site-footer { background: var(--foot-bg); border-top: 1px solid var(--border); color: #93a4b8; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer .logo img { height: 44px; }
.site-footer h4 { color: #fff; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; }

/* apparitions */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .no-print, .cfg-form, .stage-tools { display: none !important; }
  .cfg { display: block; }
  .cfg-view { position: static; }
  .print-head { display: block !important; }
  .stage3d { display: none !important; }
  .plan2d { display: block !important; height: 120mm; border: 0; }
  .plan2d .stage-hint { position: static; display: block; margin-top: 4px; }
}
.print-head { display: none; margin-bottom: 16px; }
