/* Quantum by Theben — feuille de style commune
   Concept : bandes alternées graphite / pierre, comme les plans d'un dossier d'architecte.
   Un seul accent (bronze), titrage serif, références techniques en mono. */
:root {
  --ink: #111315;        /* fond sombre principal */
  --ink-2: #1B1E21;      /* fond sombre secondaire */
  --line-d: #2E3236;     /* filets sur fond sombre */
  --on-dark: #F2F0EB;    /* texte sur fond sombre */
  --muted-d: #A9A6A0;    /* texte secondaire sur fond sombre */
  --paper: #FAF9F6;      /* fond clair principal */
  --stone: #F2F0EB;      /* fond clair secondaire */
  --line: #E2DED6;       /* filets sur fond clair */
  --text: #1A1A1A;       /* texte sur fond clair */
  --text-2: #4A4844;     /* texte secondaire sur fond clair */
  --bronze: #C4A574;     /* accent sur fond sombre */
  --bronze-d: #7A5F36;   /* accent sur fond clair */
  --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; letter-spacing: -0.3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--bronze-d); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- Bandes et conteneurs ---------- */
.band { background: var(--paper); color: var(--text); }
.band--stone { background: var(--stone); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark-2 { background: var(--ink-2); color: var(--on-dark); }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 112px;
}
.wrap--tight { padding-block: 48px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 56px; }

/* ---------- Typographie ---------- */
.eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze-d); font-weight: 500; }
.band--dark .eyebrow, .band--dark-2 .eyebrow { color: var(--bronze); }
.h-xl { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.03; }
.h-lg { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; }
.h-md { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.italic { font-style: italic; }
.accent { color: var(--bronze-d); }
.band--dark .accent, .band--dark-2 .accent { color: var(--bronze); }
.lead { font-size: 19px; line-height: 1.65; color: var(--text-2); max-width: 62ch; }
.band--dark .lead, .band--dark-2 .lead { color: #C9C6C0; }
.small { font-size: 14px; color: var(--text-2); }
.band--dark .small, .band--dark-2 .small { color: var(--muted-d); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2px; }

/* ---------- Boutons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 2px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--bronze); color: var(--ink); }
.btn--primary:hover { background: var(--on-dark); color: var(--ink); }
.btn--ghost { border-color: #5A5D61; color: var(--on-dark); font-weight: 500; }
.btn--ghost:hover { border-color: var(--bronze); color: var(--on-dark); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--bronze-d); color: var(--on-dark); }
.btn--line { border-color: var(--text); color: var(--text); font-weight: 500; }
.btn--line:hover { background: var(--text); color: var(--paper); }

/* ---------- En-tête ---------- */
.site-header { background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-d); }
.site-header .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--on-dark); text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 30px; line-height: 1; }
.brand__by { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted-d); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.nav a { color: #D8D5CF; text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--bronze); }
.nav .nav__cta { border: 1px solid var(--bronze); padding: 10px 18px; border-radius: 2px; color: var(--on-dark); }
.nav .nav__cta:hover { background: var(--bronze); color: var(--ink); }

/* ---------- Héros ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__visual { flex: 1 1 420px; min-width: 0; }
.placeholder { min-height: 420px; border: 1px dashed #4A4E52; background: var(--ink-2); display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; font-size: 14px; color: #8E8B85; }
.band:not(.band--dark):not(.band--dark-2) .placeholder { border-color: #C9C4B9; background: var(--stone); color: #6B6862; }

/* ---------- Deux portes ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.door { display: flex; flex-direction: column; gap: 20px; padding: 44px; text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--text); transition: border-color .2s, transform .2s; }
.door:hover { border-color: var(--bronze-d); color: var(--text); transform: translateY(-2px); }
.door--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.door--dark:hover { color: var(--on-dark); border-color: var(--bronze); }
.door__who { font-size: 14px; color: var(--text-2); }
.door--dark .door__who { color: var(--muted-d); }
.door__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.door__list li { display: flex; align-items: baseline; gap: 12px; }
.door__list li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--bronze-d); transform: translateY(-4px); }
.door--dark .door__list li::before { background: var(--bronze); }
.door__go { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--bronze-d); }
.door--dark .door__go { color: var(--bronze); }

/* ---------- Faits clés ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
.fact__big { font-family: var(--display); font-size: 32px; line-height: 1.15; }

/* ---------- Colonnes et cartes ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 44px; display: flex; flex-direction: column; gap: 24px; }
.feat { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.feat svg { flex: none; margin-top: 3px; }

/* ---------- Gamme (tuiles) ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.tier { background: var(--ink); padding: 36px 30px; display: flex; flex-direction: column; gap: 18px; color: var(--on-dark); text-decoration: none; transition: background .2s; }
a.tier:hover { background: var(--ink-2); color: var(--on-dark); }
.tier__name { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-d); }
.tier__num { font-family: var(--display); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.tier__unit { font-size: 14px; color: #C9C6C0; }
.tier__use { border-top: 1px solid var(--line-d); padding-top: 18px; font-size: 15px; color: #D8D5CF; }

/* ---------- Tableau comparatif ---------- */
.table-box { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 26px; background: var(--stone); }
.compare thead th span { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-top: 4px; }
.compare tbody th { font-weight: 500; color: var(--text-2); width: 22%; }
.compare .num { font-family: var(--display); font-size: 30px; line-height: 1; }
.compare tr.shared td { color: var(--text-2); }

/* ---------- Aide au choix ---------- */
.chooser { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.chooser__form { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.chooser__result { flex: 1 1 360px; min-width: 0; position: sticky; top: 24px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
legend { padding: 0; margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
legend .step { font-family: var(--mono); font-size: 13px; color: var(--bronze-d); }
legend .q { font-family: var(--display); font-size: 30px; line-height: 1.15; }
.hint { font-size: 14px; color: var(--text-2); margin-top: -6px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt label { display: flex; flex-direction: column; gap: 4px; min-height: 64px; justify-content: center; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.opt label strong { font-weight: 500; font-size: 16px; }
.opt label span { font-size: 13px; color: var(--text-2); }
.opt input:hover + label { border-color: #B5AE9F; }
.opt input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.opt input:checked + label span { color: var(--muted-d); }
.opt input:focus-visible + label { outline: 2px solid var(--bronze-d); outline-offset: 2px; }
.included { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-2); padding-top: 4px; }
.included b { font-weight: 500; color: var(--text); }

.result { background: var(--ink); color: var(--on-dark); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.result__label { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--bronze); }
.result__name { font-family: var(--display); font-size: 52px; line-height: 1; }
.result__why { font-size: 16px; color: #C9C6C0; }
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge__bar { height: 6px; background: var(--line-d); position: relative; }
.gauge__fill { position: absolute; inset: 0 auto 0 0; background: var(--bronze); transition: width .35s ease; }
.gauge__txt { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted-d); }
.result__tech { border-top: 1px solid var(--line-d); padding-top: 18px; font-size: 13px; color: var(--muted-d); }
.result__tech summary { cursor: pointer; color: #D8D5CF; font-size: 14px; }
.result__tech dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; font-family: var(--mono); font-size: 12px; }
.result__tech dd { margin: 0; color: #D8D5CF; text-align: right; }
.result .btns { flex-direction: column; }
.result .btn { width: 100%; }
.disclaimer { font-size: 13px; color: var(--muted-d); }

/* ---------- Espace intégrateurs ---------- */
.version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.version__num { font-family: var(--display); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font: 500 14px var(--body); border-radius: 22px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.docs { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.doc__title { font-size: 17px; font-weight: 500; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.doc__meta .tag { font-family: var(--mono); font-size: 12px; color: var(--bronze-d); }
.doc__note { font-size: 13px; color: #8A5A1F; }
.doc a { white-space: nowrap; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--text-2); }
.spec dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.notice { border: 1px solid #D9C9A8; background: #F7F0E2; padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; font-size: 15px; color: #3D3322; }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Contact et pied de page ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between; }
.contact > div:first-child { flex: 1 1 520px; min-width: 0; }
.contact__box { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact__line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.contact__line span:first-child { color: var(--muted-d); }
.contact__line span:last-child { user-select: all; }
.site-footer { background: #0B0C0E; color: var(--muted-d); border-top: 1px solid var(--line-d); font-size: 14px; line-height: 1.7; }
.site-footer .wrap { padding-block: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.site-footer strong { display: block; color: var(--on-dark); font-weight: 500; margin-bottom: 6px; }
.site-footer a { color: #C9C6C0; }
.site-footer a:hover { color: var(--on-dark); }
.footer__brand { font-family: var(--display); font-size: 28px; color: var(--on-dark); line-height: 1; }

@media (max-width: 640px) {
  .wrap { padding-block: 72px; }
  .door, .card { padding: 30px 24px; }
  .result { padding: 30px 24px; }
  .chooser__result { position: static; }
  .doc { grid-template-columns: 1fr; }
}

/* ================= V1.1 : pictos, visuels, page La solution ================= */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--lg { width: 28px; height: 28px; }
.ico-tile { width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--bronze-d); background: var(--paper); }
.band--dark .ico-tile, .band--dark-2 .ico-tile, .col--dark .ico-tile { border-color: var(--line-d); background: transparent; color: var(--bronze); }
.fact { display: flex; gap: 16px; align-items: flex-start; }
.fact .ico { color: var(--bronze); margin-top: 6px; width: 26px; height: 26px; }

/* Tablette (illustration d'interface) */
.device { position: relative; max-width: 560px; margin-left: auto; }
.tablet { background: #050607; border: 1px solid #3A3E42; border-radius: 22px; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.screen { background: #F4F2EE; color: #1A1A1A; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 16px; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.screen__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: #5A5853; }
.screen__room { font-family: var(--display); font-size: 26px; color: #1A1A1A; line-height: 1; }
.screen__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.tile { background: #FFFFFF; border: 1px solid #E4E0D8; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-width: 0; font-size: 12px; color: #5A5853; }
.tile .ico { width: 18px; height: 18px; color: #7A5F36; }
.tile__val { font-size: 15px; font-weight: 600; color: #1A1A1A; }
.tile--big { grid-row: span 2; background: #111315; border-color: #111315; color: #A9A6A0; }
.tile--big .tile__val { font-family: var(--display); font-weight: 400; font-size: 48px; color: #F2F0EB; line-height: 1; }
.tile--big .ico { color: #C4A574; }
.tile--on { border-color: #C4A574; box-shadow: inset 0 0 0 1px #C4A574; }
.minibars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.minibars i { flex: 1; background: #C4A574; border-radius: 1px; opacity: .85; }
.device__caption { margin-top: 12px; font-size: 12px; color: var(--muted-d); text-align: right; }

/* Deux univers (aperçu sur l'accueil) */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.world { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--text); transition: border-color .2s; }
.world:hover { border-color: var(--bronze-d); color: var(--text); }
.world--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.world--dark:hover { color: var(--on-dark); border-color: var(--bronze); }
.world__visual { padding: 28px 28px 0; color: var(--text); }
.world--dark .world__visual { color: var(--on-dark); }
.world__body { padding: 28px 36px 36px; display: flex; flex-direction: column; gap: 14px; }
.world__icons { display: flex; flex-wrap: wrap; gap: 8px; }
.world__go { font-weight: 600; font-size: 15px; color: var(--bronze-d); }
.world--dark .world__go { color: var(--bronze); }

/* Plans d'architecte */
.plan { width: 100%; height: auto; display: block; }
.plan .wall { fill: none; stroke: currentColor; stroke-width: 3; }
.plan .part { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .55; }
.plan .door { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; stroke-dasharray: 3 3; }
.plan .furn { fill: none; stroke: currentColor; stroke-width: 1; opacity: .3; }
.plan .lbl { fill: currentColor; opacity: .6; font: 500 11px var(--body); letter-spacing: 1.5px; text-transform: uppercase; }
.plan .pin { fill: var(--bronze); }
.plan .pin-ico { color: var(--ink); }
.plan .zone { fill: var(--bronze); opacity: .10; }

/* Page solution : deux colonnes */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.col { padding-block: 88px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 36px; min-width: 0; background: var(--paper); color: var(--text); }
.col--dark { background: var(--ink); color: var(--on-dark); }
.col__in { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 36px; }
.col:first-child .col__in { margin-left: auto; }
.col--dark .eyebrow { color: var(--bronze); }
.col--dark .lead { color: #C9C6C0; }
.col__visual { color: inherit; }
.features { list-style: none; padding: 0; display: flex; flex-direction: column; }
.features li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.col--dark .features li { border-top-color: var(--line-d); }
.features h3 { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: 0; margin-bottom: 4px; }
.features p { font-size: 15px; color: var(--text-2); }
.col--dark .features p { color: var(--muted-d); }

/* Schéma de fonctionnement */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, .8fr) 56px minmax(0, 1fr); align-items: stretch; }
.flow__box { border: 1px solid var(--line); background: var(--paper); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.flow__box--core { background: var(--ink); border-color: var(--ink); color: var(--on-dark); align-items: center; text-align: center; justify-content: center; }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--bronze-d); }
.flow__arrow svg { width: 40px; height: 16px; }
.flow__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 14px; color: var(--text-2); }
.flow__items span { display: flex; align-items: center; gap: 10px; }
.flow__items .ico { color: var(--bronze-d); }
.din { width: 150px; max-width: 100%; color: var(--on-dark); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { height: 48px; }
  .flow__arrow svg { transform: rotate(90deg); }
}

/* Une journée avec Quantum */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; }
.day { display: flex; flex-direction: column; gap: 8px; }
.day h3 { margin-bottom: 18px; }
.moment { display: grid; grid-template-columns: 64px 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.moment time { font-family: var(--mono); font-size: 14px; color: var(--bronze-d); padding-top: 12px; }
.moment p { font-size: 15px; color: var(--text-2); padding-top: 4px; }
.moment strong { display: block; color: var(--text); font-weight: 600; font-size: 16px; }
.world--dark .ico-tile { border-color: var(--line-d); background: transparent; color: var(--bronze); }
.world__icons .ico-tile { width: 40px; height: 40px; }
.gauge__bar--seg { height: 8px; }
.gauge__bar--seg i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.gauge__bar--seg i:nth-of-type(1) { left: 25%; } .gauge__bar--seg i:nth-of-type(2) { left: 50%; } .gauge__bar--seg i:nth-of-type(3) { left: 75%; }
.gauge__scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 12px; color: var(--muted-d); }
.gauge__scale span { display: flex; flex-direction: column; gap: 2px; padding-right: 6px; }
.gauge__scale b { font-family: var(--mono); font-weight: 400; font-size: 11px; }
.gauge__scale .on { color: var(--bronze); }

/* ================= V1.2 : accueil Résidentiel / Tertiaire, photos ================= */
.intro { background: var(--ink); color: var(--on-dark); }
.intro .wrap { padding-block: 56px 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.intro h1 { flex: 1 1 560px; min-width: 0; }
.intro p { flex: 0 1 420px; min-width: 0; color: #C9C6C0; font-size: 17px; }
.universes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); background: var(--ink); }
.universe { position: relative; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; color: #F2F0EB; text-decoration: none; background: var(--ink-2); }
.universe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.universe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,13,.92) 0%, rgba(10,11,13,.55) 45%, rgba(10,11,13,.15) 100%); }
.universe:hover img { transform: scale(1.03); }
.universe:hover { color: #F2F0EB; }
.universe__body { position: relative; z-index: 1; padding: 48px max(24px, env(safe-area-inset-left, 0px)) 48px; max-width: 600px; display: flex; flex-direction: column; gap: 16px; }
.universe__body .eyebrow { color: var(--bronze); }
.universe__body p { color: #D8D5CF; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-s { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid rgba(242,240,235,.28); font-size: 13px; color: #F2F0EB; background: rgba(17,19,21,.35); }
.chip-s .ico { width: 16px; height: 16px; color: var(--bronze); }
.universe__go { font-weight: 600; color: var(--bronze); }

.env { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.scene { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.scene__img { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--stone); }
.scene__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.scene__body h3 { font-size: 26px; line-height: 1.1; }
.scene__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.scene__list li { display: flex; align-items: center; gap: 10px; }
.scene__list .ico { width: 18px; height: 18px; color: var(--bronze-d); }
.env-head { display: flex; align-items: center; gap: 14px; }
.env-head .ico { width: 28px; height: 28px; color: var(--bronze-d); }
.photo { margin: 0; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .universe { min-height: 520px; } }

/* ================= V1.3 : Quantum 2 ================= */
.q2 { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 7px; border: 1px solid var(--bronze-d); color: var(--bronze-d); font: 500 11px/1.4 var(--mono); letter-spacing: .5px; white-space: nowrap; }
.col--dark .q2, .band--dark .q2, .band--dark-2 .q2 { border-color: var(--bronze); color: var(--bronze); }
.archi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.archi__card { background: var(--ink); color: var(--on-dark); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.archi__card h3 { font-size: 28px; line-height: 1.15; }
.archi__card p { font-size: 15px; color: var(--muted-d); }
.archi__card .diag { width: 100%; height: auto; color: var(--on-dark); }
.diag .ln { fill: none; stroke: currentColor; stroke-width: 1.3; opacity: .45; }
.diag .ln-a { fill: none; stroke: var(--bronze); stroke-width: 1.6; }
.diag .box { fill: var(--ink-2); stroke: currentColor; stroke-width: 1.3; }
.diag .box-a { fill: var(--bronze); }
.diag .tx { fill: currentColor; font: 500 10px var(--mono); letter-spacing: .5px; }
.diag .tx-d { fill: var(--ink); font: 600 10px var(--mono); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.step-c { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); position: relative; }
.step-c:last-child { border-right: 0; }
.step-c__n { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--bronze-d); }
.step-c h3 { font-family: var(--body); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.step-c p { font-size: 15px; color: var(--text-2); }
.step-c__who { font: 500 12px var(--mono); color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tool { border: 1px solid var(--line); background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tool h3 { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.tool p { font-size: 15px; color: var(--text-2); }
@media (max-width: 640px) { .step-c { border-right: 0; border-bottom: 1px solid var(--line); } }

/* =====================================================================
   CHARTE THEBEN · PISTE « BLANC ARCHITECTE »
   Fond blanc, texte marine, vert en touches (filets, soulignements).
   Titres en Saira fine (300) avec seconde partie en gras (600).
   ===================================================================== */
:root {
  --ink: #043963; --ink-2: #0A548D; --line-d: #2F6797;
  --on-dark: #FFFFFF; --muted-d: #B9CCDD;
  --paper: #FFFFFF; --stone: #F3F6F9; --line: #E5E7EB;
  --text: #043963; --text-2: #3E6383;
  --bronze: #8BBA73; --bronze-d: #4A7D33;
  --display: 'Nett Web Pro', 'Saira', system-ui, sans-serif;
  --body: 'Nett Web Pro', 'Saira', system-ui, sans-serif;
  --mono: 'Nett Web Pro', 'Saira', system-ui, sans-serif;
  --r: 20px;
}
body { background: #fff; color: var(--text); font-size: 16px; }
.wrap { max-width: 1240px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); padding-block: 96px; }
@media (max-width: 640px) { .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-block: 64px; } }

/* Typographie : fin + gras */
h1, h2, h3 { letter-spacing: -1px; }
.h-xl { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; font-weight: 300; letter-spacing: -1.5px; }
.h-lg { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; font-weight: 300; }
.h-md { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; }
.h-xl .italic, .h-lg .italic, .h-xl .accent, .h-lg .accent { font-style: normal; font-weight: 600; color: var(--text); }
.italic { font-style: normal; }
.accent { color: var(--text); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 600; letter-spacing: 2px; font-size: 12.5px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--bronze); flex: none; }
.lead { color: var(--text-2); font-size: 18px; }
.small { color: var(--text-2); }
.mono { font-size: 13px; letter-spacing: .3px; color: var(--text-2); }

/* Bandes */
.band, .band--hero, .band--rule { background: #fff; color: var(--text); }
.band--soft { background: var(--stone); color: var(--text); }
.band--hero { border-bottom: 1px solid var(--line); }
.band--hero .wrap { padding-block: 88px 72px !important; }
.band--rule { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--rule .wrap { padding-block: 0; }
.band--rule .facts { gap: 0; }
.band--rule .fact { padding: 32px 24px; border-left: 1px solid var(--line); }
.band--rule .fact:first-child { border-left: 0; padding-left: 0; }
.fact .ico { color: var(--bronze-d); }
.fact__big { font-weight: 600; font-size: 21px; }

/* En-tête horizontal */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: #fff; }
.hdr__in { max-width: 1240px; margin: 0 auto; padding: 18px max(32px, env(safe-area-inset-right, 0px)) 18px max(32px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
@media (max-width: 640px) { .hdr__in { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } .hdr { position: static; } }
.hdr__brand { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; }
.hdr__brand:hover { color: var(--text); }
.hdr__theben { display: flex; flex-direction: column; line-height: 1; font-weight: 700; font-size: 30px; letter-spacing: -1px; }
.hdr__theben small { font-size: 10px; font-weight: 500; letter-spacing: 1px; align-self: flex-end; margin-top: 2px; }
.hdr__sep { width: 1px; height: 34px; background: var(--bronze); }
.hdr__product { font-size: 22px; font-weight: 300; letter-spacing: 1px; }
.hdr__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-size: 15px; font-weight: 500; }
.hdr__nav a { color: var(--text-2); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--bronze); }
.hdr__nav .hdr__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 22px; background: var(--ink); color: #fff; border: 0; font-weight: 600; }
.hdr__nav .hdr__cta:hover { background: var(--ink-2); color: #fff; }

/* Boutons */
.btn { border-radius: 26px; font-weight: 600; }
.btn--primary, .btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover, .btn--dark:hover { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.btn--ghost, .btn--line { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover, .btn--line:hover { background: var(--ink); color: #fff; }
.chip { border-radius: 22px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }

/* Accueil : intro + deux univers (photo au-dessus, texte dessous) */
.intro { background: #fff; color: var(--text); }
.intro .wrap { padding-block: 88px 44px; align-items: flex-end; }
.intro p { color: var(--text-2); font-size: 18px; }
.universes { background: #fff; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 0 max(32px, env(safe-area-inset-right, 0px)) 96px max(32px, env(safe-area-inset-left, 0px)); box-sizing: border-box; }
@media (max-width: 640px) { .universes { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-bottom: 64px; } }
.universe { min-height: 0; flex-direction: column; align-items: stretch; background: transparent; color: var(--text); overflow: visible; }
.universe:hover { color: var(--text); }
.universe::after { display: none; }
.universe img { position: static; height: 420px; border-radius: var(--r); background: #E8EEF4; transition: opacity .3s; }
.universe:hover img { transform: none; opacity: .92; }
.universe__body { padding: 24px 0 0; max-width: none; gap: 12px; }
.universe__body .eyebrow { color: var(--text-2); }
.universe__body p { color: var(--text-2); font-size: 16px; }
.chip-s { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 16px; }
.chip-s .ico { color: var(--bronze-d); }
.universe__go { color: var(--text); }
.universe__go::after { content: ""; }

/* Cartes */
.door, .card, .scene, .tool, .flow__box, .archi__card, .result, .notice, .table-box, .steps, .photo, .world { border-radius: var(--r); }
.door, .card, .scene, .tool, .flow__box, .steps, .table-box { border: 1px solid var(--line); background: #fff; }
.band--soft .door, .band--soft .card, .band--soft .scene, .band--soft .tool, .band--soft .flow__box, .band--soft .steps, .band--soft .table-box { border-color: #fff; }
.door:hover { border-color: var(--bronze); transform: none; }
.door--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.door--dark .eyebrow { color: #DCE7F0; }
.scene, .photo, .table-box, .steps { overflow: hidden; }
.scene__img { background: #E8EEF4; }
.scene__body h3 { font-weight: 600; font-size: 22px; }
.ico-tile { border: 0; border-radius: 50%; background: #EEF5EA; color: var(--ink); }
.opt label { border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.opt input:checked + label { background: var(--ink); border-color: var(--ink); }
.included b { color: var(--text); }
.notice { background: #EEF5EA; border: 0; color: var(--text); }
.features li { border-top-color: var(--line); }
.col { background: #fff; }
.col--soft { background: var(--stone); }
.photo { background: #E8EEF4; }

/* Gamme : cartes blanches, chiffres fins */
.tiers { background: transparent; border: 0; gap: 16px; }
.tier, a.tier { background: #fff; color: var(--text); border-radius: 16px; padding: 30px; }
a.tier:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--bronze); color: var(--text); }
.band:not(.band--soft) .tier { border: 1px solid var(--line); }
.tier__name { color: var(--text-2); font-weight: 600; }
.tier__num { font-weight: 300; font-size: 58px; color: var(--text); }
.tier__unit { color: var(--text-2); }
.tier__use { color: var(--text); border-top-color: var(--line); }

/* Architecture Quantum 2 : cartes blanches */
.archi__card { background: #fff; color: var(--text); border: 1px solid var(--line); }
.band--soft .archi__card { border-color: #fff; }
.archi__card p { color: var(--text-2); }
.archi__card h3 { font-weight: 600; font-size: 26px; }
.archi__card .diag { color: var(--text); }
.diag .box { fill: var(--stone); stroke: var(--text); }
.diag .box-a { fill: var(--ink); }
.diag .tx { fill: var(--text); font-family: var(--body); font-weight: 600; }
.diag .tx-d { fill: #fff; font-family: var(--body); font-weight: 600; }
.diag .ln-a { stroke: var(--bronze-d); }
.flow__box--core { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow__box--core .small { color: #DCE7F0; }
.flow__arrow { color: var(--bronze-d); }

/* Aide au choix : panneau résultat marine (seul aplat sombre) */
.result { background: var(--ink); }
.result .btn--primary { background: var(--bronze); color: var(--ink); border-color: var(--bronze); }
.result .btn--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.result .btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.result .btn--ghost:hover { background: #fff; color: var(--ink); }
.result__name { font-weight: 600; font-size: 40px; }
.result__why, .result__tech summary, .result__tech dd { color: #EAF1F7; }
.gauge__scale .on { color: var(--bronze); }

/* Divers */
.version__num { font-weight: 300; font-size: 56px; }
.step-c__n { font-weight: 300; font-size: 52px; color: var(--bronze-d); }
.compare thead th { font-weight: 600; font-size: 22px; background: var(--stone); }
.compare .num { font-weight: 300; font-size: 30px; }
.doc__meta .tag { font-weight: 600; }
.contact__line { border-bottom-color: var(--line); }
.contact__line span:first-child { color: var(--text-2); }
.q2 { border-color: var(--bronze-d); color: var(--bronze-d); border-radius: 10px; font-weight: 600; }
.din { color: #fff; }

/* Pied de page marine */
.site-footer { background: var(--ink); color: var(--muted-d); border-top: 0; }
.site-footer .wrap { max-width: 1240px; padding-block: 56px; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--bronze); }
.footer__brand { font-weight: 300; font-size: 28px; letter-spacing: 1px; }

/* ---- En-tête : pastille Quantum + « by Theben France » ---- */
.hdr__brand { gap: 14px; }
.hdr__pastille { display: block; width: 64px; height: 64px; }
.hdr__by { font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text); }
@media (max-width: 640px) { .hdr__pastille { width: 46px; height: 46px; } }

/* ---- Bouton « Revenir en haut » ---- */
.totop {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #FFFFFF; border: 0;
  box-shadow: 0 8px 22px rgba(4,57,99,.25); text-decoration: none;
  transition: background .2s, transform .2s;
}
.totop:hover { background: var(--ink-2); color: #FFFFFF; transform: translateY(-2px); }
.totop:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .totop, .totop:hover { transition: none; transform: none; } }

/* ---- La solution : colonnes Résidentiel / Tertiaire alignées ---- */
@media (min-width: 1040px) {
  .cols { grid-template-rows: auto auto auto auto; row-gap: 36px; }
  .col { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 36px; }
  .col__in { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 36px; align-items: start; }
}
.col .photo { margin: 0; }

/* ---- Serveur Quantum à l'échelle : 71 × 90 mm en façade ---- */
.server-photo { --mm: 2.2px; margin: 4px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.server-photo img { display: block; width: calc(71 * var(--mm)); height: calc(90 * var(--mm)); object-fit: contain; filter: drop-shadow(0 14px 18px rgba(2,30,55,.45)); }
.server-photo figcaption { font-size: 12px; letter-spacing: 1.5px; color: #DCE7F0; }
@media (max-width: 640px) { .server-photo { --mm: 1.9px; } }

/* =====================  INTERACTIONS  ===================== */
/* 1. Zoom des images au survol */
.universe__media { display: block; overflow: hidden; border-radius: var(--r); background: #E8EEF4; }
.universe__media img { display: block; width: 100%; height: 420px; object-fit: cover; border-radius: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.universe:hover .universe__media img, .universe:focus-visible .universe__media img { transform: scale(1.06); opacity: 1; }
.scene__img img, .photo img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.scene:hover .scene__img img, .photo:hover img { transform: scale(1.07); }
.server-photo img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.flow__box--core:hover .server-photo img { transform: scale(1.08); }
.scene { transition: box-shadow .3s, transform .3s; }
.scene:hover { box-shadow: 0 14px 34px rgba(4,57,99,.12); transform: translateY(-3px); }

/* 2. Pictos animés */
.ico-tile, .feat svg, .scene__list .ico, .chip-s .ico, .flow__items .ico { transition: transform .25s ease-out, background .25s, color .25s; }
.features li:hover .ico-tile, .tool:hover .ico-tile, .step-c:hover .step-c__n { background: var(--ink); color: #FFFFFF; }
.anim .pop { animation: q-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes q-pop { 0% { transform: scale(.6) rotate(-8deg); } 60% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
.plan.live .pin { transform-box: fill-box; transform-origin: center; animation: q-pulse 2.4s ease-in-out infinite; }
.plan.live g:nth-of-type(2) .pin { animation-delay: .4s; } .plan.live g:nth-of-type(3) .pin { animation-delay: .8s; }
.plan.live g:nth-of-type(4) .pin { animation-delay: 1.2s; } .plan.live g:nth-of-type(5) .pin { animation-delay: 1.6s; }
@keyframes q-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .universe__media img, .scene__img img, .photo img, .server-photo img, .scene, .ico-tile { transition: none !important; transform: none !important; }
  .anim .pop, .plan.live .pin { animation: none !important; }
}

/* 3. Quantum 2 : info-bulle « Arrive en 2027 » */
.q2 { position: relative; cursor: help; }
.q2::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); white-space: nowrap; padding: 7px 12px; border-radius: 8px; background: var(--ink); color: #FFFFFF; font: 600 12px/1.2 var(--body); letter-spacing: .5px; text-transform: none; box-shadow: 0 8px 20px rgba(4,57,99,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; }
.q2::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); opacity: 0; transition: opacity .2s; z-index: 5; }
.q2:hover::after, .q2:focus-visible::after, .q2:focus::after { opacity: 1; transform: translate(-50%, 0); }
.q2:hover::before, .q2:focus-visible::before, .q2:focus::before { opacity: 1; }
.q2:focus { outline: none; } .q2:focus-visible { outline: 2px solid var(--bronze-d); outline-offset: 2px; }

/* 4. Mise en relation avec l'expert */
.expert { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.expert__field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.expert__field select { min-height: 52px; padding: 0 44px 0 16px; border: 1.5px solid var(--ink); border-radius: 26px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23043963' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; font: 500 16px var(--body); color: var(--text); appearance: none; cursor: pointer; }
.expert__field select:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.expert__result { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: var(--stone); animation: q-fade .35s ease-out; }
.band--soft .expert__result { background: #FFFFFF; }
.expert__label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); }
.expert__name { font-size: 24px; font-weight: 600; color: var(--text); }
.expert__role { font-size: 14px; color: var(--text-2); margin-top: -4px; }
.expert__result .btn { align-self: flex-start; margin-top: 6px; }
.expert__result .contact__line span:last-child { user-select: all; }
@keyframes q-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.contact:has(.expert) { align-items: flex-start; }
.expert__result:not([hidden]) + .expert__hint { display: none; }

/* ---- La solution : sélecteur Résidentiel / Tertiaire / Les deux ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 30px; background: #FFFFFF; align-self: flex-start; }
.seg__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 24px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.seg__btn .ico { width: 20px; height: 20px; color: var(--bronze-d); }
.seg__btn:hover { background: var(--stone); color: var(--text); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.seg__btn[aria-pressed="true"] .ico { color: #FFFFFF; }
.seg__btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* Un seul univers affiché : l'autre se masque, celui-ci occupe toute la largeur */
.cols[data-view="res"] #tertiaire, .cols[data-view="ter"] #residentiel { display: none !important; }
.cols[data-view="res"], .cols[data-view="ter"] { grid-template-columns: minmax(0, 1fr); }
.cols[data-view="res"] .col__in, .cols[data-view="ter"] .col__in { max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) {
  .cols[data-view="res"] .col__in, .cols[data-view="ter"] .col__in { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 56px; row-gap: 36px; grid-row: auto; }
  .cols[data-view="res"] .col, .cols[data-view="ter"] .col { display: block; grid-row: auto; }
  .cols[data-view="res"] .col__in > .stack, .cols[data-view="ter"] .col__in > .stack { grid-column: 1 / -1; }
  .cols[data-view="res"] .col__in > .features, .cols[data-view="ter"] .col__in > .features { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
.cols[data-view="res"] .col, .cols[data-view="ter"] .col { animation: q-fade .35s ease-out; }
@media (prefers-reduced-motion: reduce) { .cols .col { animation: none !important; } }

/* ---- Brochures à télécharger (bas de page) ---- */
.dl .wrap { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; align-items: start; }
.dl__intro { display: flex; flex-direction: column; gap: 14px; }
.dl__intro h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 300; line-height: 1.15; color: var(--text); }
.dl__intro h2 b { font-weight: 600; }
.dl__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.dl__card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); background: #FFFFFF; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.dl__card:hover, .dl__card:focus-visible { border-color: var(--ink); box-shadow: 0 8px 24px rgba(4, 57, 99, .08); color: var(--text); }
.dl__thumb { width: 104px; aspect-ratio: 794 / 1123; overflow: hidden; border: 1px solid var(--line); }
.dl__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.dl__card:hover .dl__thumb img { transform: scale(1.06); }
.dl__body { display: flex; flex-direction: column; gap: 6px; }
.dl__tag { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--bronze-d); }
.dl__title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.dl__meta { font-size: 13px; color: var(--text-2); }
.dl__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.dl__cta svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .dl .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 56px; } }
@media (prefers-reduced-motion: reduce) { .dl__thumb img { transition: none; } }

/* =====================================================================
   V3 : ANIMATIONS MOTION, INSPIRATION ONFORM
   Tout est piloté par assets/anim.js (Motion : animate, scroll, inView).
   Sans JS, sans Motion ou avec « réduire les animations », ces règles
   n'ont aucun effet visible : le site s'affiche tel quel.
   ===================================================================== */
p, li, dd { text-wrap: pretty; }
::selection { background: #DCEBD2; color: var(--ink); }
@media (max-width: 640px) { .hdr { position: relative; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.q-name { font-style: normal; font-weight: 600; color: var(--text); }
.doc[hidden] { display: none !important; }

/* Rideau d'arrivée : couvre la page le temps que Motion arrive (2,5 s maximum, cf. pre.js) */
html.q-cover::after { content: ""; position: fixed; inset: 0; z-index: 200; background: var(--ink); }
/* Arrivée depuis le logo : le rideau affiche déjà « Quantum », au même endroit que dans les volets */

/* Volets : entrée de page, intro de l'accueil, transition entre pages */
.q-shutters { position: fixed; inset: 0; z-index: 210; overflow: hidden; pointer-events: none; }
.q-shutters.is-blocking { pointer-events: auto; }
.q-shutter { position: absolute; overflow: hidden; background: var(--ink); will-change: transform; }

/* Titres : lettres qui basculent (h1), mots qui montent ligne par ligne (h2, chapeaux) */
.q-mask { display: inline-block; vertical-align: bottom; overflow: hidden; overflow: clip; padding: .14em .06em; margin: -.14em -.06em; }
.q-word { display: inline-block; white-space: nowrap; perspective: 600px; }
.q-glyph { display: inline-block; transform-origin: 50% 80%; }
.q-line-mask { display: inline-block; vertical-align: bottom; overflow: hidden; overflow: clip; padding-block: .1em; margin-block: -.1em; }
.q-line-word { display: inline-block; }

/* Filet vert des surtitres, filets de séparation qui se dessinent */
.eyebrow::before { transform: scaleX(var(--eb, 1)); transform-origin: 0 50%; }
.anim [data-rule] { position: relative; }
.anim [data-rule="top"] { border-top-color: transparent !important; }
.anim [data-rule="bottom"] { border-bottom-color: transparent !important; }
.anim [data-rule]::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(var(--rule, 1)); transform-origin: 0 50%; pointer-events: none; }
.anim [data-rule="top"]::after { top: -1px; }
.anim [data-rule="bottom"]::after { bottom: -1px; }

/* Lecture progressive : les mots se révèlent au fil du défilement et s'écartent du pointeur */
[data-reading] p { position: relative; }
.q-read-word { display: inline-block; }

/* Barre de lecture ; l'en-tête garde sa hauteur au défilement (seule l'ombre change), sinon la page saute et l'en-tête tremble */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.hdr { transition: box-shadow .3s ease, background .3s ease; }
.hdr.is-scrolled { box-shadow: 0 6px 24px rgba(4,57,99,.08); background: rgba(255,255,255,.92); }
.hdr__nav a:not(.hdr__cta) { position: relative; border-bottom-color: transparent !important; }
.hdr__nav a:not(.hdr__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.hdr__nav a:not(.hdr__cta):hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Libellés qui roulent au survol : le texte monte, une copie identique arrive par le bas */
.q-roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; white-space: nowrap; }
.q-roll__a { display: block; }
.q-roll__b { display: block; position: absolute; left: 0; top: 100%; }

/* Flèche de lien (SVG, pas de caractère) */
.go-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -3px; margin-left: 8px; }
.universe__go, .door__go { display: inline-flex; align-items: center; }

/* Parallaxe des grandes photos (propriétés indépendantes : le zoom au survol reste actif) */
.universe__media img, .photo img { scale: 1.08; }

/* Plans et schémas : transformations centrées sur chaque forme */
.plan g, .diag rect, .diag text { transform-box: fill-box; transform-origin: center; }

/* Pastille « Voir » ou « PDF » qui suit la souris sur les photos (le curseur normal reste affiché) */
.q-cursor { position: fixed; left: 0; top: 0; z-index: 190; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: grid; place-items: center; pointer-events: none; opacity: 0; font: 600 11px/1 var(--body); letter-spacing: 1.5px; text-transform: uppercase; }
.q-cursor__label { opacity: 0; }
@media (hover: none), (pointer: coarse) { .q-cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html.q-cover::after, .q-shutters, .q-cursor, .progress { display: none !important; }
  .universe__media img, .photo img { scale: 1; }
  .hdr__nav a:not(.hdr__cta)::after { transition: none; }
}

/* =====================  OUVERTURE : LE SERVEUR EN 3D (accueil)  =====================
   Le serveur pivote au défilement : une séquence d'images dessinée sur un canvas,
   dans un bloc collé à l'écran (même principe que modelec.com/fr/savoir-faire).
   Par défaut (sans JavaScript, sans Motion, « réduire les animations », écran très bas) :
   un bandeau marine avec le titre, une vue fixe du serveur et sa légende.
   Avec la classe .q3d--live posée par anim.js : la section s'allonge et son contenu reste collé. */
.q3d { background: var(--ink); color: #fff; }
.q3d__pin { position: relative; display: grid; justify-items: center; gap: 28px; padding: 72px max(32px, env(safe-area-inset-right, 0px)) 80px max(32px, env(safe-area-inset-left, 0px)); text-align: center; overflow: hidden; overflow: clip; }
.q3d__title { max-width: 980px; }
.q3d .h-xl, .q3d .h-xl .italic, .q3d .h-xl .accent { color: #fff; }
.q3d__stage { position: relative; width: min(520px, 82vw); aspect-ratio: 1; }
.q3d__stage::before { content: ""; position: absolute; inset: -18%; background: radial-gradient(closest-side, rgba(10,84,141,.75), rgba(10,84,141,0)); pointer-events: none; }
.q3d__poster, .q3d__stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(2,30,55,.5)); }
.q3d__cap { color: #DCE7F0; font-size: 18px; line-height: 1.5; max-width: 40ch; }
.q3d__hint { display: none; }
@media (max-width: 640px) { .q3d__pin { padding: 48px max(18px, env(safe-area-inset-right, 0px)) 56px max(18px, env(safe-area-inset-left, 0px)); gap: 20px; } }

/* Mode collant */
.q3d--live { height: calc(100vh - var(--q3d-hdr, 0px) + 170vh); }
.q3d--live .q3d__pin { position: sticky; top: var(--q3d-top, 0px); height: calc(100vh - var(--q3d-hdr, 0px)); display: block; padding: 0; }
@supports (height: 100svh) {
  .q3d--live { height: calc(100svh - var(--q3d-hdr, 0px) + 170svh); }
  .q3d--live .q3d__pin { height: calc(100svh - var(--q3d-hdr, 0px)); }
}
.q3d--live .q3d__title { position: absolute; z-index: 2; top: clamp(20px, 6vh, 64px); left: 50%; width: min(980px, 100% - 48px); margin-left: calc(min(980px, 100% - 48px) / -2); }
.q3d--live .q3d__stage { position: absolute; top: 58%; left: 50%; width: min(60vh, 84vw, 620px); margin: calc(min(60vh, 84vw, 620px) / -2 - var(--q3d-lift, 0px) / 2) 0 0 calc(min(60vh, 84vw, 620px) / -2); }
/* La vue fixe (façade) reste affichée jusqu'au premier dessin du canvas : pas de trou au chargement */
.q3d--drawn .q3d__poster { visibility: hidden; }
.q3d--live .q3d__cap { position: absolute; z-index: 2; left: 50%; bottom: clamp(28px, 7vh, 72px); width: min(40ch, 100% - 48px); margin-left: calc(min(40ch, 100% - 48px) / -2); opacity: 0; }
.q3d--live .q3d__hint { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(26px + var(--q3d-lift, 0px)); font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #DCE7F0; }
/* Flèche blanche, fixe, qui apparaît et s'efface en douceur sous « Défiler » (dessin SVG intégré, aucun fichier ni domaine en plus) */
.q3d--live .q3d__hint::after { content: ""; width: 16px; height: 30px; background: #FFFFFF; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 30' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v26M2 21.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 30' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v26M2 21.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; animation: q3d-hint 2.4s ease-in-out infinite; }
@keyframes q3d-hint { 0%, 100% { opacity: 0; } 45%, 60% { opacity: 1; } }
.q3d--on .q3d__stage, .q3d--on .q3d__title { will-change: transform, opacity; }
@media (max-width: 640px) { .q3d--live .q3d__stage { top: 60%; } }

/* =====================================================================
   V4 : EFFETS PREMIUM (assets/fx.js, Motion + Lenis)
   Tout est conditionné à la classe .anim (posée par anim.js) ou à des
   éléments créés par fx.js : sans JavaScript ou avec « réduire les
   animations », rien de ce bloc n'est visible.
   Aucune couleur ni police nouvelle : uniquement la charte existante.
   ===================================================================== */
/* Défilement fluide (Lenis) : le défilement natif « smooth » est neutralisé pour ne pas lisser deux fois */
html.lenis { scroll-behavior: auto !important; }
html.lenis-stopped { overflow: hidden; }

/* Ouverture : la page blanche monte sur le bloc marine comme une feuille aux coins arrondis */
/* Le serveur suit légèrement le pointeur, son halo respire et part à l'opposé */
.anim .q3d__poster, .anim .q3d__stage canvas { transform: perspective(1100px) rotateY(calc(var(--px, 0) * 10deg)) rotateX(calc(var(--py, 0) * -8deg)) translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 8px), 0); }
.anim .q3d__stage::before { translate: calc(var(--px, 0) * -24px) calc(var(--py, 0) * -16px); animation: q3d-glow 7s ease-in-out infinite; }
@keyframes q3d-glow { 0%, 100% { scale: 1; opacity: .8; } 50% { scale: 1.14; opacity: 1; } }

/* Boutons : un disque de couleur part du point d'entrée du pointeur (variables --fx et --fy posées par fx.js) */
.anim .btn, .anim .hdr__nav .hdr__cta { position: relative; overflow: hidden; isolation: isolate; transition: color .35s .06s, border-color .3s; }
.anim .btn::before, .anim .hdr__nav .hdr__cta::before { content: ""; position: absolute; z-index: -1; left: var(--fx, 50%); top: var(--fy, 50%); width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--fill, var(--ink-2)); transform: translate(-50%, -50%) scale(0); transition: transform .65s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.anim .btn--ghost, .anim .btn--line { --fill: var(--ink); }
.anim .result .btn--primary, .anim .result .btn--ghost { --fill: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .anim .btn:hover::before, .anim .hdr__nav .hdr__cta:hover::before { transform: translate(-50%, -50%) scale(1); }
  .anim .btn--primary:hover, .anim .btn--dark:hover, .anim .hdr__nav .hdr__cta:hover { background: var(--ink); }
  .anim .btn--ghost:hover, .anim .btn--line:hover, .anim .result .btn--ghost:hover { background: transparent; }
  .anim .result .btn--primary:hover { background: var(--bronze); }
}

/* Flèches de lien : la flèche sort par la droite et revient par la gauche */
@media (hover: hover) and (pointer: fine) {
  .anim .universe:hover .go-arrow, .anim .door:hover .go-arrow { animation: q-arrow .7s cubic-bezier(.16,1,.3,1); }
  .anim .dl__card:hover .dl__cta svg { animation: q-drop .7s cubic-bezier(.16,1,.3,1); }
}
@keyframes q-arrow { 0% { translate: 0 0; opacity: 1; } 40% { translate: 16px 0; opacity: 0; } 41% { translate: -16px 0; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
@keyframes q-drop { 0% { translate: 0 0; opacity: 1; } 40% { translate: 0 12px; opacity: 0; } 41% { translate: 0 -12px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }

/* Cartes : inclinaison 3D (fx.js pose `rotate`) et halo vert qui suit le pointeur (--mx, --my) */
.anim .doors, .anim .cards, .anim .tiers, .anim .env, .anim .tools, .anim .archi, .anim .dl__list { perspective: 1400px; }
.q-spot { position: relative; }
.q-spot::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,186,115,.22), rgba(139,186,115,0) 62%); }
.door--dark.q-spot::before, .flow__box--core.q-spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.16), rgba(255,255,255,0) 62%); }
a.tier.q-spot::before { display: none; }
.anim a.door, .anim .card, .anim .tool, .anim .archi__card, .anim .dl__card { transition: border-color .3s, box-shadow .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .q-spot:hover::before { opacity: 1; }
  .anim a.door:hover, .anim .card:hover, .anim .tool:hover, .anim .archi__card:hover, .anim .dl__card:hover { box-shadow: 0 22px 48px rgba(4,57,99,.12); }
}

/* Gamme : la carte se remplit de marine par le bas, le texte passe en blanc */
.anim a.tier { position: relative; isolation: isolate; overflow: hidden; }
.anim a.tier::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.16,1,.3,1); }
.anim a.tier span { transition: color .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .anim a.tier:hover::after { clip-path: inset(0 0 0 0); }
  .anim a.tier:hover .tier__num, .anim a.tier:hover .tier__use { color: #FFFFFF; }
  .anim a.tier:hover .tier__name, .anim a.tier:hover .tier__unit { color: var(--muted-d); }
  .anim a.tier:hover .tier__use::after { background: var(--line-d); }
}

/* Bandeaux défilants (accueil) : affichés seulement quand fx.js les anime */
.q-marquee { display: none; }
.q-marquee.is-live { display: flex; flex-direction: column; gap: clamp(4px, 1vw, 14px); padding-block: clamp(40px, 6vw, 84px); background: #FFFFFF; overflow: hidden; overflow: clip; user-select: none; }
.q-marquee__row { display: flex; white-space: nowrap; }
.q-marquee__track { display: inline-flex; flex: none; align-items: center; will-change: transform; }
.q-marquee__track span { flex: none; padding-inline: .3em; font-weight: 300; font-size: clamp(44px, 8vw, 116px); line-height: 1.08; letter-spacing: -.03em; color: var(--text); }
.q-marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.q-marquee__row + .q-marquee__row span { font-weight: 600; }
.q-marquee__track i { flex: none; width: clamp(8px, 1vw, 14px); height: clamp(8px, 1vw, 14px); border-radius: 50%; background: var(--bronze); }

/* Pied de page : grand mot « Quantum » à fond perdu, dont les lettres montent avec le défilement */
.q-wordmark { display: flex; justify-content: center; overflow: hidden; overflow: clip; padding-top: .04em; font-family: var(--display); font-weight: 300; font-size: clamp(64px, 19.5vw, 360px); line-height: .8; letter-spacing: -.035em; color: var(--line-d); white-space: nowrap; user-select: none; pointer-events: none; }
.q-wordmark span { display: inline-block; will-change: transform; }

/* Parallaxe des photos de scènes (marge de recadrage) */
.anim .scene__img img { scale: 1.08; }

/* =====================================================================
   V4.1 : OUVERTURE FAÇON « INTRO LOADER » ET SERVEUR 3D DÉPLACÉ
   - Intro : accroche mot à mot, nom « Quantum », vignettes floues en
     diagonale, puis 4 colonnes marine qui s'ouvrent en alternance.
   - Accueil : grande photo plein écran, titre en bas à gauche.
   - Le serveur 3D est placé juste avant la gamme.
   Ces règles remplacent celles des volets horizontaux de la V3.
   ===================================================================== */
/* Nom affiché sur le rideau d'arrivée (pre.js) : identique au nom posé par anim.js, pour un relais sans saut */
html.q-word::after, .q-brand { color: #FFFFFF; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.8vw, 58px); line-height: 1; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; }
html.q-word::after { content: "Quantum"; display: grid; place-items: center; }

/* Colonnes */
.q-shutter { top: 0; left: calc(var(--col) * 25%); width: calc(25% + 1px); height: 100%; box-shadow: inset -1px 0 0 rgba(255,255,255,.07); }
.q-stage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.q-stage > * { grid-area: 1 / 1; }
.q-brand { opacity: 0; will-change: opacity, filter; }
.q-tag { display: flex; gap: .32em; color: #FFFFFF; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 56px); line-height: 1.1; letter-spacing: -.01em; will-change: opacity, filter; }
.q-tag span { display: inline-block; opacity: 0; will-change: opacity, filter, transform; }
.q-tag span:last-child { font-weight: 600; }
.q-rain { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.q-rain__tile { position: absolute; left: 0; top: 0; border-radius: 16px; background: var(--ink-2) center / cover no-repeat; filter: blur(3px); opacity: .92; will-change: transform; }

/* Accueil : photo plein écran */
.hero-x { position: relative; display: flex; align-items: flex-end; height: calc(100vh - var(--hero-hdr, 101px)); min-height: 480px; max-height: 1200px; overflow: hidden; overflow: clip; background: var(--ink); color: #FFFFFF; }
@supports (height: 100svh) { .hero-x { height: calc(100svh - var(--hero-hdr, 101px)); } }
.hero-x__media { position: absolute; inset: 0; }
.hero-x__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.anim .hero-x__media img { transform: scale(1.06); will-change: transform; }
.hero-x::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(4,57,99,.9) 0%, rgba(4,57,99,.5) 30%, rgba(4,57,99,0) 64%), linear-gradient(to bottom, rgba(4,57,99,.28) 0%, rgba(4,57,99,0) 22%); }
.hero-x__body { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(32px, env(safe-area-inset-right, 0px)) calc(36px + clamp(32px, 7vh, 72px)) max(32px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-x .h-xl { max-width: 22ch; font-size: clamp(38px, 5.4vw, 78px); line-height: 1; letter-spacing: -.03em; color: #FFFFFF; }
.hero-x .h-xl .italic, .hero-x .h-xl .accent, .hero-x .eyebrow { color: #FFFFFF; }
.hero-x__hint { position: absolute; z-index: 1; right: max(32px, env(safe-area-inset-right, 0px)); bottom: calc(36px + clamp(32px, 7vh, 72px)); display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #FFFFFF; }
/* Flèche blanche (dessin SVG intégré) : elle se dessine de haut en bas, puis s'efface par le haut, en boucle.
   L'animation découpe la flèche au lieu de l'étirer, pour que la pointe ne se déforme pas. */
.hero-x__hint::after { content: ""; width: 16px; height: 46px; background: #FFFFFF; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 46' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v42M2 37.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 46' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5v42M2 37.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; animation: hero-hint 2.2s cubic-bezier(.76,0,.24,1) infinite; }
@keyframes hero-hint { 0% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }
@media (max-width: 640px) {
  .hero-x { height: calc(100vh - var(--hero-hdr, 230px)); min-height: 400px; }
  @supports (height: 100svh) { .hero-x { height: calc(100svh - var(--hero-hdr, 230px)); } }
  .hero-x__body { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .hero-x__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-x__hint::after { animation: none; } }
.hero-x + .intro .wrap { padding-block: 72px 44px; }
.hero-x + .intro p { flex: 1 1 100%; max-width: 62ch; font-size: 19px; }
.anim .hero-x + .intro { position: relative; z-index: 1; margin-top: -36px; border-radius: 36px 36px 0 0; }

/* Serveur 3D au milieu de la page : il arrive et repart comme une feuille marine aux coins arrondis */
.q3d .h-xl { font-size: clamp(34px, 4.4vw, 58px); }
.anim .q3d { position: relative; z-index: 1; margin-top: -36px; border-radius: 36px 36px 0 0; }
.anim .q3d + .band { position: relative; z-index: 2; margin-top: -36px; border-radius: 36px 36px 0 0; }
/* Le titre tient sur deux lignes : la partie en gras passe toujours à la ligne */
.hero-x .h-xl .italic { display: block; }
/* Écrans peu hauts : le serveur est réduit pour rester entre le titre et le repère « Défiler » */
@media (max-height: 700px) { .q3d--live .q3d__stage { top: 55%; width: min(50vh, 84vw); margin: calc(min(50vh, 84vw) / -2 - var(--q3d-lift, 0px) / 2) 0 0 calc(min(50vh, 84vw) / -2); } }

/* =====================================================================
   V4.2 (novembre 2026) : fusion « Choisir mon serveur » + « La gamme », aide au choix prudente,
   Espace intégrateurs en deux onglets, tutoriels vidéo.
   Ajouts uniquement : aucune règle existante n'est modifiée, aucune animation n'est ajoutée.
   ===================================================================== */

/* Aide au choix : mention de prudence sous la jauge */
.result__flag { margin: 0; padding: 12px 14px; border: 1px solid var(--bronze); border-radius: 8px; font-size: 14px; line-height: 1.45; color: #FFFFFF; }

/* Comparatif : colonne du modèle conseillé par l'aide au choix (attribut data-reco posé par choix.js) */
.compare[data-reco="0"] thead th:nth-child(2), .compare[data-reco="1"] thead th:nth-child(3),
.compare[data-reco="2"] thead th:nth-child(4), .compare[data-reco="3"] thead th:nth-child(5) { background: #EEF5EA; box-shadow: inset 0 3px 0 var(--bronze); }
.compare[data-reco="0"] thead th:nth-child(2)::after, .compare[data-reco="1"] thead th:nth-child(3)::after,
.compare[data-reco="2"] thead th:nth-child(4)::after, .compare[data-reco="3"] thead th:nth-child(5)::after { content: "Conseillé selon vos réponses"; display: block; margin-top: 8px; font: 600 11px/1.3 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--bronze-d); }
.compare[data-reco="0"] tbody tr:not(.shared) td:nth-child(2), .compare[data-reco="1"] tbody tr:not(.shared) td:nth-child(3),
.compare[data-reco="2"] tbody tr:not(.shared) td:nth-child(4), .compare[data-reco="3"] tbody tr:not(.shared) td:nth-child(5) { background: #F6FAF3; }

/* Onglets de l'Espace intégrateurs : même apparence que le sélecteur de la page La solution */
.seg__btn[aria-selected="true"] { background: var(--ink); color: #FFFFFF; }
.seg__btn[aria-selected="true"] .ico { color: #FFFFFF; }
.band--top { border-top: 1px solid var(--line); }

/* Tutoriels vidéo */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.video { padding: 0 0 24px; overflow: hidden; }
.video h3, .video .doc__meta { padding-inline: 24px; }
.video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__mark { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.video__play:hover .video__mark, .video__play:focus-visible .video__mark { background: var(--bronze-d); }
.video__play:focus-visible { outline: 2px solid var(--bronze); outline-offset: -4px; }

/* Arrivée directe sur une ancre nouvelle (choisir.html#gamme, integrateurs.html#videos) : le titre du
   bloc reste sous l'en-tête collant. Sans effet sur le défilement fluide, qui applique son propre décalage. */
#gamme, #videos { scroll-margin-top: 40px; }
