/* TOPOPHILIA — site vitrine. Charte commune avec le viewer (olivierlattuga.com) */

:root {
  --ink: #191714;
  --ink-2: #24211d;
  --ink-3: #2f2b26;
  --paper: #f9f8f7;
  --paper-2: #f1efeb;
  --line: #e4e0da;
  --line-dark: rgba(249, 248, 247, .14);
  --muted: #6b6760;
  --muted-dark: #a8a39b;
  --accent: #d4622a;
  --accent-strong: #b34f1d;
  --accent-text: #b04d1c;        /* orange des petits textes sur fond clair (contraste ≥ 4,5:1) */
  --accent-text-dark: #e07a45;   /* orange des petits textes sur fond sombre */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.kicker {
  font: 500 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent-text); margin: 0 0 18px;
}
.section.dark .kicker { color: var(--accent-text-dark); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; }
.narrow { max-width: 640px; }

/* ---------- boutons (mêmes codes que le viewer) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
@media (hover: hover) { .btn:hover { background: var(--ink); color: var(--paper); } }
.btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (hover: hover) { .btn.primary:hover { background: #9a4317; border-color: #9a4317; } }
.btn.ghost { border-color: rgba(255, 255, 255, .28); color: var(--paper); }
@media (hover: hover) { .btn.ghost:hover { background: rgba(255, 255, 255, .1); } }
.btn.small { height: 34px; padding: 0 14px; font-size: 11px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-strong); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--ink); color: var(--paper);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; color: var(--muted-dark); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
@media (hover: hover) { .nav a:hover, .nav a.active { color: var(--paper); border-color: var(--accent); } }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); }
.hero h1 em { font-style: italic; color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual {
  position: relative; margin: 0; aspect-ratio: 1; background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(25, 23, 20, .55); overflow: hidden;
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-visual figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px;
  background: linear-gradient(transparent, rgba(25, 23, 20, .85)); padding: 40px 14px 14px;
}
.phase {
  flex: 1; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: rgba(249, 248, 247, .5); padding-top: 10px; border-top: 2px solid rgba(249, 248, 247, .2);
  transition: color .4s, border-color .4s;
}
.phase.on { color: #fff; border-color: var(--accent); }
.scanline {
  position: absolute; top: 0; bottom: 0; width: 2px; left: -4px; background: var(--accent);
  box-shadow: 0 0 18px 4px rgba(212, 98, 42, .55); opacity: 0; pointer-events: none;
}

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.facts > div { padding: 26px 20px 30px 0; display: grid; gap: 4px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { font: 500 32px/1 var(--serif); font-variant-numeric: lining-nums; }
.facts b em { font-style: normal; color: var(--accent); }   /* « + » et « h » en orange (grand corps : contraste suffisant) */
.facts span { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark .lead { color: var(--muted-dark); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2, .about h2, .contact h2 { font-size: clamp(34px, 4.2vw, 54px); }

/* solutions */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.cat { padding: 28px 28px 8px 0; }
.cat + .cat { padding-left: 28px; border-left: 1px solid var(--line); }
.cat-num { font: 500 12px var(--mono); color: var(--accent-text); margin: 0 0 14px; letter-spacing: .1em; }
.cat h3 { font-size: 34px; }
.cat-intro { color: var(--muted); margin: 10px 0 22px; min-height: 3.3em; }
.sol-list { list-style: none; margin: 0; padding: 0; }
.sol-list a {
  display: grid; gap: 2px; padding: 15px 28px 15px 0; text-decoration: none;
  border-top: 1px solid var(--line); position: relative;
}
.sol-list a > * { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.sol-list a::after {
  content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent-text); font-family: var(--mono); opacity: 0; transition: opacity .2s, right .2s;
}
@media (hover: hover) { .sol-list a:hover > * { transform: translateX(8px); } }
@media (hover: hover) { .sol-list a:hover::after { opacity: 1; right: 0; } }
.sol-list span { font-weight: 500; }
.sol-list small { color: var(--muted); font-size: 13.5px; }

/* ---------- démonstrations ---------- */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line-dark); margin-bottom: 20px; }
.demo-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted-dark); padding: 12px 18px; cursor: pointer;
  font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .14em;
}
@media (hover: hover) { .demo-tabs button:hover { color: var(--paper); } }
.demo-tabs button[aria-selected="true"] { color: #fff; border-color: var(--accent); }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; background: var(--ink-2); border: 1px solid var(--line-dark); }
.stage { position: relative; height: min(68vh, 660px); min-height: 420px; background: #191714; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.stage.live { touch-action: none; }
.stage.dragging { cursor: grabbing; }
.stage.tool-on { cursor: crosshair; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.stage-zoom button, .stage-tools button {
  height: 34px; min-width: 34px; border: 0; border-radius: 2px; background: rgba(249, 248, 247, .94); color: var(--ink);
  font: 500 16px var(--mono); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
@media (hover: hover) { .stage-zoom button:hover, .stage-tools button:hover { background: #fff; } }
.stage-tools { position: absolute; top: 12px; left: 12px; display: flex; gap: 2px; padding: 3px; background: rgba(249, 248, 247, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.stage-tools:empty { display: none; }
.stage-tools button { box-shadow: none; background: transparent; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; padding: 0 12px; }
.stage-tools button.on { background: var(--accent-strong); color: #fff; }
.stage-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0;
  background: rgba(25, 23, 20, .88); color: var(--paper); padding: 6px 12px;
  font: 12px var(--mono); letter-spacing: .04em; pointer-events: none; white-space: nowrap; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis;
}
.stage-hint:empty { display: none; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted-dark); background: #191714; transition: opacity .4s; }
.stage-loading.done { opacity: 0; pointer-events: none; }

/* volet de comparaison */
.swipe { position: absolute; inset: 0; pointer-events: none; }
.swipe i {
  position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: auto; cursor: ew-resize;
}
.swipe i::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: var(--ink);
  font: 16px var(--mono); border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.swipe-tag { position: absolute; top: 14px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; background: rgba(25, 23, 20, .8); color: #fff; padding: 5px 9px; }
.swipe-tag.left { left: 14px; } .swipe-tag.right { right: 14px; }
.stage-tools:not(:empty) ~ .swipe .swipe-tag.left { top: 60px; }

/* étiquettes cartographiques : texte blanc, contour sombre (jamais de halo blanc) */
.map-label {
  fill: #fff; stroke: rgba(15, 14, 12, .9); stroke-width: calc(3px * var(--u, 1)); paint-order: stroke;
  font: 500 calc(12px * var(--u, 1)) var(--sans); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.map-label.big { font-size: calc(14px * var(--u, 1)); font-weight: 600; }
.map-label.sub { font: 400 calc(10.5px * var(--u, 1)) var(--mono); }
.stock { fill: transparent; stroke-width: 1.4; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s; }
@media (hover: hover) { .stock:hover, .stock.sel { stroke-width: 2.5; } }
.measure-line { fill: rgba(212, 98, 42, .18); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.measure-pt { fill: #fff; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.contour { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: .45; vector-effect: non-scaling-stroke; }
.contour.master { stroke: rgba(255, 255, 255, .7); stroke-width: .7; }
.hero-visual .contour { stroke: rgba(255, 255, 255, .35); stroke-width: .7; }
.hero-visual .contour.master { stroke: rgba(255, 255, 255, .75); stroke-width: .8; }

/* volet d'information */
.demo-panel { border-left: 1px solid var(--line-dark); padding: 26px 24px; overflow: auto; max-height: min(68vh, 660px); min-height: 420px; }
.demo-panel h3 { font-size: 30px; margin-bottom: 14px; }
.demo-panel p { margin: 0 0 12px; color: var(--muted-dark); font-size: 14.5px; }
.demo-panel .qa { display: grid; gap: 12px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.demo-panel .qa div { display: grid; gap: 2px; }
.demo-panel .qa b, .panel-label { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-text-dark); }
.demo-panel .qa span { font-size: 14px; color: var(--paper); }
.panel-label { display: block; margin: 20px 0 10px; }
.readout { font: 500 34px/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: #fff; }
.readout small { font: 400 11px var(--mono); color: var(--muted-dark); text-transform: uppercase; letter-spacing: .1em; display: block; margin-top: 6px; }
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv td { padding: 7px 0; border-bottom: 1px solid var(--line-dark); }
.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; padding-left: 12px; }
.kv tr.total td { border-bottom: 0; font-weight: 500; color: #fff; padding-top: 10px; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; border: 1px solid rgba(255, 255, 255, .3); }
.bars { display: grid; gap: 9px; }
.bar { display: grid; gap: 4px; font-size: 12.5px; }
.bar header { display: flex; justify-content: space-between; color: var(--paper); }
.bar header span:last-child { font-variant-numeric: tabular-nums; color: var(--muted-dark); }
.bar .track { display: grid; gap: 2px; }
.bar .fill { height: 5px; background: var(--accent); width: 0; transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.bar .fill.t0 { background: rgba(249, 248, 247, .35); }
.legend-rows { display: grid; gap: 1px; }
.legend-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 6px 4px; font-size: 13px; cursor: pointer; border: 0; background: none; color: var(--paper); text-align: left; }
@media (hover: hover) { .legend-row:hover { background: rgba(255, 255, 255, .06); } }
.legend-row.off { opacity: .4; }
.legend-row .swatch { margin: 0; width: 14px; height: 14px; }
.legend-row span:last-child { font-variant-numeric: tabular-nums; color: var(--muted-dark); }
.seg { display: inline-flex; border: 1px solid var(--line-dark); margin: 4px 0 6px; }
.seg button { background: none; border: 0; color: var(--muted-dark); padding: 8px 12px; cursor: pointer; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.seg button.on { background: var(--accent-strong); color: #fff; }
.range { width: 100%; accent-color: var(--accent); }
.profile svg { width: 100%; height: 150px; display: block; background: rgba(255, 255, 255, .03); }
.profile text { fill: var(--muted-dark); font: 10px var(--mono); }
.demo-foot { margin: 18px 0 0; font: 12px var(--mono); color: var(--muted-dark); letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.demo-foot a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent); }

/* méthode */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 90px 1fr 1.6fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num { font: 500 12px var(--mono); color: var(--accent-text); letter-spacing: .1em; }
.steps h3 { font-size: 36px; }
.steps p { margin: 0; color: var(--muted); }

/* à propos, contact */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.about-text p { margin: 0 0 18px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-links { display: grid; gap: 0; }
.contact-line { display: grid; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font: 500 26px/1.2 var(--serif); }
.contact-line small { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
@media (hover: hover) { .contact-line:hover { color: var(--accent-strong); } }
.contact-links .btn { margin-top: 20px; }

/* pied de page */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 40px 0 28px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 34px; width: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { color: var(--paper); } }
.legal { font-size: 11px; line-height: 1.5; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: #8a857e; }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- adaptatif ---------- */
@media (max-width: 980px) {
  .hero-grid, .about, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat, .cat + .cat { padding: 28px 0 8px; border-left: 0; }
  .cat + .cat { border-top: 1px solid var(--line); }
  .cat-intro { min-height: 0; }
  .demo { grid-template-columns: 1fr; }
  .demo-panel { border-left: 0; border-top: 1px solid var(--line-dark); max-height: none; min-height: 0; }
  .steps li { grid-template-columns: 60px 1fr; }
  .steps li p { grid-column: 2; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--ink);
    padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line-dark); transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .header-row > .btn { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--paper); position: relative; content: ""; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stage { height: 62vh; min-height: 360px; }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .demo-tabs button { padding: 12px 12px; flex: none; }
  .brand img { height: 26px; }
}
.site-tag { font: 500 10.5px/1.5 var(--mono) !important; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark) !important; margin: -6px 0 14px !important; }

/* cadre blanc autour de la donnée ; légende en traits */
.data-border { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.swatch.line { border: 0; height: 3px; width: 16px; background: var(--c); align-self: center; }
.legend-row .swatch.line { width: 16px; height: 3px; }
.legend-row { grid-template-columns: 18px 1fr auto; }

/* titres : verbes en grand, complément plus petit, une ligne chacun */
.hero h1 { font-size: clamp(46px, 6.4vw, 100px); line-height: 1; }
.hero h1 .l { display: block; white-space: nowrap; }
.hero h1 .c { font-size: .46em; letter-spacing: 0; color: var(--ink); font-style: normal; }
.hero h1 .l.accent, .hero h1 .l.accent .c { color: var(--accent); font-style: normal; }
.section-head h2 em, .hero h1 em { font-style: normal; color: var(--accent); }
@media (max-width: 420px) { .hero h1 .l { white-space: normal; } }

/* accueil plein écran */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vh, 64px) 0 0; }
.hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 4vw, 80px); }
.hero .lead { font-size: clamp(17px, 1.35vw, 21px); max-width: 560px; }
.hero .kicker { margin-bottom: 26px; }
.hero-visual { max-height: calc(100svh - var(--header-h) - 200px); justify-self: end; width: 100%; max-width: 680px; }
.hero .facts { margin-top: clamp(32px, 6vh, 72px); }
@media (max-width: 980px) { .hero { min-height: 0; } .hero-visual { justify-self: start; max-height: none; } }
.hero > .wrap { max-width: 1440px; }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr); }
.hero h1 { font-size: clamp(44px, 5.6vw, 88px); }
.hero-visual { max-width: 720px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* accueil : hauteur réduite, flèche de défilement */
.hero { min-height: min(calc(100svh - var(--header-h)), 860px); padding-bottom: 0; position: relative; }
.hero-visual { max-height: calc(100svh - var(--header-h) - 260px); }
.hero .facts { margin-top: clamp(24px, 4vh, 48px); }
.hero .facts > div { padding-top: 20px; padding-bottom: 20px; }
#solutions { padding-top: clamp(56px, 7vw, 96px); }
.scroll-down {
  display: grid; place-items: center; width: 44px; height: 44px; margin: clamp(16px, 3vh, 32px) auto 0;
  border: 1px solid var(--line); border-radius: 50%; color: var(--accent); background: var(--paper);
  animation: nudge 2.2s ease-in-out infinite; transition: background .2s, color .2s;
}
@media (hover: hover) { .scroll-down:hover { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); } }
.scroll-down svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-down { animation: none; } }
/* accueil : un peu plus d'air */
.hero { min-height: min(calc(100svh - var(--header-h)), 960px); padding-top: clamp(48px, 8vh, 96px); }
.hero-visual { max-height: calc(100svh - var(--header-h) - 220px); }
.hero .lead { margin-top: 30px; }
.hero .cta-row { margin-top: 44px; }
.hero h1 .l + .l { margin-top: .06em; }
.scroll-down { margin-top: clamp(28px, 5vh, 56px); }
.hero .facts { margin-top: clamp(32px, 5vh, 64px); }
/* accueil : nettement plus d'espace */
.hero { min-height: calc(100svh - var(--header-h)); padding-top: clamp(64px, 12vh, 140px); }
.hero-grid { gap: clamp(48px, 7vw, 140px); }
.hero .kicker { margin-bottom: 40px; }
.hero h1 .l + .l { margin-top: .14em; }
.hero .lead { margin-top: 44px; }
.hero .cta-row { margin-top: 60px; }
.hero-visual { max-height: calc(100svh - var(--header-h) - 300px); max-width: 640px; }
.scroll-down { margin-top: clamp(48px, 9vh, 110px); }
.hero .facts { margin-top: clamp(48px, 8vh, 100px); }
@media (max-width: 980px) { .hero { min-height: 0; } .hero-visual { max-height: none; } }
/* accueil : photographie de fond très atténuée (© Olivier Lattuga-Duyck) */
.hero { isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: url(../assets/img/hero-bg.jpg) center 62% / cover no-repeat; filter: saturate(.55); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(249, 248, 247, .93) 0%, rgba(249, 248, 247, .88) 45%, rgba(249, 248, 247, .74) 100%),
    linear-gradient(180deg, rgba(249, 248, 247, 0) 70%, var(--paper) 100%);
}
.hero .facts { background: rgba(249, 248, 247, .6); }
.hero::before { filter: saturate(.7); }
.hero::after {
  background:
    linear-gradient(90deg, rgba(249, 248, 247, .86) 0%, rgba(249, 248, 247, .78) 45%, rgba(249, 248, 247, .58) 100%),
    linear-gradient(180deg, rgba(249, 248, 247, 0) 70%, var(--paper) 100%);
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(249, 248, 247, .83) 0%, rgba(249, 248, 247, .73) 45%, rgba(249, 248, 247, .54) 100%),
    linear-gradient(180deg, rgba(249, 248, 247, 0) 70%, var(--paper) 100%);
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(249, 248, 247, .90) 0%, rgba(249, 248, 247, .83) 45%, rgba(249, 248, 247, .66) 100%),
    linear-gradient(180deg, rgba(249, 248, 247, 0) 70%, var(--paper) 100%);
}

/* bandeau des références */
.clients { background: var(--ink); color: var(--muted-dark); padding: 30px 0; }
.clients-row { display: flex; align-items: center; gap: clamp(24px, 5vw, 72px); }
.clients-title { margin: 0; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; }
.clients-logos { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; align-items: center; justify-content: space-around; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.clients-logos img { display: block; width: auto; opacity: .72; transition: opacity .2s; }
@media (hover: hover) { .clients-logos img:hover { opacity: 1; } }
.l-imerys { height: 40px; } .l-edf { height: 52px; } .l-syneos { height: 30px; } .l-carige { height: 48px; }
@media (max-width: 760px) {
  .clients-row { flex-direction: column; gap: 20px; }
  .clients-logos { justify-content: center; }
  .l-imerys { height: 32px; } .l-edf { height: 42px; } .l-syneos { height: 24px; } .l-carige { height: 38px; }
}
/* bandeau des références collé sous les chiffres clés */
.hero { padding-bottom: 0 !important; }
.hero .facts { margin-bottom: 0; }
.clients { padding: 26px 0; margin-top: 0; }
.clients-logos { justify-content: space-evenly; }
/* chiffres clés en bas de l'accueil, posés directement sur le bandeau des références */
.hero { justify-content: flex-start; }
.hero-grid { margin-top: auto; margin-bottom: auto; }
.hero .facts {
  margin-top: clamp(32px, 5vh, 64px); margin-bottom: 0; background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);   /* fond pleine largeur */
}
.clients-logos img { opacity: 1; }
/* chiffres clés + références : tous deux dans l'écran d'accueil */
.hero > .clients { width: 100%; }
.hero-visual { max-height: calc(100svh - var(--header-h) - 380px); }
.hero { padding-top: clamp(40px, 8vh, 110px); }
.scroll-down { margin-top: clamp(24px, 4vh, 48px); }
.hero .facts { margin-top: clamp(24px, 3vh, 40px); }
.hero .facts > div { padding-top: 16px; padding-bottom: 16px; }
.clients { padding: 22px 0; }
/* ajustement pour que chiffres clés et logos tiennent dans l'écran d'accueil */
.hero { padding-top: clamp(28px, 5vh, 80px); }
.hero .kicker { margin-bottom: 26px; }
.hero .lead { margin-top: 30px; }
.hero .cta-row { margin-top: 40px; }
.hero-visual { width: min(100%, calc(100svh - var(--header-h) - 360px)); max-height: none; aspect-ratio: 1; }
.scroll-down { margin-top: clamp(16px, 2.5vh, 36px); }
.hero .facts { margin-top: clamp(16px, 2.5vh, 32px); }
@media (max-width: 980px) { .hero-visual { width: 100%; } }
/* écrans peu hauts : tout l'accueil (chiffres clés + logos compris) reste dans l'écran */
@media (min-width: 981px) and (max-height: 860px) {
  .hero { padding-top: 3vh; }
  .hero h1 { font-size: min(5.6vw, 8.6vh); }
  .hero .kicker { margin-bottom: 2vh; }
  .hero .lead { margin-top: 2.4vh; font-size: 16px; }
  .hero .cta-row { margin-top: 3vh; }
  .hero-visual { width: min(100%, calc(100svh - var(--header-h) - 300px)); }
  .scroll-down { width: 36px; height: 36px; margin-top: 1.5vh; }
  .hero .facts { margin-top: 1.5vh; }
  .hero .facts > div { padding-top: 10px; padding-bottom: 10px; }
  .hero .facts b { font-size: 26px; }
  .clients { padding: 14px 0; }
  .l-imerys { height: 32px; } .l-edf { height: 42px; } .l-syneos { height: 24px; } .l-carige { height: 38px; }
}
.h2-pair span { display: block; }
@media (min-width: 761px) { .h2-pair span { white-space: nowrap; } }

/* en-tête : courriel et téléphone au-dessus du menu */
:root { --header-h: 84px; }
.header-main { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.header-main .nav { margin-left: 0; }
.header-contact { display: flex; gap: 22px; }
.header-contact a {
  font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted-dark); text-decoration: none;
  transition: color .15s;
}
@media (hover: hover) { .header-contact a:hover { color: var(--accent-text); } }
.header-contact a + a { padding-left: 22px; border-left: 1px solid var(--line-dark); }
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-main { margin-left: 0; }
  .header-contact { display: none; }
}
.brand img { height: 46px; }
@media (max-width: 760px) { .brand img { height: 32px; } }
.hero-visual { width: min(100%, calc(100svh - var(--header-h) - 380px)); }
@media (min-width: 981px) and (max-height: 860px) { .hero-visual { width: min(100%, calc(100svh - var(--header-h) - 320px)); } }
@media (max-width: 980px) { .hero-visual { width: 100%; } }
@media (min-width: 981px) and (min-height: 861px) {
  .hero { padding-top: clamp(20px, 3.5vh, 64px); }
  .hero .cta-row { margin-top: 34px; }
  .hero .lead { margin-top: 26px; }
}

/* ===== en-tête : bande anthracite (contact) + barre blanche (logo, menu) ===== */
:root { --topbar-h: 30px; --header-h: 106px; }
.site-header { height: auto; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--ink); height: var(--topbar-h); }
.topbar-row { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.topbar a { font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted-dark); text-decoration: none; transition: color .15s; }
@media (hover: hover) { .topbar a:hover { color: #fff; } }
.topbar a + a { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.site-header .header-row { height: calc(var(--header-h) - var(--topbar-h)); }
.site-header .nav { margin-left: auto; }
.site-header .nav a { color: var(--muted); }
@media (hover: hover) { .site-header .nav a:hover, .site-header .nav a.active { color: var(--ink); border-color: var(--accent); } }
.site-header .header-row > .btn { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .site-header .header-row > .btn:hover { background: var(--ink); color: var(--paper); } }
.brand img { height: 50px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: var(--ink) !important; }
@media (max-width: 760px) {
  :root { --topbar-h: 28px; --header-h: 92px; }
  .topbar-row { justify-content: center; gap: 14px; }
  .topbar a + a { padding-left: 14px; }
  .brand img { height: 36px; }
  .nav { background: var(--paper) !important; border-top: 1px solid var(--line) !important; }
  .nav a { border-bottom-color: var(--line) !important; color: var(--ink) !important; }
}

/* dégradé sur la photo de l'accueil : blanc en haut (continuité avec l'en-tête), qui s'ouvre vers le bas */
.hero::after {
  background:
    linear-gradient(180deg, rgba(249, 248, 247, .97) 0%, rgba(249, 248, 247, .82) 22%, rgba(249, 248, 247, .55) 62%, rgba(249, 248, 247, .78) 100%),
    linear-gradient(90deg, rgba(249, 248, 247, .55) 0%, rgba(249, 248, 247, .35) 45%, rgba(249, 248, 247, 0) 100%);
}
@media (min-width: 981px) and (min-height: 861px) {
  .hero .kicker { margin-bottom: 20px; }
  .hero .lead { margin-top: 22px; }
  .hero .cta-row { margin-top: 30px; }
}
.topbar-row { justify-content: center; }

/* contact (mise en page inspirée de Carige) */
.contact { background: var(--paper-2); }
.kicker-dot { display: flex; align-items: center; gap: 10px; }
.kicker-dot::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.contact h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-main { display: grid; gap: 18px; justify-items: start; }
.contact-big {
  font: 400 clamp(26px, 2.6vw, 38px)/1.2 var(--serif); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong, #cdc8c0); padding-bottom: 4px; transition: color .15s, border-color .15s;
}
@media (hover: hover) { .contact-big:hover { color: var(--accent-strong); border-color: var(--accent); } }
.contact-info { margin: 0; display: grid; gap: 6px; }
.contact-info dt { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: 18px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } .contact-big { font-size: 24px; word-break: break-word; } }
.contact-info dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong, #cdc8c0); }
@media (hover: hover) { .contact-info dd a:hover { color: var(--accent-strong); border-color: var(--accent); } }
.contact { background: var(--paper); border-top: 1px solid var(--line); }

/* pied de page */
.footer-brand { display: grid; gap: 4px; justify-items: center; }
.footer-brand .footer-logo { height: 26px; }
.footer-brand span { font: 400 13px var(--serif); color: var(--muted-dark); letter-spacing: .02em; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-links a { color: #a8a39b; text-decoration: none; }
@media (hover: hover) { .legal-links a:hover { color: var(--paper); } }

/* pages légales */
.page-legal { padding: clamp(48px, 7vw, 96px) 0; }
.page-legal .wrap { max-width: 860px; }
.page-legal h1 { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 8px; }
.page-legal .updated { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 48px; }
.page-legal h2 { font-size: 28px; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-legal p, .page-legal li { color: #3d3a35; font-size: 16px; line-height: 1.7; }
.page-legal ul { padding-left: 1.2em; }
.page-legal dl { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 8px 24px; margin: 0; }
.page-legal dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.page-legal dd { margin: 0; color: var(--ink); }
.page-legal a { color: var(--accent-strong); }
.back-link { display: inline-block; margin-bottom: 32px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-decoration: none; }
@media (hover: hover) { .back-link:hover { color: var(--accent-text); } }
@media (max-width: 640px) { .page-legal dl { grid-template-columns: 1fr; } .page-legal dt { margin-top: 10px; } }
.site-header .brand { display: grid; justify-items: center; gap: 3px; text-decoration: none; }
.site-header .brand img { height: 30px; }
.site-header .brand span { font: 400 13px/1 var(--serif); color: var(--ink); letter-spacing: .02em; }
@media (max-width: 760px) { .site-header .brand img { height: 22px; } .site-header .brand span { font-size: 11px; } }
/* pied de page : icônes des réseaux */
.footer-links { align-items: center; gap: 20px; }
.footer-links .social { display: grid; place-items: center; width: 34px; height: 34px; color: #a8a39b; transition: color .15s; }
.footer-links .social svg { width: 19px; height: 19px; fill: currentColor; }
@media (hover: hover) { .footer-links .social:hover { color: var(--paper); } }
.footer-links .footer-client { margin-left: 12px; padding: 8px 14px; border: 1px solid var(--line-dark); }
@media (hover: hover) { .footer-links .footer-client:hover { border-color: var(--paper); } }

/* en-tête : courriel, téléphone et menu un peu plus grands ; bandeau blanc comme sur olivierlattuga.com */
:root { --topbar-h: 42px; --header-h: 120px; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar a { font-size: 14px; font-weight: 500; color: var(--accent-text); }
@media (hover: hover) { .topbar a:hover { color: var(--ink); } }
.topbar a + a { border-left-color: var(--line); }
.site-header .nav a { font-size: 12.5px; }
@media (max-width: 760px) { :root { --topbar-h: 36px; --header-h: 100px; } .topbar a { font-size: 12px; } .site-header .nav a { font-size: 13px; } }

/* références : EDF, VNF, Imerys, Syneos — blanc légèrement adouci */
.clients-logos img { opacity: .8; }
@media (hover: hover) { .clients-logos img:hover { opacity: 1; } }
.l-vnf { height: 52px; }
@media (min-width: 981px) and (max-height: 860px) { .l-vnf { height: 44px; } }
@media (max-width: 760px) { .l-vnf { height: 44px; } }
.clients { padding: 18px 0; }
@media (min-width: 981px) and (max-height: 860px) { .clients { padding: 12px 0; } }
@media (max-width: 760px) { .topbar a { font-size: 12px; letter-spacing: 0; white-space: nowrap; } }

/* fenêtre de rédaction : demande d'accès à l'outil complet */
.mail-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.mail-dialog::backdrop { background: rgba(25, 23, 20, .62); backdrop-filter: blur(2px); }
.mail-form { display: grid; gap: 14px; padding: 26px 28px 24px; }
.mail-form header { position: relative; padding-right: 36px; margin-bottom: 4px; }
.mail-form .kicker { margin: 0 0 8px; }
.mail-form h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.mail-close {
  position: absolute; top: -6px; right: -8px; width: 36px; height: 36px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
@media (hover: hover) { .mail-close:hover { color: var(--ink); } }
.mail-field { display: grid; gap: 6px; }
.mail-field span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mail-field input, .mail-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 15px/1.5 var(--sans); padding: 10px 12px; border-radius: 0;
}
.mail-field textarea { resize: vertical; min-height: 200px; }
.mail-field input[readonly] { background: var(--paper-2); color: var(--muted); }
.mail-field input:focus, .mail-field textarea:focus { outline: none; border-color: var(--accent); }
.mail-form footer { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.mail-note { margin: 0 auto 0 0; flex: 1 1 200px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) {
  .mail-form { padding: 20px 18px; }
  .mail-form h2 { font-size: 25px; }
  .mail-field textarea { min-height: 170px; }
}

/* accueil : chiffres clés et logos centrés, sur les mêmes quatre colonnes */
.hero .facts > div, .hero .facts > div + div { padding-left: 16px; padding-right: 16px; justify-items: center; text-align: center; }
.clients-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; justify-content: stretch; }
.clients-logos li { display: flex; justify-content: center; align-items: center; }
@media (max-width: 760px) {
  .hero .facts > div:nth-child(3) { padding-left: 16px; }
  .clients-logos { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}
.hero > .facts { width: 100%; max-width: var(--wrap); }   /* même largeur que la barre des logos */

/* volumes : aplat léger à la couleur du produit */
.stock { fill: var(--f, transparent); }
#demo-panel .kv td .swatch { flex: none; }

/* formulaire : nom et e-mail côte à côte, champ piège invisible, confirmation */
.mail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .mail-row { grid-template-columns: 1fr; } }
.mail-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-note.error { color: #b3261e; }
.mail-done { padding: 30px 28px 26px; display: grid; gap: 10px; justify-items: start; }
.mail-done h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.mail-done p { margin: 0; color: var(--muted); }
.mail-done .kicker { color: var(--accent-text); }
.mail-done .btn { margin-top: 10px; }

/* ---------- audit du 10/10/2026 : appui, interactions, cibles tactiles ---------- */
/* retour à l'appui : le bouton répond tout de suite (léger enfoncement) */
.btn, .stage-zoom button, .stage-tools button, .seg button, .demo-tabs button, .scroll-down {
  transition: background .15s, color .15s, border-color .15s, transform .16s cubic-bezier(.23, 1, .32, 1);
}
.btn:active, .stage-zoom button:active, .stage-tools button:active, .seg button:active,
.demo-tabs button:active, .scroll-down:active { transform: scale(.97); }
/* écrans tactiles : cibles d'au moins 44 px, sans changer l'aspect (zone de clic élargie) */
@media (pointer: coarse) {
  .stage-zoom button { width: 44px; height: 44px; }
  .stage-tools button { height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
  .footer-links .social { width: 44px; height: 44px; }
  .topbar a, .footer-links a, .legal-links a, .demo-foot a, .contact-info dd a { position: relative; }
  .topbar a::after, .footer-links a:not(.social)::after, .legal-links a::after, .demo-foot a::after,
  .contact-info dd a::after { content: ""; position: absolute; inset: -15px -6px; }
  .site-header .header-row > .btn, .demo-tabs button { min-height: 44px; }
  .contact-big { position: relative; }
  .contact-big::after { content: ""; position: absolute; inset: -6px 0; }
}

/* bouton WhatsApp flottant, comme olivierlattuga.com (à droite du contenu sur grand écran) */
.whatsapp {
  display: grid; place-items: center; position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-strong); color: var(--paper);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .16s cubic-bezier(.23, 1, .32, 1);
}
.whatsapp svg { width: 26px; height: 26px; fill: currentColor; }
.whatsapp:active { transform: scale(.95); }
@media (min-width: 1280px) { .whatsapp { right: max(16px, calc((100vw - var(--wrap)) / 2 - 52px - 28px)); bottom: 32px; } }

/* champs obligatoires des formulaires */
.mail-field:has(:required) > span::after { content: " *"; color: var(--accent-text); }

/* page 404 : cible de calage (comme la page « hors champ » d'olivierlattuga.com) */
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding: 56px 0; background: var(--paper); }
.notfound-inner { width: min(600px, calc(100% - 32px)); text-align: center; }
.notfound-target { width: 64px; height: 64px; margin: 0 auto 22px; display: block; }
.notfound-target circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.notfound-target .fill { fill: var(--ink); }
.notfound-target .cross { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.notfound .kicker { margin-bottom: 14px; }
.notfound h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 16px; text-wrap: balance; }
.notfound-text { color: #3d3a35; font-size: 16px; line-height: 1.7; max-width: 46ch; margin: 0 auto 28px; text-wrap: balance; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; }
.notfound-links a { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 14px; position: relative; transition: color .15s; }
.notfound-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; border-bottom: 1px solid var(--accent); }
@media (hover: hover) { .notfound-links a:hover { color: var(--accent-text); } }

/* accueil sur tablette (écran tactile ≥ 700 px) : titres et animation rapprochés, animation à la largeur de sa colonne */
@media (pointer: coarse) and (min-width: 700px) {
  .hero .kicker { margin-bottom: 28px; }
  .hero .lead { margin-top: 30px; }
  .hero .cta-row { margin-top: 40px; }
  .hero-grid { gap: 36px 40px; }
  .scroll-down { margin-top: 32px; }
  .hero .facts { margin-top: 40px; }
}
@media (pointer: coarse) and (min-width: 981px) {
  .hero { padding-top: 48px; }
  /* colonne de l'animation ajustée à sa taille : plus d'espace vide entre le texte et l'animation */
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-visual { width: min(46vw, calc(100svh - var(--header-h) - 260px), 640px); max-height: none; }
}
@media (pointer: coarse) and (min-width: 700px) and (orientation: portrait) {
  .hero { min-height: 0; padding-top: 64px; }
}

/* animation et démonstrations : pas d'« Enregistrer l'image » par appui long sur tablette et téléphone */
img, .hero-visual, .stage { -webkit-user-drag: none; -webkit-touch-callout: none; }
.hero-visual, .stage svg { -webkit-user-select: none; user-select: none; }

/* formulaires : lien vers la politique de confidentialité, sous les boutons */
.mail-legal { flex: 1 1 100%; order: 3; margin: 0; font-size: 11.5px; color: var(--muted); }
.mail-legal a { color: inherit; }
/* confidentialité : refus de la mesure d'audience */
.optout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; }
.optout input { margin-top: 4px; accent-color: var(--accent-strong); width: 18px; height: 18px; flex: none; }

/* changement de langue (FR / EN) : dernier lien du menu, séparé par un filet */
.site-header .nav .nav-lang { padding-left: 18px; border-left: 1px solid var(--line); color: var(--accent-text); }
@media (max-width: 760px) { .site-header .nav .nav-lang { padding-left: 0; border-left: 0; } }
/* tablette : intitulés du menu sur une ligne (« À propos » se coupait), espacement resserré */
.site-header .nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1100px) { .site-header .nav { gap: 16px; } .site-header .header-row { gap: 18px; } .site-header .nav .nav-lang { padding-left: 14px; } }
/* petits téléphones : e-mail et numéro international (version anglaise) sur une ligne */
@media (max-width: 400px) { .topbar a { font-size: 11px; } .topbar-row { gap: 10px; } .topbar a + a { padding-left: 10px; } }
@media (max-width: 340px) { .topbar a { font-size: 10px; letter-spacing: -.02em; } }
/* deux liens de langue côte à côte : un seul filet, devant le premier */
.site-header .nav .nav-lang + .nav-lang { padding-left: 0; border-left: 0; }
/* petite tablette (761–900 px) : menu complet + deux langues + bouton tiennent sur une ligne */
@media (min-width: 761px) and (max-width: 900px) {
  .site-header .nav { gap: 12px; }
  .site-header .nav a { font-size: 11px; letter-spacing: .08em; }
  .site-header .nav .nav-lang { padding-left: 10px; }
  .site-header .header-row .btn.small { padding-left: 10px; padding-right: 10px; letter-spacing: .06em; }
}
