/*
 * APPTOPO.ma — feuille de style (version 0.3)
 * Haut et bas de page couleur encre, contenu clair. Un seul accent : le rouge du point du logo.
 * Aucune règle ne dépend d'un style écrit dans le HTML : la politique de sécurité (CSP) les interdit.
 */
/* Police Sora (licence OFL, assets/fonts/OFL-Sora.txt), servie par le site lui-même. */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #1c2733;
  --night-2: #243241;
  --night-line: #33455a;
  --night-text: #f3f5f4;
  --night-muted: #aebbc8;
  --ink: #1c2733;
  --ink-soft: #4a5866;
  --page: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #f0f3f5;
  --line: #e1e6ea;
  --line-strong: #cdd5dc;
  --red: #c21f32;
  --red-night: #e5414f;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 5rem;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 24px 60px -36px rgba(28, 39, 51, 0.45);
  --measure: 66ch;
  --wrap: 75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--page); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

.skip-link { position: absolute; left: -999px; top: var(--space-2); background: var(--night); color: var(--night-text); padding: var(--space-2) var(--space-3); z-index: 10; }
.skip-link:focus { left: var(--space-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mw-12 { max-width: 12rem; }

/* ------------------------------------------------------------------ en-tête (sombre) */
.site-header { background: var(--night); color: var(--night-text); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: flex-end; gap: 0.2rem; text-decoration: none; color: var(--night-text); flex: none; }
.brand__logo { display: block; height: 1.6rem; width: auto; flex: none; }
.brand__tld { font-weight: 600; font-size: 1.05rem; line-height: 1; color: var(--night-muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.site-nav__link { font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--night-muted); padding: var(--space-2) 0; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: #fff; }

/* ------------------------------------------------------------------ typographie */
.title-1 { font-size: var(--step-4); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 var(--space-5); max-width: 16ch; text-wrap: balance; }
.title-2 { font-size: var(--step-3); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 var(--space-4); max-width: 24ch; text-wrap: balance; }
.title-3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; margin: 0 0 var(--space-2); }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 44rem; margin: 0 0 var(--space-5); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 var(--space-4); }
.note { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.55; max-width: var(--measure); }

/* ------------------------------------------------------------------ boutons et champs */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 3rem; padding: 0 var(--space-5); border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { border-color: var(--ink); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--primary:hover { background: #0f1720; }
.button--accent { background: var(--red); border-color: var(--red); color: #fff; }
.button--accent:hover { background: #a91a2b; border-color: #a91a2b; }
.button--ghost { background: transparent; border-color: var(--night-line); color: var(--night-text); }
.button--ghost:hover { border-color: var(--night-text); }
.button--light { background: #fff; border-color: #fff; color: var(--ink); }
.button--small { min-height: 2.75rem; padding: 0 var(--space-4); font-size: var(--step--1); font-weight: 500; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.field { display: grid; gap: var(--space-1); margin-bottom: var(--space-3); min-width: 0; }
.field__label { font-weight: 600; font-size: var(--step--1); }
.field__hint { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-2); min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--space-2); font-weight: 600; font-size: var(--step-0); }
.input, .select, .textarea { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 0.7rem 0.85rem; min-height: 3rem; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28, 39, 51, 0.08); outline: none; }
.check { display: inline-flex; align-items: flex-start; gap: var(--space-2); font-size: var(--step-0); line-height: 1.45; }
.check input { width: 1.125rem; height: 1.125rem; margin-top: 0.2em; flex: none; accent-color: var(--ink); }
[role="radiogroup"] .check { display: flex; margin-bottom: var(--space-2); }
details.options { border-top: 1px solid var(--line); margin-top: var(--space-4); padding-top: var(--space-3); }
details.options > summary { cursor: pointer; font-weight: 600; }

/* ------------------------------------------------------------------ résultats (liseré rouge) */
.result { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: var(--space-4) var(--space-5); margin-top: var(--space-4); min-height: 5rem; }
.result::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--red); border-radius: var(--radius); clip-path: inset(0 100% 100% 0); pointer-events: none; }
.result.is-done::after { clip-path: inset(0 0 0 0); transition: clip-path .7s ease-out; }
.result__empty { color: var(--ink-soft); margin: 0; }
.result__grid { display: grid; grid-template-columns: minmax(min-content, max-content) minmax(min-content, max-content) minmax(0, 1fr); gap: var(--space-2) var(--space-5); align-items: baseline; }
.result__key { font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
.result__value { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.result__unit { font-size: var(--step--1); color: var(--ink-soft); overflow-wrap: anywhere; }
.result__meta { margin: var(--space-3) 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.result--error { border-color: var(--red); }
.result--error .result__empty { color: var(--red); }
.warning { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-radius: 8px; background: #fbeced; color: #7d1420; font-size: var(--step--1); line-height: 1.5; }
.ok-line { margin: var(--space-3) 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.sample-note { font-size: var(--step--1); color: var(--ink-soft); margin: var(--space-2) 0 0; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); font-size: var(--step--1); }
.link-row a { font-weight: 600; }

/* ------------------------------------------------------------------ tableaux */
.table-wrap { overflow-x: auto; margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.table th, .table td { padding: 0.6rem var(--space-4); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 600; background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; }
.table tr.is-flagged td { color: var(--red); }
.table tr.is-control td { color: var(--ink-soft); font-style: italic; }
.table input[type="checkbox"] { width: 1.125rem; height: 1.125rem; accent-color: var(--ink); vertical-align: middle; }
.table-note { margin: var(--space-2) var(--space-4); }

/* ------------------------------------------------------------------ accueil : héros */
.hero { background: var(--night); color: var(--night-text); padding: var(--space-6) 0 var(--space-8); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-7); align-items: center; }
.hero__title { font-size: var(--step-4); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 var(--space-5); text-wrap: balance; }
.hero__lead { font-size: var(--step-1); line-height: 1.6; color: var(--night-muted); max-width: 34rem; margin: 0 0 var(--space-6); }
.hero__note { margin: var(--space-5) 0 0; font-size: var(--step--1); color: var(--night-muted); }
.hero__visual { position: relative; }
.plan-panel { border-radius: 20px; background: var(--night-2); border: 1px solid var(--night-line); padding: var(--space-4); }
.plan-panel svg { width: 100%; height: 15rem; }
.trace { stroke-dasharray: 1100; stroke-dashoffset: 0; }
.hero-tool { position: relative; margin: -2.5rem 2rem 0 -2rem; background: var(--night); border: 1px solid var(--night-line); border-radius: 18px; padding: var(--space-5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.hero-tool__title { margin: 0 0 var(--space-3); font-size: var(--step--1); font-weight: 600; color: var(--night-muted); }
.hero-tool .field__label { color: var(--night-text); }
.hero-tool .field__hint { color: var(--night-muted); }
.hero-tool .input { background: #16202b; border-color: var(--night-line); color: var(--night-text); }
.hero-tool .input:focus { border-color: var(--night-text); box-shadow: 0 0 0 4px rgba(243, 245, 244, 0.08); }
.hero-tool .result { background: #16202b; border-color: var(--night-line); }
.hero-tool .result::after { border-color: var(--red-night); }
.hero-tool .result__key, .hero-tool .result__unit, .hero-tool .result__meta, .hero-tool .result__empty { color: var(--night-muted); }
.hero-tool .result__value { color: #fff; }
.hero-tool .result__meta a, .hero-tool .link-row a { color: var(--night-text); }
.hero-tool .warning { background: rgba(229, 65, 79, 0.14); color: #ffd7db; }

/* ------------------------------------------------------------------ sections */
.section { padding: var(--space-8) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: var(--space-6); }

/* fenêtre de démonstration du calage */
.win { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.win__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0.75rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); }
.win__bar strong { color: var(--ink); }
.win__url { padding: 0.2rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.win__body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); padding: var(--space-6); }
.win__points { margin: var(--space-3) 0 0; padding: var(--space-4); border-radius: var(--radius-s); border: 1px solid var(--line); font-size: 0.8rem; line-height: 1.9; font-variant-numeric: tabular-nums; overflow-x: auto; white-space: nowrap; }
.figures { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-7); margin-bottom: var(--space-5); }
.figure { display: flex; flex-direction: column; }
.figure__label { font-size: var(--step--1); color: var(--ink-soft); }
.figure__value { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.figure__value--muted { color: var(--ink-soft); }
.bars { display: grid; gap: 0.65rem; }
.bar { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 4.5rem; gap: var(--space-3); align-items: center; font-size: var(--step--1); }
.bar__track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.bar__fill--max { background: var(--red); }
.bar__value { text-align: right; font-variant-numeric: tabular-nums; }
.w-30 { width: 30%; } .w-50 { width: 50%; } .w-90 { width: 90%; } .w-100 { width: 100%; }

/* outils */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tool-tile { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: 18px; background: var(--page); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tool-tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-tile--wide { grid-column: span 2; }
.tool-tile__icon { width: 2rem; height: 2rem; }
.tool-tile__name { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.tool-tile__desc { font-size: var(--step--1); line-height: 1.6; color: var(--ink-soft); }
.tool-tile__demo { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-2); font-size: var(--step--1); color: var(--ink-soft); }
.tool-tile__demo strong { color: var(--ink); }
.tool-tile__open { margin-top: auto; font-size: var(--step--1); font-weight: 600; }
.soon { margin: var(--space-5) 0 0; font-size: var(--step--1); color: var(--ink-soft); }

/* bandeau du logiciel (sombre) */
.band { background: var(--night); color: var(--night-text); padding: var(--space-8) 0; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.band .title-2 { color: #fff; }
.band__text { color: var(--night-muted); margin: 0 0 var(--space-5); max-width: 36rem; }
.band__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
.band__list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--night-line); color: var(--night-muted); }
.band__list strong { color: #fff; }
.band .note { color: var(--night-muted); }
.band a:not(.button) { color: var(--night-text); }

/* ------------------------------------------------------------------ pages outils */
.tool-head { background: var(--night); color: var(--night-text); padding: var(--space-6) 0 var(--space-5); }
.tool-head .title-2 { color: #fff; max-width: none; }
.tool-head .lead { color: var(--night-muted); }
.tool-nav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.tool-nav a { font-size: var(--step--1); font-weight: 500; color: var(--night-muted); text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--night-line); }
.tool-nav a:hover { color: #fff; border-color: var(--night-muted); }
.tool-nav a[aria-current="page"] { color: var(--ink); background: var(--night-text); border-color: var(--night-text); }
.tool-body { padding: var(--space-6) 0 var(--space-8); }
.tool-body > * + * { margin-top: var(--space-5); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.tool-grid > .panel + .panel { margin-top: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: var(--space-6); min-width: 0; }
.panel + .panel { margin-top: var(--space-5); }
.panel--frame { border-color: var(--line-strong); box-shadow: var(--shadow); }
.panel__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--space-4); }
.panel__sub { font-size: var(--step-0); font-weight: 600; margin: var(--space-5) 0 var(--space-2); }
.panel > p { max-width: var(--measure); }
.systems { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-3); align-items: end; }
.systems .field { margin-bottom: 0; }
.params { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.params .field { margin-bottom: 0; }
.steps { margin: 0; padding-left: 1.4rem; max-width: var(--measure); }
.steps li { margin-bottom: var(--space-2); padding-left: var(--space-1); }
.steps li::marker { font-weight: 600; }
.drop { display: block; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--page); padding: var(--space-4); cursor: pointer; }
.drop.is-over { border-color: var(--red); }
.drop .field__label, .drop .field__hint { display: block; }
.drop input { display: block; margin-top: var(--space-2); max-width: 100%; font: inherit; font-size: var(--step--1); }
.sketch { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: var(--space-4); }
.cta-band { background: var(--surface); border-top: 1px solid var(--line); padding: var(--space-6) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band .prose { margin: 0; }

/* ------------------------------------------------------------------ pied de page (sombre) */
.site-footer { background: var(--night); color: var(--night-muted); padding: var(--space-7) 0; font-size: var(--step--1); }
.site-footer p { margin: 0 0 var(--space-2); max-width: var(--measure); }
.site-footer strong { color: var(--night-text); }
.site-footer a { color: var(--night-text); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-4) 0; }

/* page de texte (confidentialité) */
.doc { max-width: 46rem; }
.doc h2 { font-size: var(--step-2); letter-spacing: -0.01em; margin: var(--space-6) 0 var(--space-3); }
.doc p, .doc li { color: var(--ink-soft); }

/* ------------------------------------------------------------------ animations */
/* démarrage du logo de l'accueil : le trépied se pose, la borne tombe, l'appareil se cale */
.intro .leg { animation: leg .7s cubic-bezier(.2, .7, .2, 1) both; }
.intro .pt { transform-box: fill-box; transform-origin: center; animation: pt .45s cubic-bezier(.3, 1.6, .5, 1) .55s both; }
.intro .ring { transform-box: fill-box; transform-origin: center; animation: ring .6s ease-out .95s forwards; }
.intro .l { animation: letter .45s ease-out both; }
.intro .l0 { animation-delay: .7s; } .intro .l1 { animation-delay: .76s; } .intro .l2 { animation-delay: .82s; } .intro .l3 { animation-delay: .86s; }
.intro .l4 { animation-delay: .92s; } .intro .l5 { animation-delay: .98s; } .intro .l6 { animation-delay: 1.04s; }
.intro .hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.intro .hero__text > :nth-child(2) { animation-delay: .1s; } .intro .hero__text > :nth-child(3) { animation-delay: .2s; } .intro .hero__text > :nth-child(4) { animation-delay: .3s; }
.intro .plan-panel { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.intro .hero-tool { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .45s both; }
.intro .trace { stroke-dashoffset: 1100; animation: trace 2.6s ease-out .5s forwards; }
.ring { opacity: 0; }
@keyframes leg { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pt { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
@keyframes letter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes trace { to { stroke-dashoffset: 0; } }
/* apparitions au défilement (assets/js/motion.js ajoute .js-motion puis .is-visible) */
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }
.js-motion .tools-grid > :nth-child(2) { transition-delay: .08s; } .js-motion .tools-grid > :nth-child(3) { transition-delay: .16s; }
.js-motion .tools-grid > :nth-child(4) { transition-delay: .24s; } .js-motion .tools-grid > :nth-child(5) { transition-delay: .32s; }
.js-motion .win .bar__fill { transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .35s; }
.js-motion .win.is-visible .bar__fill { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro .trace { stroke-dashoffset: 0; }
}

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 960px) {
  .hero__grid, .tool-grid, .band__grid, .win__body { grid-template-columns: minmax(0, 1fr); }
  .hero-tool { margin: -2rem var(--space-3) 0; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .systems { grid-template-columns: minmax(0, 1fr); }
  .params { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-tile--wide { grid-column: auto; }
  .site-nav { width: 100%; gap: var(--space-4); }
  .tool-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: thin; }
  .tool-nav a { flex: none; }
  .panel { padding: var(--space-5); }
  .hero-tool { margin-inline: 0; padding: var(--space-4); }
}
@media (max-width: 480px) {
  .field-row, .field-row--3 { grid-template-columns: minmax(0, 1fr); }
  .result__value { font-size: var(--step-1); }
  .result__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); column-gap: var(--space-3); row-gap: 0; }
  .result__key, .result__value { padding-top: var(--space-2); }
  .result__unit { grid-column: 2; }
  .result__unit:empty { display: none; }
}

/* ------------------------------------------------------------------ impression */
@media print {
  body { background: #fff; }
  .site-header, .tool-head, .tool-nav, .cta-band, .site-footer, .no-print, .actions { display: none !important; }
  .print-only { display: block !important; }
  .tool-grid { display: block; }
  .panel { border: 0; padding: 0; box-shadow: none; }
}
.print-only { display: none; }
