/* ═══════════════════════════════════════════════════════════════════
   PACTSIGN — la feuille de style du site.

   La charte est celle de la signature électronique de Link Web :
   les bleus du CRM (#37c5ee décor, #0a7899 action, #0b5c76 titres,
   #e4f6fd sélection) et Rethink Sans. Pour la gravité d'un acte signé,
   une capitale à empattements (Instrument Serif), la machine à écrire
   des empreintes (IBM Plex Mono) et la plume (Caveat).

   Le motif de fond est un GUILLOCHÉ — les courbes des billets de banque
   et des actes officiels — calculé par `build.mjs`, pas une image.
   ═══════════════════════════════════════════════════════════════════ */

/* Polices servies d'ici (licence SIL OFL) : aucune requête vers un tiers,
   donc aucune adresse IP de visiteur transmise à Google. */
@font-face { font-family: "Rethink Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/assets/fonts/rethink-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/caveat-600.woff2") format("woff2"); }

:root {
  --night: #061a23;
  --ink: #08222d;
  --ink-2: #0c3140;
  --ink-3: #123f52;
  --paper: #f6f7f8;
  --paper-2: #eef1f3;
  --card: #ffffff;
  --text: #17161b;
  --muted: #56616b;
  --faint: #8a949c;
  --line: #dde3e7;
  --line-dark: rgba(228, 246, 253, 0.12);
  --blue: #37c5ee;
  --blue-bright: #00cfff;
  --deep: #0a7899;
  --title: #0b5c76;
  --soft: #e4f6fd;
  --ok: #1f8a5b;
  --warn: #a8641a;
  --bad: #b3261e;

  --serif: "Rethink Sans", system-ui, sans-serif;
  --sans: "Rethink Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --hand: "Caveat", cursive;

  --wrap: 1180px;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(8, 34, 45, 0.04), 0 18px 40px -22px rgba(8, 34, 45, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

::selection {
  background: var(--soft);
  color: var(--ink);
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  left: 12px;
}

/* ───────────────────────────── Typographie ─────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(42px, 6.2vw, 80px);
}
h2 {
  font-size: clamp(34px, 4.6vw, 58px);
}
h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.12;
}
h1 em,
h2 em,
h3 em {
  font-style: normal;
  color: var(--title);
}
p {
  margin: 0;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--deep);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 10px 24px -12px rgba(10, 120, 153, 0.7);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--title);
  transform: translateY(-1px);
}
.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--card);
  border-color: var(--title);
}
.on-dark .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}
.on-dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--blue);
}
.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  background: rgba(246, 247, 248, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
}
.page-accueil .topbar:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.page-accueil .topbar:not(.is-scrolled) .brand,
.brand--light {
  color: #fff;
}
.brand__seal {
  width: 34px;
  height: 34px;
  color: currentColor;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 750;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand__name em {
  font-style: normal;
  color: var(--deep);
}
.page-accueil .topbar:not(.is-scrolled) .brand__name em,
.brand--light .brand__name em {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a:not(.btn) {
  color: inherit;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0.82;
  transition: opacity 0.2s, background 0.2s;
}
.nav a:not(.btn):hover {
  opacity: 1;
  background: rgba(10, 120, 153, 0.08);
}
.page-accueil .topbar:not(.is-scrolled) .nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav a[aria-current="page"]:not(.btn) {
  opacity: 1;
  background: var(--soft);
  color: var(--title);
}
.nav .btn {
  margin-left: 10px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  position: relative;
  cursor: pointer;
}
.page-accueil .topbar:not(.is-scrolled) .burger {
  border-color: rgba(255, 255, 255, 0.25);
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s;
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  top: 25px;
}
.burger[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 1060px) {
  .burger {
    display: block;
  }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 24px;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(8, 34, 45, 0.4);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a:not(.btn) {
    padding: 13px 14px;
    font-size: 17px;
    border-radius: 12px;
  }
  .page-accueil .topbar:not(.is-scrolled) .nav a:not(.btn):hover {
    background: rgba(10, 120, 153, 0.08);
  }
  .nav .btn {
    margin: 10px 0 0;
    min-height: 50px;
  }
}

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

.section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.section--tight {
  padding: clamp(56px, 7vw, 90px) 0;
}
.section--white {
  background: var(--card);
}
.section--dark {
  background: var(--ink);
  color: #d6e3e9;
}
.section--dark h2,
.section--dark h3 {
  color: #fff;
}
.section--dark h2 em,
.section--dark h3 em {
  color: var(--blue);
}
.section--dark .lead {
  color: #9fb6c1;
}
.section--dark .eyebrow {
  color: var(--blue);
}
.section__head {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section__head--split {
  max-width: none;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}
@media (max-width: 860px) {
  .section__head--split {
    grid-template-columns: 1fr;
  }
}

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

/* ───────────────────────────── Guilloché ───────────────────────────── */

.guilloche {
  position: absolute;
  pointer-events: none;
  background: url("/assets/guilloche.svg") center / contain no-repeat;
}
.guilloche--ink {
  background-image: url("/assets/guilloche-ink.svg");
}

/* ───────────────────────────── Héros (accueil) ─────────────────────── */

.hero {
  position: relative;
  margin-top: -74px;
  padding: calc(74px + clamp(56px, 8vw, 110px)) 0 clamp(80px, 9vw, 120px);
  background:
    radial-gradient(1100px 600px at 85% 10%, rgba(55, 197, 238, 0.14), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(10, 120, 153, 0.22), transparent 60%),
    var(--night);
  color: #c9dbe3;
  overflow: hidden;
  isolation: isolate;
}
.hero .guilloche {
  width: 1100px;
  height: 1100px;
  right: -300px;
  top: -200px;
  opacity: 0.55;
  z-index: -1;
  animation: turn 180s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero h1 {
  color: #fff;
}
.hero h1 em {
  color: var(--blue);
}
.hero .lead {
  color: #9fb6c1;
  margin-top: 28px;
}
.hero .btns {
  margin-top: 40px;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: #9fb6c1;
}
.hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__proof svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: none;
}
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* Le document vivant : un contrat qu'on voit se signer. */
.specimen {
  position: relative;
  perspective: 1400px;
}
.doc {
  position: relative;
  background: #fbfcfc;
  color: var(--text);
  border-radius: 14px;
  padding: 30px 30px 26px;
  box-shadow:
    0 50px 80px -40px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}
.specimen:hover .doc {
  transform: rotateY(-2deg) rotateX(1deg);
}
.doc__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc__title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 21px;
  color: var(--ink);
}
.doc__id {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  text-align: right;
}
.doc__lines {
  display: grid;
  gap: 9px;
  margin: 20px 0 22px;
}
.doc__lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--paper-2);
}
.doc__lines i:nth-child(3n) {
  width: 78%;
}
.doc__lines i:nth-child(4n) {
  width: 92%;
}
.doc__sign {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}
.doc__cartouche {
  position: relative;
  border: 1px solid #c9d7de;
  border-left: 3px solid var(--deep);
  border-radius: 8px;
  padding: 8px 12px 10px;
  min-height: 92px;
}
.doc__cartouche small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.doc__signature {
  width: 100%;
  height: 54px;
  color: #13365f;
}
.doc__signature path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}
.is-live .doc__signature path {
  animation: draw 2.2s 1.2s var(--ease) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.doc__fp {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
}
.stamp {
  width: 104px;
  height: 104px;
  color: var(--deep);
  opacity: 0;
  transform: scale(1.6) rotate(-18deg);
}
.is-live .stamp {
  animation: stamp 0.55s 3.5s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}
@keyframes stamp {
  to {
    opacity: 1;
    transform: scale(1) rotate(-10deg);
  }
}

/* Le journal qui se chaîne sous le document. */
.chain {
  position: relative;
  margin: -18px 18px 0 46px;
  padding: 36px 18px 16px;
  border-radius: 0 0 14px 14px;
  background: rgba(12, 49, 64, 0.92);
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #9fb6c1;
  z-index: -1;
  backdrop-filter: blur(6px);
}
.chain__row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(228, 246, 253, 0.08);
  opacity: 0;
  transform: translateY(6px);
}
.chain__row:last-child {
  border-bottom: 0;
}
.chain__row b {
  font-weight: 500;
  color: #e4f6fd;
}
.chain__row .h {
  color: var(--blue);
}
.is-live .chain__row {
  animation: rise 0.5s var(--ease) forwards;
}
.is-live .chain__row:nth-child(1) { animation-delay: 0.3s; }
.is-live .chain__row:nth-child(2) { animation-delay: 0.7s; }
.is-live .chain__row:nth-child(3) { animation-delay: 1.1s; }
.is-live .chain__row:nth-child(4) { animation-delay: 2.8s; }
.is-live .chain__row:nth-child(5) { animation-delay: 3.6s; }
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 560px) {
  .doc {
    padding: 22px 20px;
    transform: none;
  }
  .chain {
    margin: -14px 8px 0 8px;
  }
  .chain__row {
    grid-template-columns: 52px 1fr;
  }
  .chain__row .h {
    display: none;
  }
  .stamp {
    width: 78px;
    height: 78px;
  }
}

/* ───────────────────────────── Bandeau de faits ────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 34px 28px;
  border-left: 1px solid var(--line);
}
.fact:first-child {
  border-left: 0;
}
.fact strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}
.fact span {
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .fact:nth-child(3) {
    border-left: 0;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .fact:first-child {
    border-top: 0;
  }
}

/* ───────────────────────────── Cartes ──────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover {
  border-color: #b9d9e4;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 12px;
}
.card p {
  color: var(--muted);
  font-size: 15.5px;
}
.card__n {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 22px;
}
.card__icon {
  width: 42px;
  height: 42px;
  color: var(--deep);
  margin-bottom: 22px;
}
.card__icon svg {
  width: 42px;
  height: 42px;
}
.section--dark .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-dark);
}
.section--dark .card:hover {
  border-color: rgba(55, 197, 238, 0.4);
  box-shadow: none;
}
.section--dark .card p {
  color: #9fb6c1;
}
.section--dark .card__n,
.section--dark .card__icon {
  color: var(--blue);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--title);
}
.tag--ok {
  background: #e3f4ea;
  color: var(--ok);
}
.tag--muted {
  background: var(--paper-2);
  color: var(--muted);
}

/* ───────────────────────────── Étapes ──────────────────────────────── */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step__n {
  font-family: var(--serif);
  font-weight: 750;
  letter-spacing: -0.05em;
  font-size: 64px;
  line-height: 0.9;
  color: var(--title);
}
.step h3 {
  margin-bottom: 10px;
}
.step p {
  color: var(--muted);
}
.step ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.step li {
  position: relative;
  padding-left: 22px;
}
.step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: var(--deep);
}
.step .mono {
  color: var(--deep);
}
@media (max-width: 860px) {
  .step {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .step__n {
    font-size: 48px;
  }
}

/* ───────────────────────────── Certificat ──────────────────────────── */

.certificate {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-size: 13.5px;
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #d5e0e5;
  pointer-events: none;
  border-radius: 3px;
}
.certificate .guilloche {
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  opacity: 0.16;
}
.certificate__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.certificate__head h3 {
  font-size: clamp(26px, 3vw, 34px);
}
.certificate__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}
.certificate__table {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid var(--line);
}
.certificate__table > * {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.certificate__table dt {
  color: var(--muted);
  font-size: 12.5px;
}
.certificate__table dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}
.certificate__table dd.sig {
  font-family: var(--hand);
  font-size: 28px;
  line-height: 1;
  color: #13365f;
  word-break: normal;
}
@media (max-width: 560px) {
  .certificate__table {
    grid-template-columns: 1fr;
  }
  .certificate__table dd {
    border-top: 0;
    padding-top: 0;
  }
}
.certificate__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
}
.certificate__foot svg {
  width: 64px;
  height: 64px;
  color: var(--deep);
  flex: none;
}

/* ───────────────────────────── Deux colonnes ───────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--top {
  align-items: start;
}
@media (max-width: 920px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7899' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .checks li::before {
  background-color: rgba(55, 197, 238, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337c5ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.checks strong {
  color: var(--ink);
}
.section--dark .checks strong {
  color: #fff;
}

/* ───────────────────────────── Tableau ─────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table thead th {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
}
.table tbody th {
  font-weight: 650;
  color: var(--ink);
  width: 34%;
}
.table td {
  color: var(--muted);
}
.table .col-us {
  background: rgba(228, 246, 253, 0.45);
  color: var(--ink);
}
.table thead .col-us {
  color: var(--title);
  background: var(--soft);
}
.yes,
.no,
.part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.yes {
  color: var(--ok);
}
.part {
  color: var(--warn);
}
.no {
  color: var(--faint);
}
.yes::before,
.part::before,
.no::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ───────────────────────────── Citation / note ─────────────────────── */

.note {
  border-left: 3px solid var(--deep);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  color: var(--muted);
  font-size: 15.5px;
}
.note strong {
  color: var(--ink);
}
.note--honest {
  border-left-color: var(--warn);
}

.quote {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 24ch;
}
.quote em {
  color: var(--title);
}
.section--dark .quote {
  color: #fff;
}
.section--dark .quote em {
  color: var(--blue);
}

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

.pagehead {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(50px, 6vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pagehead .guilloche {
  width: 760px;
  height: 760px;
  right: -260px;
  top: -300px;
  opacity: 0.2;
}
.pagehead h1 {
  font-size: clamp(42px, 6vw, 78px);
  margin: 22px 0 24px;
  max-width: 16ch;
}
.crumbs {
  font-size: 13.5px;
  color: var(--faint);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--deep);
}

/* ───────────────────────────── FAQ ─────────────────────────────────── */

.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a7899' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 60px 28px 0;
  color: var(--muted);
  display: grid;
  gap: 12px;
  max-width: 78ch;
}
.faq-group {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0;
}
.faq-group h2 {
  font-size: clamp(28px, 3vw, 36px);
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 860px) {
  .faq-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .faq-group h2 {
    position: static;
  }
  .faq .answer {
    padding-right: 0;
  }
}

/* ───────────────────────────── Texte long (légal) ──────────────────── */

.prose {
  max-width: 76ch;
  font-size: 16.5px;
  color: #33393f;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 56px 0 18px;
}
.prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  margin: 30px 0 10px;
  letter-spacing: 0;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}
.prose li {
  margin-bottom: 8px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 24px;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  background: var(--paper);
  font-weight: 650;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}
.docmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 40px;
}
.layout-toc {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 2px;
  font-size: 14px;
}
.toc b {
  font-weight: 700;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 10px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-left: 1px solid var(--line);
}
.toc a:hover {
  color: var(--deep);
  border-left-color: var(--deep);
}
@media (max-width: 920px) {
  .layout-toc {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}

/* ───────────────────────────── Vérifier ────────────────────────────── */

.drop {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 14px;
  padding: 56px 28px;
  border: 1.5px dashed #a9c8d4;
  border-radius: 22px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover,
.drop.is-over {
  border-color: var(--deep);
  background: #f5fbfd;
}
.drop svg {
  width: 52px;
  height: 52px;
  color: var(--deep);
}
.drop strong {
  font-size: 19px;
  color: var(--ink);
}
.drop small {
  color: var(--muted);
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.result {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 26px 28px;
  display: none;
}
.result.is-shown {
  display: block;
  animation: rise 0.4s var(--ease) both;
}
.result h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.result--ok {
  border-color: #b6e0c8;
  background: #f5fbf7;
}
.result--ok h3 {
  color: var(--ok);
}
.result--no {
  border-color: #efd3b3;
  background: #fffaf3;
}
.result--no h3 {
  color: var(--warn);
}
.result dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 16px;
  margin: 16px 0 0;
  font-size: 14.5px;
}
.result dt {
  color: var(--muted);
}
.result dd {
  margin: 0;
  word-break: break-all;
}
.result .checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.result .checklist li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}
.result .checklist li.ko::before {
  content: "✗ ";
  color: var(--bad);
}
@media (max-width: 560px) {
  .result dl {
    grid-template-columns: 1fr;
  }
}
.hash {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  word-break: break-all;
}

/* ───────────────────────────── Contact ─────────────────────────────── */

.contact-card {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.3s;
}
a.contact-card:hover {
  border-color: #b9d9e4;
  box-shadow: var(--shadow);
}
.contact-card small {
  font-weight: 700;
  font-size: 13px;
  color: var(--faint);
}
.contact-card strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  line-height: 1.1;
}
.contact-card span {
  color: var(--muted);
  font-size: 15px;
}

/* ───────────────────────────── Appel final ─────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(55, 197, 238, 0.2), transparent 60%),
    var(--ink);
  color: #c9dbe3;
  padding: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 40px;
  align-items: end;
  isolation: isolate;
}
.cta .guilloche {
  width: 640px;
  height: 640px;
  right: -200px;
  top: -240px;
  opacity: 0.4;
  z-index: -1;
}
.cta h2 {
  color: #fff;
  max-width: 18ch;
}
.cta h2 em {
  color: var(--blue);
}
.cta p {
  margin-top: 18px;
  color: #9fb6c1;
  max-width: 56ch;
}
@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

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

.footer {
  background: var(--night);
  color: #8fa7b2;
  padding: 80px 0 32px;
  font-size: 14.5px;
  margin-top: clamp(80px, 10vw, 130px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
}
.footer h2 {
  font-weight: 700;
  font-size: 13px;
  color: #e4f6fd;
  margin-bottom: 16px;
}
.footer a {
  color: #aec3cc;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.footer a:hover {
  color: #fff;
}
.footer__brand p {
  margin: 18px 0;
  max-width: 38ch;
}
.footer__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__facts li {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: #cfe3ea;
}
.footer__address {
  margin-top: 10px;
  line-height: 1.7;
}
.footer__address a {
  display: inline;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}
.footer__base .mono {
  color: #6f8a96;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.page-accueil .footer,
.footer--flush {
  margin-top: 0;
}

/* ───────────────────────────── Apparitions ─────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
[data-reveal="4"] { transition-delay: 0.24s; }

.hero [data-load] {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}
.hero [data-load="1"] { animation-delay: 0.05s; }
.hero [data-load="2"] { animation-delay: 0.18s; }
.hero [data-load="3"] { animation-delay: 0.3s; }
.hero [data-load="4"] { animation-delay: 0.42s; }
.hero [data-load="5"] { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .hero [data-load] {
    opacity: 1;
    transform: none;
  }
  .doc__signature path {
    stroke-dashoffset: 0;
  }
  .stamp,
  .chain__row {
    opacity: 1;
    transform: rotate(-10deg);
  }
  .chain__row {
    transform: none;
  }
  .hero .guilloche {
    animation: none;
  }
}

@media print {
  .topbar,
  .footer,
  .cta {
    display: none;
  }
  body {
    background: #fff;
  }
}

@media (max-width: 700px) {
  .hero .guilloche {
    opacity: 0.22;
  }
}
