/* ==========================================================================
   Kontinitro SA — feuille de style unique.
   Direction : grotesque suisse, fond quasi noir, filets fins, chiffres
   tabulaires. L'élément signature est la règle graduée « scale », reprise
   du cadran d'un chronographe : elle marque chaque en-tête de page.
   ========================================================================== */

/* ------------------------------------------------------------- 1. Tokens */
:root {
  color-scheme: light;   /* thème clair imposé, quel que soit le réglage système */

  /* Thème clair, toujours. La palette sombre d'origine est conservée en
     commentaire plus bas si besoin d'y revenir un jour. */
  --ink:          #fbfbfa;
  --ink-2:        #f3f3f1;
  --surface:      #ffffff;
  --line:         rgba(0,0,0,.13);
  --line-strong:  rgba(0,0,0,.30);
  --text:         #0a0a0a;
  --text-2:       #55555c;
  --text-3:       #86868e;
  --accent:       #d8232a;   /* rouge suisse, employé avec parcimonie */
  --accent-soft:  rgba(216,35,42,.09);
  --accent-ink:   #b3161c;   /* rouge lisible sur fond clair */
  --hover:        rgba(0,0,0,.05);
  --hover-2:      rgba(0,0,0,.06);
  --hover-3:      rgba(0,0,0,.07);
  --btn-hover:    #000000;

  --font:  "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap:   1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Echelle typographique, majoree d'environ 7 % pour donner plus de poids
     au texte face aux images, dont les largeurs restent en rem. Le pas 3,
     celui du titre du hero, n'augmente que de 4 % : c'est lui qui debordait
     sur les composes allemands. */
  --step--1: clamp(.84rem, .81rem + .11vw, .90rem);
  --step-0:  clamp(1.02rem, .98rem + .19vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.07rem + .54vw, 1.45rem);
  --step-2:  clamp(1.60rem, 1.28rem + 1.5vw, 2.30rem);
  --step-3:  clamp(2.08rem, 1.46rem + 3.1vw, 3.75rem);

  --space:  clamp(3.5rem, 7vw, 7rem);
}

/* --- Palette sombre d'origine, désactivée. Décommenter pour la réactiver.
 ------------------------------------------- 1b. Palette sombre d'origine 
@media (prefers-color-scheme: dark) {
  :root {
    --ink:          #0a0a0a;
    --ink-2:        #0f0f11;
    --surface:      #151518;
    --line:         rgba(255,255,255,.10);
    --line-strong:  rgba(255,255,255,.22);
    --text:         #f1f1ef;
    --text-2:       #9a9aa2;
    --text-3:       #6c6c74;
    --accent-soft:  rgba(216,35,42,.14);
    --accent-ink:   #ff8a8e;
    --hover:        rgba(255,255,255,.05);
    --hover-2:      rgba(255,255,255,.06);
    --hover-3:      rgba(255,255,255,.07);
    --btn-hover:    #ffffff;
  }
}
*/

/* -------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

/* -------------------------------------------------------------- 3. Layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band        { padding-block: var(--space); }
.band--alt   { background: var(--ink-2); border-block: 1px solid var(--line); }
.band--narrow .wrap { max-width: 74ch; }

.band__head {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: end; justify-content: space-between;
  margin-bottom: 3rem;
}

.grid-2 {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) { .grid-2 { grid-template-columns: 1fr 1.25fr; } }

.rule { height: 1px; background: var(--line); }

/* ------------------------------------------------- 4. Signature : la règle */
/* Graduation de chronographe : traits fins réguliers, un trait long tous les
   cinq. Reprend littéralement le cadran des instruments Explomet.          */
.scale {
  position: relative;
  height: 26px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
  background-image:
    repeating-linear-gradient(to right,
      var(--line-strong) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(to right,
      var(--line-strong) 0 1px, transparent 1px 80px);
  background-size: 100% 7px, 100% 14px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0;
}
.scale__label {
  position: absolute; right: var(--gutter); top: 10px;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}

/* -------------------------------------------------------- 5. Typographie */
.h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 22ch;
  text-wrap: balance;
}
.h2 {
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 600;
  max-width: 26ch;
  text-wrap: balance;
}
.lead {
  font-size: var(--step-1);
  color: var(--text-2);
  max-width: 62ch;
  margin-top: 1.5rem;
  line-height: 1.5;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}
.eyebrow--accent { color: var(--accent); }

.prose { max-width: 68ch; }
.prose p, .prose__p { color: var(--text-2); margin-top: 1.15rem; max-width: 68ch; }
.prose .h2 { margin-top: 2.75rem; }
.prose .h2:first-child { margin-top: 0; }
.prose__meta { font-family: var(--mono); font-size: var(--step--1); color: var(--text-3); margin-top: 3rem; }

.empty { color: var(--text-2); }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }

/* ------------------------------------------------------------ 6. Masthead */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
}
.masthead__inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 72px;
}
.brand { flex: none; }
.brand img { width: 148px; height: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem;
  background: none; border: 0; cursor: pointer;
  font-size: var(--step--1);
  letter-spacing: .01em;
  color: var(--text-2);
  border-radius: 3px;
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover { color: var(--text); background: var(--hover); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
  height: 1px; background: var(--accent);
}

.nav__chev {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
[aria-expanded="true"] .nav__chev { transform: rotate(-135deg); margin-top: 2px; }

.submenu {
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 60;
  min-width: 17rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .5rem;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,.9);
}
.submenu[hidden] { display: none; }
.submenu a {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .7rem;
  font-size: var(--step--1); color: var(--text-2);
  border-radius: 3px;
}
.submenu a:hover { background: var(--hover-2); color: var(--text); }
.submenu__overview { border-bottom: 1px solid var(--line); margin-bottom: .35rem; padding-bottom: .35rem; }
.submenu__overview a { color: var(--text-3); font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); border-radius: 3px;
  cursor: pointer; position: relative;
}
.burger__bar,
.burger__bar::before,
.burger__bar::after {
  position: absolute; left: 11px; width: 20px; height: 1px;
  background: var(--text); content: ""; transition: transform .2s ease, opacity .2s ease;
}
.burger__bar { top: 20px; }
.burger__bar::before { top: -6px; left: 0; }
.burger__bar::after  { top:  6px; left: 0; }
.burger[aria-expanded="true"] .burger__bar { background: transparent; }
.burger[aria-expanded="true"] .burger__bar::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- 7. Hero */
.hero { padding-top: clamp(3.5rem, 8vw, 7rem); }
.hero__title { font-size: var(--step-3); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; max-width: 20ch; text-wrap: balance; }
.hero__lead { font-size: var(--step-1); color: var(--text-2); max-width: 52ch; margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; align-items: center; }

.hero__stamp {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem;
  margin-top: 2.5rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.stamp__mark {
  border: 1px solid var(--line-strong);
  padding: .3rem .6rem;
  color: var(--text-2);
}

/* L'image du hero est une vignette encadrée, legende comprise, et non une
   bande pleine largeur : en 2:1 sur un grand ecran elle faisait 800 px de haut. */
.hero__figure {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}
.hero__figure figcaption {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  max-width: none; margin-inline: 0;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.hero__figure figcaption strong { color: var(--text-2); font-weight: 400; }

/* A partir de 62rem : texte a gauche, vignette a droite, regle en dessous.
   Le .wrap interieur est neutralise, c'est .hero qui porte la largeur. */
@media (min-width: 62rem) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .76fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .hero > .wrap {
    grid-column: 1; grid-row: 1;
    max-width: none; margin-inline: 0; padding-inline: 0;
  }
  .hero__figure { grid-column: 2; grid-row: 1; margin-top: 0; align-self: center; }
  .hero__figure img { aspect-ratio: 5 / 4; }
  .hero .scale { grid-column: 1 / -1; grid-row: 2; }
  .hero .scale__label { right: 0; }
}

.wide-figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* ---------------------------------------------------------- 8. Page heads */
.page-head { padding-top: clamp(3rem, 6vw, 5.5rem); }
.page-head--narrow .wrap { max-width: 74ch; }
.page-head--product { padding-top: 2rem; }

.product-head {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 64rem) { .product-head { grid-template-columns: 1.1fr .8fr; } }
.product-head__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface);
}

/* -------------------------------------------------------------- 9. Crumbs */
.crumbs { padding-top: 1.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }

/* ------------------------------------------------------------ 10. Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem;
  font-size: var(--step--1); letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 3px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--text); color: var(--ink); font-weight: 600; }
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--text-2); color: var(--text); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
a:hover > .link-arrow::after,
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { color: var(--text); }

.badge {
  display: inline-block;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .15rem .4rem; border-radius: 2px;
  vertical-align: middle;
}
.badge--new { background: var(--accent-soft); color: var(--accent-ink); }
.badge--eol { background: var(--hover-3); color: var(--text-3); }

/* ------------------------------------------------------------- 11. Cartes */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (min-width: 46rem) { .cards, .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--ink); }
.card > a { display: block; height: 100%; padding: clamp(1.5rem, 3vw, 2.25rem); transition: background .2s ease; }
.card > a:hover { background: var(--surface); }
.card__kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; gap: .5rem; align-items: center; }
.card__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; margin-top: .85rem; }
.card__text { color: var(--text-2); margin-top: .6rem; font-size: var(--step--1); }
.card__note { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: .75rem; }
.card .link-arrow { margin-top: 1.5rem; }
.card--media img { aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.5rem; filter: saturate(.85); }

/* --------------------------------------------------------- 12. Mise avant */
.feature {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s ease;
}
.feature:hover { border-color: var(--line-strong); }
@media (min-width: 60rem) { .feature { grid-template-columns: 1fr .8fr; } }
.feature__body { padding: clamp(1.75rem, 4vw, 3.25rem); align-self: center; }
.feature__title { font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; }
.feature__text { color: var(--text-2); margin-top: .85rem; max-width: 42ch; }
.feature .link-arrow { margin-top: 1.75rem; }
.feature__img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }

/* --------------------------------------------------------- 13. Chiffres */
.figures {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 60rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures__item { background: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); }
.figures__value {
  font-family: var(--mono); font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1;
}
.figures__unit { font-size: .45em; color: var(--text-3); margin-left: .2em; letter-spacing: 0; }
.figures__label { font-size: var(--step--1); color: var(--text-3); margin-top: .9rem; }

/* --------------------------------------------------------- 14. Domaines */
.fields { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
@media (min-width: 56rem) { .fields { grid-template-columns: repeat(2, 1fr); } }
.field { background: var(--ink); }
.field > a { display: block; height: 100%; padding: clamp(1.75rem, 3.5vw, 2.75rem); transition: background .2s ease; }
.field > a:hover { background: var(--surface); }
.field__kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.field__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; margin-top: .8rem; }
.field__text { color: var(--text-2); margin-top: .8rem; font-size: var(--step--1); max-width: 52ch; }

/* --------------------------------------------------------- 15. Specs, docs */
.specs { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.specs__row {
  display: grid; grid-template-columns: 1fr; gap: .25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) { .specs__row { grid-template-columns: 18rem 1fr; gap: 2rem; } }
.specs dt { font-size: var(--step--1); color: var(--text-3); }
.specs dd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--step--1); }

.ticks { margin-top: 2rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: var(--text-2); font-size: var(--step--1); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 10px; height: 1px; background: var(--accent);
}

.docs { border-top: 1px solid var(--line); margin-top: 2rem; }
.docs a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  color: var(--text-2); transition: color .18s ease;
}
.docs a:hover { color: var(--text); }
.docs__type { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; color: var(--text-3); border: 1px solid var(--line); padding: .15rem .45rem; }

.shots { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 50rem) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.shots--grid figcaption { font-family: var(--mono); font-size: .68rem; color: var(--text-3); margin-top: .6rem; }

.glossary { margin-top: 2rem; border-top: 1px solid var(--line); }
.glossary dt { font-weight: 600; padding-top: 1.4rem; }
.glossary dd { color: var(--text-2); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-top: .3rem; }

/* ------------------------------------------ 15b. Références bibliographiques */
.refs { border-top: 1px solid var(--line); margin-top: 2rem; }
.refs__item { border-bottom: 1px solid var(--line); }
.refs__link {
  display: block; padding: 1.15rem 0;
  color: var(--text); font-weight: 600; line-height: 1.4;
  transition: color .18s ease;
}
.refs__link:hover { color: var(--accent-ink); }
.refs__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ 16. Timeline */
.timeline { border-top: 1px solid var(--line); }
.timeline__item {
  display: grid; grid-template-columns: 1fr; gap: .5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .timeline__item { grid-template-columns: 10rem 1fr; gap: 3rem; } }
.timeline__year {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: var(--step-1); color: var(--accent); letter-spacing: -.01em;
}
.timeline__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -.02em; }
.timeline__text { color: var(--text-2); margin-top: .5rem; max-width: 62ch; font-size: var(--step--1); }

/* ---------------------------------------------------------------- 17. FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.25rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--text-3); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); padding-bottom: 1.5rem; max-width: 68ch; font-size: var(--step--1); }

/* ------------------------------------------------------------ 18. Notice */
.notice { background: var(--accent-soft); border-bottom: 1px solid rgba(216,35,42,.28); }
.notice__inner { padding-block: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.notice__kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.notice__text { color: var(--text-2); font-size: var(--step--1); }

/* ----------------------------------------------------------- 19. Contact */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 64rem) { .contact { grid-template-columns: 1.4fr .8fr; } }

.form { display: grid; gap: 1.35rem; max-width: 46rem; }
.field-row { display: grid; gap: 1.35rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }

.form .field { display: grid; gap: .5rem; background: none; }
.form label { font-size: var(--step--1); color: var(--text-2); }
.form abbr { color: var(--accent); text-decoration: none; }

.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form select, .form textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .8rem .9rem;
  font-size: var(--step-0);
  transition: border-color .18s ease, background .18s ease;
}
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--text-3); background: var(--surface); outline-offset: 1px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 1.35rem, calc(100% - 13px) 1.35rem; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }

.field--check { display: flex; align-items: flex-start; gap: .7rem; }
.field--check input { margin-top: .35rem; accent-color: var(--accent); width: 1rem; height: 1rem; }
.field--check label { color: var(--text-2); }
.field--check a { text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot : hors écran, jamais affiché, jamais dans l'ordre de tabulation. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { margin-top: .5rem; }
.form__note { font-size: var(--step--1); color: var(--text-3); }

.alert { border: 1px solid var(--line); padding: 1.5rem; border-radius: 3px; }
.alert h2 { font-size: var(--step-1); font-weight: 600; }
.alert p, .alert li { color: var(--text-2); margin-top: .5rem; font-size: var(--step--1); }
.alert ul { list-style: disc; padding-left: 1.2rem; }
.alert--ok { border-color: rgba(110,231,168,.4); background: rgba(110,231,168,.07); }
.alert--error { border-color: rgba(216,35,42,.45); background: var(--accent-soft); }

.contact__aside { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 63.99rem) { .contact__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2.5rem; } }
.aside__heading { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-top: 2rem; margin-bottom: .75rem; font-weight: 400; }
.aside__heading:first-child { margin-top: 0; }
.contact__aside address, .contact__aside p { font-style: normal; color: var(--text-2); font-size: var(--step--1); }
.contact__aside a:hover { color: var(--text); }

/* --------------------------------------------------------------- 20. CTA */
.cta { border-top: 1px solid var(--line); background: var(--ink-2); }
.cta__inner { padding-block: var(--space); max-width: 62ch; }
.cta__title { font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; }
.cta__text { color: var(--text-2); margin-top: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.mailto { font-family: var(--mono); font-size: var(--step--1); color: var(--text-2); }
.mailto a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ 21. Footer */
.foot__inner {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr; padding-block: var(--space) 3rem;
}
@media (min-width: 56rem) { .foot__inner { grid-template-columns: 2fr 1fr 1fr; } }
.foot__identity img { width: 148px; }
.foot__tagline { color: var(--text-2); margin-top: 1.5rem; max-width: 44ch; font-size: var(--step--1); }
.foot__address { font-style: normal; color: var(--text-3); margin-top: 1.75rem; font-size: var(--step--1); line-height: 1.9; }
.foot__address a:hover { color: var(--text); }
.foot__heading { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 400; margin-bottom: 1.1rem; }
.foot__col li { margin-bottom: .6rem; }
.foot__col a { color: var(--text-2); font-size: var(--step--1); }
.foot__col a:hover { color: var(--text); }

.foot__legal {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--text-3);
}
.foot__legal-links { display: flex; gap: 1.5rem; }
.foot__legal a:hover { color: var(--text); }

/* ------------------------------------------------------------ 22. Mobile */
@media (max-width: 60rem) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem .25rem; font-size: var(--step-0); }
  .nav__link.is-active::after { display: none; }
  .submenu { position: static; border: 0; background: none; box-shadow: none; padding: 0 0 .75rem .25rem; }
  .submenu a { padding: .5rem 0; }
}

/* -------------------------------------------------- 23. Impression / a11y */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .masthead, .cta, .burger, .scale { display: none; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ------------------------------------------------ 15c. Selecteur de langue */
.nav__item--lang .nav__link {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
}
/* Aligne a droite : le selecteur ferme la barre, un panneau a gauche deborderait. */
.submenu--lang { left: auto; right: 0; min-width: 11rem; }
.submenu--lang a { display: flex; align-items: baseline; gap: .6rem; }
.submenu__code {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  color: var(--text-3); min-width: 1.6rem;
}
.submenu--lang a[aria-current="true"] { color: var(--text); background: var(--hover-2); }
.submenu--lang a[aria-current="true"] .submenu__code { color: var(--accent-ink); }

@media (max-width: 60rem) {
  .submenu--lang { right: auto; min-width: 0; }
}

/* --------------------------------------- 12b. Mise en avant, correctifs */
/* La photo produit est detouree sur fond clair : la recadrer en cover
   amputait l'instrument. On la contient, avec de l'air autour. */
.feature__img {
  width: 100%; height: 100%; min-height: 260px;
  object-fit: contain;
  background: var(--ink-2);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 60rem) {
  .feature { align-items: stretch; }
  .feature__img { min-height: 340px; }
}

/* ------------------------------------------ 14b. Domaines, vignettes */
/* La vignette est encadree par le fond de la carte plutot qu'a fond perdu :
   un retrait uniforme sur le lien, l'image respire. */
.field > a {
  display: flex; flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.field__media {
  display: block; width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
  filter: saturate(.85) contrast(1.03);
}
.field__body { padding: 0; margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.field__kicker { margin-top: 0; }


/* ------------------------------------------------- 15d. Galerie video */
.shots__video {
  width: 100%; display: block;
  aspect-ratio: 16 / 9; object-fit: cover;
  background: #0a0a0a;
  border: 1px solid var(--line);
}

/* ------------------------------------- 8b. Pages applications, disposition */
/* Le texte a gauche, l'illustration a droite. L'image etait auparavant un
   bandeau pleine largeur en 2:1, soit pres de 800 px de haut sur un grand
   ecran, pour une simple illustration de contexte. */
.app-layout {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .app-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .76fr); }
}
.app-figure { position: sticky; top: 6rem; }
.app-figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(.9) contrast(1.02);
}
@media (max-width: 62rem) { .app-figure { position: static; } }

/* --------------------------------------------- 17b. Sommaire d'article */
.toc {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc__title {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: .75rem;
}
.toc ol { list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: .3rem 0 .3rem 2rem; position: relative; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: .35rem;
  font-family: var(--mono); font-size: .68rem; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--text-2); font-size: var(--step--1); }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Une ancre visee ne doit pas passer sous l'en-tete fixe. */
.prose h2[id] { scroll-margin-top: 6rem; }

/* ------------------------------------------------- 23. Cesure des titres */
/* L'allemand et le polonais forment des mots composes plus larges que la
   colonne. Un mot seul ne peut pas se replier : il deborde. Deux niveaux.
   1. Coupure de secours dans toutes les langues, pour ne jamais deborder.
   2. Cesure typographique hors anglais, qui s'appuie sur le dictionnaire du
      navigateur via l'attribut lang de <html>. La typographie anglaise,
      deja validee, reste inchangee. */
h1, h2, h3, h4,
.h1, .h2, .h3,
.hero__title, .feature__title, .field__title, .refs__title,
.card__title, .prose h2, .prose h3 {
  overflow-wrap: break-word;
  word-break: normal;
}

html:not([lang="en"]) h1,
html:not([lang="en"]) h2,
html:not([lang="en"]) h3,
html:not([lang="en"]) .h1,
html:not([lang="en"]) .h2,
html:not([lang="en"]) .h3,
html:not([lang="en"]) .hero__title,
html:not([lang="en"]) .feature__title,
html:not([lang="en"]) .field__title,
html:not([lang="en"]) .card__title {
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}

/* Le titre du hero est contraint a 20ch, etroit pour un compose allemand. */
html:not([lang="en"]) .hero__title { max-width: 24ch; }

/* Le corps de texte et les libelles de specifications peuvent aussi porter
   des composes longs, sans titre pour les absorber. */
.lead, .prose p, .field__text, .feature__text,
.specs dt, .specs dd, .nav__link, .submenu a {
  overflow-wrap: break-word;
}

/* ------------------------------------------------------ 24. Depot traduction */
.depot { max-width: 46rem; }
.depot__who { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
              color: var(--text-2); font-size: var(--step--1); margin-bottom: 2rem; }
.depot__out { display: inline; }
.depot__out button { background: none; border: 0; padding: 0; cursor: pointer;
                     font: inherit; color: var(--text-2); }
.depot__out button:hover { color: var(--text); }

.depot__master, .depot__apercu {
  border: 1px solid var(--line); background: var(--ink-2);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
}
.depot__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
                text-transform: uppercase; color: var(--text-3); }
.depot__meta { margin-top: .5rem; color: var(--text-2); font-size: var(--step--1); }
.depot__note { margin-top: .75rem; color: var(--text-3); font-size: var(--step--1); }

.depot__stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: .9rem; }
.depot__stats div { display: flex; align-items: baseline; gap: .45rem; }
.depot__stats dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
                   color: var(--text-3); }
.depot__stats dd { font-family: var(--mono); font-variant-numeric: tabular-nums;
                   font-size: var(--step-1); color: var(--text); }

.input--code { font-family: var(--mono); font-size: var(--step-2);
               letter-spacing: .5em; text-align: center; max-width: 10ch; }
.form--narrow { max-width: 26rem; }
.alert--ok { border-left: 3px solid var(--accent-ink); }
.depot__dl { margin-top: 1.1rem; }

/* ------------------------------- 25. Sections produit en deux colonnes */
.section-split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 62rem) {
  .section-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
}
.section-split__head .h2 { margin-top: .4rem; }
.section-split__body p + p { margin-top: 1rem; }

/* Galerie de rendus techniques : image entiere sur fond clair, jamais
   recadree. Certaines font 5:1, un cadrage en 4:3 les couperait. */
.shots--contain img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface);
  padding: clamp(.75rem, 2vw, 1.5rem);
}

/* ------------------------------- 26. Deux vues produit cote a cote */
.product-head__pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(.75rem, 2vw, 1.25rem);
  align-items: start;
}
/* Meme rapport et meme cadrage pour les deux, sans quoi une photo plus
   haute ferait paraitre l'autre plus petite. */
.product-head__pair .product-head__figure { margin: 0; }
.product-head__pair img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); background: var(--surface);
}
@media (max-width: 40rem) {
  .product-head__pair { grid-template-columns: 1fr; }
}
.section-split__body .ticks { margin-top: 1.25rem; }

/* ------------------------------------- 27. Intertitre de sous-menu */
.submenu__heading {
  margin-top: .6rem; padding: .5rem .75rem .25rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
/* Sur mobile, le panneau est a plat : le filet suffit a marquer le groupe. */
@media (max-width: 60rem) {
  .submenu__heading { padding-left: .25rem; padding-right: 0; }
}

/* ------------------------------------ 28. Vues produit empilees */
/* Les deux vues, boitier et valise, se lisent mieux l'une au-dessus de
   l'autre : le format tres allonge de ces instruments rend la comparaison
   difficile cote a cote. */
.product-head__pair { grid-template-columns: 1fr; }

/* Mise en avant de l'accueil. Sans rapport impose, chaque vue s'affichait a
   sa hauteur naturelle et le bloc devenait interminable. On fixe le cadre,
   on limite la largeur, et les deux vues se centrent dans la colonne. */
.feature__imgs {
  display: grid; grid-template-rows: auto auto;
  gap: clamp(.5rem, 1.5vw, 1rem);
  align-content: center; justify-items: center;
  background: var(--ink-2);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  height: 100%;
}
.feature__imgs .feature__img {
  width: 100%; max-width: 21rem;
  height: auto; min-height: 0;
  aspect-ratio: 4 / 3; object-fit: contain;
  padding: 0; background: none;
}

/* ------------------------- 29. Vignette produit non recadree */
/* Meme traitement que les vues de l'accueil : image entiere, largeur
   plafonnee, centree sur un fond clair. */
.product-head__figure--contain {
  display: grid; justify-items: center; align-content: center;
  background: var(--ink-2); border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.product-head__figure--contain img {
  width: 100%; max-width: 31.5rem;
  aspect-ratio: 4 / 3; object-fit: contain;
  border: 0; background: none;
}

/* ------------------------ 30. Vues empilees, image entiere */
/* « cover » remplissait le cadre en rognant. « contain » montre l'appareil
   en entier dans le meme encombrement, le fond clair comblant le reste.
   Cette regle vient apres la section 26, elle la supplante. */
.product-head__pair img {
  object-fit: contain;
  background: var(--ink-2);
  padding: clamp(.75rem, 2vw, 1.25rem);
}

/* --------------------------------------------- 31. Agrandissement au clic */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.zoom {
  border: 0; padding: 0; background: none;
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
}
.zoom::backdrop { background: rgba(10, 10, 10, .88); }
.zoom__img {
  display: block; margin: auto;
  max-width: min(92vw, 1600px); max-height: 88vh;
  width: auto; height: auto;
  border: 1px solid rgba(255, 255, 255, .18);
}
.zoom__close {
  position: fixed; top: 1rem; right: 1rem;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(10, 10, 10, .6); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .18s ease;
}
.zoom__close:hover { background: rgba(255, 255, 255, .15); }

/* ------------------------- 32. Titre de fiche sur fond sombre */
/* Meme vocabulaire que la mise en avant de l'accueil : fond quasi noir et
   trame fine, reprise du cadran des instruments. Limite au titre : au-dela,
   un paragraphe entier sur fond noir fatigue la lecture. */
.product-head__titles--dark {
  background-color: #0a0a0a;
  background-image:
    repeating-linear-gradient(to right,  rgba(255,255,255,.055) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.055) 0 1px, transparent 1px 56px);
  color: #f1f1ef;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.product-head__titles--dark .h1   { color: #ffffff; }
.product-head__titles--dark .lead { color: #c9c9cf; margin-bottom: 0; }
.product-head__titles--dark .eyebrow,
.product-head__titles--dark .eyebrow--accent { color: #ff8a8e; }

/* --------------------------- 33. Bloc entreprise en trois colonnes */
.company-split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .company-split { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
  /* La boite du conteneur disparait, ses paragraphes rejoignent la grille
     du parent. La classe prose reste sur l'element, donc les styles de
     texte continuent de s'appliquer. */
  .company-split .prose { display: contents; }
  .company-split .prose p { margin-top: 0; }
}

/* ------------------------------ 34. Portion mise en valeur */
/* Serif italique rouge sur un titre grotesque gras : le contraste vient de
   la forme des lettres, pas de l'epaisseur, d'ou le font-weight normal.
   Georgia est presente partout, aucune police n'est hebergee. */
.accent {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 400;
  /* Georgia porte plus bas que le grotesque a corps egal : on compense. */
  font-size: 1.06em;
  letter-spacing: -.01em;
}

/* ------------------------------------- 35. Drapeaux du selecteur */
.flag {
  display: inline-block; vertical-align: -3px;
  width: 2.3em; height: auto; aspect-ratio: 2 / 1;
  margin-right: .55em;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.nav__item--lang .nav__link { display: inline-flex; align-items: center; }
.submenu--lang a { align-items: center; }
