/* Altixia Books — feuille de style unique.
 *
 * Fil conducteur : le grand livre bien tenu. Papier réglé, folios numérotés, chiffres en
 * colonnes (tabular-nums), totaux soulignés deux fois comme en comptabilité. Palette et police
 * de la charte Altixia (brand-assets/BRAND.md) : bleu #28669c / #2f81c1, marine #171f33, Inter.
 * Aucun style en ligne dans le HTML : la politique CSP du serveur n'admet que ce fichier.
 */

@font-face {
  font-family: "Inter Books";
  src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  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;
}

:root {
  --primary: #28669c;
  --accent: #2f81c1;
  --b50: #eaf4fc;
  --b100: #d3e7f7;
  --b200: #a5cff0;
  --b300: #6cb1e3;
  --b700: #21537d;
  --b800: #1b425f;
  --navy: #171f33;
  --navy-2: #1f2a44;
  --ink: #252b37;
  --muted: #5a6475;
  --faint: #66728a;
  --paper: #fbfcfe;
  --paper-2: #f3f7fb;
  --rule: #e1e8f0;
  --rule-soft: rgba(40, 102, 156, 0.085);
  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: "Inter Books", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 1px 2px rgba(23, 31, 51, 0.05), 0 24px 60px -24px rgba(23, 31, 51, 0.28);
  --shadow-md: 0 1px 2px rgba(23, 31, 51, 0.06), 0 14px 32px -14px rgba(23, 31, 51, 0.25);
  color-scheme: light;
}

/* ───────────────────────────── Base ───────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.55rem + 3.4vw, 4.15rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.14rem;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

::selection {
  background: var(--b100);
  color: var(--navy);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Le filet devant chaque intitulé : la tête de colonne d'un registre. */
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 0;
  border-top: 3px double currentColor;
}

.lead {
  max-width: 38em;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
}

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

/* ───────────────────────────── Boutons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.8em 1.35em;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px -8px rgba(40, 102, 156, 0.65);
}

.btn-primary:hover {
  background: var(--b700);
}

.btn-ghost {
  background: #fff;
  border-color: var(--rule);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--b300);
  color: var(--primary);
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.btn-light:hover {
  background: var(--b50);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.55em 1.05em;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ───────────────────────────── En-tête ───────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 252, 254, 0.84);
  border-bottom: 1px solid rgba(23, 31, 51, 0.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 26px;
}

.brand-product {
  margin-left: 0.7rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--rule);
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  color: #3d4656;
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--primary);
}

.langs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav + .langs {
  margin-left: 0.5rem;
}

.lang {
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
}

a.lang:hover {
  color: var(--primary);
  background: var(--b50);
}

.lang.is-current {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  text-decoration-color: var(--b300);
}

/* ───────────────────────────── Accroche ───────────────────────────── */

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7.5rem);
}

/* Le papier réglé du registre, qui s'efface vers le bas. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 39px,
    var(--rule-soft) 39px 40px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 62%, transparent);
}

/* Un halo bleu derrière la feuille. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -12%;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(47, 129, 193, 0.16), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

/* La double marge verticale du grand livre, sur grand écran. */
@media (min-width: 1300px) {
  .hero-grid::before {
    content: "";
    position: absolute;
    top: -2rem;
    bottom: -3rem;
    left: -1.75rem;
    width: 4px;
    border-inline: 1px solid rgba(40, 102, 156, 0.22);
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
  background-image: linear-gradient(var(--b300), var(--b300)),
    linear-gradient(var(--b300), var(--b300));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 2px;
  background-position: 0 calc(100% - 0.02em), 0 calc(100% - 0.12em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.08em;
  animation: underline 0.9s 1s var(--ease) both;
}

.hero .lead {
  max-width: 34em;
  margin-top: 1.5rem;
}

.hero .actions {
  margin-top: 2.1rem;
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-price strong {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hero-price .sep {
  width: 1px;
  height: 1.1rem;
  margin-inline: 0.5rem;
  background: var(--rule);
}

.hero-copy > * {
  animation: rise 0.85s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.18s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.28s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.38s;
}

/* ── La feuille de rapprochement ── */

.mock {
  position: relative;
  margin: 0;
  animation: rise 1s 0.25s var(--ease) both;
}

.sheet {
  position: relative;
  max-width: 31rem;
  margin-left: auto;
  padding: 1.35rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sheet-company {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.sheet-period {
  margin-top: 0.1rem;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  background: var(--b50);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Le point « en direct » : l'espace est synchronisé. */
.live-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse 2s 3.2s ease-out infinite;
}

.progress {
  height: 4px;
  margin: 1.1rem 0 0.35rem;
  overflow: hidden;
  background: var(--b50);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: inherit;
  transform-origin: left;
  animation: grow 2.4s 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.feeds {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 1.5rem;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.4rem;
  margin-inline: -0.4rem;
  border-bottom: 1px dashed #e3eaf3;
  border-radius: 8px;
  animation: flash 1s ease-out both;
}

.feed-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--b50);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.feed:nth-child(2) .feed-mark {
  background: #eef0fb;
  color: #3f4fa8;
}

.feed:nth-child(3) .feed-mark {
  background: #eaf6f3;
  color: #2b6f61;
}

.feed:nth-child(4) .feed-mark {
  background: #f4f1ea;
  color: #7a5b25;
}

.feed-name {
  display: flex;
  flex-direction: column;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.25;
  min-width: 0;
}

.feed-name small,
.feed-count small {
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 500;
}

.feed-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-count {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: #fff;
  animation: tick 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.tick svg {
  width: 0.95rem;
  height: 0.95rem;
}

.feed:nth-child(1),
.feed:nth-child(1) .tick {
  animation-delay: 1.15s;
}

.feed:nth-child(2),
.feed:nth-child(2) .tick {
  animation-delay: 1.65s;
}

.feed:nth-child(3),
.feed:nth-child(3) .tick {
  animation-delay: 2.15s;
}

.feed:nth-child(4),
.feed:nth-child(4) .tick {
  animation-delay: 2.65s;
}

.ledger {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
}

.ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.28rem 0;
}

.ledger dt {
  color: var(--muted);
}

.ledger dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ledger .ledger-total {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--navy);
}

.ledger-total dt {
  color: var(--navy);
  font-weight: 650;
}

.ledger-total dd span {
  position: relative;
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
}

/* Le total, souligné deux fois. */
.ledger-total dd span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 4px;
  border-block: 1px solid var(--navy);
  transform-origin: right;
  animation: draw 0.6s 3.1s var(--ease) both;
}

/* La facture glisse sous la feuille, sans masquer le total. */
.invoice {
  position: relative;
  width: 19.5rem;
  margin: -0.75rem 0 0 -0.5rem;
  padding: 1rem 1.1rem 1.05rem;
  background: #fff;
  border: 1px solid #e2e9f2;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2.5deg);
  animation: drop 0.75s 3.35s var(--ease) both;
}

.invoice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.invoice-no {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.chip {
  white-space: nowrap;
  padding: 0.18rem 0.5rem;
  background: var(--b50);
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Échéance dépassée : ambre, distinct du bleu de la marque. */
.chip.chip-warn {
  background: #fff4e5;
  color: #9a5b00;
}

.invoice-client {
  margin-top: 0.55rem;
  color: var(--faint);
  font-size: 0.8rem;
}

/* La place du tampon « Payée » est réservée : selon la langue, le montant est plus long
   (« 2400,00 US$ »), et le tampon ne doit jamais le couvrir. */
.invoice-amount {
  margin-top: 0.1rem;
  padding-right: 7rem;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stamp {
  position: absolute;
  right: 0.95rem;
  bottom: 0.95rem;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  animation: stamp 0.35s 3.95s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

/* ───────────────────────── Comptes reliés ───────────────────────── */

.connected {
  background: #fff;
  border-block: 1px solid var(--rule);
}

.connected-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2.25rem;
  padding-block: 1.6rem;
}

.connected-label {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.connected-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connected-names li {
  color: #44506a;
  font-size: 1.22rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.connected-names li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-inline: 1.1rem;
  background: var(--rule);
  vertical-align: -0.1em;
}

.connected-more {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ───────────────────────────── Sections ───────────────────────────── */

.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section-head.center {
  max-width: 46rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head.center .kicker {
  justify-content: center;
}

.section-head.center .lead {
  margin-inline: auto;
}

/* ── Le service : six folios ── */

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.sticky {
  position: sticky;
  top: 7rem;
}

.folios {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.folio {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 1.7rem 0.75rem 1.75rem 0;
  border-top: 1px solid var(--rule);
  transition: background-color 0.3s var(--ease);
}

.folio:hover {
  background: linear-gradient(90deg, rgba(234, 244, 252, 0.8), rgba(234, 244, 252, 0));
}

.folio-no {
  grid-row: span 2;
  padding-top: 0.2rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  border-right: 3px double var(--b100);
}

.folio p {
  margin-top: 0.45rem;
  color: var(--muted);
}

/* ── États et déclarations ── */

.reports {
  position: relative;
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.panel {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(23, 31, 51, 0.04);
}

.panel-title {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.panel-text {
  margin-top: 0.75rem;
  color: var(--muted);
}

.leaders {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.leaders li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0;
  font-size: 0.97rem;
}

.leaders span {
  color: var(--navy);
  font-weight: 550;
}

/* Les points de conduite d'une table des matières, entre l'intitulé et la valeur. */
.leaders i {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted #c3cfdd;
  transform: translateY(-0.3em);
}

.leaders b {
  color: var(--primary);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panel-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Démarrage : quatre étapes ── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.45rem;
  right: 12%;
  height: 4px;
  border-block: 1px solid var(--b100);
}

.step {
  position: relative;
}

.step-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.4rem;
  background: #fff;
  border: 1.5px solid var(--b200);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--paper);
}

.step p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ── Tarifs ── */

.pricing {
  background: linear-gradient(to bottom, var(--paper), #fff 30%);
  border-top: 1px solid var(--rule);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 1.8rem 2rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(23, 31, 51, 0.04);
}

.plan-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.8rem;
  padding: 0.32rem 0.75rem;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.plan-tagline {
  min-height: 3.2em;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 1.5rem 0 1.5rem;
  color: var(--navy);
}

.plan-price .num {
  padding-bottom: 0.08em;
  border-bottom: 4px double var(--b200);
  font-size: clamp(3rem, 2.4rem + 1.6vw, 3.75rem);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-price .cur {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-size: 1.35rem;
  font-weight: 620;
}

.plan-price .cur-after {
  margin-left: 0.2rem;
}

.plan-price .per {
  margin-left: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.plan-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.plan-wa:hover {
  color: var(--primary);
  text-decoration: underline;
}

.plan-plus {
  margin-top: 1.7rem;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-features {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.plan-plus + .plan-features {
  margin-top: 0.6rem;
}

.plan-features li {
  display: flex;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--rule);
  font-size: 0.94rem;
  line-height: 1.45;
}

.plan-features li:first-child {
  border-top: 0;
}

.plan-features .ico {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  padding: 0.12rem;
  background: var(--b50);
  border-radius: 50%;
  color: var(--primary);
}

.plan.is-featured {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 39px,
    rgba(255, 255, 255, 0.035) 39px 40px
  );
  border-color: var(--navy);
  color: #cfd8e6;
  box-shadow: 0 34px 70px -30px rgba(23, 31, 51, 0.65);
}

.plan.is-featured .plan-name,
.plan.is-featured .plan-price {
  color: #fff;
}

.plan.is-featured .plan-tagline,
.plan.is-featured .plan-price .per,
.plan.is-featured .plan-wa {
  color: #a9b7cb;
}

.plan.is-featured .plan-wa:hover {
  color: #fff;
}

.plan.is-featured .plan-price .num {
  border-bottom-color: rgba(165, 207, 240, 0.5);
}

.plan.is-featured .plan-plus {
  color: var(--b200);
}

.plan.is-featured .plan-features li {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.plan.is-featured .plan-features li:first-child {
  border-top: 0;
}

.plan.is-featured .plan-features .ico {
  background: rgba(165, 207, 240, 0.14);
  color: var(--b200);
}

@media (min-width: 1000px) {
  .plan.is-featured {
    transform: translateY(-0.9rem);
  }
}

.pricing-foot {
  max-width: 48rem;
  margin: 3rem auto 0;
  text-align: center;
}

.custom {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 550;
}

.custom a {
  font-weight: 650;
}

.footnote {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ── Vos données ── */

.security {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  color: #c9d3e1;
}

.security h2,
.security h3 {
  color: #fff;
}

.security .kicker {
  color: var(--b300);
}

.security .lead {
  color: #a7b5c8;
}

.security .section-head {
  max-width: 44rem;
  margin-bottom: 3.5rem;
}

.guards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guard {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.guard-ico {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1rem;
  color: var(--b300);
}

.guard p {
  margin-top: 0.5rem;
  color: #a7b5c8;
  font-size: 0.97rem;
}

/* ── Questions ── */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.qa {
  border-bottom: 1px solid var(--rule);
}

.qa-item {
  border-top: 1px solid var(--rule);
}

.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary:hover {
  color: var(--primary);
}

.qa-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}

.qa-item[open] .qa-ico {
  transform: rotate(45deg);
}

.qa-item p {
  max-width: 40em;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--muted);
}

/* ── Dernier appel ── */

.final {
  position: relative;
  overflow: clip;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 45%, var(--b800) 100%);
  color: #fff;
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 39px,
    rgba(255, 255, 255, 0.07) 39px 40px
  );
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.final-inner {
  position: relative;
  max-width: 50rem;
}

.final h2 {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
}

.final p {
  margin-top: 1rem;
  color: var(--b100);
  font-size: 1.15rem;
}

.final .actions {
  justify-content: center;
  margin-top: 2.2rem;
}

/* ───────────────────────────── Pied de page ───────────────────────────── */

.foot {
  padding-top: 4rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  background: #121a2c;
  color: #9fadc2;
  font-size: 0.93rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
}

.brand-light {
  color: #fff;
}

.brand-light .brand-product {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.foot-brand p {
  max-width: 26rem;
  margin-top: 1.1rem;
  line-height: 1.6;
}

.foot-title {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li + li {
  margin-top: 0.5rem;
}

.foot a {
  color: #c9d3e1;
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot-link {
  padding: 0;
  border: 0;
  background: none;
  color: #c9d3e1;
  font: inherit;
  cursor: pointer;
}

.foot-link:hover,
.foot-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.foot .addr {
  color: #8494ab;
  font-size: 0.86rem;
}

.foot-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7d8ca2;
  font-size: 0.82rem;
}

/* ───────────────────────────── 404 ───────────────────────────── */

.notfound-inner {
  max-width: 40rem;
}

.notfound-code {
  color: var(--b100);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.notfound-lang {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.notfound-lang h1,
.notfound-lang h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.notfound-lang p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* ───────────────────────────── Connexion ───────────────────────────── */

[hidden] {
  display: none !important;
}

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

.bar-login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.bar-login:hover,
.bar-login[aria-current] {
  background: var(--b50);
  color: var(--primary);
}

.langs + .bar-login {
  margin-left: 0.25rem;
}

.btn-link {
  padding-inline: 0.4rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn-link:hover {
  transform: none;
  color: var(--b700);
}

.login {
  position: relative;
  overflow: clip;
  min-height: calc(100vh - 4.25rem);
}

.login::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 39px,
    var(--rule-soft) 39px 40px
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.login-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
}

.login-card .lead {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.login-error {
  display: none;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #b42318;
  font-size: 0.93rem;
  font-weight: 550;
}

.login-error:target,
.login-error.is-shown {
  display: block;
}

.login-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.login-form label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 620;
}

.login-field {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #cfd9e5;
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.login-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 129, 193, 0.16);
}

.login-field input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.25rem 0.85rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  text-align: right;
}

.login-field input::placeholder {
  color: #a3afbf;
  font-weight: 500;
}

.login-field input[aria-invalid="true"] {
  color: #b42318;
}

.login-suffix {
  display: flex;
  align-items: center;
  padding: 0 1rem 0 0.1rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
}

.login-form .btn {
  margin-top: 0.6rem;
}

.login-remembered,
.login-help {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-remembered a {
  font-weight: 650;
}

.login-help a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.login-new {
  padding: 1.5rem 0 0 1.75rem;
  border-left: 3px double var(--b100);
}

.login-new h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.login-new p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.login-new .actions {
  margin-top: 1.25rem;
}

/* ───────────────────────────── Mouvements ───────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes underline {
  from {
    background-size: 0 2px, 0 2px;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes tick {
  from {
    background: #fff;
    border-color: var(--b200);
    border-style: dashed;
    color: transparent;
    transform: scale(0.82);
  }
}

@keyframes flash {
  0% {
    background: transparent;
  }
  25% {
    background: var(--b50);
  }
  100% {
    background: transparent;
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(-7deg);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(1.8);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

/* Apparition au défilement, sans script, là où le navigateur sait lier une animation au
   défilement. Ailleurs, tout est simplement visible. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ───────────────────────────── Écrans moyens et petits ───────────────────────────── */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .nav + .langs {
    margin-left: auto;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    margin-inline: auto;
  }

  .plan-tagline {
    min-height: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .steps::before {
    display: none;
  }

  .guards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .service-grid,
  .faq-grid,
  .reports-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticky {
    position: static;
  }

  .login-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-new {
    padding: 0;
    border-left: 0;
  }

  .mock {
    max-width: 32rem;
    width: 100%;
    margin-inline: auto;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

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

  /* Sur mobile, l'accès client se réduit à son icône ; le libellé reste lu à voix haute. */
  .bar-login span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .bar-login {
    padding: 0.5rem;
  }

  .bar-login .ico {
    width: 1.35rem;
    height: 1.35rem;
  }

  .bar-inner {
    gap: 0.75rem;
  }

  .hero .actions .btn {
    flex: 1 1 100%;
  }

  .hero-price .sep {
    display: none;
  }

  .hero-price .muted {
    flex-basis: 100%;
  }

  .sheet {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .feed {
    grid-template-columns: 1.85rem minmax(0, 1fr) auto 1.4rem;
    gap: 0.65rem;
  }

  .invoice {
    width: 19rem;
    padding: 0.85rem 0.95rem 0.9rem;
  }

  .invoice-amount {
    font-size: 1.15rem;
  }

  .connected-names {
    gap: 0.3rem 1.15rem;
  }

  .connected-names li {
    font-size: 1.08rem;
  }

  /* Sur mobile la liste passe à la ligne : un filet en tête de ligne ferait désordre. */
  .connected-names li + li::before {
    display: none;
  }

  .kicker::before {
    display: none;
  }

  .steps,
  .guards {
    grid-template-columns: minmax(0, 1fr);
  }

  .folio {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    column-gap: 0.9rem;
  }

  .qa-item p {
    padding-right: 0;
  }

  .final .actions .btn {
    flex: 1 1 100%;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
