/* ==========================================================================
   CAMER SYST AND SOFT INTEG — feuille de style unique
   Une seule famille (Archivo variable, auto-hébergée), un seul rayon,
   une seule grammaire d'ombre. Rien d'externe au chargement.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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: 'Archivo';
  src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  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;
}

/* --------------------------------------------------------------- jetons -- */

:root {
  /* encre : les régions sombres, identiques dans les deux thèmes */
  --ink: #060a18;
  --ink-2: #0d1430;
  --ink-3: #121c3d;
  --on-ink: #f2f6ff;
  --on-ink-muted: #a3b4d4;
  --ink-line: rgba(147, 178, 255, 0.16);

  /* marque */
  --brand: #1b5ce0;
  --brand-deep: #0b2a86;
  --brand-bright: #3f80ff;
  --cyan: #27b6f0;

  /* surfaces claires (redéfinies en thème sombre) */
  --page: #ffffff;
  --surface: #f4f7fe;
  --surface-2: #eaf0fd;
  --fg: #0b1220;
  --fg-muted: #55637f;
  --line: #dde5f5;
  --brand-tint: #eef3ff;

  /* mesures */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --page-max: 1220px;
  --measure: 66ch;
  --step: clamp(3.5rem, 7vw, 6.5rem);

  /* ombres : décalage + flou, jamais de halo */
  --shadow-1: 0 1px 2px rgba(11, 18, 32, 0.06), 0 2px 8px rgba(11, 18, 32, 0.05);
  --shadow-2: 0 2px 4px rgba(11, 18, 32, 0.06), 0 12px 28px rgba(11, 18, 32, 0.09);
  --shadow-ink: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.38);

  --focus: #1b5ce0;
  --placeholder: #5f6c85;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #080d1e;
    --surface: #0f1734;
    --surface-2: #14204a;
    --fg: #eef2fb;
    --fg-muted: #a3b4d4;
    --line: rgba(147, 178, 255, 0.16);
    --brand-tint: #101c41;
    --brand: #3f80ff;
    --focus: #6ea8ff;
    --placeholder: #9aabc9;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 16px 34px rgba(0, 0, 0, 0.4);
  }
}

/* ---------------------------------------------------------------- socle -- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--brand) var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand) 55%, var(--surface));
  border: 3px solid var(--surface);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 750;
  font-stretch: 105%;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 54ch;
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--step); }

.section--surface { background: var(--surface); }

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--ink .lede,
.section--ink .muted { color: var(--on-ink-muted); }

.muted { color: var(--fg-muted); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------- navigation -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink);
}

@supports (backdrop-filter: blur(1px)) {
  .nav { backdrop-filter: saturate(160%) blur(14px); }
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-inline-end: auto;
  padding-block: 0.4rem;
}

.brand__mark { width: 34px; height: 34px; flex: none; }

.brand__name {
  display: block;
  font-weight: 750;
  font-stretch: 100%;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-weight: 500;
  color: var(--on-ink-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link:hover { color: var(--on-ink); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current='page'] { color: var(--on-ink); }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__lang a,
.nav__lang span {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--on-ink-muted);
}

.nav__lang [aria-current='true'] {
  background: var(--brand);
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--on-ink);
  cursor: pointer;
}

.nav__toggle svg { margin-inline: auto; }

@media (max-width: 900px) {
  .nav__bar { flex-wrap: wrap; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__panel {
    flex-basis: 100%;
    display: none;
    padding-block: 0.5rem 1rem;
    border-top: 1px solid var(--ink-line);
  }
  .nav__panel[data-open='true'] { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav__panel .btn { width: 100%; margin-top: 0.5rem; }
  .nav__panel .nav__lang { margin-top: 0.75rem; justify-content: center; }
}

/* --------------------------------------------------------------- boutons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn svg { flex: none; }

.btn--primary { color: #fff; }
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--whatsapp { color: #fff; }
.btn--whatsapp:hover { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink-line);
  color: var(--on-ink);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }

.btn--outline {
  background: var(--page);
  border-color: var(--line);
  color: var(--fg);
  box-shadow: var(--shadow-1);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }

.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- héros -- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__traces {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--cyan);
  opacity: 0.16;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.hero h1 { max-width: 15ch; }

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--cyan);
}

.hero__lede {
  margin-top: 1.35rem;
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--on-ink-muted);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--on-ink-muted);
}

/* panneau de preuves */

.proof {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ink);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.proof__title {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
}

.proof__list {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.proof__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ink-line);
}
.proof__row:last-of-type { border-bottom: 0; padding-bottom: 0; }

.proof__row svg { color: var(--cyan); margin-top: 2px; }

.proof__row dt {
  grid-column: 2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}

.proof__row dd {
  grid-column: 2;
  margin: 0.1rem 0 0;
  font-weight: 600;
  font-size: 1.02rem;
}

.proof__clock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.9rem;
  color: var(--on-ink-muted);
}

.proof__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* --------------------------------------------------------- bandeau sous -- */

.strip {
  border-top: 1px solid var(--ink-line);
  background: var(--ink-2);
  color: var(--on-ink-muted);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: 1rem;
  font-size: 0.88rem;
}

.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.strip__item svg { color: var(--cyan); }

/* -------------------------------------------------------------- métiers -- */

.head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.head p { margin-top: 1rem; }

.trades {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .trades { grid-template-columns: repeat(3, 1fr); }
}

.trade {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.trade:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-2);
}

.trade__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-tint);
  color: var(--brand);
}

.trade h3 { margin: 0; }

.trade__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.trade__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.trade__list svg { color: var(--brand); margin-top: 5px; }

.trade__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trade__link svg { transition: transform 0.2s var(--ease); }
.trade:hover .trade__link svg { transform: translateX(3px); }

/* -------------------------------------------------------------- méthode -- */

.method {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 860px) {
  .method { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.method__item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--brand);
}

.method__item h3 { margin-bottom: 0.6rem; }

.method__item p { color: var(--fg-muted); font-size: 0.98rem; }

/* ---------------------------------------------------------------- split -- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--narrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

.facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.facts > div:last-child { border-bottom: 0; }

.facts dt {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 2px;
}

.facts dd { margin: 0; font-weight: 600; }

@media (max-width: 560px) {
  .facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------------------------------------------------------------- liste -- */

.checks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checks svg { color: var(--brand); margin-top: 4px; }

/* ------------------------------------------------------------------ cta -- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-ink);
}

.cta h2 { max-width: 18ch; }

.cta p { margin-top: 1rem; color: var(--on-ink-muted); max-width: 52ch; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.cta__numbers {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.95rem;
  color: var(--on-ink-muted);
}

.cta__numbers a { color: var(--on-ink); text-decoration: none; border-bottom: 1px solid var(--ink-line); }
.cta__numbers a:hover { border-color: var(--cyan); }

/* --------------------------------------------------------------- pages -- */

.page-head {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-head h1 { max-width: 20ch; }

.page-head p {
  margin-top: 1.1rem;
  color: var(--on-ink-muted);
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.breadcrumb {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }

.detail {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}

.detail:last-of-type { border-bottom: 0; }

@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

.detail__aside { display: flex; flex-direction: column; gap: 1rem; }

.detail__num {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.detail__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 620px) {
  .detail__grid { grid-template-columns: 1fr 1fr; }
}

.detail__grid h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.detail__grid p { font-size: 0.95rem; color: var(--fg-muted); }

/* ------------------------------------------------------------ formulaire -- */

.form {
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field .hint { font-size: 0.82rem; color: var(--fg-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  caret-color: var(--brand);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field :is(input, select, textarea):focus-visible {
  border-color: var(--brand);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field :is(input, textarea):user-invalid {
  border-color: #c2382a;
}

.field .error {
  display: none;
  font-size: 0.85rem;
  color: #c2382a;
}

.field :is(input, textarea):user-invalid ~ .error { display: block; }

@media (prefers-color-scheme: dark) {
  .field :is(input, textarea):user-invalid { border-color: #ff7a6b; }
  .field .error { color: #ff9c90; }
}

.form__note { font-size: 0.88rem; color: var(--fg-muted); }

/* ----------------------------------------------------------- pied de page -- */

.footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.94rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--ink-line);
}

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }

.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer__brand svg { width: 38px; height: 38px; }
.footer__brand strong { color: var(--on-ink); font-size: 1rem; }

/* ------------------------------------------------------------- révélation -- */

[data-reveal] {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------- ajustements mesurés -- */

/* le panneau de navigation est une rangée sur grand écran */
@media (min-width: 901px) {
  .nav__panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .nav__panel .nav__lang { margin-inline-start: 0.5rem; }
}

/* la marque garde sa rangée sur les petits téléphones */
@media (max-width: 480px) {
  .brand { min-width: 0; }
  .brand__name { font-size: 0.8rem; letter-spacing: 0.01em; }
  .brand__tag { font-size: 0.62rem; letter-spacing: 0.08em; }
  .brand__mark { width: 30px; height: 30px; }
}

/* dans une colonne étroite, la fiche d'identité s'empile */
.split--narrow .card .facts > div { grid-template-columns: 1fr; gap: 0.2rem; }
.split--narrow .card .facts dt { padding-top: 0; }

/* le bloc d'appel se tient sur deux colonnes quand la place existe */
@media (min-width: 900px) {
  .cta {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }
  .cta h2, .cta p { grid-column: 1; }
  .cta__actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-content: center; }
  .cta__numbers { grid-column: 2; grid-row: 3; margin-top: 0; }
}

.cta__numbers { max-width: none; flex-direction: column; gap: 0.45rem; }

/* le bouton d'envoi n'est pas une barre pleine largeur */
.form > .btn { justify-self: start; }

/* la liste déroulante porte notre chevron, pas celui du système */
.field select {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2355637f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

@media (prefers-color-scheme: dark) {
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a3b4d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}

/* ------------------------------------------- corrections après mesure -- */

/* Les boutons gardent un bleu à contraste suffisant dans les deux thèmes,
   et une ombre neutre plutôt qu'un halo coloré. */
:root { --btn-brand: #1b5ce0; --btn-brand-hover: #1749b4; --btn-wa: #0c7a38; --btn-wa-hover: #0a6630; }

.btn--primary {
  background: var(--btn-brand);
  box-shadow: 0 1px 2px rgba(6, 10, 24, 0.35), 0 8px 18px rgba(6, 10, 24, 0.26);
}
.btn--primary:hover { background: var(--btn-brand-hover); }

.btn--whatsapp {
  background: var(--btn-wa);
  box-shadow: 0 1px 2px rgba(6, 10, 24, 0.35), 0 8px 18px rgba(6, 10, 24, 0.26);
}
.btn--whatsapp:hover { background: var(--btn-wa-hover); }

/* L'étiquette de la marque reste lisible et ne crie pas en capitales. */
.brand__tag { letter-spacing: 0.01em; font-size: 0.78rem; }

@media (max-width: 480px) {
  .brand__tag { font-size: 0.7rem; letter-spacing: 0.01em; }
}

/* Les intitulés de colonnes du pied de page ne sont pas des titres de document. */
.footer__title {
  margin: 0 0 0.9rem;
  color: var(--on-ink);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Les fonds bleus qui portent du texte blanc utilisent le bleu à contraste
   suffisant, y compris en thème sombre. */
.nav__lang [aria-current='true'],
.skip-link { background: var(--btn-brand); }
::selection { background: var(--btn-brand); color: #fff; }

/* --------------------------------------- suites de la revue de finition -- */

/* Le bloc d'appel : les numéros rejoignent la colonne de droite,
   le titre garde sa phrase, la colonne droite ne finit plus dans le vide. */
@media (min-width: 900px) {
  .cta { row-gap: 0; align-items: start; }
  .cta h2 { grid-column: 1; grid-row: 1; }
  .cta > p:not(.cta__numbers) { grid-column: 1; grid-row: 2; margin-top: 1rem; }
  .cta__actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .cta p.cta__numbers {
    grid-column: 2;
    grid-row: 3;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink-line);
  }
}

/* L'échec d'envoi ne se lit plus comme une note de bas de page. */
.form__note--error {
  color: #c2382a;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.form__note--ok { color: var(--brand); font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .form__note--error { color: #ff9c90; }
}

/* Des états qui répondent vraiment, au lieu d'un simple changement de teinte. */
.trade {
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease), background-color 0.24s var(--ease);
}
.trade:hover .trade__icon,
.trade:focus-within .trade__icon {
  background: var(--btn-brand);
  color: #fff;
  transform: rotate(-4deg) scale(1.06);
}
.trade__icon { transition: background-color 0.24s var(--ease), color 0.24s var(--ease), transform 0.24s var(--ease); }
.trade:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: var(--shadow-2);
}

.trade__link {
  align-self: start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.trade:hover .trade__link { border-bottom-color: currentColor; }

.proof__row { transition: background-color 0.2s var(--ease); }
.proof__row:hover {
  background: rgba(147, 178, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: 0 0 0 8px rgba(147, 178, 255, 0.07);
}

.nav__link { position: relative; }
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  inset-inline: 0.8rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
}

.footer a { transition: color 0.18s var(--ease); }

/* Le héros garde ses pistes de circuit comme seul fond ; le bloc d'appel
   reçoit les mêmes, au lieu d'un lavis de couleur. */
.cta { position: relative; isolation: isolate; }
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background-repeat: no-repeat;
  background-position: right -40px center;
  background-size: auto 150%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='360' viewBox='0 0 420 360' fill='none' stroke='%2327b6f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 70h220v-50h120'/%3E%3Cpath d='M0 160h300v70h120'/%3E%3Cpath d='M0 290h180v-60h150'/%3E%3Ccircle cx='352' cy='20' r='10'/%3E%3Ccircle cx='340' cy='230' r='10'/%3E%3Ccircle cx='342' cy='230' r='2'/%3E%3C/svg%3E");
}

/* ------------------------------------- suites de la seconde revue -------- */

/* L'anneau de focus se lit sur chaque fond : bleu sur le papier,
   bleu clair sur l'encre. */
.nav, .hero, .page-head, .cta, .footer, .strip { --focus: #7fd3ff; }

/* Les pistes du bloc d'appel restent dans l'angle haut, loin du texte,
   des boutons et du filet des numéros. */
.cta::before {
  inset: 0 0 auto auto;
  width: min(360px, 42%);
  height: 58%;
  background-position: right -30px top -10px;
  background-size: auto 100%;
  opacity: 0.09;
}

@media (max-width: 899px) {
  .cta::before { display: none; }
}

/* ==========================================================================
   PHOTOS, CHIFFRES, TÉMOIGNAGES ET MOUVEMENT
   ========================================================================== */

/* ---------------------------------------------------------------- photos -- */

.trade { --pad: clamp(1.4rem, 2.6vw, 1.9rem); padding: var(--pad); overflow: hidden; }

.trade__photo,
.detail__photo,
.card-photo,
.band {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.trade__photo {
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0.25rem;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  aspect-ratio: 16 / 10;
}

.trade__photo img,
.detail__photo img,
.card-photo img,
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.trade:hover .trade__photo img { transform: scale(1.05); }

.detail__photo { aspect-ratio: 3 / 2; margin-top: 0.5rem; }
.detail__photo:hover img { transform: scale(1.04); }

.card-photo:hover img { transform: scale(1.04); }

.band { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); position: relative; }
.band img { aspect-ratio: 14 / 6; }


/* ------------------------------------------------------ bandeau chiffres -- */

.stats-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--ink);
  color: var(--on-ink);
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(100deg, rgba(6, 10, 24, 0.94) 32%, rgba(6, 10, 24, 0.72)), var(--photo);
  background-size: cover;
  background-position: center right;
}

.stats {
  display: grid;
  gap: 1.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 2px solid var(--cyan);
}

.stat__num {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 750;
  font-stretch: 105%;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label { font-size: 0.95rem; color: var(--on-ink-muted); }

/* --------------------------------------------------------- témoignages -- */




.quotes { display: grid; gap: 1.25rem; }

@media (min-width: 880px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.quote:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: var(--shadow-2);
}

.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.02rem; line-height: 1.6; }
.quote blockquote p::before { content: '\201C'; }
.quote blockquote p::after { content: '\201D'; }

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.quote__mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
}

.quote__who { display: block; font-weight: 650; }
.quote__role { display: block; font-size: 0.87rem; color: var(--fg-muted); }

/* ------------------------------------------------------------ mouvement -- */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease),
      clip-path 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
    will-change: opacity, transform;
  }

  html.js [data-reveal=''],
  html.js [data-reveal='up'] { transform: translateY(20px); }
  html.js [data-reveal='left'] { transform: translateX(-24px); }
  html.js [data-reveal='zoom'] { transform: scale(1.04); }
  html.js [data-reveal='mask'] { clip-path: inset(0 0 100% 0); transform: translateY(12px); }

  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
    will-change: auto;
  }

  /* la barre de navigation se resserre quand la page défile */
  .nav { transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
  .nav.is-scrolled { box-shadow: 0 1px 0 var(--ink-line), 0 10px 30px rgba(0, 0, 0, 0.35); }

  /* les pistes du héros dérivent lentement */
  .hero__traces { animation: derive 40s linear infinite alternate; }

  @keyframes derive {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-28px, 10px, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .trade__photo img, .detail__photo img, .card-photo img, .band img { transition: none; }
}

/* La photo qui accompagne un texte reste une vignette, pas un mur. */
.card-photo {
  aspect-ratio: 16 / 10;
  max-width: 34rem;
  margin-top: 1.75rem;
}
